diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0f25d87 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: monthly + open-pull-requests-limit: 5 + groups: + npm-minor-patch: + update-types: [minor, patch] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a8627c5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: CI +on: + pull_request: + push: + branches: [main] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run build diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000..e35379d --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,19 @@ +name: Dependabot auto-merge +on: pull_request +permissions: + contents: write + pull-requests: write +jobs: + automerge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - id: meta + uses: dependabot/fetch-metadata@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - if: steps.meta.outputs.update-type == 'version-update:semver-patch' || steps.meta.outputs.update-type == 'version-update:semver-minor' + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Resources/Public/main.css b/Resources/Public/main.css index 43e059a..4c45805 100644 --- a/Resources/Public/main.css +++ b/Resources/Public/main.css @@ -1,127 +1,2 @@ -/*!***************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./Resources/Private/Styles/module.scss ***! - \***************************************************************************************************************************************************************************************/ -.neos.neos-module.neos-module-management-themeCssVariables h2 { - margin-bottom: 1rem; -} -.neos.neos-module.neos-module-management-themeCssVariables legend { - padding: 0; - margin: 0; - width: auto; -} -.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker] { - color: #555555; -} -.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker] input, -.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker] [class*=ColorPicker] input:focus { - border-width: 1px; - border-color: #777777; - background-color: transparent; - color: #555555; - padding: inherit; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header { - display: flex; - flex-wrap: wrap; - justify-content: space-between; - align-items: center; - background: black; - padding: 1rem; - margin: 1rem 0; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header .neos-buttons { - margin-left: auto; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header .neos-buttons .neos-button { - margin-left: 1rem; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help { - flex-basis: 100%; - font-size: small; - padding: 1rem 0; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help i { - color: #00b5ff; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help i.fa-exclamation-triangle { - color: rgb(255, 135, 0); -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); - grid-gap: 1px; - margin: 1rem 0; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type > * { - display: grid; - padding: 1rem; - gap: 1rem; - grid-template-columns: 1fr 1fr; - background: #000000; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type > * > * { - max-width: 100%; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type > * label { - font-weight: bold; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type > * strong, .neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type > * i { - font-size: 0.675rem; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variable--active { - background: rgba(0, 157, 255, 0.12); -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker { - display: flex; - align-items: center; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker > * { - margin-left: 0.5rem; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__original, .neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__new { - width: 1rem; - height: 1rem; - border-radius: 50%; - display: block; - box-shadow: 0 0 5px white; -} -.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__new { - border: 1px solid #0d95e8; -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs { - margin-top: 1rem; - display: grid; - grid-template-rows: auto 1fr; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs > label { - grid-row: 1; - padding: 10px 20px; - flex: 1; - text-align: center; - cursor: pointer; - transition: background-color 0.3s; -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs .tab-content { - grid-row: 2; - grid-column: 1/-1; - display: none; - border-top: none; -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio] { - display: none; - visibility: hidden; -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:checked + label { - font-weight: bold; - background-color: #0d95e8; - border-bottom: 1px solid #fff; -} -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1), -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2), -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3), -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4), -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(5):checked ~ .tab-content:nth-of-type(5), -.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(6):checked ~ .tab-content:nth-of-type(6) { - display: block; -} +.neos.neos-module.neos-module-management-themeCssVariables h2{margin-bottom:1rem}.neos.neos-module.neos-module-management-themeCssVariables legend{width:auto;margin:0;padding:0}.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker]{color:#555}.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker] input,.neos.neos-module.neos-module-management-themeCssVariables [class*=ColorPicker] [class*=ColorPicker] input:focus{color:#555;background-color:transparent;border-width:1px;border-color:#777;padding:inherit}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header{background:#000;flex-wrap:wrap;justify-content:space-between;align-items:center;margin:1rem 0;padding:1rem;display:flex}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header .neos-buttons{margin-left:auto}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__form-header .neos-buttons .neos-button{margin-left:1rem}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help{flex-basis:100%;padding:1rem 0;font-size:small}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help i{color:#00b5ff}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__help i.fa-exclamation-triangle{color:#ff8700}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type{grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));grid-gap:1px;margin:1rem 0;display:grid}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type>*{background:#000;grid-template-columns:1fr 1fr;gap:1rem;padding:1rem;display:grid}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type>*>*{max-width:100%}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type>* label{font-weight:700}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type>* i,.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variables--type>* strong{font-size:.675rem}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables__variable--active{background:rgba(0,157,255,.12)}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker{align-items:center;display:flex}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker>*{margin-left:.5rem}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__new,.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__original{border-radius:50%;width:1rem;height:1rem;display:block;box-shadow:0 0 5px #fff}.neos.neos-module.neos-module-management-themeCssVariables .theme-cssvariables .react__placeholder--color-picker .color-picker__new{border:1px solid #0d95e8}.neos.neos-module.neos-module-management-themeCssVariables .tabs{grid-template-rows:auto 1fr;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));margin-top:1rem;display:grid}.neos.neos-module.neos-module-management-themeCssVariables .tabs>label{text-align:center;cursor:pointer;flex:1;grid-row:1;padding:10px 20px;transition:background-color.3s}.neos.neos-module.neos-module-management-themeCssVariables .tabs .tab-content{border-top:none;grid-area:2/1/auto/-1;display:none}.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]{visibility:hidden;display:none}.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:checked+label{background-color:#0d95e8;border-bottom:1px solid #fff;font-weight:700}.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:first-of-type:checked~.tab-content:first-of-type,.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(2):checked~.tab-content:nth-of-type(2),.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(3):checked~.tab-content:nth-of-type(3),.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(4):checked~.tab-content:nth-of-type(4),.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(5):checked~.tab-content:nth-of-type(5),.neos.neos-module.neos-module-management-themeCssVariables .tabs input[type=radio]:nth-of-type(6):checked~.tab-content:nth-of-type(6){display:block} +/*# sourceMappingURL=main.css.map*/ \ No newline at end of file diff --git a/Resources/Public/main.js b/Resources/Public/main.js index 38acc6d..cedcf5d 100644 --- a/Resources/Public/main.js +++ b/Resources/Public/main.js @@ -1,50270 +1,3 @@ -/******/ (function() { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./node_modules/@icons/material/CheckIcon.js": -/*!***************************************************!*\ - !*** ./node_modules/@icons/material/CheckIcon.js ***! - \***************************************************/ -/***/ (function(__unused_webpack_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); - -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; } - -var DEFAULT_SIZE = 24; - -exports["default"] = function (_ref) { - var _ref$fill = _ref.fill, - fill = _ref$fill === undefined ? 'currentColor' : _ref$fill, - _ref$width = _ref.width, - width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width, - _ref$height = _ref.height, - height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height, - _ref$style = _ref.style, - style = _ref$style === undefined ? {} : _ref$style, - props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']); - - return _react2.default.createElement( - 'svg', - _extends({ - viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE, - style: _extends({ fill: fill, width: width, height: height }, style) - }, props), - _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' }) - ); -}; - -/***/ }), - -/***/ "./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js": -/*!******************************************************************!*\ - !*** ./node_modules/@icons/material/UnfoldMoreHorizontalIcon.js ***! - \******************************************************************/ -/***/ (function(__unused_webpack_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); - -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; } - -var DEFAULT_SIZE = 24; - -exports["default"] = function (_ref) { - var _ref$fill = _ref.fill, - fill = _ref$fill === undefined ? 'currentColor' : _ref$fill, - _ref$width = _ref.width, - width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width, - _ref$height = _ref.height, - height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height, - _ref$style = _ref.style, - style = _ref$style === undefined ? {} : _ref$style, - props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']); - - return _react2.default.createElement( - 'svg', - _extends({ - viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE, - style: _extends({ fill: fill, width: width, height: height }, style) - }, props), - _react2.default.createElement('path', { d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' }) - ); -}; - -/***/ }), - -/***/ "./Resources/Private/Scripts/module.js": -/*!*********************************************!*\ - !*** ./Resources/Private/Scripts/module.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-color */ "./node_modules/react-color/es/index.js"); -function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } - - - -var ColorPicker = function ColorPicker(_ref) { - var color = _ref.color, - targetId = _ref.targetId; - var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(color), - _useState2 = _slicedToArray(_useState, 2), - selectedColor = _useState2[0], - setSelectedColor = _useState2[1]; - var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false), - _useState4 = _slicedToArray(_useState3, 2), - isPickerVisible = _useState4[0], - setIsPickerVisible = _useState4[1]; - var pickerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - var handleColorChange = function handleColorChange(color) { - setSelectedColor(color.hex); - var inputElement = document.querySelector(targetId); - if (inputElement) { - inputElement.value = color.hex; - - // Trigger an 'input' event to ensure the value change is registered - var event = new Event('input', { - bubbles: true - }); - inputElement.dispatchEvent(event); - } - }; - var togglePicker = function togglePicker() { - setIsPickerVisible(!isPickerVisible); - }; - - // Close picker if clicking outside - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () { - var handleClickOutside = function handleClickOutside(event) { - if (pickerRef.current && !pickerRef.current.contains(event.target)) { - setIsPickerVisible(false); - } - }; - document.addEventListener('mousedown', handleClickOutside); - return function () { - return document.removeEventListener('mousedown', handleClickOutside); - }; - }, []); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { - style: { - width: '20px', - height: '20px', - backgroundColor: selectedColor, - cursor: 'pointer', - border: '1px solid #ddd', - borderRadius: '10px', - display: 'inline-block' - }, - onClick: togglePicker - }), isPickerVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { - ref: pickerRef, - style: { - position: 'absolute', - zIndex: '2', - marginLeft: '-74px', - marginTop: '8px' - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react_color__WEBPACK_IMPORTED_MODULE_2__.SketchPicker, { - color: selectedColor, - onChange: handleColorChange - }))); -}; -window.addEventListener('DOMContentLoaded', function () { - document.querySelectorAll('.react__placeholder--color-picker').forEach(function (el) { - var color = el.getAttribute('data-color'); - var targetId = el.getAttribute('data-target'); - react_dom__WEBPACK_IMPORTED_MODULE_0__.render(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ColorPicker, { - color: color, - targetId: targetId - }), el); - }); -}); - -/***/ }), - -/***/ "./node_modules/lodash/_DataView.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_DataView.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**************************************/ -/***/ (function(module, __unused_webpack_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/_ListCache.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_ListCache.js ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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/_Map.js": -/*!*************************************!*\ - !*** ./node_modules/lodash/_Map.js ***! - \*************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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/_arrayEach.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_arrayEach.js ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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/_assignValue.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_assignValue.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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"), - keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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/_baseFor.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseFor.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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/_baseHasIn.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseHasIn.js ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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/_baseMap.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseMap.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); - -/** - * 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; -} - -module.exports = baseMap; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseMatches.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseMatches.js ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************************/ -/***/ (function(module, __unused_webpack_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/_baseProperty.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseProperty.js ***! - \**********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \**************************************************/ -/***/ (function(module, __unused_webpack_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/_baseTimes.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseTimes.js ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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/_cacheHas.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_cacheHas.js ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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/_castFunction.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_castFunction.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"); - -/** - * 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; -} - -module.exports = castFunction; - - -/***/ }), - -/***/ "./node_modules/lodash/_castPath.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_castPath.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, exports, __webpack_require__) { - -/* module decorator */ module = __webpack_require__.nmd(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 && "object" == '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; - - -/***/ }), - -/***/ "./node_modules/lodash/_cloneDataView.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_cloneDataView.js ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module) { - -/** 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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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/_createBaseEach.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_createBaseEach.js ***! - \************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***********************************************/ -/***/ (function(module) { - -/** - * 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/_defineProperty.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_defineProperty.js ***! - \************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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; - } - // Check that cyclic values are equal. - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - 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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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; - } - } - // Check that cyclic values are equal. - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - 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/_freeGlobal.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_freeGlobal.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; - -module.exports = freeGlobal; - - -/***/ }), - -/***/ "./node_modules/lodash/_getAllKeys.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_getAllKeys.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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/_getMapData.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_getMapData.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \************************************************/ -/***/ (function(module) { - -/** 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 ***! - \************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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/_isIndex.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_isIndex.js ***! - \*****************************************/ -/***/ (function(module) { - -/** 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/_isKey.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/_isKey.js ***! - \***************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*******************************************/ -/***/ (function(module) { - -/** - * 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/_isMasked.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_isMasked.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module) { - -/** 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 ***! - \****************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \************************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \************************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*********************************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \***********************************************/ -/***/ (function(module, __unused_webpack_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/_nativeCreate.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_nativeCreate.js ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \******************************************/ -/***/ (function(module, exports, __webpack_require__) { - -/* module decorator */ module = __webpack_require__.nmd(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 && "object" == '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; - - -/***/ }), - -/***/ "./node_modules/lodash/_objectToString.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_objectToString.js ***! - \************************************************/ -/***/ (function(module) { - -/** 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 ***! - \*****************************************/ -/***/ (function(module) { - -/** - * 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/_root.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/_root.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_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/_setCacheAdd.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setCacheAdd.js ***! - \*********************************************/ -/***/ (function(module) { - -/** 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 ***! - \*********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \********************************************/ -/***/ (function(module) { - -/** - * 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/_stackClear.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_stackClear.js ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \******************************************/ -/***/ (function(module) { - -/** 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/cloneDeep.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/cloneDeep.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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/eq.js": -/*!***********************************!*\ - !*** ./node_modules/lodash/eq.js ***! - \***********************************/ -/***/ (function(module) { - -/** - * 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/forOwn.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/forOwn.js ***! - \***************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"), - castFunction = __webpack_require__(/*! ./_castFunction */ "./node_modules/lodash/_castFunction.js"); - -/** - * 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, castFunction(iteratee)); -} - -module.exports = forOwn; - - -/***/ }), - -/***/ "./node_modules/lodash/get.js": -/*!************************************!*\ - !*** ./node_modules/lodash/get.js ***! - \************************************/ -/***/ (function(module, __unused_webpack_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/hasIn.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/hasIn.js ***! - \**************************************/ -/***/ (function(module, __unused_webpack_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/identity.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/identity.js ***! - \*****************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \****************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \********************************************/ -/***/ (function(module, __unused_webpack_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/isBuffer.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/isBuffer.js ***! - \*****************************************/ -/***/ (function(module, exports, __webpack_require__) { - -/* module decorator */ module = __webpack_require__.nmd(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 && "object" == '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; - - -/***/ }), - -/***/ "./node_modules/lodash/isFunction.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/isFunction.js ***! - \*******************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module) { - -/** 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 ***! - \**************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \*********************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \**********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \**************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*********************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \*************************************/ -/***/ (function(module, __unused_webpack_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 ***! - \***************************************/ -/***/ (function(module, __unused_webpack_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/map.js": -/*!************************************!*\ - !*** ./node_modules/lodash/map.js ***! - \************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"), - baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), - baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); - -/** - * 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, baseIteratee(iteratee, 3)); -} - -module.exports = map; - - -/***/ }), - -/***/ "./node_modules/lodash/memoize.js": -/*!****************************************!*\ - !*** ./node_modules/lodash/memoize.js ***! - \****************************************/ -/***/ (function(module, __unused_webpack_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/property.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/property.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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/stubArray.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/stubArray.js ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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 ***! - \******************************************/ -/***/ (function(module) { - -/** - * 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/toString.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/toString.js ***! - \*****************************************/ -/***/ (function(module, __unused_webpack_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/material-colors/dist/colors.es2015.js": -/*!************************************************************!*\ - !*** ./node_modules/material-colors/dist/colors.es2015.js ***! - \************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ amber: function() { return /* binding */ amber; }, -/* harmony export */ black: function() { return /* binding */ black; }, -/* harmony export */ blue: function() { return /* binding */ blue; }, -/* harmony export */ blueGrey: function() { return /* binding */ blueGrey; }, -/* harmony export */ brown: function() { return /* binding */ brown; }, -/* harmony export */ cyan: function() { return /* binding */ cyan; }, -/* harmony export */ darkIcons: function() { return /* binding */ darkIcons; }, -/* harmony export */ darkText: function() { return /* binding */ darkText; }, -/* harmony export */ deepOrange: function() { return /* binding */ deepOrange; }, -/* harmony export */ deepPurple: function() { return /* binding */ deepPurple; }, -/* harmony export */ green: function() { return /* binding */ green; }, -/* harmony export */ grey: function() { return /* binding */ grey; }, -/* harmony export */ indigo: function() { return /* binding */ indigo; }, -/* harmony export */ lightBlue: function() { return /* binding */ lightBlue; }, -/* harmony export */ lightGreen: function() { return /* binding */ lightGreen; }, -/* harmony export */ lightIcons: function() { return /* binding */ lightIcons; }, -/* harmony export */ lightText: function() { return /* binding */ lightText; }, -/* harmony export */ lime: function() { return /* binding */ lime; }, -/* harmony export */ orange: function() { return /* binding */ orange; }, -/* harmony export */ pink: function() { return /* binding */ pink; }, -/* harmony export */ purple: function() { return /* binding */ purple; }, -/* harmony export */ red: function() { return /* binding */ red; }, -/* harmony export */ teal: function() { return /* binding */ teal; }, -/* harmony export */ white: function() { return /* binding */ white; }, -/* harmony export */ yellow: function() { return /* binding */ yellow; } -/* harmony export */ }); -var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"}; -var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"}; -var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"}; -var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"}; -var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"}; -var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"}; -var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"}; -var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"}; -var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"}; -var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"}; -var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"}; -var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"}; -var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"}; -var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"}; -var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"}; -var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"}; -var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"}; -var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"}; -var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"}; -var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"}; -var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"}; -var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"}; -var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"}; -var white = "#ffffff"; -var black = "#000000"; - -/* harmony default export */ __webpack_exports__["default"] = ({ - red: red, - pink: pink, - purple: purple, - deepPurple: deepPurple, - indigo: indigo, - blue: blue, - lightBlue: lightBlue, - cyan: cyan, - teal: teal, - green: green, - lightGreen: lightGreen, - lime: lime, - yellow: yellow, - amber: amber, - orange: orange, - deepOrange: deepOrange, - brown: brown, - grey: grey, - blueGrey: blueGrey, - darkText: darkText, - lightText: lightText, - darkIcons: darkIcons, - lightIcons: lightIcons, - white: white, - black: black -}); - - -/***/ }), - -/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./Resources/Private/Styles/module.scss": -/*!*********************************************************************************************************************************************************************************************************************************************************************!*\ - !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./Resources/Private/Styles/module.scss ***! - \*********************************************************************************************************************************************************************************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./node_modules/object-assign/index.js": -/*!*********************************************!*\ - !*** ./node_modules/object-assign/index.js ***! - \*********************************************/ -/***/ (function(module) { - -"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/prop-types/checkPropTypes.js": -/*!***************************************************!*\ - !*** ./node_modules/prop-types/checkPropTypes.js ***! - \***************************************************/ -/***/ (function(module, __unused_webpack_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 = {}; - var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); - - 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 (has(typeSpecs, 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] + '`.' + - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' - ); - 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 : '') - ); - } - } - } - } -} - -/** - * Resets warning cache when testing. - * - * @private - */ -checkPropTypes.resetWarningCache = function() { - if (true) { - loggedTypeFailures = {}; - } -} - -module.exports = checkPropTypes; - - -/***/ }), - -/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js": -/*!************************************************************!*\ - !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***! - \************************************************************/ -/***/ (function(module, __unused_webpack_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 ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); -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 has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.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 = '<>'; - - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bigint: createPrimitiveTypeChecker('bigint'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - elementType: createElementTypeTypeChecker(), - 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, data) { - this.message = message; - this.data = data && typeof data === 'object' ? data: {}; - 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 + '`.'), - {expectedType: 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 createElementTypeTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!ReactIs.isValidElementType(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); - } - 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)) { - if (true) { - if (arguments.length > 1) { - printWarning( - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' - ); - } else { - printWarning('Invalid argument supplied to oneOf, expected an array.'); - } - } - 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, function replacer(key, value) { - var type = getPreciseType(value); - if (type === 'symbol') { - return String(value); - } - return value; - }); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(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 (has(propValue, 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.') : 0; - 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) { - var expectedTypes = []; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); - if (checkerResult == null) { - return null; - } - if (checkerResult.data && has(checkerResult.data, 'expectedType')) { - expectedTypes.push(checkerResult.data.expectedType); - } - } - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); - } - 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 invalidValidatorError(componentName, location, propFullName, key, type) { - return new PropTypeError( - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' - ); - } - - 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 (typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - 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 (has(shapeTypes, key) && typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - 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; - } - - // falsy value can't be a Symbol - if (!propValue) { - return false; - } - - // 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.resetWarningCache = checkPropTypes.resetWarningCache; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ "./node_modules/prop-types/index.js": -/*!******************************************!*\ - !*** ./node_modules/prop-types/index.js ***! - \******************************************/ -/***/ (function(module, __unused_webpack_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 ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); - - // 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")(ReactIs.isElement, throwOnDirectAccess); -} else {} - - -/***/ }), - -/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": -/*!*************************************************************!*\ - !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! - \*************************************************************/ -/***/ (function(module) { - -"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/prop-types/lib/has.js": -/*!********************************************!*\ - !*** ./node_modules/prop-types/lib/has.js ***! - \********************************************/ -/***/ (function(module) { - -module.exports = Function.call.bind(Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "./node_modules/react-color/es/components/alpha/Alpha.js": -/*!***************************************************************!*\ - !*** ./node_modules/react-color/es/components/alpha/Alpha.js ***! - \***************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AlphaPicker: function() { return /* binding */ AlphaPicker; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _AlphaPointer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AlphaPointer */ "./node_modules/react-color/es/components/alpha/AlphaPointer.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 AlphaPicker = function AlphaPicker(_ref) { - var rgb = _ref.rgb, - hsl = _ref.hsl, - width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - direction = _ref.direction, - style = _ref.style, - renderers = _ref.renderers, - pointer = _ref.pointer, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - position: 'relative', - width: width, - height: height - }, - alpha: { - radius: '2px', - style: style - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'alpha-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Alpha, _extends({}, styles.alpha, { - rgb: rgb, - hsl: hsl, - pointer: pointer, - renderers: renderers, - onChange: onChange, - direction: direction - })) - ); -}; - -AlphaPicker.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: _AlphaPointer__WEBPACK_IMPORTED_MODULE_3__["default"] -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(AlphaPicker)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/alpha/AlphaPointer.js": -/*!**********************************************************************!*\ - !*** ./node_modules/react-color/es/components/alpha/AlphaPointer.js ***! - \**********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AlphaPointer: function() { return /* binding */ AlphaPointer; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var AlphaPointer = function AlphaPointer(_ref) { - var direction = _ref.direction; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - }, - 'vertical': { - picker: { - transform: 'translate(-3px, -9px)' - } - } - }, { vertical: direction === 'vertical' }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (AlphaPointer); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/block/Block.js": -/*!***************************************************************!*\ - !*** ./node_modules/react-color/es/components/block/Block.js ***! - \***************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Block: function() { return /* binding */ Block; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _BlockSwatches__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BlockSwatches */ "./node_modules/react-color/es/components/block/BlockSwatches.js"); - - - - - - - - - -var Block = function Block(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - hex = _ref.hex, - colors = _ref.colors, - width = _ref.width, - triangle = _ref.triangle, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var transparent = hex === 'transparent'; - var handleChange = function handleChange(hexCode, e) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(hexCode) && onChange({ - hex: hexCode, - source: 'hex' - }, e); - }; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__["default"])({ - 'default': { - card: { - width: width, - background: '#fff', - boxShadow: '0 1px rgba(0,0,0,.1)', - borderRadius: '6px', - position: 'relative' - }, - head: { - height: '110px', - background: hex, - borderRadius: '6px 6px 0 0', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - position: 'relative' - }, - body: { - padding: '10px' - }, - label: { - fontSize: '18px', - color: _helpers_color__WEBPACK_IMPORTED_MODULE_2__.getContrastingColor(hex), - position: 'relative' - }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 10px 10px 10px', - borderColor: 'transparent transparent ' + hex + ' transparent', - position: 'absolute', - top: '-10px', - left: '50%', - marginLeft: '-10px' - }, - input: { - width: '100%', - fontSize: '12px', - color: '#666', - border: '0px', - outline: 'none', - height: '22px', - boxShadow: 'inset 0 0 0 1px #ddd', - borderRadius: '4px', - padding: '0 7px', - boxSizing: 'border-box' - } - }, - 'hide-triangle': { - triangle: { - display: 'none' - } - } - }, passedStyles), { 'hide-triangle': triangle === 'hide' }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.card, className: 'block-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.triangle }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.head }, - transparent && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.Checkboard, { borderRadius: '6px 6px 0 0' }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.label }, - hex - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_BlockSwatches__WEBPACK_IMPORTED_MODULE_4__["default"], { colors: colors, onClick: handleChange, onSwatchHover: onSwatchHover }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input }, - value: hex, - onChange: handleChange - }) - ) - ); -}; - -Block.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)]), - colors: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)), - triangle: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['top', 'hide']), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -}; - -Block.defaultProps = { - width: 170, - colors: ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'], - triangle: 'top', - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Block)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/block/BlockSwatches.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/block/BlockSwatches.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ BlockSwatches: function() { return /* binding */ BlockSwatches; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - - -var BlockSwatches = function BlockSwatches(_ref) { - var colors = _ref.colors, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatches: { - marginRight: '-10px' - }, - swatch: { - width: '22px', - height: '22px', - float: 'left', - marginRight: '10px', - marginBottom: '10px', - borderRadius: '4px' - }, - clear: { - clear: 'both' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatches }, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_3__["default"])(colors, function (c) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Swatch, { - key: c, - color: c, - style: styles.swatch, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { - boxShadow: '0 0 4px ' + c - } - }); - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.clear }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (BlockSwatches); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/chrome/Chrome.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/chrome/Chrome.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Chrome: function() { return /* binding */ Chrome; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _ChromeFields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChromeFields */ "./node_modules/react-color/es/components/chrome/ChromeFields.js"); -/* harmony import */ var _ChromePointer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ChromePointer */ "./node_modules/react-color/es/components/chrome/ChromePointer.js"); -/* harmony import */ var _ChromePointerCircle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ChromePointerCircle */ "./node_modules/react-color/es/components/chrome/ChromePointerCircle.js"); - - - - - - - - - - -var Chrome = function Chrome(_ref) { - var width = _ref.width, - onChange = _ref.onChange, - disableAlpha = _ref.disableAlpha, - rgb = _ref.rgb, - hsl = _ref.hsl, - hsv = _ref.hsv, - hex = _ref.hex, - renderers = _ref.renderers, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className, - defaultView = _ref.defaultView; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__["default"])({ - 'default': { - picker: { - width: width, - background: '#fff', - borderRadius: '2px', - boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)', - boxSizing: 'initial', - fontFamily: 'Menlo' - }, - saturation: { - width: '100%', - paddingBottom: '55%', - position: 'relative', - borderRadius: '2px 2px 0 0', - overflow: 'hidden' - }, - Saturation: { - radius: '2px 2px 0 0' - }, - body: { - padding: '16px 16px 12px' - }, - controls: { - display: 'flex' - }, - color: { - width: '32px' - }, - swatch: { - marginTop: '6px', - width: '16px', - height: '16px', - borderRadius: '8px', - position: 'relative', - overflow: 'hidden' - }, - active: { - absolute: '0px 0px 0px 0px', - borderRadius: '8px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)', - background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')', - zIndex: '2' - }, - toggles: { - flex: '1' - }, - hue: { - height: '10px', - position: 'relative', - marginBottom: '8px' - }, - Hue: { - radius: '2px' - }, - alpha: { - height: '10px', - position: 'relative' - }, - Alpha: { - radius: '2px' - } - }, - 'disableAlpha': { - color: { - width: '22px' - }, - alpha: { - display: 'none' - }, - hue: { - marginBottom: '0px' - }, - swatch: { - width: '10px', - height: '10px', - marginTop: '0px' - } - } - }, passedStyles), { disableAlpha: disableAlpha }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'chrome-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.saturation }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Saturation, { - style: styles.Saturation, - hsl: hsl, - hsv: hsv, - pointer: _ChromePointerCircle__WEBPACK_IMPORTED_MODULE_5__["default"], - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.controls, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.color }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.active }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Checkboard, { renderers: renderers }) - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.toggles }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, { - style: styles.Hue, - hsl: hsl, - pointer: _ChromePointer__WEBPACK_IMPORTED_MODULE_4__["default"], - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Alpha, { - style: styles.Alpha, - rgb: rgb, - hsl: hsl, - pointer: _ChromePointer__WEBPACK_IMPORTED_MODULE_4__["default"], - renderers: renderers, - onChange: onChange - }) - ) - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChromeFields__WEBPACK_IMPORTED_MODULE_3__["default"], { - rgb: rgb, - hsl: hsl, - hex: hex, - view: defaultView, - onChange: onChange, - disableAlpha: disableAlpha - }) - ) - ); -}; - -Chrome.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)]), - disableAlpha: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - defaultView: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["hex", "rgb", "hsl"]) -}; - -Chrome.defaultProps = { - width: 225, - disableAlpha: false, - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Chrome)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/chrome/ChromeFields.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/chrome/ChromeFields.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ChromeFields: function() { return /* binding */ ChromeFields; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var lodash_es_isUndefined__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/isUndefined */ "./node_modules/lodash-es/isUndefined.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _icons_material_UnfoldMoreHorizontalIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @icons/material/UnfoldMoreHorizontalIcon */ "./node_modules/@icons/material/UnfoldMoreHorizontalIcon.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; } - -/* eslint-disable react/no-did-mount-set-state, no-param-reassign */ - - - - - - - - - -var ChromeFields = function (_React$Component) { - _inherits(ChromeFields, _React$Component); - - function ChromeFields(props) { - _classCallCheck(this, ChromeFields); - - var _this = _possibleConstructorReturn(this, (ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call(this)); - - _this.toggleViews = function () { - if (_this.state.view === 'hex') { - _this.setState({ view: 'rgb' }); - } else if (_this.state.view === 'rgb') { - _this.setState({ view: 'hsl' }); - } else if (_this.state.view === 'hsl') { - if (_this.props.hsl.a === 1) { - _this.setState({ view: 'hex' }); - } else { - _this.setState({ view: 'rgb' }); - } - } - }; - - _this.handleChange = function (data, e) { - if (data.hex) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data.hex) && _this.props.onChange({ - hex: data.hex, - source: 'hex' - }, e); - } else if (data.r || data.g || data.b) { - _this.props.onChange({ - r: data.r || _this.props.rgb.r, - g: data.g || _this.props.rgb.g, - b: data.b || _this.props.rgb.b, - source: 'rgb' - }, e); - } else if (data.a) { - if (data.a < 0) { - data.a = 0; - } else if (data.a > 1) { - data.a = 1; - } - - _this.props.onChange({ - h: _this.props.hsl.h, - s: _this.props.hsl.s, - l: _this.props.hsl.l, - a: Math.round(data.a * 100) / 100, - source: 'rgb' - }, e); - } else if (data.h || data.s || data.l) { - // Remove any occurances of '%'. - if (typeof data.s === 'string' && data.s.includes('%')) { - data.s = data.s.replace('%', ''); - } - if (typeof data.l === 'string' && data.l.includes('%')) { - data.l = data.l.replace('%', ''); - } - - // We store HSL as a unit interval so we need to override the 1 input to 0.01 - if (data.s == 1) { - data.s = 0.01; - } else if (data.l == 1) { - data.l = 0.01; - } - - _this.props.onChange({ - h: data.h || _this.props.hsl.h, - s: Number(!(0,lodash_es_isUndefined__WEBPACK_IMPORTED_MODULE_5__["default"])(data.s) ? data.s : _this.props.hsl.s), - l: Number(!(0,lodash_es_isUndefined__WEBPACK_IMPORTED_MODULE_5__["default"])(data.l) ? data.l : _this.props.hsl.l), - source: 'hsl' - }, e); - } - }; - - _this.showHighlight = function (e) { - e.currentTarget.style.background = '#eee'; - }; - - _this.hideHighlight = function (e) { - e.currentTarget.style.background = 'transparent'; - }; - - if (props.hsl.a !== 1 && props.view === "hex") { - _this.state = { - view: "rgb" - }; - } else { - _this.state = { - view: props.view - }; - } - return _this; - } - - _createClass(ChromeFields, [{ - key: 'render', - value: function render() { - var _this2 = this; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - wrap: { - paddingTop: '16px', - display: 'flex' - }, - fields: { - flex: '1', - display: 'flex', - marginLeft: '-6px' - }, - field: { - paddingLeft: '6px', - width: '100%' - }, - alpha: { - paddingLeft: '6px', - width: '100%' - }, - toggle: { - width: '32px', - textAlign: 'right', - position: 'relative' - }, - icon: { - marginRight: '-4px', - marginTop: '12px', - cursor: 'pointer', - position: 'relative' - }, - iconHighlight: { - position: 'absolute', - width: '24px', - height: '28px', - background: '#eee', - borderRadius: '4px', - top: '10px', - left: '12px', - display: 'none' - }, - input: { - fontSize: '11px', - color: '#333', - width: '100%', - borderRadius: '2px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #dadada', - height: '21px', - textAlign: 'center' - }, - label: { - textTransform: 'uppercase', - fontSize: '11px', - lineHeight: '11px', - color: '#969696', - textAlign: 'center', - display: 'block', - marginTop: '12px' - }, - svg: { - fill: '#333', - width: '24px', - height: '24px', - border: '1px transparent solid', - borderRadius: '5px' - } - }, - 'disableAlpha': { - alpha: { - display: 'none' - } - } - }, this.props, this.state); - - var fields = void 0; - if (this.state.view === 'hex') { - fields = react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'hex', value: this.props.hex, - onChange: this.handleChange - }) - ) - ); - } else if (this.state.view === 'rgb') { - fields = react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'r', - value: this.props.rgb.r, - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'g', - value: this.props.rgb.g, - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'b', - value: this.props.rgb.b, - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: this.props.rgb.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - ); - } else if (this.state.view === 'hsl') { - fields = react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'h', - value: Math.round(this.props.hsl.h), - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 's', - value: Math.round(this.props.hsl.s * 100) + '%', - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.field }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'l', - value: Math.round(this.props.hsl.l * 100) + '%', - onChange: this.handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: this.props.hsl.a, - arrowOffset: 0.01, - onChange: this.handleChange - }) - ) - ); - } - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.wrap, className: 'flexbox-fix' }, - fields, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.toggle }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) { - return _this2.icon = icon; - } }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_icons_material_UnfoldMoreHorizontalIcon__WEBPACK_IMPORTED_MODULE_4__["default"], { - style: styles.svg, - onMouseOver: this.showHighlight, - onMouseEnter: this.showHighlight, - onMouseOut: this.hideHighlight - }) - ) - ) - ); - } - }], [{ - key: 'getDerivedStateFromProps', - value: function getDerivedStateFromProps(nextProps, state) { - if (nextProps.hsl.a !== 1 && state.view === 'hex') { - return { view: 'rgb' }; - } - return null; - } - }]); - - return ChromeFields; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -ChromeFields.defaultProps = { - view: "hex" -}; - -/* harmony default export */ __webpack_exports__["default"] = (ChromeFields); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/chrome/ChromePointer.js": -/*!************************************************************************!*\ - !*** ./node_modules/react-color/es/components/chrome/ChromePointer.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ChromePointer: function() { return /* binding */ ChromePointer; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var ChromePointer = function ChromePointer() { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - transform: 'translate(-6px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (ChromePointer); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/chrome/ChromePointerCircle.js": -/*!******************************************************************************!*\ - !*** ./node_modules/react-color/es/components/chrome/ChromePointerCircle.js ***! - \******************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ChromePointerCircle: function() { return /* binding */ ChromePointerCircle; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var ChromePointerCircle = function ChromePointerCircle() { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (ChromePointerCircle); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/circle/Circle.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/circle/Circle.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Circle: function() { return /* binding */ Circle; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var material_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! material-colors */ "./node_modules/material-colors/dist/colors.es2015.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _CircleSwatch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CircleSwatch */ "./node_modules/react-color/es/components/circle/CircleSwatch.js"); - - - - - - - - - - -var Circle = function Circle(_ref) { - var width = _ref.width, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - circleSize = _ref.circleSize, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - circleSpacing = _ref.circleSpacing, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__["default"])({ - 'default': { - card: { - width: width, - display: 'flex', - flexWrap: 'wrap', - marginRight: -circleSpacing, - marginBottom: -circleSpacing - } - } - }, passedStyles)); - - var handleChange = function handleChange(hexCode, e) { - return onChange({ hex: hexCode, source: 'hex' }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.card, className: 'circle-picker ' + className }, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_6__["default"])(colors, function (c) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CircleSwatch__WEBPACK_IMPORTED_MODULE_4__["default"], { - key: c, - color: c, - onClick: handleChange, - onSwatchHover: onSwatchHover, - active: hex === c.toLowerCase(), - circleSize: circleSize, - circleSpacing: circleSpacing - }); - }) - ); -}; - -Circle.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)]), - circleSize: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), - circleSpacing: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object) -}; - -Circle.defaultProps = { - width: 252, - circleSize: 28, - circleSpacing: 14, - colors: [material_colors__WEBPACK_IMPORTED_MODULE_2__.red['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.green['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['500']], - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Circle)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/circle/CircleSwatch.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/circle/CircleSwatch.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CircleSwatch: function() { return /* binding */ CircleSwatch; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - -var CircleSwatch = function CircleSwatch(_ref) { - var color = _ref.color, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - hover = _ref.hover, - active = _ref.active, - circleSize = _ref.circleSize, - circleSpacing = _ref.circleSpacing; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatch: { - width: circleSize, - height: circleSize, - marginRight: circleSpacing, - marginBottom: circleSpacing, - transform: 'scale(1)', - transition: '100ms transform ease' - }, - Swatch: { - borderRadius: '50%', - background: 'transparent', - boxShadow: 'inset 0 0 0 ' + (circleSize / 2 + 1) + 'px ' + color, - transition: '100ms box-shadow ease' - } - }, - 'hover': { - swatch: { - transform: 'scale(1.2)' - } - }, - 'active': { - Swatch: { - boxShadow: 'inset 0 0 0 3px ' + color - } - } - }, { hover: hover, active: active }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Swatch, { - style: styles.Swatch, - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color } - }) - ); -}; - -CircleSwatch.defaultProps = { - circleSize: 28, - circleSpacing: 14 -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,reactcss__WEBPACK_IMPORTED_MODULE_1__.handleHover)(CircleSwatch)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Alpha.js": -/*!****************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Alpha.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Alpha: function() { return /* binding */ Alpha; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_alpha__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/alpha */ "./node_modules/react-color/es/helpers/alpha.js"); -/* harmony import */ var _Checkboard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Checkboard */ "./node_modules/react-color/es/components/common/Checkboard.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 Alpha = function (_ref) { - _inherits(Alpha, _ref); - - function Alpha() { - var _ref2; - - var _temp, _this, _ret; - - _classCallCheck(this, Alpha); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) { - var change = _helpers_alpha__WEBPACK_IMPORTED_MODULE_2__.calculateChange(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container); - change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e); - }, _this.handleMouseDown = function (e) { - _this.handleChange(e); - window.addEventListener('mousemove', _this.handleChange); - window.addEventListener('mouseup', _this.handleMouseUp); - }, _this.handleMouseUp = function () { - _this.unbindEventListeners(); - }, _this.unbindEventListeners = function () { - window.removeEventListener('mousemove', _this.handleChange); - window.removeEventListener('mouseup', _this.handleMouseUp); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - _createClass(Alpha, [{ - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var rgb = this.props.rgb; - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - alpha: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - checkboard: { - absolute: '0px 0px 0px 0px', - overflow: 'hidden', - borderRadius: this.props.radius - }, - gradient: { - absolute: '0px 0px 0px 0px', - background: 'linear-gradient(to right, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - container: { - position: 'relative', - height: '100%', - margin: '0 3px' - }, - pointer: { - position: 'absolute', - left: rgb.a * 100 + '%' - }, - slider: { - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - marginTop: '1px', - transform: 'translateX(-2px)' - } - }, - 'vertical': { - gradient: { - background: 'linear-gradient(to bottom, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)' - }, - pointer: { - left: 0, - top: rgb.a * 100 + '%' - } - }, - 'overwrite': _extends({}, this.props.style) - }, { - vertical: this.props.direction === 'vertical', - overwrite: true - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.checkboard }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkboard__WEBPACK_IMPORTED_MODULE_3__["default"], { renderers: this.props.renderers }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.gradient }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { - style: styles.container, - ref: function ref(container) { - return _this2.container = container; - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(this.props.pointer, this.props) : react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.slider }) - ) - ) - ); - } - }]); - - return Alpha; -}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent || react__WEBPACK_IMPORTED_MODULE_0__.Component); - -/* harmony default export */ __webpack_exports__["default"] = (Alpha); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Checkboard.js": -/*!*********************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Checkboard.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Checkboard: function() { return /* binding */ Checkboard; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_checkboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/checkboard */ "./node_modules/react-color/es/helpers/checkboard.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 Checkboard = function Checkboard(_ref) { - var white = _ref.white, - grey = _ref.grey, - size = _ref.size, - renderers = _ref.renderers, - borderRadius = _ref.borderRadius, - boxShadow = _ref.boxShadow, - children = _ref.children; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - grid: { - borderRadius: borderRadius, - boxShadow: boxShadow, - absolute: '0px 0px 0px 0px', - background: 'url(' + _helpers_checkboard__WEBPACK_IMPORTED_MODULE_2__.get(white, grey, size, renderers.canvas) + ') center left' - } - } - }); - return (0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(children) ? react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.grid }); -}; - -Checkboard.defaultProps = { - size: 8, - white: 'transparent', - grey: 'rgba(0,0,0,.08)', - renderers: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = (Checkboard); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/ColorWrap.js": -/*!********************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/ColorWrap.js ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ColorWrap: function() { return /* binding */ ColorWrap; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var lodash_es_debounce__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash-es/debounce */ "./node_modules/lodash-es/debounce.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.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 ColorWrap = function ColorWrap(Picker) { - var ColorPicker = function (_ref) { - _inherits(ColorPicker, _ref); - - function ColorPicker(props) { - _classCallCheck(this, ColorPicker); - - var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this)); - - _this.handleChange = function (data, event) { - var isValidColor = _helpers_color__WEBPACK_IMPORTED_MODULE_1__.simpleCheckForValidColor(data); - if (isValidColor) { - var colors = _helpers_color__WEBPACK_IMPORTED_MODULE_1__.toState(data, data.h || _this.state.oldHue); - _this.setState(colors); - _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event); - _this.props.onChange && _this.props.onChange(colors, event); - } - }; - - _this.handleSwatchHover = function (data, event) { - var isValidColor = _helpers_color__WEBPACK_IMPORTED_MODULE_1__.simpleCheckForValidColor(data); - if (isValidColor) { - var colors = _helpers_color__WEBPACK_IMPORTED_MODULE_1__.toState(data, data.h || _this.state.oldHue); - _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event); - } - }; - - _this.state = _extends({}, _helpers_color__WEBPACK_IMPORTED_MODULE_1__.toState(props.color, 0)); - - _this.debounce = (0,lodash_es_debounce__WEBPACK_IMPORTED_MODULE_2__["default"])(function (fn, data, event) { - fn(data, event); - }, 100); - return _this; - } - - _createClass(ColorPicker, [{ - key: 'render', - value: function render() { - var optionalEvents = {}; - if (this.props.onSwatchHover) { - optionalEvents.onSwatchHover = this.handleSwatchHover; - } - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Picker, _extends({}, this.props, this.state, { - onChange: this.handleChange - }, optionalEvents)); - } - }], [{ - key: 'getDerivedStateFromProps', - value: function getDerivedStateFromProps(nextProps, state) { - return _extends({}, _helpers_color__WEBPACK_IMPORTED_MODULE_1__.toState(nextProps.color, state.oldHue)); - } - }]); - - return ColorPicker; - }(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent || react__WEBPACK_IMPORTED_MODULE_0__.Component); - - ColorPicker.propTypes = _extends({}, Picker.propTypes); - - ColorPicker.defaultProps = _extends({}, Picker.defaultProps, { - color: { - h: 250, - s: 0.50, - l: 0.20, - a: 1 - } - }); - - return ColorPicker; -}; - -/* harmony default export */ __webpack_exports__["default"] = (ColorWrap); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/EditableInput.js": -/*!************************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/EditableInput.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ EditableInput: function() { return /* binding */ EditableInput; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/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 _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 DEFAULT_ARROW_OFFSET = 1; - -var UP_KEY_CODE = 38; -var DOWN_KEY_CODE = 40; -var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE]; -var isValidKeyCode = function isValidKeyCode(keyCode) { - return VALID_KEY_CODES.indexOf(keyCode) > -1; -}; -var getNumberValue = function getNumberValue(value) { - return Number(String(value).replace(/%/g, '')); -}; - -var idCounter = 1; - -var EditableInput = function (_ref) { - _inherits(EditableInput, _ref); - - function EditableInput(props) { - _classCallCheck(this, EditableInput); - - var _this = _possibleConstructorReturn(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this)); - - _this.handleBlur = function () { - if (_this.state.blurValue) { - _this.setState({ value: _this.state.blurValue, blurValue: null }); - } - }; - - _this.handleChange = function (e) { - _this.setUpdatedValue(e.target.value, e); - }; - - _this.handleKeyDown = function (e) { - // In case `e.target.value` is a percentage remove the `%` character - // and update accordingly with a percentage - // https://github.com/casesandberg/react-color/issues/383 - var value = getNumberValue(e.target.value); - if (!isNaN(value) && isValidKeyCode(e.keyCode)) { - var offset = _this.getArrowOffset(); - var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset; - - _this.setUpdatedValue(updatedValue, e); - } - }; - - _this.handleDrag = function (e) { - if (_this.props.dragLabel) { - var newValue = Math.round(_this.props.value + e.movementX); - if (newValue >= 0 && newValue <= _this.props.dragMax) { - _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e); - } - } - }; - - _this.handleMouseDown = function (e) { - if (_this.props.dragLabel) { - e.preventDefault(); - _this.handleDrag(e); - window.addEventListener('mousemove', _this.handleDrag); - window.addEventListener('mouseup', _this.handleMouseUp); - } - }; - - _this.handleMouseUp = function () { - _this.unbindEventListeners(); - }; - - _this.unbindEventListeners = function () { - window.removeEventListener('mousemove', _this.handleDrag); - window.removeEventListener('mouseup', _this.handleMouseUp); - }; - - _this.state = { - value: String(props.value).toUpperCase(), - blurValue: String(props.value).toUpperCase() - }; - - _this.inputId = 'rc-editable-input-' + idCounter++; - return _this; - } - - _createClass(EditableInput, [{ - key: 'componentDidUpdate', - value: function componentDidUpdate(prevProps, prevState) { - if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) { - if (this.input === document.activeElement) { - this.setState({ blurValue: String(this.props.value).toUpperCase() }); - } else { - this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() }); - } - } - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, { - key: 'getValueObjectWithLabel', - value: function getValueObjectWithLabel(value) { - return _defineProperty({}, this.props.label, value); - } - }, { - key: 'getArrowOffset', - value: function getArrowOffset() { - return this.props.arrowOffset || DEFAULT_ARROW_OFFSET; - } - }, { - key: 'setUpdatedValue', - value: function setUpdatedValue(value, e) { - var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value; - this.props.onChange && this.props.onChange(onChangeValue, e); - - this.setState({ value: value }); - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - wrap: { - position: 'relative' - } - }, - 'user-override': { - wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {}, - input: this.props.style && this.props.style.input ? this.props.style.input : {}, - label: this.props.style && this.props.style.label ? this.props.style.label : {} - }, - 'dragLabel-true': { - label: { - cursor: 'ew-resize' - } - } - }, { - 'user-override': true - }, this.props); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.wrap }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('input', { - id: this.inputId, - style: styles.input, - ref: function ref(input) { - return _this2.input = input; - }, - value: this.state.value, - onKeyDown: this.handleKeyDown, - onChange: this.handleChange, - onBlur: this.handleBlur, - placeholder: this.props.placeholder, - spellCheck: 'false' - }), - this.props.label && !this.props.hideLabel ? react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'label', - { - htmlFor: this.inputId, - style: styles.label, - onMouseDown: this.handleMouseDown - }, - this.props.label - ) : null - ); - } - }]); - - return EditableInput; -}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent || react__WEBPACK_IMPORTED_MODULE_0__.Component); - -/* harmony default export */ __webpack_exports__["default"] = (EditableInput); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Hue.js": -/*!**************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Hue.js ***! - \**************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Hue: function() { return /* binding */ Hue; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_hue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/hue */ "./node_modules/react-color/es/helpers/hue.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 Hue = function (_ref) { - _inherits(Hue, _ref); - - function Hue() { - var _ref2; - - var _temp, _this, _ret; - - _classCallCheck(this, Hue); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) { - var change = _helpers_hue__WEBPACK_IMPORTED_MODULE_2__.calculateChange(e, _this.props.direction, _this.props.hsl, _this.container); - change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e); - }, _this.handleMouseDown = function (e) { - _this.handleChange(e); - window.addEventListener('mousemove', _this.handleChange); - window.addEventListener('mouseup', _this.handleMouseUp); - }, _this.handleMouseUp = function () { - _this.unbindEventListeners(); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - _createClass(Hue, [{ - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.unbindEventListeners(); - } - }, { - key: 'unbindEventListeners', - value: function unbindEventListeners() { - window.removeEventListener('mousemove', this.handleChange); - window.removeEventListener('mouseup', this.handleMouseUp); - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var _props$direction = this.props.direction, - direction = _props$direction === undefined ? 'horizontal' : _props$direction; - - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - hue: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius, - boxShadow: this.props.shadow - }, - container: { - padding: '0 2px', - position: 'relative', - height: '100%', - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - left: this.props.hsl.h * 100 / 360 + '%' - }, - slider: { - marginTop: '1px', - width: '4px', - borderRadius: '1px', - height: '8px', - boxShadow: '0 0 2px rgba(0, 0, 0, .6)', - background: '#fff', - transform: 'translateX(-2px)' - } - }, - 'vertical': { - pointer: { - left: '0px', - top: -(this.props.hsl.h * 100 / 360) + 100 + '%' - } - } - }, { vertical: direction === 'vertical' }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { - className: 'hue-' + direction, - style: styles.container, - ref: function ref(container) { - return _this2.container = container; - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'style', - null, - '\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n ' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(this.props.pointer, this.props) : react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.slider }) - ) - ) - ); - } - }]); - - return Hue; -}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent || react__WEBPACK_IMPORTED_MODULE_0__.Component); - -/* harmony default export */ __webpack_exports__["default"] = (Hue); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Raised.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Raised.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Raised: function() { return /* binding */ Raised; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); - - - - - -var Raised = function Raised(_ref) { - var zDepth = _ref.zDepth, - radius = _ref.radius, - background = _ref.background, - children = _ref.children, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_2__["default"])({ - 'default': { - wrap: { - position: 'relative', - display: 'inline-block' - }, - content: { - position: 'relative' - }, - bg: { - absolute: '0px 0px 0px 0px', - boxShadow: '0 ' + zDepth + 'px ' + zDepth * 4 + 'px rgba(0,0,0,.24)', - borderRadius: radius, - background: background - } - }, - 'zDepth-0': { - bg: { - boxShadow: 'none' - } - }, - - 'zDepth-1': { - bg: { - boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)' - } - }, - 'zDepth-2': { - bg: { - boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)' - } - }, - 'zDepth-3': { - bg: { - boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)' - } - }, - 'zDepth-4': { - bg: { - boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)' - } - }, - 'zDepth-5': { - bg: { - boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)' - } - }, - 'square': { - bg: { - borderRadius: '0' - } - }, - 'circle': { - bg: { - borderRadius: '50%' - } - } - }, passedStyles), { 'zDepth-1': zDepth === 1 }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.wrap }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.bg }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.content }, - children - ) - ); -}; - -Raised.propTypes = { - background: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), - zDepth: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf([0, 1, 2, 3, 4, 5]), - radius: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object) -}; - -Raised.defaultProps = { - background: '#fff', - zDepth: 1, - radius: 2, - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = (Raised); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Saturation.js": -/*!*********************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Saturation.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Saturation: function() { return /* binding */ Saturation; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash-es/throttle */ "./node_modules/lodash-es/throttle.js"); -/* harmony import */ var _helpers_saturation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/saturation */ "./node_modules/react-color/es/helpers/saturation.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 Saturation = function (_ref) { - _inherits(Saturation, _ref); - - function Saturation(props) { - _classCallCheck(this, Saturation); - - var _this = _possibleConstructorReturn(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props)); - - _this.handleChange = function (e) { - typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, _helpers_saturation__WEBPACK_IMPORTED_MODULE_2__.calculateChange(e, _this.props.hsl, _this.container), e); - }; - - _this.handleMouseDown = function (e) { - _this.handleChange(e); - var renderWindow = _this.getContainerRenderWindow(); - renderWindow.addEventListener('mousemove', _this.handleChange); - renderWindow.addEventListener('mouseup', _this.handleMouseUp); - }; - - _this.handleMouseUp = function () { - _this.unbindEventListeners(); - }; - - _this.throttle = (0,lodash_es_throttle__WEBPACK_IMPORTED_MODULE_3__["default"])(function (fn, data, e) { - fn(data, e); - }, 50); - return _this; - } - - _createClass(Saturation, [{ - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.throttle.cancel(); - this.unbindEventListeners(); - } - }, { - key: 'getContainerRenderWindow', - value: function getContainerRenderWindow() { - var container = this.container; - - var renderWindow = window; - while (!renderWindow.document.contains(container) && renderWindow.parent !== renderWindow) { - renderWindow = renderWindow.parent; - } - return renderWindow; - } - }, { - key: 'unbindEventListeners', - value: function unbindEventListeners() { - var renderWindow = this.getContainerRenderWindow(); - renderWindow.removeEventListener('mousemove', this.handleChange); - renderWindow.removeEventListener('mouseup', this.handleMouseUp); - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var _ref2 = this.props.style || {}, - color = _ref2.color, - white = _ref2.white, - black = _ref2.black, - pointer = _ref2.pointer, - circle = _ref2.circle; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - color: { - absolute: '0px 0px 0px 0px', - background: 'hsl(' + this.props.hsl.h + ',100%, 50%)', - borderRadius: this.props.radius - }, - white: { - absolute: '0px 0px 0px 0px', - borderRadius: this.props.radius - }, - black: { - absolute: '0px 0px 0px 0px', - boxShadow: this.props.shadow, - borderRadius: this.props.radius - }, - pointer: { - position: 'absolute', - top: -(this.props.hsv.v * 100) + 100 + '%', - left: this.props.hsv.s * 100 + '%', - cursor: 'default' - }, - circle: { - width: '4px', - height: '4px', - boxShadow: '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)', - borderRadius: '50%', - cursor: 'hand', - transform: 'translate(-2px, -2px)' - } - }, - 'custom': { - color: color, - white: white, - black: black, - pointer: pointer, - circle: circle - } - }, { 'custom': !!this.props.style }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { - style: styles.color, - ref: function ref(container) { - return _this2.container = container; - }, - onMouseDown: this.handleMouseDown, - onTouchMove: this.handleChange, - onTouchStart: this.handleChange - }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'style', - null, - '\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n ' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.white, className: 'saturation-white' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.black, className: 'saturation-black' }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.pointer }, - this.props.pointer ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(this.props.pointer, this.props) : react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.circle }) - ) - ) - ); - } - }]); - - return Saturation; -}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent || react__WEBPACK_IMPORTED_MODULE_0__.Component); - -/* harmony default export */ __webpack_exports__["default"] = (Saturation); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/Swatch.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/Swatch.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Swatch: function() { return /* binding */ Swatch; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_interaction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/interaction */ "./node_modules/react-color/es/helpers/interaction.js"); -/* harmony import */ var _Checkboard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Checkboard */ "./node_modules/react-color/es/components/common/Checkboard.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 ENTER = 13; - -var Swatch = function Swatch(_ref) { - var color = _ref.color, - style = _ref.style, - _ref$onClick = _ref.onClick, - onClick = _ref$onClick === undefined ? function () {} : _ref$onClick, - onHover = _ref.onHover, - _ref$title = _ref.title, - title = _ref$title === undefined ? color : _ref$title, - children = _ref.children, - focus = _ref.focus, - _ref$focusStyle = _ref.focusStyle, - focusStyle = _ref$focusStyle === undefined ? {} : _ref$focusStyle; - - var transparent = color === 'transparent'; - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - default: { - swatch: _extends({ - background: color, - height: '100%', - width: '100%', - cursor: 'pointer', - position: 'relative', - outline: 'none' - }, style, focus ? focusStyle : {}) - } - }); - - var handleClick = function handleClick(e) { - return onClick(color, e); - }; - var handleKeyDown = function handleKeyDown(e) { - return e.keyCode === ENTER && onClick(color, e); - }; - var handleHover = function handleHover(e) { - return onHover(color, e); - }; - - var optionalEvents = {}; - if (onHover) { - optionalEvents.onMouseOver = handleHover; - } - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - _extends({ - style: styles.swatch, - onClick: handleClick, - title: title, - tabIndex: 0, - onKeyDown: handleKeyDown - }, optionalEvents), - children, - transparent && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Checkboard__WEBPACK_IMPORTED_MODULE_3__["default"], { - borderRadius: styles.swatch.borderRadius, - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)' - }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_helpers_interaction__WEBPACK_IMPORTED_MODULE_2__.handleFocus)(Swatch)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/common/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/react-color/es/components/common/index.js ***! - \****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Alpha: function() { return /* reexport safe */ _Alpha__WEBPACK_IMPORTED_MODULE_0__["default"]; }, -/* harmony export */ Checkboard: function() { return /* reexport safe */ _Checkboard__WEBPACK_IMPORTED_MODULE_1__["default"]; }, -/* harmony export */ ColorWrap: function() { return /* reexport safe */ _ColorWrap__WEBPACK_IMPORTED_MODULE_6__["default"]; }, -/* harmony export */ EditableInput: function() { return /* reexport safe */ _EditableInput__WEBPACK_IMPORTED_MODULE_2__["default"]; }, -/* harmony export */ Hue: function() { return /* reexport safe */ _Hue__WEBPACK_IMPORTED_MODULE_3__["default"]; }, -/* harmony export */ Raised: function() { return /* reexport safe */ _Raised__WEBPACK_IMPORTED_MODULE_4__["default"]; }, -/* harmony export */ Saturation: function() { return /* reexport safe */ _Saturation__WEBPACK_IMPORTED_MODULE_5__["default"]; }, -/* harmony export */ Swatch: function() { return /* reexport safe */ _Swatch__WEBPACK_IMPORTED_MODULE_7__["default"]; } -/* harmony export */ }); -/* harmony import */ var _Alpha__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alpha */ "./node_modules/react-color/es/components/common/Alpha.js"); -/* harmony import */ var _Checkboard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Checkboard */ "./node_modules/react-color/es/components/common/Checkboard.js"); -/* harmony import */ var _EditableInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditableInput */ "./node_modules/react-color/es/components/common/EditableInput.js"); -/* harmony import */ var _Hue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Hue */ "./node_modules/react-color/es/components/common/Hue.js"); -/* harmony import */ var _Raised__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Raised */ "./node_modules/react-color/es/components/common/Raised.js"); -/* harmony import */ var _Saturation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Saturation */ "./node_modules/react-color/es/components/common/Saturation.js"); -/* harmony import */ var _ColorWrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ColorWrap */ "./node_modules/react-color/es/components/common/ColorWrap.js"); -/* harmony import */ var _Swatch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Swatch */ "./node_modules/react-color/es/components/common/Swatch.js"); - - - - - - - - - -/***/ }), - -/***/ "./node_modules/react-color/es/components/compact/Compact.js": -/*!*******************************************************************!*\ - !*** ./node_modules/react-color/es/components/compact/Compact.js ***! - \*******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Compact: function() { return /* binding */ Compact; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* 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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _CompactColor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CompactColor */ "./node_modules/react-color/es/components/compact/CompactColor.js"); -/* harmony import */ var _CompactFields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CompactFields */ "./node_modules/react-color/es/components/compact/CompactFields.js"); - - - - - - - - - - - -var Compact = function Compact(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - rgb = _ref.rgb, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__["default"])({ - 'default': { - Compact: { - background: '#f6f6f6', - radius: '4px' - }, - compact: { - paddingTop: '5px', - paddingLeft: '5px', - boxSizing: 'initial', - width: '240px' - }, - clear: { - clear: 'both' - } - } - }, passedStyles)); - - var handleChange = function handleChange(data, e) { - if (data.hex) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data.hex) && onChange({ - hex: data.hex, - source: 'hex' - }, e); - } else { - onChange(data, e); - } - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - _common__WEBPACK_IMPORTED_MODULE_3__.Raised, - { style: styles.Compact, styles: passedStyles }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.compact, className: 'compact-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - null, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_7__["default"])(colors, function (c) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CompactColor__WEBPACK_IMPORTED_MODULE_4__["default"], { - key: c, - color: c, - active: c.toLowerCase() === hex, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.clear }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CompactFields__WEBPACK_IMPORTED_MODULE_5__["default"], { hex: hex, rgb: rgb, onChange: handleChange }) - ) - ); -}; - -Compact.propTypes = { - colors: prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object) -}; - -Compact.defaultProps = { - colors: ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'], - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Compact)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/compact/CompactColor.js": -/*!************************************************************************!*\ - !*** ./node_modules/react-color/es/components/compact/CompactColor.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CompactColor: function() { return /* binding */ CompactColor; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - - -var CompactColor = function CompactColor(_ref) { - var color = _ref.color, - _ref$onClick = _ref.onClick, - onClick = _ref$onClick === undefined ? function () {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover, - active = _ref.active; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - color: { - background: color, - width: '15px', - height: '15px', - float: 'left', - marginRight: '5px', - marginBottom: '5px', - position: 'relative', - cursor: 'pointer' - }, - dot: { - absolute: '5px 5px 5px 5px', - background: _helpers_color__WEBPACK_IMPORTED_MODULE_2__.getContrastingColor(color), - borderRadius: '50%', - opacity: '0' - } - }, - 'active': { - dot: { - opacity: '1' - } - }, - 'color-#FFFFFF': { - color: { - boxShadow: 'inset 0 0 0 1px #ddd' - }, - dot: { - background: '#000' - } - }, - 'transparent': { - dot: { - background: '#000' - } - } - }, { active: active, 'color-#FFFFFF': color === '#FFFFFF', 'transparent': color === 'transparent' }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - _common__WEBPACK_IMPORTED_MODULE_3__.Swatch, - { - style: styles.color, - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + color } - }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.dot }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (CompactColor); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/compact/CompactFields.js": -/*!*************************************************************************!*\ - !*** ./node_modules/react-color/es/components/compact/CompactFields.js ***! - \*************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CompactFields: function() { return /* binding */ CompactFields; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - -var CompactFields = function CompactFields(_ref) { - var hex = _ref.hex, - rgb = _ref.rgb, - onChange = _ref.onChange; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - fields: { - display: 'flex', - paddingBottom: '6px', - paddingRight: '5px', - position: 'relative' - }, - active: { - position: 'absolute', - top: '6px', - left: '5px', - height: '9px', - width: '9px', - background: hex - }, - HEXwrap: { - flex: '6', - position: 'relative' - }, - HEXinput: { - width: '80%', - padding: '0px', - paddingLeft: '20%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - HEXlabel: { - display: 'none' - }, - RGBwrap: { - flex: '3', - position: 'relative' - }, - RGBinput: { - width: '70%', - padding: '0px', - paddingLeft: '30%', - border: 'none', - outline: 'none', - background: 'none', - fontSize: '12px', - color: '#333', - height: '16px' - }, - RGBlabel: { - position: 'absolute', - top: '3px', - left: '0px', - lineHeight: '16px', - textTransform: 'uppercase', - fontSize: '12px', - color: '#999' - } - } - }); - - var handleChange = function handleChange(data, e) { - if (data.r || data.g || data.b) { - onChange({ - r: data.r || rgb.r, - g: data.g || rgb.g, - b: data.b || rgb.b, - source: 'rgb' - }, e); - } else { - onChange({ - hex: data.hex, - source: 'hex' - }, e); - } - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.active }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: 'hex', - value: hex, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', - value: rgb.r, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (CompactFields); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/github/Github.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/github/Github.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Github: function() { return /* binding */ Github; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _GithubSwatch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GithubSwatch */ "./node_modules/react-color/es/components/github/GithubSwatch.js"); - - - - - - - - - -var Github = function Github(_ref) { - var width = _ref.width, - colors = _ref.colors, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - triangle = _ref.triangle, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["default"])({ - 'default': { - card: { - width: width, - background: '#fff', - border: '1px solid rgba(0,0,0,0.2)', - boxShadow: '0 3px 12px rgba(0,0,0,0.15)', - borderRadius: '4px', - position: 'relative', - padding: '5px', - display: 'flex', - flexWrap: 'wrap' - }, - triangle: { - position: 'absolute', - border: '7px solid transparent', - borderBottomColor: '#fff' - }, - triangleShadow: { - position: 'absolute', - border: '8px solid transparent', - borderBottomColor: 'rgba(0,0,0,0.15)' - } - }, - 'hide-triangle': { - triangle: { - display: 'none' - }, - triangleShadow: { - display: 'none' - } - }, - 'top-left-triangle': { - triangle: { - top: '-14px', - left: '10px' - }, - triangleShadow: { - top: '-16px', - left: '9px' - } - }, - 'top-right-triangle': { - triangle: { - top: '-14px', - right: '10px' - }, - triangleShadow: { - top: '-16px', - right: '9px' - } - }, - 'bottom-left-triangle': { - triangle: { - top: '35px', - left: '10px', - transform: 'rotate(180deg)' - }, - triangleShadow: { - top: '37px', - left: '9px', - transform: 'rotate(180deg)' - } - }, - 'bottom-right-triangle': { - triangle: { - top: '35px', - right: '10px', - transform: 'rotate(180deg)' - }, - triangleShadow: { - top: '37px', - right: '9px', - transform: 'rotate(180deg)' - } - } - }, passedStyles), { - 'hide-triangle': triangle === 'hide', - 'top-left-triangle': triangle === 'top-left', - 'top-right-triangle': triangle === 'top-right', - 'bottom-left-triangle': triangle === 'bottom-left', - 'bottom-right-triangle': triangle === 'bottom-right' - }); - - var handleChange = function handleChange(hex, e) { - return onChange({ hex: hex, source: 'hex' }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.card, className: 'github-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.triangleShadow }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.triangle }), - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_5__["default"])(colors, function (c) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_GithubSwatch__WEBPACK_IMPORTED_MODULE_3__["default"], { - color: c, - key: c, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }) - ); -}; - -Github.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)]), - colors: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)), - triangle: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['hide', 'top-left', 'top-right', 'bottom-left', 'bottom-right']), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -}; - -Github.defaultProps = { - width: 200, - colors: ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'], - triangle: 'top-left', - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Github)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/github/GithubSwatch.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/github/GithubSwatch.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GithubSwatch: function() { return /* binding */ GithubSwatch; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - -var GithubSwatch = function GithubSwatch(_ref) { - var hover = _ref.hover, - color = _ref.color, - onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover; - - var hoverSwatch = { - position: 'relative', - zIndex: '2', - outline: '2px solid #fff', - boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)' - }; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatch: { - width: '25px', - height: '25px', - fontSize: '0' - } - }, - 'hover': { - swatch: hoverSwatch - } - }, { hover: hover }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Swatch, { - color: color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: hoverSwatch - }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,reactcss__WEBPACK_IMPORTED_MODULE_1__.handleHover)(GithubSwatch)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/google/Google.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/google/Google.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Google: function() { return /* binding */ Google; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _GooglePointerCircle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./GooglePointerCircle */ "./node_modules/react-color/es/components/google/GooglePointerCircle.js"); -/* harmony import */ var _GooglePointer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GooglePointer */ "./node_modules/react-color/es/components/google/GooglePointer.js"); -/* harmony import */ var _GoogleFields__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./GoogleFields */ "./node_modules/react-color/es/components/google/GoogleFields.js"); - - - - - - - - - - -var Google = function Google(_ref) { - var width = _ref.width, - onChange = _ref.onChange, - rgb = _ref.rgb, - hsl = _ref.hsl, - hsv = _ref.hsv, - hex = _ref.hex, - header = _ref.header, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_6__["default"])({ - 'default': { - picker: { - width: width, - background: '#fff', - border: '1px solid #dfe1e5', - boxSizing: 'initial', - display: 'flex', - flexWrap: 'wrap', - borderRadius: '8px 8px 0px 0px' - }, - head: { - height: '57px', - width: '100%', - paddingTop: '16px', - paddingBottom: '16px', - paddingLeft: '16px', - fontSize: '20px', - boxSizing: 'border-box', - fontFamily: 'Roboto-Regular,HelveticaNeue,Arial,sans-serif' - }, - saturation: { - width: '70%', - padding: '0px', - position: 'relative', - overflow: 'hidden' - }, - swatch: { - width: '30%', - height: '228px', - padding: '0px', - background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', 1)', - position: 'relative', - overflow: 'hidden' - }, - body: { - margin: 'auto', - width: '95%' - }, - controls: { - display: 'flex', - boxSizing: 'border-box', - height: '52px', - paddingTop: '22px' - }, - color: { - width: '32px' - }, - hue: { - height: '8px', - position: 'relative', - margin: '0px 16px 0px 16px', - width: '100%' - }, - Hue: { - radius: '2px' - } - } - }, passedStyles)); - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'google-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.head }, - header - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.swatch }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.saturation }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Saturation, { - hsl: hsl, - hsv: hsv, - pointer: _GooglePointerCircle__WEBPACK_IMPORTED_MODULE_3__["default"], - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.controls, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, { - style: styles.Hue, - hsl: hsl, - radius: '4px', - pointer: _GooglePointer__WEBPACK_IMPORTED_MODULE_4__["default"], - onChange: onChange - }) - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_GoogleFields__WEBPACK_IMPORTED_MODULE_5__["default"], { - rgb: rgb, - hsl: hsl, - hex: hex, - hsv: hsv, - onChange: onChange - }) - ) - ); -}; - -Google.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)]), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object), - header: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string) - -}; - -Google.defaultProps = { - width: 652, - styles: {}, - header: 'Color picker' -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Google)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/google/GoogleFields.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/google/GoogleFields.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GoogleFields: function() { return /* binding */ GoogleFields; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - -var GoogleFields = function GoogleFields(_ref) { - var onChange = _ref.onChange, - rgb = _ref.rgb, - hsl = _ref.hsl, - hex = _ref.hex, - hsv = _ref.hsv; - - - var handleChange = function handleChange(data, e) { - if (data.hex) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data.hex) && onChange({ - hex: data.hex, - source: 'hex' - }, e); - } else if (data.rgb) { - var values = data.rgb.split(','); - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isvalidColorString(data.rgb, 'rgb') && onChange({ - r: values[0], - g: values[1], - b: values[2], - a: 1, - source: 'rgb' - }, e); - } else if (data.hsv) { - var _values = data.hsv.split(','); - if (_helpers_color__WEBPACK_IMPORTED_MODULE_2__.isvalidColorString(data.hsv, 'hsv')) { - _values[2] = _values[2].replace('%', ''); - _values[1] = _values[1].replace('%', ''); - _values[0] = _values[0].replace('°', ''); - if (_values[1] == 1) { - _values[1] = 0.01; - } else if (_values[2] == 1) { - _values[2] = 0.01; - } - onChange({ - h: Number(_values[0]), - s: Number(_values[1]), - v: Number(_values[2]), - source: 'hsv' - }, e); - } - } else if (data.hsl) { - var _values2 = data.hsl.split(','); - if (_helpers_color__WEBPACK_IMPORTED_MODULE_2__.isvalidColorString(data.hsl, 'hsl')) { - _values2[2] = _values2[2].replace('%', ''); - _values2[1] = _values2[1].replace('%', ''); - _values2[0] = _values2[0].replace('°', ''); - if (hsvValue[1] == 1) { - hsvValue[1] = 0.01; - } else if (hsvValue[2] == 1) { - hsvValue[2] = 0.01; - } - onChange({ - h: Number(_values2[0]), - s: Number(_values2[1]), - v: Number(_values2[2]), - source: 'hsl' - }, e); - } - } - }; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - wrap: { - display: 'flex', - height: '100px', - marginTop: '4px' - }, - fields: { - width: '100%' - }, - column: { - paddingTop: '10px', - display: 'flex', - justifyContent: 'space-between' - }, - double: { - padding: '0px 4.4px', - boxSizing: 'border-box' - }, - input: { - width: '100%', - height: '38px', - boxSizing: 'border-box', - padding: '4px 10% 3px', - textAlign: 'center', - border: '1px solid #dadce0', - fontSize: '11px', - textTransform: 'lowercase', - borderRadius: '5px', - outline: 'none', - fontFamily: 'Roboto,Arial,sans-serif' - }, - input2: { - height: '38px', - width: '100%', - border: '1px solid #dadce0', - boxSizing: 'border-box', - fontSize: '11px', - textTransform: 'lowercase', - borderRadius: '5px', - outline: 'none', - paddingLeft: '10px', - fontFamily: 'Roboto,Arial,sans-serif' - }, - label: { - textAlign: 'center', - fontSize: '12px', - background: '#fff', - position: 'absolute', - textTransform: 'uppercase', - color: '#3c4043', - width: '35px', - top: '-6px', - left: '0', - right: '0', - marginLeft: 'auto', - marginRight: 'auto', - fontFamily: 'Roboto,Arial,sans-serif' - }, - label2: { - left: '10px', - textAlign: 'center', - fontSize: '12px', - background: '#fff', - position: 'absolute', - textTransform: 'uppercase', - color: '#3c4043', - width: '32px', - top: '-6px', - fontFamily: 'Roboto,Arial,sans-serif' - }, - single: { - flexGrow: '1', - margin: '0px 4.4px' - } - } - }); - - var rgbValue = rgb.r + ', ' + rgb.g + ', ' + rgb.b; - var hslValue = Math.round(hsl.h) + '\xB0, ' + Math.round(hsl.s * 100) + '%, ' + Math.round(hsl.l * 100) + '%'; - var hsvValue = Math.round(hsv.h) + '\xB0, ' + Math.round(hsv.s * 100) + '%, ' + Math.round(hsv.v * 100) + '%'; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.wrap, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.double }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'hex', - value: hex, - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.column }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input2, label: styles.label2 }, - label: 'rgb', - value: rgbValue, - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input2, label: styles.label2 }, - label: 'hsv', - value: hsvValue, - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input2, label: styles.label2 }, - label: 'hsl', - value: hslValue, - onChange: handleChange - }) - ) - ) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (GoogleFields); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/google/GooglePointer.js": -/*!************************************************************************!*\ - !*** ./node_modules/react-color/es/components/google/GooglePointer.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GooglePointer: function() { return /* binding */ GooglePointer; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/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__); - - - - -var GooglePointer = function GooglePointer(props) { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '20px', - height: '20px', - borderRadius: '22px', - transform: 'translate(-10px, -7px)', - background: 'hsl(' + Math.round(props.hsl.h) + ', 100%, 50%)', - border: '2px white solid' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -GooglePointer.propTypes = { - hsl: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({ - h: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - s: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - l: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - a: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number) - }) -}; - -GooglePointer.defaultProps = { - hsl: { a: 1, h: 249.94, l: 0.2, s: 0.50 } -}; - -/* harmony default export */ __webpack_exports__["default"] = (GooglePointer); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/google/GooglePointerCircle.js": -/*!******************************************************************************!*\ - !*** ./node_modules/react-color/es/components/google/GooglePointerCircle.js ***! - \******************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GooglePointerCircle: function() { return /* binding */ GooglePointerCircle; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/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__); - - - - -var GooglePointerCircle = function GooglePointerCircle(props) { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '20px', - height: '20px', - borderRadius: '22px', - border: '2px #fff solid', - transform: 'translate(-12px, -13px)', - background: 'hsl(' + Math.round(props.hsl.h) + ', ' + Math.round(props.hsl.s * 100) + '%, ' + Math.round(props.hsl.l * 100) + '%)' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -GooglePointerCircle.propTypes = { - hsl: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({ - h: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - s: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - l: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), - a: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number) - }) -}; - -GooglePointerCircle.defaultProps = { - hsl: { a: 1, h: 249.94, l: 0.2, s: 0.50 } -}; - -/* harmony default export */ __webpack_exports__["default"] = (GooglePointerCircle); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/hue/Hue.js": -/*!***********************************************************!*\ - !*** ./node_modules/react-color/es/components/hue/Hue.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ HuePicker: function() { return /* binding */ HuePicker; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _HuePointer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HuePointer */ "./node_modules/react-color/es/components/hue/HuePointer.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 HuePicker = function HuePicker(_ref) { - var width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - hsl = _ref.hsl, - direction = _ref.direction, - pointer = _ref.pointer, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["default"])({ - 'default': { - picker: { - position: 'relative', - width: width, - height: height - }, - hue: { - radius: '2px' - } - } - }, passedStyles)); - - // Overwrite to provide pure hue color - var handleChange = function handleChange(data) { - return onChange({ a: 1, h: data.h, l: 0.5, s: 1 }); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'hue-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, _extends({}, styles.hue, { - hsl: hsl, - pointer: pointer, - onChange: handleChange, - direction: direction - })) - ); -}; - -HuePicker.propTypes = { - styles: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object) -}; -HuePicker.defaultProps = { - width: '316px', - height: '16px', - direction: 'horizontal', - pointer: _HuePointer__WEBPACK_IMPORTED_MODULE_3__["default"], - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(HuePicker)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/hue/HuePointer.js": -/*!******************************************************************!*\ - !*** ./node_modules/react-color/es/components/hue/HuePointer.js ***! - \******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SliderPointer: function() { return /* binding */ SliderPointer; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var SliderPointer = function SliderPointer(_ref) { - var direction = _ref.direction; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '18px', - height: '18px', - borderRadius: '50%', - transform: 'translate(-9px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - }, - 'vertical': { - picker: { - transform: 'translate(-3px, -9px)' - } - } - }, { vertical: direction === 'vertical' }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SliderPointer); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/material/Material.js": -/*!*********************************************************************!*\ - !*** ./node_modules/react-color/es/components/material/Material.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Material: function() { return /* binding */ Material; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - - - -var Material = function Material(_ref) { - var onChange = _ref.onChange, - hex = _ref.hex, - rgb = _ref.rgb, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["default"])({ - 'default': { - material: { - width: '98px', - height: '98px', - padding: '16px', - fontFamily: 'Roboto' - }, - HEXwrap: { - position: 'relative' - }, - HEXinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '2px solid ' + hex, - outline: 'none', - height: '30px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' - }, - Hex: { - style: {} - }, - RGBwrap: { - position: 'relative' - }, - RGBinput: { - width: '100%', - marginTop: '12px', - fontSize: '15px', - color: '#333', - padding: '0px', - border: '0px', - borderBottom: '1px solid #eee', - outline: 'none', - height: '30px' - }, - RGBlabel: { - position: 'absolute', - top: '0px', - left: '0px', - fontSize: '11px', - color: '#999999', - textTransform: 'capitalize' - }, - split: { - display: 'flex', - marginRight: '-10px', - paddingTop: '11px' - }, - third: { - flex: '1', - paddingRight: '10px' - } - } - }, passedStyles)); - - var handleChange = function handleChange(data, e) { - if (data.hex) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data.hex) && onChange({ - hex: data.hex, - source: 'hex' - }, e); - } else if (data.r || data.g || data.b) { - onChange({ - r: data.r || rgb.r, - g: data.g || rgb.g, - b: data.b || rgb.b, - source: 'rgb' - }, e); - } - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - _common__WEBPACK_IMPORTED_MODULE_3__.Raised, - { styles: passedStyles }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.material, className: 'material-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: 'hex', - value: hex, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.split, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.third }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', value: rgb.r, - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.third }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.third }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }) - ) - ) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Material)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/Photoshop.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/Photoshop.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Photoshop: function() { return /* binding */ Photoshop; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _PhotoshopFields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PhotoshopFields */ "./node_modules/react-color/es/components/photoshop/PhotoshopFields.js"); -/* harmony import */ var _PhotoshopPointerCircle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PhotoshopPointerCircle */ "./node_modules/react-color/es/components/photoshop/PhotoshopPointerCircle.js"); -/* harmony import */ var _PhotoshopPointer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PhotoshopPointer */ "./node_modules/react-color/es/components/photoshop/PhotoshopPointer.js"); -/* harmony import */ var _PhotoshopButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PhotoshopButton */ "./node_modules/react-color/es/components/photoshop/PhotoshopButton.js"); -/* harmony import */ var _PhotoshopPreviews__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PhotoshopPreviews */ "./node_modules/react-color/es/components/photoshop/PhotoshopPreviews.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 Photoshop = function (_React$Component) { - _inherits(Photoshop, _React$Component); - - function Photoshop(props) { - _classCallCheck(this, Photoshop); - - var _this = _possibleConstructorReturn(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this)); - - _this.state = { - currentColor: props.hex - }; - return _this; - } - - _createClass(Photoshop, [{ - key: 'render', - value: function render() { - var _props = this.props, - _props$styles = _props.styles, - passedStyles = _props$styles === undefined ? {} : _props$styles, - _props$className = _props.className, - className = _props$className === undefined ? '' : _props$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_8__["default"])({ - 'default': { - picker: { - background: '#DCDCDC', - borderRadius: '4px', - boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)', - boxSizing: 'initial', - width: '513px' - }, - head: { - backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)', - borderBottom: '1px solid #B1B1B1', - boxShadow: 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)', - height: '23px', - lineHeight: '24px', - borderRadius: '4px 4px 0 0', - fontSize: '13px', - color: '#4D4D4D', - textAlign: 'center' - }, - body: { - padding: '15px 15px 0', - display: 'flex' - }, - saturation: { - width: '256px', - height: '256px', - position: 'relative', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0', - overflow: 'hidden' - }, - hue: { - position: 'relative', - height: '256px', - width: '19px', - marginLeft: '10px', - border: '2px solid #B3B3B3', - borderBottom: '2px solid #F0F0F0' - }, - controls: { - width: '180px', - marginLeft: '10px' - }, - top: { - display: 'flex' - }, - previews: { - width: '60px' - }, - actions: { - flex: '1', - marginLeft: '20px' - } - } - }, passedStyles)); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'photoshop-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.head }, - this.props.header - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.saturation }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Saturation, { - hsl: this.props.hsl, - hsv: this.props.hsv, - pointer: _PhotoshopPointerCircle__WEBPACK_IMPORTED_MODULE_4__["default"], - onChange: this.props.onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, { - direction: 'vertical', - hsl: this.props.hsl, - pointer: _PhotoshopPointer__WEBPACK_IMPORTED_MODULE_5__["default"], - onChange: this.props.onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.controls }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.top, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.previews }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PhotoshopPreviews__WEBPACK_IMPORTED_MODULE_7__["default"], { - rgb: this.props.rgb, - currentColor: this.state.currentColor - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.actions }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PhotoshopButton__WEBPACK_IMPORTED_MODULE_6__["default"], { label: 'OK', onClick: this.props.onAccept, active: true }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PhotoshopButton__WEBPACK_IMPORTED_MODULE_6__["default"], { label: 'Cancel', onClick: this.props.onCancel }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PhotoshopFields__WEBPACK_IMPORTED_MODULE_3__["default"], { - onChange: this.props.onChange, - rgb: this.props.rgb, - hsv: this.props.hsv, - hex: this.props.hex - }) - ) - ) - ) - ) - ); - } - }]); - - return Photoshop; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -Photoshop.propTypes = { - header: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object) -}; - -Photoshop.defaultProps = { - header: 'Color Picker', - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Photoshop)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/PhotoshopButton.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/PhotoshopButton.js ***! - \*****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PhotoshopButton: function() { return /* binding */ PhotoshopButton; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var PhotoshopButton = function PhotoshopButton(_ref) { - var onClick = _ref.onClick, - label = _ref.label, - children = _ref.children, - active = _ref.active; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - button: { - backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)', - border: '1px solid #878787', - borderRadius: '2px', - height: '20px', - boxShadow: '0 1px 0 0 #EAEAEA', - fontSize: '14px', - color: '#000', - lineHeight: '20px', - textAlign: 'center', - marginBottom: '10px', - cursor: 'pointer' - } - }, - 'active': { - button: { - boxShadow: '0 0 0 1px #878787' - } - } - }, { active: active }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.button, onClick: onClick }, - label || children - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (PhotoshopButton); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/PhotoshopFields.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/PhotoshopFields.js ***! - \*****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PhotoshopPicker: function() { return /* binding */ PhotoshopPicker; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - - -var PhotoshopPicker = function PhotoshopPicker(_ref) { - var onChange = _ref.onChange, - rgb = _ref.rgb, - hsv = _ref.hsv, - hex = _ref.hex; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - fields: { - paddingTop: '5px', - paddingBottom: '9px', - width: '80px', - position: 'relative' - }, - divider: { - height: '5px' - }, - RGBwrap: { - position: 'relative' - }, - RGBinput: { - marginLeft: '40%', - width: '40%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '5px', - fontSize: '13px', - paddingLeft: '3px', - marginRight: '10px' - }, - RGBlabel: { - left: '0px', - top: '0px', - width: '34px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px', - position: 'absolute' - }, - HEXwrap: { - position: 'relative' - }, - HEXinput: { - marginLeft: '20%', - width: '80%', - height: '18px', - border: '1px solid #888888', - boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC', - marginBottom: '6px', - fontSize: '13px', - paddingLeft: '3px' - }, - HEXlabel: { - position: 'absolute', - top: '0px', - left: '0px', - width: '14px', - textTransform: 'uppercase', - fontSize: '13px', - height: '18px', - lineHeight: '22px' - }, - fieldSymbols: { - position: 'absolute', - top: '5px', - right: '-7px', - fontSize: '13px' - }, - symbol: { - height: '20px', - lineHeight: '22px', - paddingBottom: '7px' - } - } - }); - - var handleChange = function handleChange(data, e) { - if (data['#']) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data['#']) && onChange({ - hex: data['#'], - source: 'hex' - }, e); - } else if (data.r || data.g || data.b) { - onChange({ - r: data.r || rgb.r, - g: data.g || rgb.g, - b: data.b || rgb.b, - source: 'rgb' - }, e); - } else if (data.h || data.s || data.v) { - onChange({ - h: data.h || hsv.h, - s: data.s || hsv.s, - v: data.v || hsv.v, - source: 'hsv' - }, e); - } - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'h', - value: Math.round(hsv.h), - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 's', - value: Math.round(hsv.s * 100), - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'v', - value: Math.round(hsv.v * 100), - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.divider }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'r', - value: rgb.r, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'g', - value: rgb.g, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel }, - label: 'b', - value: rgb.b, - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.divider }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel }, - label: '#', - value: hex.replace('#', ''), - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fieldSymbols }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.symbol }, - '\xB0' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.symbol }, - '%' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.symbol }, - '%' - ) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (PhotoshopPicker); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/PhotoshopPointer.js": -/*!******************************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/PhotoshopPointer.js ***! - \******************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PhotoshopPointerCircle: function() { return /* binding */ PhotoshopPointerCircle; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var PhotoshopPointerCircle = function PhotoshopPointerCircle() { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - triangle: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '4px 0 4px 6px', - borderColor: 'transparent transparent transparent #fff', - position: 'absolute', - top: '1px', - left: '1px' - }, - triangleBorder: { - width: 0, - height: 0, - borderStyle: 'solid', - borderWidth: '5px 0 5px 8px', - borderColor: 'transparent transparent transparent #555' - }, - - left: { - Extend: 'triangleBorder', - transform: 'translate(-13px, -4px)' - }, - leftInside: { - Extend: 'triangle', - transform: 'translate(-8px, -5px)' - }, - - right: { - Extend: 'triangleBorder', - transform: 'translate(20px, -14px) rotate(180deg)' - }, - rightInside: { - Extend: 'triangle', - transform: 'translate(-8px, -5px)' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.pointer }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.left }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.leftInside }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.right }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.rightInside }) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (PhotoshopPointerCircle); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/PhotoshopPointerCircle.js": -/*!************************************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/PhotoshopPointerCircle.js ***! - \************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PhotoshopPointerCircle: function() { return /* binding */ PhotoshopPointerCircle; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) { - var hsl = _ref.hsl; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '12px', - height: '12px', - borderRadius: '6px', - boxShadow: 'inset 0 0 0 1px #fff', - transform: 'translate(-6px, -6px)' - } - }, - 'black-outline': { - picker: { - boxShadow: 'inset 0 0 0 1px #000' - } - } - }, { 'black-outline': hsl.l > 0.5 }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (PhotoshopPointerCircle); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/photoshop/PhotoshopPreviews.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/react-color/es/components/photoshop/PhotoshopPreviews.js ***! - \*******************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PhotoshopPreviews: function() { return /* binding */ PhotoshopPreviews; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var PhotoshopPreviews = function PhotoshopPreviews(_ref) { - var rgb = _ref.rgb, - currentColor = _ref.currentColor; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatches: { - border: '1px solid #B3B3B3', - borderBottom: '1px solid #F0F0F0', - marginBottom: '2px', - marginTop: '1px' - }, - new: { - height: '34px', - background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')', - boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000' - }, - current: { - height: '34px', - background: currentColor, - boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000' - }, - label: { - fontSize: '14px', - color: '#000', - textAlign: 'center' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - null, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.label }, - 'new' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatches }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.new }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.current }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.label }, - 'current' - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (PhotoshopPreviews); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/sketch/Sketch.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/sketch/Sketch.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Sketch: function() { return /* binding */ Sketch; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _SketchFields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SketchFields */ "./node_modules/react-color/es/components/sketch/SketchFields.js"); -/* harmony import */ var _SketchPresetColors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SketchPresetColors */ "./node_modules/react-color/es/components/sketch/SketchPresetColors.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 Sketch = function Sketch(_ref) { - var width = _ref.width, - rgb = _ref.rgb, - hex = _ref.hex, - hsv = _ref.hsv, - hsl = _ref.hsl, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - disableAlpha = _ref.disableAlpha, - presetColors = _ref.presetColors, - renderers = _ref.renderers, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__["default"])({ - 'default': _extends({ - picker: { - width: width, - padding: '10px 10px 0', - boxSizing: 'initial', - background: '#fff', - borderRadius: '4px', - boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)' - }, - saturation: { - width: '100%', - paddingBottom: '75%', - position: 'relative', - overflow: 'hidden' - }, - Saturation: { - radius: '3px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - controls: { - display: 'flex' - }, - sliders: { - padding: '4px 0', - flex: '1' - }, - color: { - width: '24px', - height: '24px', - position: 'relative', - marginTop: '4px', - marginLeft: '4px', - borderRadius: '3px' - }, - activeColor: { - absolute: '0px 0px 0px 0px', - borderRadius: '2px', - background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - hue: { - position: 'relative', - height: '10px', - overflow: 'hidden' - }, - Hue: { - radius: '2px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - }, - - alpha: { - position: 'relative', - height: '10px', - marginTop: '4px', - overflow: 'hidden' - }, - Alpha: { - radius: '2px', - shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)' - } - }, passedStyles), - 'disableAlpha': { - color: { - height: '10px' - }, - hue: { - height: '10px' - }, - alpha: { - display: 'none' - } - } - }, passedStyles), { disableAlpha: disableAlpha }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'sketch-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.saturation }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Saturation, { - style: styles.Saturation, - hsl: hsl, - hsv: hsv, - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.controls, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.sliders }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, { - style: styles.Hue, - hsl: hsl, - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Alpha, { - style: styles.Alpha, - rgb: rgb, - hsl: hsl, - renderers: renderers, - onChange: onChange - }) - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.color }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Checkboard, null), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.activeColor }) - ) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SketchFields__WEBPACK_IMPORTED_MODULE_3__["default"], { - rgb: rgb, - hsl: hsl, - hex: hex, - onChange: onChange, - disableAlpha: disableAlpha - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SketchPresetColors__WEBPACK_IMPORTED_MODULE_4__["default"], { - colors: presetColors, - onClick: onChange, - onSwatchHover: onSwatchHover - }) - ); -}; - -Sketch.propTypes = { - disableAlpha: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool), - width: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)]), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -}; - -Sketch.defaultProps = { - disableAlpha: false, - width: 200, - styles: {}, - presetColors: ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF'] -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Sketch)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/sketch/SketchFields.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/sketch/SketchFields.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SketchFields: function() { return /* binding */ SketchFields; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* eslint-disable no-param-reassign */ - - - - - - - -var SketchFields = function SketchFields(_ref) { - var onChange = _ref.onChange, - rgb = _ref.rgb, - hsl = _ref.hsl, - hex = _ref.hex, - disableAlpha = _ref.disableAlpha; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - fields: { - display: 'flex', - paddingTop: '4px' - }, - single: { - flex: '1', - paddingLeft: '6px' - }, - alpha: { - flex: '1', - paddingLeft: '6px' - }, - double: { - flex: '2' - }, - input: { - width: '80%', - padding: '4px 10% 3px', - border: 'none', - boxShadow: 'inset 0 0 0 1px #ccc', - fontSize: '11px' - }, - label: { - display: 'block', - textAlign: 'center', - fontSize: '11px', - color: '#222', - paddingTop: '3px', - paddingBottom: '4px', - textTransform: 'capitalize' - } - }, - 'disableAlpha': { - alpha: { - display: 'none' - } - } - }, { disableAlpha: disableAlpha }); - - var handleChange = function handleChange(data, e) { - if (data.hex) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(data.hex) && onChange({ - hex: data.hex, - source: 'hex' - }, e); - } else if (data.r || data.g || data.b) { - onChange({ - r: data.r || rgb.r, - g: data.g || rgb.g, - b: data.b || rgb.b, - a: rgb.a, - source: 'rgb' - }, e); - } else if (data.a) { - if (data.a < 0) { - data.a = 0; - } else if (data.a > 100) { - data.a = 100; - } - - data.a /= 100; - onChange({ - h: hsl.h, - s: hsl.s, - l: hsl.l, - a: data.a, - source: 'rgb' - }, e); - } - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.fields, className: 'flexbox-fix' }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.double }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'hex', - value: hex.replace('#', ''), - onChange: handleChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'r', - value: rgb.r, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'g', - value: rgb.g, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.single }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'b', - value: rgb.b, - onChange: handleChange, - dragLabel: 'true', - dragMax: '255' - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.alpha }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - style: { input: styles.input, label: styles.label }, - label: 'a', - value: Math.round(rgb.a * 100), - onChange: handleChange, - dragLabel: 'true', - dragMax: '100' - }) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SketchFields); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/sketch/SketchPresetColors.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/react-color/es/components/sketch/SketchPresetColors.js ***! - \*****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SketchPresetColors: function() { return /* binding */ SketchPresetColors; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/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 SketchPresetColors = function SketchPresetColors(_ref) { - var colors = _ref.colors, - _ref$onClick = _ref.onClick, - onClick = _ref$onClick === undefined ? function () {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - colors: { - margin: '0 -10px', - padding: '10px 0 0 10px', - borderTop: '1px solid #eee', - display: 'flex', - flexWrap: 'wrap', - position: 'relative' - }, - swatchWrap: { - width: '16px', - height: '16px', - margin: '0 10px 10px 0' - }, - swatch: { - borderRadius: '3px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)' - } - }, - 'no-presets': { - colors: { - display: 'none' - } - } - }, { - 'no-presets': !colors || !colors.length - }); - - var handleClick = function handleClick(hex, e) { - onClick({ - hex: hex, - source: 'hex' - }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.colors, className: 'flexbox-fix' }, - colors.map(function (colorObjOrString) { - var c = typeof colorObjOrString === 'string' ? { color: colorObjOrString } : colorObjOrString; - var key = '' + c.color + (c.title || ''); - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { key: key, style: styles.swatchWrap }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Swatch, _extends({}, c, { - style: styles.swatch, - onClick: handleClick, - onHover: onSwatchHover, - focusStyle: { - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color - } - })) - ); - }) - ); -}; - -SketchPresetColors.propTypes = { - colors: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({ - color: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), - title: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string) - })])).isRequired -}; - -/* harmony default export */ __webpack_exports__["default"] = (SketchPresetColors); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/slider/Slider.js": -/*!*****************************************************************!*\ - !*** ./node_modules/react-color/es/components/slider/Slider.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Slider: function() { return /* binding */ Slider; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _SliderSwatches__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SliderSwatches */ "./node_modules/react-color/es/components/slider/SliderSwatches.js"); -/* harmony import */ var _SliderPointer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SliderPointer */ "./node_modules/react-color/es/components/slider/SliderPointer.js"); - - - - - - - - - -var Slider = function Slider(_ref) { - var hsl = _ref.hsl, - onChange = _ref.onChange, - pointer = _ref.pointer, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__["default"])({ - 'default': { - hue: { - height: '12px', - position: 'relative' - }, - Hue: { - radius: '2px' - } - } - }, passedStyles)); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.wrap || {}, className: 'slider-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hue }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_2__.Hue, { - style: styles.Hue, - hsl: hsl, - pointer: pointer, - onChange: onChange - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatches }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatches__WEBPACK_IMPORTED_MODULE_3__["default"], { hsl: hsl, onClick: onChange }) - ) - ); -}; - -Slider.propTypes = { - styles: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -}; -Slider.defaultProps = { - pointer: _SliderPointer__WEBPACK_IMPORTED_MODULE_4__["default"], - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_2__.ColorWrap)(Slider)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/slider/SliderPointer.js": -/*!************************************************************************!*\ - !*** ./node_modules/react-color/es/components/slider/SliderPointer.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SliderPointer: function() { return /* binding */ SliderPointer; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var SliderPointer = function SliderPointer() { - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - picker: { - width: '14px', - height: '14px', - borderRadius: '6px', - transform: 'translate(-7px, -1px)', - backgroundColor: 'rgb(248, 248, 248)', - boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.picker }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SliderPointer); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/slider/SliderSwatch.js": -/*!***********************************************************************!*\ - !*** ./node_modules/react-color/es/components/slider/SliderSwatch.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SliderSwatch: function() { return /* binding */ SliderSwatch; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); - - - -var SliderSwatch = function SliderSwatch(_ref) { - var hsl = _ref.hsl, - offset = _ref.offset, - _ref$onClick = _ref.onClick, - onClick = _ref$onClick === undefined ? function () {} : _ref$onClick, - active = _ref.active, - first = _ref.first, - last = _ref.last; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatch: { - height: '12px', - background: 'hsl(' + hsl.h + ', 50%, ' + offset * 100 + '%)', - cursor: 'pointer' - } - }, - 'first': { - swatch: { - borderRadius: '2px 0 0 2px' - } - }, - 'last': { - swatch: { - borderRadius: '0 2px 2px 0' - } - }, - 'active': { - swatch: { - transform: 'scaleY(1.8)', - borderRadius: '3.6px/2px' - } - } - }, { active: active, first: first, last: last }); - - var handleClick = function handleClick(e) { - return onClick({ - h: hsl.h, - s: 0.5, - l: offset, - source: 'hsl' - }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.swatch, onClick: handleClick }); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SliderSwatch); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/slider/SliderSwatches.js": -/*!*************************************************************************!*\ - !*** ./node_modules/react-color/es/components/slider/SliderSwatches.js ***! - \*************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SliderSwatches: function() { return /* binding */ SliderSwatches; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _SliderSwatch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SliderSwatch */ "./node_modules/react-color/es/components/slider/SliderSwatch.js"); - - - - - -var SliderSwatches = function SliderSwatches(_ref) { - var onClick = _ref.onClick, - hsl = _ref.hsl; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - swatches: { - marginTop: '20px' - }, - swatch: { - boxSizing: 'border-box', - width: '20%', - paddingRight: '1px', - float: 'left' - }, - clear: { - clear: 'both' - } - } - }); - - // Acceptible difference in floating point equality - var epsilon = 0.1; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatches }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatch__WEBPACK_IMPORTED_MODULE_2__["default"], { - hsl: hsl, - offset: '.80', - active: Math.abs(hsl.l - 0.80) < epsilon && Math.abs(hsl.s - 0.50) < epsilon, - onClick: onClick, - first: true - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatch__WEBPACK_IMPORTED_MODULE_2__["default"], { - hsl: hsl, - offset: '.65', - active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.50) < epsilon, - onClick: onClick - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatch__WEBPACK_IMPORTED_MODULE_2__["default"], { - hsl: hsl, - offset: '.50', - active: Math.abs(hsl.l - 0.50) < epsilon && Math.abs(hsl.s - 0.50) < epsilon, - onClick: onClick - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatch__WEBPACK_IMPORTED_MODULE_2__["default"], { - hsl: hsl, - offset: '.35', - active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.50) < epsilon, - onClick: onClick - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.swatch }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SliderSwatch__WEBPACK_IMPORTED_MODULE_2__["default"], { - hsl: hsl, - offset: '.20', - active: Math.abs(hsl.l - 0.20) < epsilon && Math.abs(hsl.s - 0.50) < epsilon, - onClick: onClick, - last: true - }) - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.clear }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SliderSwatches); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/swatches/Swatches.js": -/*!*********************************************************************!*\ - !*** ./node_modules/react-color/es/components/swatches/Swatches.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Swatches: function() { return /* binding */ Swatches; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var material_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! material-colors */ "./node_modules/material-colors/dist/colors.es2015.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _SwatchesGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SwatchesGroup */ "./node_modules/react-color/es/components/swatches/SwatchesGroup.js"); - - - - - - - - - - -var Swatches = function Swatches(_ref) { - var width = _ref.width, - height = _ref.height, - onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - colors = _ref.colors, - hex = _ref.hex, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_5__["default"])({ - 'default': { - picker: { - width: width, - height: height - }, - overflow: { - height: height, - overflowY: 'scroll' - }, - body: { - padding: '16px 0 6px 16px' - }, - clear: { - clear: 'both' - } - } - }, passedStyles)); - - var handleChange = function handleChange(data, e) { - return onChange({ hex: data, source: 'hex' }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.picker, className: 'swatches-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - _common__WEBPACK_IMPORTED_MODULE_3__.Raised, - null, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.overflow }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body }, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_6__["default"])(colors, function (group) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SwatchesGroup__WEBPACK_IMPORTED_MODULE_4__["default"], { - key: group.toString(), - group: group, - active: hex, - onClick: handleChange, - onSwatchHover: onSwatchHover - }); - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.clear }) - ) - ) - ) - ); -}; - -Swatches.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)]), - height: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)]), - colors: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object) - - /* eslint-disable max-len */ -};Swatches.defaultProps = { - width: 320, - height: 240, - colors: [[material_colors__WEBPACK_IMPORTED_MODULE_2__.red['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.red['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.red['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.red['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.red['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.pink['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.purple['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepPurple['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.indigo['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blue['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightBlue['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.cyan['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.teal['100']], ['#194D33', material_colors__WEBPACK_IMPORTED_MODULE_2__.green['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.green['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.green['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.green['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lightGreen['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.lime['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.yellow['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.amber['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.orange['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.deepOrange['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.brown['100']], [material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['900'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['700'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['500'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['300'], material_colors__WEBPACK_IMPORTED_MODULE_2__.blueGrey['100']], ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF']], - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Swatches)); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/swatches/SwatchesColor.js": -/*!**************************************************************************!*\ - !*** ./node_modules/react-color/es/components/swatches/SwatchesColor.js ***! - \**************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SwatchesColor: function() { return /* binding */ SwatchesColor; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); -/* harmony import */ var _icons_material_CheckIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @icons/material/CheckIcon */ "./node_modules/@icons/material/CheckIcon.js"); - - - - - - - -var SwatchesColor = function SwatchesColor(_ref) { - var color = _ref.color, - _ref$onClick = _ref.onClick, - onClick = _ref$onClick === undefined ? function () {} : _ref$onClick, - onSwatchHover = _ref.onSwatchHover, - first = _ref.first, - last = _ref.last, - active = _ref.active; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - color: { - width: '40px', - height: '24px', - cursor: 'pointer', - background: color, - marginBottom: '1px' - }, - check: { - color: _helpers_color__WEBPACK_IMPORTED_MODULE_2__.getContrastingColor(color), - marginLeft: '8px', - display: 'none' - } - }, - 'first': { - color: { - overflow: 'hidden', - borderRadius: '2px 2px 0 0' - } - }, - 'last': { - color: { - overflow: 'hidden', - borderRadius: '0 0 2px 2px' - } - }, - 'active': { - check: { - display: 'block' - } - }, - 'color-#FFFFFF': { - color: { - boxShadow: 'inset 0 0 0 1px #ddd' - }, - check: { - color: '#333' - } - }, - 'transparent': { - check: { - color: '#333' - } - } - }, { - first: first, - last: last, - active: active, - 'color-#FFFFFF': color === '#FFFFFF', - 'transparent': color === 'transparent' - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - _common__WEBPACK_IMPORTED_MODULE_3__.Swatch, - { - color: color, - style: styles.color, - onClick: onClick, - onHover: onSwatchHover, - focusStyle: { boxShadow: '0 0 4px ' + color } - }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.check }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_icons_material_CheckIcon__WEBPACK_IMPORTED_MODULE_4__["default"], null) - ) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SwatchesColor); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/swatches/SwatchesGroup.js": -/*!**************************************************************************!*\ - !*** ./node_modules/react-color/es/components/swatches/SwatchesGroup.js ***! - \**************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SwatchesGroup: function() { return /* binding */ SwatchesGroup; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var _SwatchesColor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SwatchesColor */ "./node_modules/react-color/es/components/swatches/SwatchesColor.js"); - - - - - - -var SwatchesGroup = function SwatchesGroup(_ref) { - var onClick = _ref.onClick, - onSwatchHover = _ref.onSwatchHover, - group = _ref.group, - active = _ref.active; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])({ - 'default': { - group: { - paddingBottom: '10px', - width: '40px', - float: 'left', - marginRight: '10px' - } - } - }); - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.group }, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_3__["default"])(group, function (color, i) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SwatchesColor__WEBPACK_IMPORTED_MODULE_2__["default"], { - key: color, - color: color, - active: color.toLowerCase() === active, - first: i === 0, - last: i === group.length - 1, - onClick: onClick, - onSwatchHover: onSwatchHover - }); - }) - ); -}; - -/* harmony default export */ __webpack_exports__["default"] = (SwatchesGroup); - -/***/ }), - -/***/ "./node_modules/react-color/es/components/twitter/Twitter.js": -/*!*******************************************************************!*\ - !*** ./node_modules/react-color/es/components/twitter/Twitter.js ***! - \*******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Twitter: function() { return /* binding */ Twitter; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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 reactcss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reactcss */ "./node_modules/reactcss/lib/index.js"); -/* harmony import */ var lodash_es_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash-es/map */ "./node_modules/lodash-es/map.js"); -/* harmony import */ var lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash-es/merge */ "./node_modules/lodash-es/merge.js"); -/* harmony import */ var _helpers_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/color */ "./node_modules/react-color/es/helpers/color.js"); -/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common */ "./node_modules/react-color/es/components/common/index.js"); - - - - - - - - - -var Twitter = function Twitter(_ref) { - var onChange = _ref.onChange, - onSwatchHover = _ref.onSwatchHover, - hex = _ref.hex, - colors = _ref.colors, - width = _ref.width, - triangle = _ref.triangle, - _ref$styles = _ref.styles, - passedStyles = _ref$styles === undefined ? {} : _ref$styles, - _ref$className = _ref.className, - className = _ref$className === undefined ? '' : _ref$className; - - var styles = (0,reactcss__WEBPACK_IMPORTED_MODULE_1__["default"])((0,lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["default"])({ - 'default': { - card: { - width: width, - background: '#fff', - border: '0 solid rgba(0,0,0,0.25)', - boxShadow: '0 1px 4px rgba(0,0,0,0.25)', - borderRadius: '4px', - position: 'relative' - }, - body: { - padding: '15px 9px 9px 15px' - }, - label: { - fontSize: '18px', - color: '#fff' - }, - triangle: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: 'transparent transparent #fff transparent', - position: 'absolute' - }, - triangleShadow: { - width: '0px', - height: '0px', - borderStyle: 'solid', - borderWidth: '0 9px 10px 9px', - borderColor: 'transparent transparent rgba(0,0,0,.1) transparent', - position: 'absolute' - }, - hash: { - background: '#F0F0F0', - height: '30px', - width: '30px', - borderRadius: '4px 0 0 4px', - float: 'left', - color: '#98A1A4', - display: 'flex', - alignItems: 'center', - justifyContent: 'center' - }, - input: { - width: '100px', - fontSize: '14px', - color: '#666', - border: '0px', - outline: 'none', - height: '28px', - boxShadow: 'inset 0 0 0 1px #F0F0F0', - boxSizing: 'content-box', - borderRadius: '0 4px 4px 0', - float: 'left', - paddingLeft: '8px' - }, - swatch: { - width: '30px', - height: '30px', - float: 'left', - borderRadius: '4px', - margin: '0 6px 6px 0' - }, - clear: { - clear: 'both' - } - }, - 'hide-triangle': { - triangle: { - display: 'none' - }, - triangleShadow: { - display: 'none' - } - }, - 'top-left-triangle': { - triangle: { - top: '-10px', - left: '12px' - }, - triangleShadow: { - top: '-11px', - left: '12px' - } - }, - 'top-right-triangle': { - triangle: { - top: '-10px', - right: '12px' - }, - triangleShadow: { - top: '-11px', - right: '12px' - } - } - }, passedStyles), { - 'hide-triangle': triangle === 'hide', - 'top-left-triangle': triangle === 'top-left', - 'top-right-triangle': triangle === 'top-right' - }); - - var handleChange = function handleChange(hexcode, e) { - _helpers_color__WEBPACK_IMPORTED_MODULE_2__.isValidHex(hexcode) && onChange({ - hex: hexcode, - source: 'hex' - }, e); - }; - - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.card, className: 'twitter-picker ' + className }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.triangleShadow }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.triangle }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.body }, - (0,lodash_es_map__WEBPACK_IMPORTED_MODULE_5__["default"])(colors, function (c, i) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.Swatch, { - key: i, - color: c, - hex: c, - style: styles.swatch, - onClick: handleChange, - onHover: onSwatchHover, - focusStyle: { - boxShadow: '0 0 4px ' + c - } - }); - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement( - 'div', - { style: styles.hash }, - '#' - ), - react__WEBPACK_IMPORTED_MODULE_0__.createElement(_common__WEBPACK_IMPORTED_MODULE_3__.EditableInput, { - label: null, - style: { input: styles.input }, - value: hex.replace('#', ''), - onChange: handleChange - }), - react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { style: styles.clear }) - ) - ); -}; - -Twitter.propTypes = { - width: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)]), - triangle: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(['hide', 'top-left', 'top-right']), - colors: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)), - styles: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object) -}; - -Twitter.defaultProps = { - width: 276, - colors: ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF'], - triangle: 'top-left', - styles: {} -}; - -/* harmony default export */ __webpack_exports__["default"] = ((0,_common__WEBPACK_IMPORTED_MODULE_3__.ColorWrap)(Twitter)); - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/alpha.js": -/*!******************************************************!*\ - !*** ./node_modules/react-color/es/helpers/alpha.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ calculateChange: function() { return /* binding */ calculateChange; } -/* harmony export */ }); -var calculateChange = function calculateChange(e, hsl, direction, initialA, container) { - var containerWidth = container.clientWidth; - var containerHeight = container.clientHeight; - var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX; - var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY; - var left = x - (container.getBoundingClientRect().left + window.pageXOffset); - var top = y - (container.getBoundingClientRect().top + window.pageYOffset); - - if (direction === 'vertical') { - var a = void 0; - if (top < 0) { - a = 0; - } else if (top > containerHeight) { - a = 1; - } else { - a = Math.round(top * 100 / containerHeight) / 100; - } - - if (hsl.a !== a) { - return { - h: hsl.h, - s: hsl.s, - l: hsl.l, - a: a, - source: 'rgb' - }; - } - } else { - var _a = void 0; - if (left < 0) { - _a = 0; - } else if (left > containerWidth) { - _a = 1; - } else { - _a = Math.round(left * 100 / containerWidth) / 100; - } - - if (initialA !== _a) { - return { - h: hsl.h, - s: hsl.s, - l: hsl.l, - a: _a, - source: 'rgb' - }; - } - } - return null; -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/checkboard.js": -/*!***********************************************************!*\ - !*** ./node_modules/react-color/es/helpers/checkboard.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ get: function() { return /* binding */ get; }, -/* harmony export */ render: function() { return /* binding */ render; } -/* harmony export */ }); -var checkboardCache = {}; - -var render = function render(c1, c2, size, serverCanvas) { - if (typeof document === 'undefined' && !serverCanvas) { - return null; - } - var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas'); - canvas.width = size * 2; - canvas.height = size * 2; - var ctx = canvas.getContext('2d'); - if (!ctx) { - return null; - } // If no context can be found, return early. - ctx.fillStyle = c1; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = c2; - ctx.fillRect(0, 0, size, size); - ctx.translate(size, size); - ctx.fillRect(0, 0, size, size); - return canvas.toDataURL(); -}; - -var get = function get(c1, c2, size, serverCanvas) { - var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : ''); - - if (checkboardCache[key]) { - return checkboardCache[key]; - } - - var checkboard = render(c1, c2, size, serverCanvas); - checkboardCache[key] = checkboard; - return checkboard; -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/color.js": -/*!******************************************************!*\ - !*** ./node_modules/react-color/es/helpers/color.js ***! - \******************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getContrastingColor: function() { return /* binding */ getContrastingColor; }, -/* harmony export */ isValidHex: function() { return /* binding */ isValidHex; }, -/* harmony export */ isvalidColorString: function() { return /* binding */ isvalidColorString; }, -/* harmony export */ red: function() { return /* binding */ red; }, -/* harmony export */ simpleCheckForValidColor: function() { return /* binding */ simpleCheckForValidColor; }, -/* harmony export */ toState: function() { return /* binding */ toState; } -/* harmony export */ }); -/* harmony import */ var lodash_es_each__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash-es/each */ "./node_modules/lodash-es/forEach.js"); -/* harmony import */ var tinycolor2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tinycolor2 */ "./node_modules/tinycolor2/esm/tinycolor.js"); - - - -var simpleCheckForValidColor = function simpleCheckForValidColor(data) { - var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v']; - var checked = 0; - var passed = 0; - (0,lodash_es_each__WEBPACK_IMPORTED_MODULE_1__["default"])(keysToCheck, function (letter) { - if (data[letter]) { - checked += 1; - if (!isNaN(data[letter])) { - passed += 1; - } - if (letter === 's' || letter === 'l') { - var percentPatt = /^\d+%$/; - if (percentPatt.test(data[letter])) { - passed += 1; - } - } - } - }); - return checked === passed ? data : false; -}; - -var toState = function toState(data, oldHue) { - var color = data.hex ? (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__["default"])(data.hex) : (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__["default"])(data); - var hsl = color.toHsl(); - var hsv = color.toHsv(); - var rgb = color.toRgb(); - var hex = color.toHex(); - if (hsl.s === 0) { - hsl.h = oldHue || 0; - hsv.h = oldHue || 0; - } - var transparent = hex === '000000' && rgb.a === 0; - - return { - hsl: hsl, - hex: transparent ? 'transparent' : '#' + hex, - rgb: rgb, - hsv: hsv, - oldHue: data.h || oldHue || hsl.h, - source: data.source - }; -}; - -var isValidHex = function isValidHex(hex) { - if (hex === 'transparent') { - return true; - } - // disable hex4 and hex8 - var lh = String(hex).charAt(0) === '#' ? 1 : 0; - return hex.length !== 4 + lh && hex.length < 7 + lh && (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__["default"])(hex).isValid(); -}; - -var getContrastingColor = function getContrastingColor(data) { - if (!data) { - return '#fff'; - } - var col = toState(data); - if (col.hex === 'transparent') { - return 'rgba(0,0,0,0.4)'; - } - var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000; - return yiq >= 128 ? '#000' : '#fff'; -}; - -var red = { - hsl: { a: 1, h: 0, l: 0.5, s: 1 }, - hex: '#ff0000', - rgb: { r: 255, g: 0, b: 0, a: 1 }, - hsv: { h: 0, s: 1, v: 1, a: 1 } -}; - -var isvalidColorString = function isvalidColorString(string, type) { - var stringWithoutDegree = string.replace('°', ''); - return (0,tinycolor2__WEBPACK_IMPORTED_MODULE_0__["default"])(type + ' (' + stringWithoutDegree + ')')._ok; -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/hue.js": -/*!****************************************************!*\ - !*** ./node_modules/react-color/es/helpers/hue.js ***! - \****************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ calculateChange: function() { return /* binding */ calculateChange; } -/* harmony export */ }); -var calculateChange = function calculateChange(e, direction, hsl, container) { - var containerWidth = container.clientWidth; - var containerHeight = container.clientHeight; - var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX; - var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY; - var left = x - (container.getBoundingClientRect().left + window.pageXOffset); - var top = y - (container.getBoundingClientRect().top + window.pageYOffset); - - if (direction === 'vertical') { - var h = void 0; - if (top < 0) { - h = 359; - } else if (top > containerHeight) { - h = 0; - } else { - var percent = -(top * 100 / containerHeight) + 100; - h = 360 * percent / 100; - } - - if (hsl.h !== h) { - return { - h: h, - s: hsl.s, - l: hsl.l, - a: hsl.a, - source: 'hsl' - }; - } - } else { - var _h = void 0; - if (left < 0) { - _h = 0; - } else if (left > containerWidth) { - _h = 359; - } else { - var _percent = left * 100 / containerWidth; - _h = 360 * _percent / 100; - } - - if (hsl.h !== _h) { - return { - h: _h, - s: hsl.s, - l: hsl.l, - a: hsl.a, - source: 'hsl' - }; - } - } - return null; -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/interaction.js": -/*!************************************************************!*\ - !*** ./node_modules/react-color/es/helpers/interaction.js ***! - \************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ handleFocus: function() { return /* binding */ handleFocus; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/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; } - -/* eslint-disable no-invalid-this */ - - -var handleFocus = function handleFocus(Component) { - var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span'; - return function (_React$Component) { - _inherits(Focus, _React$Component); - - function Focus() { - var _ref; - - var _temp, _this, _ret; - - _classCallCheck(this, Focus); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.state = { focus: false }, _this.handleFocus = function () { - return _this.setState({ focus: true }); - }, _this.handleBlur = function () { - return _this.setState({ focus: false }); - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - _createClass(Focus, [{ - key: 'render', - value: function render() { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement( - Span, - { onFocus: this.handleFocus, onBlur: this.handleBlur }, - react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, _extends({}, this.props, this.state)) - ); - } - }]); - - return Focus; - }(react__WEBPACK_IMPORTED_MODULE_0__.Component); -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/helpers/saturation.js": -/*!***********************************************************!*\ - !*** ./node_modules/react-color/es/helpers/saturation.js ***! - \***********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ calculateChange: function() { return /* binding */ calculateChange; } -/* harmony export */ }); -var calculateChange = function calculateChange(e, hsl, container) { - var _container$getBoundin = container.getBoundingClientRect(), - containerWidth = _container$getBoundin.width, - containerHeight = _container$getBoundin.height; - - var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX; - var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY; - var left = x - (container.getBoundingClientRect().left + window.pageXOffset); - var top = y - (container.getBoundingClientRect().top + window.pageYOffset); - - if (left < 0) { - left = 0; - } else if (left > containerWidth) { - left = containerWidth; - } - - if (top < 0) { - top = 0; - } else if (top > containerHeight) { - top = containerHeight; - } - - var saturation = left / containerWidth; - var bright = 1 - top / containerHeight; - - return { - h: hsl.h, - s: saturation, - v: bright, - a: hsl.a, - source: 'hsv' - }; -}; - -/***/ }), - -/***/ "./node_modules/react-color/es/index.js": -/*!**********************************************!*\ - !*** ./node_modules/react-color/es/index.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AlphaPicker: function() { return /* reexport safe */ _components_alpha_Alpha__WEBPACK_IMPORTED_MODULE_0__["default"]; }, -/* harmony export */ BlockPicker: function() { return /* reexport safe */ _components_block_Block__WEBPACK_IMPORTED_MODULE_1__["default"]; }, -/* harmony export */ ChromePicker: function() { return /* reexport safe */ _components_chrome_Chrome__WEBPACK_IMPORTED_MODULE_3__["default"]; }, -/* harmony export */ CirclePicker: function() { return /* reexport safe */ _components_circle_Circle__WEBPACK_IMPORTED_MODULE_2__["default"]; }, -/* harmony export */ CompactPicker: function() { return /* reexport safe */ _components_compact_Compact__WEBPACK_IMPORTED_MODULE_4__["default"]; }, -/* harmony export */ CustomPicker: function() { return /* reexport safe */ _components_common_ColorWrap__WEBPACK_IMPORTED_MODULE_14__["default"]; }, -/* harmony export */ GithubPicker: function() { return /* reexport safe */ _components_github_Github__WEBPACK_IMPORTED_MODULE_5__["default"]; }, -/* harmony export */ GooglePicker: function() { return /* reexport safe */ _components_google_Google__WEBPACK_IMPORTED_MODULE_13__["default"]; }, -/* harmony export */ HuePicker: function() { return /* reexport safe */ _components_hue_Hue__WEBPACK_IMPORTED_MODULE_6__["default"]; }, -/* harmony export */ MaterialPicker: function() { return /* reexport safe */ _components_material_Material__WEBPACK_IMPORTED_MODULE_7__["default"]; }, -/* harmony export */ PhotoshopPicker: function() { return /* reexport safe */ _components_photoshop_Photoshop__WEBPACK_IMPORTED_MODULE_8__["default"]; }, -/* harmony export */ SketchPicker: function() { return /* reexport safe */ _components_sketch_Sketch__WEBPACK_IMPORTED_MODULE_9__["default"]; }, -/* harmony export */ SliderPicker: function() { return /* reexport safe */ _components_slider_Slider__WEBPACK_IMPORTED_MODULE_10__["default"]; }, -/* harmony export */ SwatchesPicker: function() { return /* reexport safe */ _components_swatches_Swatches__WEBPACK_IMPORTED_MODULE_11__["default"]; }, -/* harmony export */ TwitterPicker: function() { return /* reexport safe */ _components_twitter_Twitter__WEBPACK_IMPORTED_MODULE_12__["default"]; }, -/* harmony export */ "default": function() { return /* reexport safe */ _components_chrome_Chrome__WEBPACK_IMPORTED_MODULE_3__["default"]; } -/* harmony export */ }); -/* harmony import */ var _components_alpha_Alpha__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/alpha/Alpha */ "./node_modules/react-color/es/components/alpha/Alpha.js"); -/* harmony import */ var _components_block_Block__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/block/Block */ "./node_modules/react-color/es/components/block/Block.js"); -/* harmony import */ var _components_circle_Circle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/circle/Circle */ "./node_modules/react-color/es/components/circle/Circle.js"); -/* harmony import */ var _components_chrome_Chrome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/chrome/Chrome */ "./node_modules/react-color/es/components/chrome/Chrome.js"); -/* harmony import */ var _components_compact_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/compact/Compact */ "./node_modules/react-color/es/components/compact/Compact.js"); -/* harmony import */ var _components_github_Github__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/github/Github */ "./node_modules/react-color/es/components/github/Github.js"); -/* harmony import */ var _components_hue_Hue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/hue/Hue */ "./node_modules/react-color/es/components/hue/Hue.js"); -/* harmony import */ var _components_material_Material__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/material/Material */ "./node_modules/react-color/es/components/material/Material.js"); -/* harmony import */ var _components_photoshop_Photoshop__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/photoshop/Photoshop */ "./node_modules/react-color/es/components/photoshop/Photoshop.js"); -/* harmony import */ var _components_sketch_Sketch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/sketch/Sketch */ "./node_modules/react-color/es/components/sketch/Sketch.js"); -/* harmony import */ var _components_slider_Slider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/slider/Slider */ "./node_modules/react-color/es/components/slider/Slider.js"); -/* harmony import */ var _components_swatches_Swatches__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/swatches/Swatches */ "./node_modules/react-color/es/components/swatches/Swatches.js"); -/* harmony import */ var _components_twitter_Twitter__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/twitter/Twitter */ "./node_modules/react-color/es/components/twitter/Twitter.js"); -/* harmony import */ var _components_google_Google__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/google/Google */ "./node_modules/react-color/es/components/google/Google.js"); -/* harmony import */ var _components_common_ColorWrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/common/ColorWrap */ "./node_modules/react-color/es/components/common/ColorWrap.js"); - - - - - - - - - - - - - - - - - - - -/***/ }), - -/***/ "./node_modules/react-dom/cjs/react-dom.development.js": -/*!*************************************************************!*\ - !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! - \*************************************************************/ -/***/ (function(__unused_webpack_module, exports, __webpack_require__) { - -"use strict"; -/** @license React v16.14.0 - * 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 Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js"); -var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); -var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js"); - -var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. -// Current owner and dispatcher used to share the same ref, -// but PR #14548 split them out to better support the react-debug-tools package. - -if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { - ReactSharedInternals.ReactCurrentDispatcher = { - current: null - }; -} - -if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { - ReactSharedInternals.ReactCurrentBatchConfig = { - suspense: null - }; -} - -// by calls to these methods by a Babel plugin. -// -// In PROD (or in packages without access to React internals), -// they are left as they are instead. - -function warn(format) { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - printWarning('warn', format, args); - } -} -function error(format) { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - printWarning('error', format, args); - } -} - -function printWarning(level, format, args) { - // When changing this logic, you might want to also - // update consoleWithStackDev.www.js as well. - { - var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; - - if (!hasExistingStack) { - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - - if (stack !== '') { - format += '%s'; - args = args.concat([stack]); - } - } - - var argsWithFormat = args.map(function (item) { - return '' + item; - }); // Careful: RN currently depends on this prefix - - argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 - // eslint-disable-next-line react-internal/no-production-logging - - Function.prototype.apply.call(console[level], 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) {} - } -} - -if (!React) { - { - throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." ); - } -} - -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 - // unintuitive, 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. - if (!(typeof document !== 'undefined')) { - { - throw Error( "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." ); - } - } - - 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; // 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; - -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 { - { - { - throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." ); - } - } - } -} - -var getFiberCurrentPropsFromNode = null; -var getInstanceFromNode = null; -var getNodeFromInstance = null; -function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) { - getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl; - getInstanceFromNode = getInstanceFromNodeImpl; - getNodeFromInstance = getNodeFromInstanceImpl; - - { - if (!getNodeFromInstance || !getInstanceFromNode) { - error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.'); - } - } -} -var validateEventDispatches; - -{ - 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; - - if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { - error('EventPluginUtils: Invalid `event`.'); - } - }; -} -/** - * 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; -} - -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 DehydratedFragment = 18; -var SuspenseListComponent = 19; -var FundamentalComponent = 20; -var ScopeComponent = 21; -var Block = 22; - -/** - * 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); - - if (!(pluginIndex > -1)) { - { - throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." ); - } - } - - if (plugins[pluginIndex]) { - continue; - } - - if (!pluginModule.extractEvents) { - { - throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." ); - } - } - - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; - - for (var eventName in publishedEvents) { - if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { - { - throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." ); - } - } - } - } -} -/** - * 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) { - if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) { - { - throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." ); - } - } - - 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) { - if (!!registrationNameModules[registrationName]) { - { - throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." ); - } - } - - 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. - */ - -/** - * 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 - */ - -function injectEventPluginOrder(injectedEventPluginOrder) { - if (!!eventPluginOrder) { - { - throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." ); - } - } // Clone the ordering so it cannot be dynamically mutated. - - - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); -} -/** - * Injects plugins to be used by plugin event system. 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 - */ - -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) { - if (!!namesToPlugins[pluginName]) { - { - throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." ); - } - } - - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } - } - - if (isOrderingDirty) { - recomputePluginOrdering(); - } -} - -var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); - -var PLUGIN_EVENT_SYSTEM = 1; -var IS_REPLAYED = 1 << 5; -var IS_FIRST_ANCESTOR = 1 << 6; - -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; - } - - if (!(typeof restoreImpl === 'function')) { - { - throw Error( "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." ); - } - } - - var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted. - - if (stateNode) { - var _props = getFiberCurrentPropsFromNode(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]); - } - } -} - -var enableProfilerTimer = true; // Trace which interactions trigger each commit. - -var enableDeprecatedFlareAPI = false; // Experimental Host Component support. - -var enableFundamentalAPI = false; // Experimental Scope support. -var warnAboutStringRefs = false; - -// 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 discreteUpdatesImpl = function (fn, a, b, c, d) { - return fn(a, b, c, d); -}; - -var flushDiscreteUpdatesImpl = function () {}; - -var batchedEventUpdatesImpl = batchedUpdatesImpl; -var isInsideEventHandler = false; -var isBatchingEventUpdates = false; - -function finishEventHandler() { - // 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. - 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. - flushDiscreteUpdatesImpl(); - restoreStateIfNeeded(); - } -} - -function batchedUpdates(fn, bookkeeping) { - if (isInsideEventHandler) { - // If we are currently inside another batch, we need to wait until it - // fully completes before restoring state. - return fn(bookkeeping); - } - - isInsideEventHandler = true; - - try { - return batchedUpdatesImpl(fn, bookkeeping); - } finally { - isInsideEventHandler = false; - finishEventHandler(); - } -} -function batchedEventUpdates(fn, a, b) { - if (isBatchingEventUpdates) { - // If we are currently inside another batch, we need to wait until it - // fully completes before restoring state. - return fn(a, b); - } - - isBatchingEventUpdates = true; - - try { - return batchedEventUpdatesImpl(fn, a, b); - } finally { - isBatchingEventUpdates = false; - finishEventHandler(); - } -} // This is for the React Flare event system -function discreteUpdates(fn, a, b, c, d) { - var prevIsInsideEventHandler = isInsideEventHandler; - isInsideEventHandler = true; - - try { - return discreteUpdatesImpl(fn, a, b, c, d); - } finally { - isInsideEventHandler = prevIsInsideEventHandler; - - if (!isInsideEventHandler) { - finishEventHandler(); - } - } -} -function flushDiscreteUpdatesIfNeeded(timeStamp) { - // event.timeStamp isn't overly reliable due to inconsistencies in - // how different browsers have historically provided the time stamp. - // Some browsers provide high-resolution time stamps for all events, - // some provide low-resolution time stamps for all events. FF < 52 - // even mixes both time stamps together. Some browsers even report - // negative time stamps or time stamps that are 0 (iOS9) in some cases. - // Given we are only comparing two time stamps with equality (!==), - // we are safe from the resolution differences. If the time stamp is 0 - // we bail-out of preventing the flush, which can affect semantics, - // such as if an earlier flush removes or adds event listeners that - // are fired in the subsequent flush. However, this is the same - // behaviour as we had before this change, so the risks are low. - if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) { - flushDiscreteUpdatesImpl(); - } -} -function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) { - batchedUpdatesImpl = _batchedUpdatesImpl; - discreteUpdatesImpl = _discreteUpdatesImpl; - flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl; - batchedEventUpdatesImpl = _batchedEventUpdatesImpl; -} - -var DiscreteEvent = 0; -var UserBlockingEvent = 1; -var ContinuousEvent = 2; - -// 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; - - { - error('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, sanitizeURL) { - 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; - this.sanitizeURL = sanitizeURL; -} // 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. - -var reservedProps = ['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']; - -reservedProps.forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty - name, // attributeName - null, // attributeNamespace - false); -}); // 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 - false); -}); // 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 - false); -}); // 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 - false); -}); // 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', 'disablePictureInPicture', '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 - false); -}); // 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' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty - name, // attributeName - null, // attributeNamespace - false); -}); // These are HTML attributes that are "overloaded booleans": they behave like -// booleans, but can also accept a string value. - -['capture', 'download' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty - name, // attributeName - null, // attributeNamespace - false); -}); // These are HTML attributes that must be positive numbers. - -['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].forEach(function (name) { - properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty - name, // attributeName - null, // attributeNamespace - false); -}); // 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 - false); -}); -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 -// scraping 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' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].forEach(function (attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, null, // attributeNamespace - false); -}); // String SVG attributes with the xlink namespace. - -['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].forEach(function (attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty - attributeName, 'http://www.w3.org/1999/xlink', false); -}); // String SVG attributes with the xml namespace. - -['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list, -// you'll need to set attributeName to name.toLowerCase() -// instead in the assignment below. -].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', false); -}); // These attribute exists both in HTML and SVG. -// The attribute name is case-sensitive in SVG so we can't just use -// the React name like we do for attributes that exist only in HTML. - -['tabIndex', 'crossOrigin'].forEach(function (attributeName) { - properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty - attributeName.toLowerCase(), // attributeName - null, // attributeNamespace - false); -}); // These attributes accept URLs. These must not allow javascript: URLS. -// These will also need to accept Trusted Types object in the future. - -var xlinkHref = 'xlinkHref'; -properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty -'xlink:href', 'http://www.w3.org/1999/xlink', true); -['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { - properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty - attributeName.toLowerCase(), // attributeName - null, // attributeNamespace - true); -}); - -var ReactDebugCurrentFrame = null; - -{ - ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; -} // A javascript: URL can contain leading C0 control or \u0020 SPACE, -// and any newline or tab are filtered out as if they're not part of the URL. -// https://url.spec.whatwg.org/#url-parsing -// Tab or newline are defined as \r\n\t: -// https://infra.spec.whatwg.org/#ascii-tab-or-newline -// A C0 control is a code point in the range \u0000 NULL to \u001F -// INFORMATION SEPARATOR ONE, inclusive: -// https://infra.spec.whatwg.org/#c0-control-or-space - -/* eslint-disable max-len */ - - -var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; -var didWarn = false; - -function sanitizeURL(url) { - { - if (!didWarn && isJavaScriptProtocol.test(url)) { - didWarn = true; - - error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); - } - } -} - -/** - * 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 { - if ( propertyInfo.sanitizeURL) { - // If we haven't fully disabled javascript: URLs, and if - // the hydration is successful of a javascript: URL, we - // still want to warn on the client. - sanitizeURL('' + expected); - } - - 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; - - if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { - // If attribute type is boolean, we know for sure it won't be an execution sink - // and we won't require Trusted Type here. - attributeValue = ''; - } else { - // `setAttribute` with objects becomes only `[object]` in IE8/9, - // ('' + value) makes it output the correct toString()-value. - { - attributeValue = '' + value; - } - - if (propertyInfo.sanitizeURL) { - sanitizeURL(attributeValue.toString()); - } - } - - if (attributeNamespace) { - node.setAttributeNS(attributeNamespace, attributeName, attributeValue); - } else { - node.setAttribute(attributeName, attributeValue); - } - } -} - -var BEFORE_SLASH_RE = /^(.*)[\\\/]/; -function describeComponentFrame (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; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary -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_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; -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 Uninitialized = -1; -var Pending = 0; -var Resolved = 1; -var Rejected = 2; -function refineResolvedLazyComponent(lazyComponent) { - return lazyComponent._status === Resolved ? lazyComponent._result : null; -} -function initializeLazyComponentType(lazyComponent) { - if (lazyComponent._status === Uninitialized) { - lazyComponent._status = Pending; - var ctor = lazyComponent._ctor; - var thenable = ctor(); - lazyComponent._result = thenable; - thenable.then(function (moduleObject) { - if (lazyComponent._status === Pending) { - var defaultExport = moduleObject.default; - - { - if (defaultExport === undefined) { - error('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; - } - }); - } -} - -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') { - error('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_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'; - - case REACT_SUSPENSE_LIST_TYPE: - return 'SuspenseList'; - } - - 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_BLOCK_TYPE: - return getComponentName(type.render); - - case REACT_LAZY_TYPE: - { - var thenable = type; - var resolvedThenable = refineResolvedLazyComponent(thenable); - - if (resolvedThenable) { - return getComponentName(resolvedThenable); - } - - break; - } - } - } - - return null; -} - -var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - -function describeFiber(fiber) { - switch (fiber.tag) { - case HostRoot: - case HostPortal: - case HostText: - case Fragment: - case ContextProvider: - case ContextConsumer: - return ''; - - default: - 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); - } -} - -function getStackByFiberInDevAndProd(workInProgress) { - var info = ''; - var node = workInProgress; - - do { - info += describeFiber(node); - node = node.return; - } while (node); - - return info; -} -var current = null; -var isRendering = false; -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); - } -} -function resetCurrentFiber() { - { - ReactDebugCurrentFrame$1.getCurrentStack = null; - current = null; - isRendering = false; - } -} -function setCurrentFiber(fiber) { - { - ReactDebugCurrentFrame$1.getCurrentStack = getCurrentFiberStackInDev; - current = fiber; - isRendering = false; - } -} -function setIsRendering(rendering) { - { - isRendering = rendering; - } -} - -// 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$2 = null; -var ReactControlledValuePropTypes = { - checkPropTypes: null -}; - -{ - ReactDebugCurrentFrame$2 = 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 || enableDeprecatedFlareAPI ) { - 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 || enableDeprecatedFlareAPI ) { - 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$2.getStackAddendum); - }; -} - -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 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 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) { - error('%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) { - error('%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) { - error('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) { - error('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; - } - - { - // 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)); - } - } - - { - // 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) { - { - // 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; - } - } - } - - { - // 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 = ''; - } - - { - // 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); - - if (!otherProps) { - { - throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." ); - } - } // 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 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 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 ). - - 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