|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
/******/ // The module cache
|
|
|
/******/ var installedModules = {};
|
|
|
/******/
|
|
|
/******/ // The require function
|
|
|
/******/ function __webpack_require__(moduleId) {
|
|
|
/******/
|
|
|
/******/ // Check if module is in cache
|
|
|
/******/ if(installedModules[moduleId]) {
|
|
|
/******/ return installedModules[moduleId].exports;
|
|
|
/******/ }
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
/******/ var module = installedModules[moduleId] = {
|
|
|
/******/ i: moduleId,
|
|
|
/******/ l: false,
|
|
|
/******/ exports: {}
|
|
|
/******/ };
|
|
|
/******/
|
|
|
/******/ // Execute the module function
|
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
|
/******/
|
|
|
/******/ // Flag the module as loaded
|
|
|
/******/ module.l = true;
|
|
|
/******/
|
|
|
/******/ // Return the exports of the module
|
|
|
/******/ return module.exports;
|
|
|
/******/ }
|
|
|
/******/
|
|
|
/******/
|
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
|
/******/ __webpack_require__.m = modules;
|
|
|
/******/
|
|
|
/******/ // expose the module cache
|
|
|
/******/ __webpack_require__.c = installedModules;
|
|
|
/******/
|
|
|
/******/ // define getter function for harmony exports
|
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
|
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
|
/******/ }
|
|
|
/******/ };
|
|
|
/******/
|
|
|
/******/ // define __esModule on exports
|
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
/******/ }
|
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
/******/ };
|
|
|
/******/
|
|
|
/******/ // create a fake namespace object
|
|
|
/******/ // mode & 1: value is a module id, require it
|
|
|
/******/ // mode & 2: merge all properties of value into the ns
|
|
|
/******/ // mode & 4: return value when already ns object
|
|
|
/******/ // mode & 8|1: behave like require
|
|
|
/******/ __webpack_require__.t = function(value, mode) {
|
|
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
|
/******/ if(mode & 8) return value;
|
|
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
|
/******/ var ns = Object.create(null);
|
|
|
/******/ __webpack_require__.r(ns);
|
|
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
|
/******/ return ns;
|
|
|
/******/ };
|
|
|
/******/
|
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
|
/******/ __webpack_require__.n = function(module) {
|
|
|
/******/ var getter = module && module.__esModule ?
|
|
|
/******/ function getDefault() { return module['default']; } :
|
|
|
/******/ function getModuleExports() { return module; };
|
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
|
/******/ return getter;
|
|
|
/******/ };
|
|
|
/******/
|
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
|
/******/
|
|
|
/******/ // __webpack_public_path__
|
|
|
/******/ __webpack_require__.p = "";
|
|
|
/******/
|
|
|
/******/
|
|
|
/******/ // Load entry module and return exports
|
|
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
|
/******/ })
|
|
|
/************************************************************************/
|
|
|
/******/ ({
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/colors/dist/index.esm.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/colors/dist/index.esm.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! exports provided: blue, cyan, geekblue, generate, gold, green, grey, lime, magenta, orange, presetDarkPalettes, presetPalettes, presetPrimaryColors, purple, red, volcano, yellow */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blue", function() { return blue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cyan", function() { return cyan; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geekblue", function() { return geekblue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gold", function() { return gold; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "green", function() { return green; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grey", function() { return grey; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lime", function() { return lime; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "magenta", function() { return magenta; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "orange", function() { return orange; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "presetDarkPalettes", function() { return presetDarkPalettes; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "presetPalettes", function() { return presetPalettes; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "presetPrimaryColors", function() { return presetPrimaryColors; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purple", function() { return purple; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "red", function() { return red; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "volcano", function() { return volcano; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yellow", function() { return yellow; });
|
|
|
/* harmony import */ var _ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ctrl/tinycolor */ "./node_modules/@ctrl/tinycolor/dist/module/public_api.js");
|
|
|
|
|
|
|
|
|
var hueStep = 2; // 色相阶梯
|
|
|
|
|
|
var saturationStep = 0.16; // 饱和度阶梯,浅色部分
|
|
|
|
|
|
var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
|
|
|
|
|
|
var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
|
|
|
|
|
|
var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
|
|
|
|
|
|
var lightColorCount = 5; // 浅色数量,主色上
|
|
|
|
|
|
var darkColorCount = 4; // 深色数量,主色下
|
|
|
// 暗色主题颜色映射关系表
|
|
|
|
|
|
var darkColorMap = [{
|
|
|
index: 7,
|
|
|
opacity: 0.15
|
|
|
}, {
|
|
|
index: 6,
|
|
|
opacity: 0.25
|
|
|
}, {
|
|
|
index: 5,
|
|
|
opacity: 0.3
|
|
|
}, {
|
|
|
index: 5,
|
|
|
opacity: 0.45
|
|
|
}, {
|
|
|
index: 5,
|
|
|
opacity: 0.65
|
|
|
}, {
|
|
|
index: 5,
|
|
|
opacity: 0.85
|
|
|
}, {
|
|
|
index: 4,
|
|
|
opacity: 0.9
|
|
|
}, {
|
|
|
index: 3,
|
|
|
opacity: 0.95
|
|
|
}, {
|
|
|
index: 2,
|
|
|
opacity: 0.97
|
|
|
}, {
|
|
|
index: 1,
|
|
|
opacity: 0.98
|
|
|
}]; // Wrapper function ported from TinyColor.prototype.toHsv
|
|
|
// Keep it here because of `hsv.h * 360`
|
|
|
|
|
|
function toHsv(_ref) {
|
|
|
var r = _ref.r,
|
|
|
g = _ref.g,
|
|
|
b = _ref.b;
|
|
|
var hsv = Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["rgbToHsv"])(r, g, b);
|
|
|
return {
|
|
|
h: hsv.h * 360,
|
|
|
s: hsv.s,
|
|
|
v: hsv.v
|
|
|
};
|
|
|
} // Wrapper function ported from TinyColor.prototype.toHexString
|
|
|
// Keep it here because of the prefix `#`
|
|
|
|
|
|
|
|
|
function toHex(_ref2) {
|
|
|
var r = _ref2.r,
|
|
|
g = _ref2.g,
|
|
|
b = _ref2.b;
|
|
|
return "#".concat(Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["rgbToHex"])(r, g, b, false));
|
|
|
} // Wrapper function ported from TinyColor.prototype.mix, not treeshakable.
|
|
|
// Amount in range [0, 1]
|
|
|
// Assume color1 & color2 has no alpha, since the following src code did so.
|
|
|
|
|
|
|
|
|
function mix(rgb1, rgb2, amount) {
|
|
|
var p = amount / 100;
|
|
|
var rgb = {
|
|
|
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
|
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
|
b: (rgb2.b - rgb1.b) * p + rgb1.b
|
|
|
};
|
|
|
return rgb;
|
|
|
}
|
|
|
|
|
|
function getHue(hsv, i, light) {
|
|
|
var hue; // 根据色相不同,色相转向不同
|
|
|
|
|
|
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
|
|
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
|
|
} else {
|
|
|
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
|
|
}
|
|
|
|
|
|
if (hue < 0) {
|
|
|
hue += 360;
|
|
|
} else if (hue >= 360) {
|
|
|
hue -= 360;
|
|
|
}
|
|
|
|
|
|
return hue;
|
|
|
}
|
|
|
|
|
|
function getSaturation(hsv, i, light) {
|
|
|
// grey color don't change saturation
|
|
|
if (hsv.h === 0 && hsv.s === 0) {
|
|
|
return hsv.s;
|
|
|
}
|
|
|
|
|
|
var saturation;
|
|
|
|
|
|
if (light) {
|
|
|
saturation = hsv.s - saturationStep * i;
|
|
|
} else if (i === darkColorCount) {
|
|
|
saturation = hsv.s + saturationStep;
|
|
|
} else {
|
|
|
saturation = hsv.s + saturationStep2 * i;
|
|
|
} // 边界值修正
|
|
|
|
|
|
|
|
|
if (saturation > 1) {
|
|
|
saturation = 1;
|
|
|
} // 第一格的 s 限制在 0.06-0.1 之间
|
|
|
|
|
|
|
|
|
if (light && i === lightColorCount && saturation > 0.1) {
|
|
|
saturation = 0.1;
|
|
|
}
|
|
|
|
|
|
if (saturation < 0.06) {
|
|
|
saturation = 0.06;
|
|
|
}
|
|
|
|
|
|
return Number(saturation.toFixed(2));
|
|
|
}
|
|
|
|
|
|
function getValue(hsv, i, light) {
|
|
|
var value;
|
|
|
|
|
|
if (light) {
|
|
|
value = hsv.v + brightnessStep1 * i;
|
|
|
} else {
|
|
|
value = hsv.v - brightnessStep2 * i;
|
|
|
}
|
|
|
|
|
|
if (value > 1) {
|
|
|
value = 1;
|
|
|
}
|
|
|
|
|
|
return Number(value.toFixed(2));
|
|
|
}
|
|
|
|
|
|
function generate(color) {
|
|
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
var patterns = [];
|
|
|
var pColor = Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["inputToRGB"])(color);
|
|
|
|
|
|
for (var i = lightColorCount; i > 0; i -= 1) {
|
|
|
var hsv = toHsv(pColor);
|
|
|
var colorString = toHex(Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["inputToRGB"])({
|
|
|
h: getHue(hsv, i, true),
|
|
|
s: getSaturation(hsv, i, true),
|
|
|
v: getValue(hsv, i, true)
|
|
|
}));
|
|
|
patterns.push(colorString);
|
|
|
}
|
|
|
|
|
|
patterns.push(toHex(pColor));
|
|
|
|
|
|
for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
|
|
var _hsv = toHsv(pColor);
|
|
|
|
|
|
var _colorString = toHex(Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["inputToRGB"])({
|
|
|
h: getHue(_hsv, _i),
|
|
|
s: getSaturation(_hsv, _i),
|
|
|
v: getValue(_hsv, _i)
|
|
|
}));
|
|
|
|
|
|
patterns.push(_colorString);
|
|
|
} // dark theme patterns
|
|
|
|
|
|
|
|
|
if (opts.theme === 'dark') {
|
|
|
return darkColorMap.map(function (_ref3) {
|
|
|
var index = _ref3.index,
|
|
|
opacity = _ref3.opacity;
|
|
|
var darkColorString = toHex(mix(Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["inputToRGB"])(opts.backgroundColor || '#141414'), Object(_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__["inputToRGB"])(patterns[index]), opacity * 100));
|
|
|
return darkColorString;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return patterns;
|
|
|
}
|
|
|
|
|
|
var presetPrimaryColors = {
|
|
|
red: '#F5222D',
|
|
|
volcano: '#FA541C',
|
|
|
orange: '#FA8C16',
|
|
|
gold: '#FAAD14',
|
|
|
yellow: '#FADB14',
|
|
|
lime: '#A0D911',
|
|
|
green: '#52C41A',
|
|
|
cyan: '#13C2C2',
|
|
|
blue: '#1890FF',
|
|
|
geekblue: '#2F54EB',
|
|
|
purple: '#722ED1',
|
|
|
magenta: '#EB2F96',
|
|
|
grey: '#666666'
|
|
|
};
|
|
|
var presetPalettes = {};
|
|
|
var presetDarkPalettes = {};
|
|
|
Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
presetPalettes[key] = generate(presetPrimaryColors[key]);
|
|
|
presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes
|
|
|
|
|
|
presetDarkPalettes[key] = generate(presetPrimaryColors[key], {
|
|
|
theme: 'dark',
|
|
|
backgroundColor: '#141414'
|
|
|
});
|
|
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
|
});
|
|
|
var red = presetPalettes.red;
|
|
|
var volcano = presetPalettes.volcano;
|
|
|
var gold = presetPalettes.gold;
|
|
|
var orange = presetPalettes.orange;
|
|
|
var yellow = presetPalettes.yellow;
|
|
|
var lime = presetPalettes.lime;
|
|
|
var green = presetPalettes.green;
|
|
|
var cyan = presetPalettes.cyan;
|
|
|
var blue = presetPalettes.blue;
|
|
|
var geekblue = presetPalettes.geekblue;
|
|
|
var purple = presetPalettes.purple;
|
|
|
var magenta = presetPalettes.magenta;
|
|
|
var grey = presetPalettes.grey;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/BarsOutlined.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/BarsOutlined.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var BarsOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "bars", "theme": "outlined" };
|
|
|
exports.default = BarsOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CaretDownOutlined.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CaretDownOutlined.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CaretDownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, "name": "caret-down", "theme": "outlined" };
|
|
|
exports.default = CaretDownOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CaretUpOutlined.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CaretUpOutlined.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CaretUpOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, "name": "caret-up", "theme": "outlined" };
|
|
|
exports.default = CaretUpOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleFilled.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleFilled.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CheckCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
|
|
|
exports.default = CheckCircleFilled;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleOutlined.js":
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleOutlined.js ***!
|
|
|
\***************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CheckCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
|
|
|
exports.default = CheckCircleOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CheckOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CheckOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
|
|
exports.default = CheckOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleFilled.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleFilled.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
|
|
exports.default = CloseCircleFilled;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleOutlined.js":
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleOutlined.js ***!
|
|
|
\***************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" } }, { "tag": "path", "attrs": { "d": "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "close-circle", "theme": "outlined" };
|
|
|
exports.default = CloseCircleOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/CloseOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/CloseOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var CloseOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
|
|
|
exports.default = CloseOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/DoubleLeftOutlined.js":
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/DoubleLeftOutlined.js ***!
|
|
|
\**************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var DoubleLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, "name": "double-left", "theme": "outlined" };
|
|
|
exports.default = DoubleLeftOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/DoubleRightOutlined.js":
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/DoubleRightOutlined.js ***!
|
|
|
\***************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var DoubleRightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, "name": "double-right", "theme": "outlined" };
|
|
|
exports.default = DoubleRightOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/DownOutlined.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/DownOutlined.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
|
|
exports.default = DownOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/EllipsisOutlined.js":
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/EllipsisOutlined.js ***!
|
|
|
\************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var EllipsisOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "ellipsis", "theme": "outlined" };
|
|
|
exports.default = EllipsisOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleFilled.js":
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleFilled.js ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var ExclamationCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
|
|
|
exports.default = ExclamationCircleFilled;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleOutlined.js":
|
|
|
/*!*********************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleOutlined.js ***!
|
|
|
\*********************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
|
|
exports.default = ExclamationCircleOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/FilterFilled.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/FilterFilled.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var FilterFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z" } }] }, "name": "filter", "theme": "filled" };
|
|
|
exports.default = FilterFilled;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleFilled.js":
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleFilled.js ***!
|
|
|
\************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var InfoCircleFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
|
|
|
exports.default = InfoCircleFilled;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleOutlined.js":
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleOutlined.js ***!
|
|
|
\**************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var InfoCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, "name": "info-circle", "theme": "outlined" };
|
|
|
exports.default = InfoCircleOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/LeftOutlined.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/LeftOutlined.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
|
|
exports.default = LeftOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/LoadingOutlined.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/LoadingOutlined.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
|
|
exports.default = LoadingOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/RightOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/RightOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
|
|
exports.default = RightOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
|
|
exports.default = SearchOutlined;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/BarsOutlined.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/BarsOutlined.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _BarsOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/BarsOutlined */ "./node_modules/@ant-design/icons/lib/icons/BarsOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _BarsOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CaretDownOutlined.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CaretDownOutlined.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CaretDownOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CaretDownOutlined */ "./node_modules/@ant-design/icons/lib/icons/CaretDownOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CaretDownOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CaretUpOutlined.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CaretUpOutlined.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CaretUpOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CaretUpOutlined */ "./node_modules/@ant-design/icons/lib/icons/CaretUpOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CaretUpOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CheckCircleFilled.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CheckCircleFilled.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CheckCircleFilled = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CheckCircleFilled */ "./node_modules/@ant-design/icons/lib/icons/CheckCircleFilled.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CheckCircleFilled;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CheckCircleOutlined.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CheckCircleOutlined.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CheckCircleOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CheckCircleOutlined */ "./node_modules/@ant-design/icons/lib/icons/CheckCircleOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CheckCircleOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CheckOutlined.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CheckOutlined.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CheckOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CheckOutlined */ "./node_modules/@ant-design/icons/lib/icons/CheckOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CheckOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CloseCircleFilled.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CloseCircleFilled.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CloseCircleFilled = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CloseCircleFilled */ "./node_modules/@ant-design/icons/lib/icons/CloseCircleFilled.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CloseCircleFilled;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CloseCircleOutlined.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CloseCircleOutlined.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CloseCircleOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CloseCircleOutlined */ "./node_modules/@ant-design/icons/lib/icons/CloseCircleOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CloseCircleOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/CloseOutlined.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/CloseOutlined.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _CloseOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/CloseOutlined */ "./node_modules/@ant-design/icons/lib/icons/CloseOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _CloseOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/DoubleLeftOutlined.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/DoubleLeftOutlined.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _DoubleLeftOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/DoubleLeftOutlined */ "./node_modules/@ant-design/icons/lib/icons/DoubleLeftOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _DoubleLeftOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/DoubleRightOutlined.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/DoubleRightOutlined.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _DoubleRightOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/DoubleRightOutlined */ "./node_modules/@ant-design/icons/lib/icons/DoubleRightOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _DoubleRightOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/DownOutlined.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/DownOutlined.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _DownOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/DownOutlined */ "./node_modules/@ant-design/icons/lib/icons/DownOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _DownOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/EllipsisOutlined.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/EllipsisOutlined.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _EllipsisOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/EllipsisOutlined */ "./node_modules/@ant-design/icons/lib/icons/EllipsisOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _EllipsisOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/ExclamationCircleFilled.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/ExclamationCircleFilled.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _ExclamationCircleFilled = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/ExclamationCircleFilled */ "./node_modules/@ant-design/icons/lib/icons/ExclamationCircleFilled.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _ExclamationCircleFilled;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/ExclamationCircleOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/ExclamationCircleOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _ExclamationCircleOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/ExclamationCircleOutlined */ "./node_modules/@ant-design/icons/lib/icons/ExclamationCircleOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _ExclamationCircleOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/FilterFilled.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/FilterFilled.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _FilterFilled = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/FilterFilled */ "./node_modules/@ant-design/icons/lib/icons/FilterFilled.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _FilterFilled;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/InfoCircleFilled.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/InfoCircleFilled.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _InfoCircleFilled = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/InfoCircleFilled */ "./node_modules/@ant-design/icons/lib/icons/InfoCircleFilled.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _InfoCircleFilled;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/InfoCircleOutlined.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/InfoCircleOutlined.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _InfoCircleOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/InfoCircleOutlined */ "./node_modules/@ant-design/icons/lib/icons/InfoCircleOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _InfoCircleOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/LeftOutlined.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/LeftOutlined.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _LeftOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/LeftOutlined */ "./node_modules/@ant-design/icons/lib/icons/LeftOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _LeftOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/LoadingOutlined.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/LoadingOutlined.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _LoadingOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/LoadingOutlined */ "./node_modules/@ant-design/icons/lib/icons/LoadingOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _LoadingOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/RightOutlined.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/RightOutlined.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _RightOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/RightOutlined */ "./node_modules/@ant-design/icons/lib/icons/RightOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _RightOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/SearchOutlined.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/SearchOutlined.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _SearchOutlined = _interopRequireDefault(__webpack_require__(/*! ./lib/icons/SearchOutlined */ "./node_modules/@ant-design/icons/lib/icons/SearchOutlined.js"));
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
|
|
|
|
var _default = _SearchOutlined;
|
|
|
exports.default = _default;
|
|
|
module.exports = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/components/AntdIcon.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _Context = _interopRequireDefault(__webpack_require__(/*! ./Context */ "./node_modules/@ant-design/icons/lib/components/Context.js"));
|
|
|
|
|
|
var _IconBase = _interopRequireDefault(__webpack_require__(/*! ./IconBase */ "./node_modules/@ant-design/icons/lib/components/IconBase.js"));
|
|
|
|
|
|
var _twoTonePrimaryColor = __webpack_require__(/*! ./twoTonePrimaryColor */ "./node_modules/@ant-design/icons/lib/components/twoTonePrimaryColor.js");
|
|
|
|
|
|
var _utils = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons/lib/utils.js");
|
|
|
|
|
|
// Initial setting
|
|
|
// should move it to antd main repo?
|
|
|
(0, _twoTonePrimaryColor.setTwoToneColor)('#1890ff');
|
|
|
var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var className = props.className,
|
|
|
icon = props.icon,
|
|
|
spin = props.spin,
|
|
|
rotate = props.rotate,
|
|
|
tabIndex = props.tabIndex,
|
|
|
onClick = props.onClick,
|
|
|
twoToneColor = props.twoToneColor,
|
|
|
restProps = (0, _objectWithoutProperties2.default)(props, ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_Context.default),
|
|
|
_React$useContext$pre = _React$useContext.prefixCls,
|
|
|
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre;
|
|
|
|
|
|
var classString = (0, _classnames.default)(prefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
|
|
|
var iconTabIndex = tabIndex;
|
|
|
|
|
|
if (iconTabIndex === undefined && onClick) {
|
|
|
iconTabIndex = -1;
|
|
|
}
|
|
|
|
|
|
var svgStyle = rotate ? {
|
|
|
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
|
transform: "rotate(".concat(rotate, "deg)")
|
|
|
} : undefined;
|
|
|
|
|
|
var _normalizeTwoToneColo = (0, _utils.normalizeTwoToneColors)(twoToneColor),
|
|
|
_normalizeTwoToneColo2 = (0, _slicedToArray2.default)(_normalizeTwoToneColo, 2),
|
|
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", Object.assign({
|
|
|
role: "img",
|
|
|
"aria-label": icon.name
|
|
|
}, restProps, {
|
|
|
ref: ref,
|
|
|
tabIndex: iconTabIndex,
|
|
|
onClick: onClick,
|
|
|
className: classString
|
|
|
}), /*#__PURE__*/React.createElement(_IconBase.default, {
|
|
|
icon: icon,
|
|
|
primaryColor: primaryColor,
|
|
|
secondaryColor: secondaryColor,
|
|
|
style: svgStyle
|
|
|
}));
|
|
|
});
|
|
|
Icon.displayName = 'AntdIcon';
|
|
|
Icon.getTwoToneColor = _twoTonePrimaryColor.getTwoToneColor;
|
|
|
Icon.setTwoToneColor = _twoTonePrimaryColor.setTwoToneColor;
|
|
|
var _default = Icon;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/components/Context.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/components/Context.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
var IconContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
|
var _default = IconContext;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/components/IconBase.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/components/IconBase.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _utils = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons/lib/utils.js");
|
|
|
|
|
|
var twoToneColorPalette = {
|
|
|
primaryColor: '#333',
|
|
|
secondaryColor: '#E6E6E6',
|
|
|
calculated: false
|
|
|
};
|
|
|
|
|
|
function setTwoToneColors(_ref) {
|
|
|
var primaryColor = _ref.primaryColor,
|
|
|
secondaryColor = _ref.secondaryColor;
|
|
|
twoToneColorPalette.primaryColor = primaryColor;
|
|
|
twoToneColorPalette.secondaryColor = secondaryColor || (0, _utils.getSecondaryColor)(primaryColor);
|
|
|
twoToneColorPalette.calculated = !!secondaryColor;
|
|
|
}
|
|
|
|
|
|
function getTwoToneColors() {
|
|
|
return (0, _objectSpread2.default)({}, twoToneColorPalette);
|
|
|
}
|
|
|
|
|
|
var IconBase = function IconBase(props) {
|
|
|
var icon = props.icon,
|
|
|
className = props.className,
|
|
|
onClick = props.onClick,
|
|
|
style = props.style,
|
|
|
primaryColor = props.primaryColor,
|
|
|
secondaryColor = props.secondaryColor,
|
|
|
restProps = (0, _objectWithoutProperties2.default)(props, ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"]);
|
|
|
var colors = twoToneColorPalette;
|
|
|
|
|
|
if (primaryColor) {
|
|
|
colors = {
|
|
|
primaryColor: primaryColor,
|
|
|
secondaryColor: secondaryColor || (0, _utils.getSecondaryColor)(primaryColor)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
(0, _utils.useInsertStyles)();
|
|
|
(0, _utils.warning)((0, _utils.isIconDefinition)(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
|
|
|
|
if (!(0, _utils.isIconDefinition)(icon)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var target = icon;
|
|
|
|
|
|
if (target && typeof target.icon === 'function') {
|
|
|
target = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, target), {}, {
|
|
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return (0, _utils.generate)(target.icon, "svg-".concat(target.name), (0, _objectSpread2.default)({
|
|
|
className: className,
|
|
|
onClick: onClick,
|
|
|
style: style,
|
|
|
'data-icon': target.name,
|
|
|
width: '1em',
|
|
|
height: '1em',
|
|
|
fill: 'currentColor',
|
|
|
'aria-hidden': 'true'
|
|
|
}, restProps));
|
|
|
};
|
|
|
|
|
|
IconBase.displayName = 'IconReact';
|
|
|
IconBase.getTwoToneColors = getTwoToneColors;
|
|
|
IconBase.setTwoToneColors = setTwoToneColors;
|
|
|
var _default = IconBase;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/components/twoTonePrimaryColor.js":
|
|
|
/*!******************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/components/twoTonePrimaryColor.js ***!
|
|
|
\******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.setTwoToneColor = setTwoToneColor;
|
|
|
exports.getTwoToneColor = getTwoToneColor;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _IconBase = _interopRequireDefault(__webpack_require__(/*! ./IconBase */ "./node_modules/@ant-design/icons/lib/components/IconBase.js"));
|
|
|
|
|
|
var _utils = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons/lib/utils.js");
|
|
|
|
|
|
function setTwoToneColor(twoToneColor) {
|
|
|
var _normalizeTwoToneColo = (0, _utils.normalizeTwoToneColors)(twoToneColor),
|
|
|
_normalizeTwoToneColo2 = (0, _slicedToArray2.default)(_normalizeTwoToneColo, 2),
|
|
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
|
|
|
|
return _IconBase.default.setTwoToneColors({
|
|
|
primaryColor: primaryColor,
|
|
|
secondaryColor: secondaryColor
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function getTwoToneColor() {
|
|
|
var colors = _IconBase.default.getTwoToneColors();
|
|
|
|
|
|
if (!colors.calculated) {
|
|
|
return colors.primaryColor;
|
|
|
}
|
|
|
|
|
|
return [colors.primaryColor, colors.secondaryColor];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/BarsOutlined.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/BarsOutlined.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _BarsOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/BarsOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/BarsOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var BarsOutlined = function BarsOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _BarsOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
BarsOutlined.displayName = 'BarsOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(BarsOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CaretDownOutlined.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CaretDownOutlined.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CaretDownOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CaretDownOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CaretDownOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CaretDownOutlined = function CaretDownOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CaretDownOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CaretDownOutlined.displayName = 'CaretDownOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CaretDownOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CaretUpOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CaretUpOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CaretUpOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CaretUpOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CaretUpOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CaretUpOutlined = function CaretUpOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CaretUpOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CaretUpOutlined.displayName = 'CaretUpOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CaretUpOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CheckCircleFilled.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CheckCircleFilled.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CheckCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CheckCircleFilled */ "./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleFilled.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CheckCircleFilled = function CheckCircleFilled(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CheckCircleFilled.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CheckCircleFilled.displayName = 'CheckCircleFilled';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CheckCircleFilled);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CheckCircleOutlined.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CheckCircleOutlined.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CheckCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CheckCircleOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CheckCircleOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CheckCircleOutlined = function CheckCircleOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CheckCircleOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CheckCircleOutlined.displayName = 'CheckCircleOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CheckCircleOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CheckOutlined.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CheckOutlined.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CheckOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CheckOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CheckOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CheckOutlined = function CheckOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CheckOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CheckOutlined.displayName = 'CheckOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CheckOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CloseCircleFilled.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CloseCircleFilled.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CloseCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CloseCircleFilled */ "./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleFilled.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CloseCircleFilled.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CloseCircleFilled.displayName = 'CloseCircleFilled';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CloseCircleFilled);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CloseCircleOutlined.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CloseCircleOutlined.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CloseCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CloseCircleOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CloseCircleOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CloseCircleOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CloseCircleOutlined.displayName = 'CloseCircleOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CloseCircleOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/CloseOutlined.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/CloseOutlined.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _CloseOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/CloseOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/CloseOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var CloseOutlined = function CloseOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _CloseOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
CloseOutlined.displayName = 'CloseOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(CloseOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/DoubleLeftOutlined.js":
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/DoubleLeftOutlined.js ***!
|
|
|
\************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _DoubleLeftOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/DoubleLeftOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/DoubleLeftOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var DoubleLeftOutlined = function DoubleLeftOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _DoubleLeftOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
DoubleLeftOutlined.displayName = 'DoubleLeftOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(DoubleLeftOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/DoubleRightOutlined.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/DoubleRightOutlined.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _DoubleRightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/DoubleRightOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/DoubleRightOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var DoubleRightOutlined = function DoubleRightOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _DoubleRightOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
DoubleRightOutlined.displayName = 'DoubleRightOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(DoubleRightOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/DownOutlined.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/DownOutlined.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _DownOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/DownOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/DownOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var DownOutlined = function DownOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _DownOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
DownOutlined.displayName = 'DownOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(DownOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/EllipsisOutlined.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/EllipsisOutlined.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _EllipsisOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/EllipsisOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/EllipsisOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var EllipsisOutlined = function EllipsisOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _EllipsisOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
EllipsisOutlined.displayName = 'EllipsisOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(EllipsisOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/ExclamationCircleFilled.js":
|
|
|
/*!*****************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/ExclamationCircleFilled.js ***!
|
|
|
\*****************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _ExclamationCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/ExclamationCircleFilled */ "./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleFilled.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _ExclamationCircleFilled.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/ExclamationCircleOutlined.js":
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/ExclamationCircleOutlined.js ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _ExclamationCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/ExclamationCircleOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/ExclamationCircleOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _ExclamationCircleOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
ExclamationCircleOutlined.displayName = 'ExclamationCircleOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(ExclamationCircleOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/FilterFilled.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/FilterFilled.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _FilterFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/FilterFilled */ "./node_modules/@ant-design/icons-svg/lib/asn/FilterFilled.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var FilterFilled = function FilterFilled(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _FilterFilled.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
FilterFilled.displayName = 'FilterFilled';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(FilterFilled);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/InfoCircleFilled.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/InfoCircleFilled.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _InfoCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/InfoCircleFilled */ "./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleFilled.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var InfoCircleFilled = function InfoCircleFilled(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _InfoCircleFilled.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
InfoCircleFilled.displayName = 'InfoCircleFilled';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(InfoCircleFilled);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/InfoCircleOutlined.js":
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/InfoCircleOutlined.js ***!
|
|
|
\************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _InfoCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/InfoCircleOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/InfoCircleOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var InfoCircleOutlined = function InfoCircleOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _InfoCircleOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
InfoCircleOutlined.displayName = 'InfoCircleOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(InfoCircleOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/LeftOutlined.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/LeftOutlined.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _LeftOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/LeftOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/LeftOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var LeftOutlined = function LeftOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _LeftOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
LeftOutlined.displayName = 'LeftOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(LeftOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/LoadingOutlined.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/LoadingOutlined.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _LoadingOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/LoadingOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/LoadingOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var LoadingOutlined = function LoadingOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _LoadingOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
LoadingOutlined.displayName = 'LoadingOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(LoadingOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/RightOutlined.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/RightOutlined.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _RightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/RightOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/RightOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var RightOutlined = function RightOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _RightOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
RightOutlined.displayName = 'RightOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(RightOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/icons/SearchOutlined.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/icons/SearchOutlined.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _SearchOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons-svg/lib/asn/SearchOutlined */ "./node_modules/@ant-design/icons-svg/lib/asn/SearchOutlined.js"));
|
|
|
|
|
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(/*! ../components/AntdIcon */ "./node_modules/@ant-design/icons/lib/components/AntdIcon.js"));
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
var SearchOutlined = function SearchOutlined(props, ref) {
|
|
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, Object.assign({}, props, {
|
|
|
ref: ref,
|
|
|
icon: _SearchOutlined.default
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
SearchOutlined.displayName = 'SearchOutlined';
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(SearchOutlined);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ant-design/icons/lib/utils.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/@ant-design/icons/lib/utils.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.warning = warning;
|
|
|
exports.isIconDefinition = isIconDefinition;
|
|
|
exports.normalizeAttrs = normalizeAttrs;
|
|
|
exports.generate = generate;
|
|
|
exports.getSecondaryColor = getSecondaryColor;
|
|
|
exports.normalizeTwoToneColors = normalizeTwoToneColors;
|
|
|
exports.useInsertStyles = exports.iconStyles = exports.svgBaseProps = void 0;
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _colors = __webpack_require__(/*! @ant-design/colors */ "./node_modules/@ant-design/colors/dist/index.esm.js");
|
|
|
|
|
|
var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _dynamicCSS = __webpack_require__(/*! rc-util/lib/Dom/dynamicCSS */ "./node_modules/rc-util/lib/Dom/dynamicCSS.js");
|
|
|
|
|
|
var _Context = _interopRequireDefault(__webpack_require__(/*! ./components/Context */ "./node_modules/@ant-design/icons/lib/components/Context.js"));
|
|
|
|
|
|
function warning(valid, message) {
|
|
|
(0, _warning.default)(valid, "[@ant-design/icons] ".concat(message));
|
|
|
}
|
|
|
|
|
|
function isIconDefinition(target) {
|
|
|
return (0, _typeof2.default)(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && ((0, _typeof2.default)(target.icon) === 'object' || typeof target.icon === 'function');
|
|
|
}
|
|
|
|
|
|
function normalizeAttrs() {
|
|
|
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
return Object.keys(attrs).reduce(function (acc, key) {
|
|
|
var val = attrs[key];
|
|
|
|
|
|
switch (key) {
|
|
|
case 'class':
|
|
|
acc.className = val;
|
|
|
delete acc.class;
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
acc[key] = val;
|
|
|
}
|
|
|
|
|
|
return acc;
|
|
|
}, {});
|
|
|
}
|
|
|
|
|
|
function generate(node, key, rootProps) {
|
|
|
if (!rootProps) {
|
|
|
return /*#__PURE__*/_react.default.createElement(node.tag, (0, _objectSpread2.default)({
|
|
|
key: key
|
|
|
}, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
|
|
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/_react.default.createElement(node.tag, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
|
key: key
|
|
|
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
|
|
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
function getSecondaryColor(primaryColor) {
|
|
|
// choose the second color
|
|
|
return (0, _colors.generate)(primaryColor)[0];
|
|
|
}
|
|
|
|
|
|
function normalizeTwoToneColors(twoToneColor) {
|
|
|
if (!twoToneColor) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
|
} // These props make sure that the SVG behaviours like general text.
|
|
|
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
|
|
|
|
|
|
|
var svgBaseProps = {
|
|
|
width: '1em',
|
|
|
height: '1em',
|
|
|
fill: 'currentColor',
|
|
|
'aria-hidden': 'true',
|
|
|
focusable: 'false'
|
|
|
};
|
|
|
exports.svgBaseProps = svgBaseProps;
|
|
|
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
|
|
exports.iconStyles = iconStyles;
|
|
|
|
|
|
var useInsertStyles = function useInsertStyles() {
|
|
|
var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
|
|
|
|
|
|
var _useContext = (0, _react.useContext)(_Context.default),
|
|
|
csp = _useContext.csp;
|
|
|
|
|
|
(0, _react.useEffect)(function () {
|
|
|
(0, _dynamicCSS.updateCSS)(styleStr, '@ant-design-icons', {
|
|
|
prepend: true,
|
|
|
csp: csp
|
|
|
});
|
|
|
}, []);
|
|
|
};
|
|
|
|
|
|
exports.useInsertStyles = useInsertStyles;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
|
|
\*****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) {
|
|
|
if (len == null || len > arr.length) len = arr.length;
|
|
|
|
|
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
|
arr2[i] = arr[i];
|
|
|
}
|
|
|
|
|
|
return arr2;
|
|
|
}
|
|
|
|
|
|
module.exports = _arrayLikeToArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _arrayWithHoles(arr) {
|
|
|
if (Array.isArray(arr)) return arr;
|
|
|
}
|
|
|
|
|
|
module.exports = _arrayWithHoles;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
|
|
|
|
function _arrayWithoutHoles(arr) {
|
|
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
|
|
}
|
|
|
|
|
|
module.exports = _arrayWithoutHoles;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _assertThisInitialized(self) {
|
|
|
if (self === void 0) {
|
|
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
|
}
|
|
|
|
|
|
return self;
|
|
|
}
|
|
|
|
|
|
module.exports = _assertThisInitialized;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _classCallCheck(instance, Constructor) {
|
|
|
if (!(instance instanceof Constructor)) {
|
|
|
throw new TypeError("Cannot call a class as a function");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = _classCallCheck;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/createClass.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _defineProperties(target, props) {
|
|
|
for (var i = 0; i < props.length; i++) {
|
|
|
var descriptor = props[i];
|
|
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
|
descriptor.configurable = true;
|
|
|
if ("value" in descriptor) descriptor.writable = true;
|
|
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
|
return Constructor;
|
|
|
}
|
|
|
|
|
|
module.exports = _createClass;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/createSuper.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/createSuper.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js");
|
|
|
|
|
|
var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
|
|
|
|
|
|
var possibleConstructorReturn = __webpack_require__(/*! ./possibleConstructorReturn.js */ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
|
|
|
|
|
|
function _createSuper(Derived) {
|
|
|
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
|
|
return function _createSuperInternal() {
|
|
|
var Super = getPrototypeOf(Derived),
|
|
|
result;
|
|
|
|
|
|
if (hasNativeReflectConstruct) {
|
|
|
var NewTarget = getPrototypeOf(this).constructor;
|
|
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
|
} else {
|
|
|
result = Super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
return possibleConstructorReturn(this, result);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = _createSuper;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
module.exports = _defineProperty;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayLikeToArray; });
|
|
|
function _arrayLikeToArray(arr, len) {
|
|
|
if (len == null || len > arr.length) len = arr.length;
|
|
|
|
|
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
|
arr2[i] = arr[i];
|
|
|
}
|
|
|
|
|
|
return arr2;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithHoles; });
|
|
|
function _arrayWithHoles(arr) {
|
|
|
if (Array.isArray(arr)) return arr;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithoutHoles; });
|
|
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
|
|
|
|
function _arrayWithoutHoles(arr) {
|
|
|
if (Array.isArray(arr)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
|
\**************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _assertThisInitialized; });
|
|
|
function _assertThisInitialized(self) {
|
|
|
if (self === void 0) {
|
|
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
|
}
|
|
|
|
|
|
return self;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _asyncToGenerator; });
|
|
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
try {
|
|
|
var info = gen[key](arg);
|
|
|
var value = info.value;
|
|
|
} catch (error) {
|
|
|
reject(error);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (info.done) {
|
|
|
resolve(value);
|
|
|
} else {
|
|
|
Promise.resolve(value).then(_next, _throw);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _asyncToGenerator(fn) {
|
|
|
return function () {
|
|
|
var self = this,
|
|
|
args = arguments;
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
var gen = fn.apply(self, args);
|
|
|
|
|
|
function _next(value) {
|
|
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
|
}
|
|
|
|
|
|
function _throw(err) {
|
|
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
|
}
|
|
|
|
|
|
_next(undefined);
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _classCallCheck; });
|
|
|
function _classCallCheck(instance, Constructor) {
|
|
|
if (!(instance instanceof Constructor)) {
|
|
|
throw new TypeError("Cannot call a class as a function");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _createClass; });
|
|
|
function _defineProperties(target, props) {
|
|
|
for (var i = 0; i < props.length; i++) {
|
|
|
var descriptor = props[i];
|
|
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
|
descriptor.configurable = true;
|
|
|
if ("value" in descriptor) descriptor.writable = true;
|
|
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
|
return Constructor;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/createSuper.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/createSuper.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _createSuper; });
|
|
|
/* harmony import */ var _getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
|
/* harmony import */ var _isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js");
|
|
|
/* harmony import */ var _possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./possibleConstructorReturn.js */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
|
|
|
|
|
|
|
|
|
|
function _createSuper(Derived) {
|
|
|
var hasNativeReflectConstruct = Object(_isNativeReflectConstruct_js__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
|
|
return function _createSuperInternal() {
|
|
|
var Super = Object(_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Derived),
|
|
|
result;
|
|
|
|
|
|
if (hasNativeReflectConstruct) {
|
|
|
var NewTarget = Object(_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this).constructor;
|
|
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
|
} else {
|
|
|
result = Super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
return Object(_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this, result);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/extends.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _extends; });
|
|
|
function _extends() {
|
|
|
_extends = Object.assign || function (target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i];
|
|
|
|
|
|
for (var key in source) {
|
|
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
};
|
|
|
|
|
|
return _extends.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _getPrototypeOf; });
|
|
|
function _getPrototypeOf(o) {
|
|
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
|
};
|
|
|
return _getPrototypeOf(o);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _inherits; });
|
|
|
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
|
|
|
|
function _inherits(subClass, superClass) {
|
|
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
|
}
|
|
|
|
|
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
|
constructor: {
|
|
|
value: subClass,
|
|
|
writable: true,
|
|
|
configurable: true
|
|
|
}
|
|
|
});
|
|
|
if (superClass) Object(_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(subClass, superClass);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js":
|
|
|
/*!*****************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js ***!
|
|
|
\*****************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _isNativeReflectConstruct; });
|
|
|
function _isNativeReflectConstruct() {
|
|
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
|
if (Reflect.construct.sham) return false;
|
|
|
if (typeof Proxy === "function") return true;
|
|
|
|
|
|
try {
|
|
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
|
return true;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
|
|
|
function _iterableToArray(iter) {
|
|
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArrayLimit; });
|
|
|
function _iterableToArrayLimit(arr, i) {
|
|
|
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
|
|
|
|
|
if (_i == null) return;
|
|
|
var _arr = [];
|
|
|
var _n = true;
|
|
|
var _d = false;
|
|
|
|
|
|
var _s, _e;
|
|
|
|
|
|
try {
|
|
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
|
_arr.push(_s.value);
|
|
|
|
|
|
if (i && _arr.length === i) break;
|
|
|
}
|
|
|
} catch (err) {
|
|
|
_d = true;
|
|
|
_e = err;
|
|
|
} finally {
|
|
|
try {
|
|
|
if (!_n && _i["return"] != null) _i["return"]();
|
|
|
} finally {
|
|
|
if (_d) throw _e;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return _arr;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _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.");
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableSpread; });
|
|
|
function _nonIterableSpread() {
|
|
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectSpread2; });
|
|
|
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) {
|
|
|
var keys = Object.keys(object);
|
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
|
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
|
});
|
|
|
keys.push.apply(keys, symbols);
|
|
|
}
|
|
|
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
function _objectSpread2(target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
|
|
|
|
if (i % 2) {
|
|
|
ownKeys(Object(source), true).forEach(function (key) {
|
|
|
Object(_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
|
|
|
});
|
|
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
|
} else {
|
|
|
ownKeys(Object(source)).forEach(function (key) {
|
|
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
|
|
|
/*!****************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
|
|
|
\****************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutProperties; });
|
|
|
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
|
|
|
|
function _objectWithoutProperties(source, excluded) {
|
|
|
if (source == null) return {};
|
|
|
var target = Object(_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded);
|
|
|
var key, i;
|
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
|
|
|
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
|
key = sourceSymbolKeys[i];
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
|
|
|
/*!*********************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
|
|
|
\*********************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectWithoutPropertiesLoose; });
|
|
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
if (source == null) return {};
|
|
|
var target = {};
|
|
|
var sourceKeys = Object.keys(source);
|
|
|
var key, i;
|
|
|
|
|
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
|
key = sourceKeys[i];
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
|
/*!******************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
|
\******************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _possibleConstructorReturn; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
|
|
|
|
|
|
function _possibleConstructorReturn(self, call) {
|
|
|
if (call && (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(call) === "object" || typeof call === "function")) {
|
|
|
return call;
|
|
|
}
|
|
|
|
|
|
return Object(_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__["default"])(self);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
|
\*******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _setPrototypeOf; });
|
|
|
function _setPrototypeOf(o, p) {
|
|
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
|
o.__proto__ = p;
|
|
|
return o;
|
|
|
};
|
|
|
|
|
|
return _setPrototypeOf(o, p);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _slicedToArray; });
|
|
|
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
|
/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
|
|
|
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
|
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _slicedToArray(arr, i) {
|
|
|
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toArray; });
|
|
|
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
|
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
|
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
|
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _toArray(arr) {
|
|
|
return Object(_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || Object(_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
|
|
|
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
|
|
|
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
|
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
|
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _toConsumableArray(arr) {
|
|
|
return Object(_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || Object(_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _typeof; });
|
|
|
function _typeof(obj) {
|
|
|
"@babel/helpers - typeof";
|
|
|
|
|
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
|
_typeof = function _typeof(obj) {
|
|
|
return typeof obj;
|
|
|
};
|
|
|
} else {
|
|
|
_typeof = function _typeof(obj) {
|
|
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return _typeof(obj);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
|
/*!*******************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
|
\*******************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _unsupportedIterableToArray; });
|
|
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
|
|
|
|
function _unsupportedIterableToArray(o, minLen) {
|
|
|
if (!o) return;
|
|
|
if (typeof o === "string") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/extends.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/extends.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _extends() {
|
|
|
module.exports = _extends = Object.assign || function (target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i];
|
|
|
|
|
|
for (var key in source) {
|
|
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
};
|
|
|
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
return _extends.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
module.exports = _extends;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _getPrototypeOf(o) {
|
|
|
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
|
};
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
return _getPrototypeOf(o);
|
|
|
}
|
|
|
|
|
|
module.exports = _getPrototypeOf;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/inherits.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
|
|
|
|
function _inherits(subClass, superClass) {
|
|
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
|
}
|
|
|
|
|
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
|
constructor: {
|
|
|
value: subClass,
|
|
|
writable: true,
|
|
|
configurable: true
|
|
|
}
|
|
|
});
|
|
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
|
}
|
|
|
|
|
|
module.exports = _inherits;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _interopRequireDefault(obj) {
|
|
|
return obj && obj.__esModule ? obj : {
|
|
|
"default": obj
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = _interopRequireDefault;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/interopRequireWildcard.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
|
|
|
|
|
|
function _getRequireWildcardCache() {
|
|
|
if (typeof WeakMap !== "function") return null;
|
|
|
var cache = new WeakMap();
|
|
|
|
|
|
_getRequireWildcardCache = function _getRequireWildcardCache() {
|
|
|
return cache;
|
|
|
};
|
|
|
|
|
|
return cache;
|
|
|
}
|
|
|
|
|
|
function _interopRequireWildcard(obj) {
|
|
|
if (obj && obj.__esModule) {
|
|
|
return obj;
|
|
|
}
|
|
|
|
|
|
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
|
return {
|
|
|
"default": obj
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var cache = _getRequireWildcardCache();
|
|
|
|
|
|
if (cache && cache.has(obj)) {
|
|
|
return cache.get(obj);
|
|
|
}
|
|
|
|
|
|
var newObj = {};
|
|
|
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
|
|
|
|
for (var key in obj) {
|
|
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
|
|
|
|
if (desc && (desc.get || desc.set)) {
|
|
|
Object.defineProperty(newObj, key, desc);
|
|
|
} else {
|
|
|
newObj[key] = obj[key];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
newObj["default"] = obj;
|
|
|
|
|
|
if (cache) {
|
|
|
cache.set(obj, newObj);
|
|
|
}
|
|
|
|
|
|
return newObj;
|
|
|
}
|
|
|
|
|
|
module.exports = _interopRequireWildcard;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
|
if (Reflect.construct.sham) return false;
|
|
|
if (typeof Proxy === "function") return true;
|
|
|
|
|
|
try {
|
|
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
|
return true;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = _isNativeReflectConstruct;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _iterableToArray(iter) {
|
|
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
|
}
|
|
|
|
|
|
module.exports = _iterableToArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _iterableToArrayLimit(arr, i) {
|
|
|
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
|
|
|
|
|
if (_i == null) return;
|
|
|
var _arr = [];
|
|
|
var _n = true;
|
|
|
var _d = false;
|
|
|
|
|
|
var _s, _e;
|
|
|
|
|
|
try {
|
|
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
|
_arr.push(_s.value);
|
|
|
|
|
|
if (i && _arr.length === i) break;
|
|
|
}
|
|
|
} catch (err) {
|
|
|
_d = true;
|
|
|
_e = err;
|
|
|
} finally {
|
|
|
try {
|
|
|
if (!_n && _i["return"] != null) _i["return"]();
|
|
|
} finally {
|
|
|
if (_d) throw _e;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return _arr;
|
|
|
}
|
|
|
|
|
|
module.exports = _iterableToArrayLimit;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/nonIterableRest.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
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.");
|
|
|
}
|
|
|
|
|
|
module.exports = _nonIterableRest;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _nonIterableSpread() {
|
|
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
|
}
|
|
|
|
|
|
module.exports = _nonIterableSpread;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/objectSpread2.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/objectSpread2.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var defineProperty = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) {
|
|
|
var keys = Object.keys(object);
|
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
|
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
|
});
|
|
|
keys.push.apply(keys, symbols);
|
|
|
}
|
|
|
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
function _objectSpread2(target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
|
|
|
|
if (i % 2) {
|
|
|
ownKeys(Object(source), true).forEach(function (key) {
|
|
|
defineProperty(target, key, source[key]);
|
|
|
});
|
|
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
|
} else {
|
|
|
ownKeys(Object(source)).forEach(function (key) {
|
|
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
module.exports = _objectSpread2;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":
|
|
|
/*!************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
|
|
|
\************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");
|
|
|
|
|
|
function _objectWithoutProperties(source, excluded) {
|
|
|
if (source == null) return {};
|
|
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
|
var key, i;
|
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
|
|
|
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
|
key = sourceSymbolKeys[i];
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
module.exports = _objectWithoutProperties;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":
|
|
|
/*!*****************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
|
|
|
\*****************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
if (source == null) return {};
|
|
|
var target = {};
|
|
|
var sourceKeys = Object.keys(source);
|
|
|
var key, i;
|
|
|
|
|
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
|
key = sourceKeys[i];
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
module.exports = _objectWithoutPropertiesLoose;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
|
|
|
/*!**************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
|
|
|
\**************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
|
|
|
|
|
|
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
|
|
|
|
function _possibleConstructorReturn(self, call) {
|
|
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
|
return call;
|
|
|
}
|
|
|
|
|
|
return assertThisInitialized(self);
|
|
|
}
|
|
|
|
|
|
module.exports = _possibleConstructorReturn;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _setPrototypeOf(o, p) {
|
|
|
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
|
o.__proto__ = p;
|
|
|
return o;
|
|
|
};
|
|
|
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
return _setPrototypeOf(o, p);
|
|
|
}
|
|
|
|
|
|
module.exports = _setPrototypeOf;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/slicedToArray.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
|
|
|
|
|
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
|
|
|
|
|
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
|
|
|
|
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
|
|
|
|
function _slicedToArray(arr, i) {
|
|
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
|
}
|
|
|
|
|
|
module.exports = _slicedToArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/toArray.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
|
|
|
|
|
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/iterableToArray.js");
|
|
|
|
|
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
|
|
|
|
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
|
|
|
|
function _toArray(arr) {
|
|
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
|
|
}
|
|
|
|
|
|
module.exports = _toArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js");
|
|
|
|
|
|
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/iterableToArray.js");
|
|
|
|
|
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
|
|
|
|
var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js");
|
|
|
|
|
|
function _toConsumableArray(arr) {
|
|
|
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
|
|
}
|
|
|
|
|
|
module.exports = _toConsumableArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/typeof.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
function _typeof(obj) {
|
|
|
"@babel/helpers - typeof";
|
|
|
|
|
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
|
return typeof obj;
|
|
|
};
|
|
|
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
} else {
|
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
|
};
|
|
|
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
}
|
|
|
|
|
|
return _typeof(obj);
|
|
|
}
|
|
|
|
|
|
module.exports = _typeof;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
|
|
|
/*!***************************************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
|
|
\***************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
|
|
|
|
function _unsupportedIterableToArray(o, minLen) {
|
|
|
if (!o) return;
|
|
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
|
}
|
|
|
|
|
|
module.exports = _unsupportedIterableToArray;
|
|
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@babel/runtime/regenerator/index.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js");
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/conversion.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/conversion.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: rgbToRgb, rgbToHsl, hslToRgb, rgbToHsv, hsvToRgb, rgbToHex, rgbaToHex, rgbaToArgbHex, convertDecimalToHex, convertHexToDecimal, parseIntFromHex, numberInputToObject */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToRgb", function() { return rgbToRgb; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHsl", function() { return rgbToHsl; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslToRgb", function() { return hslToRgb; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHsv", function() { return rgbToHsv; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsvToRgb", function() { return hsvToRgb; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbToHex", function() { return rgbToHex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbaToHex", function() { return rgbaToHex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbaToArgbHex", function() { return rgbaToArgbHex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDecimalToHex", function() { return convertDecimalToHex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertHexToDecimal", function() { return convertHexToDecimal; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseIntFromHex", function() { return parseIntFromHex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numberInputToObject", function() { return numberInputToObject; });
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./node_modules/@ctrl/tinycolor/dist/module/util.js");
|
|
|
|
|
|
// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
|
|
|
// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
|
|
|
/**
|
|
|
* Handle bounds / percentage checking to conform to CSS color spec
|
|
|
* <http://www.w3.org/TR/css3-color/>
|
|
|
* *Assumes:* r, g, b in [0, 255] or [0, 1]
|
|
|
* *Returns:* { r, g, b } in [0, 255]
|
|
|
*/
|
|
|
function rgbToRgb(r, g, b) {
|
|
|
return {
|
|
|
r: Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(r, 255) * 255,
|
|
|
g: Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(g, 255) * 255,
|
|
|
b: Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(b, 255) * 255,
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* Converts an RGB color value to HSL.
|
|
|
* *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
|
|
|
* *Returns:* { h, s, l } in [0,1]
|
|
|
*/
|
|
|
function rgbToHsl(r, g, b) {
|
|
|
r = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(r, 255);
|
|
|
g = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(g, 255);
|
|
|
b = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(b, 255);
|
|
|
var max = Math.max(r, g, b);
|
|
|
var min = Math.min(r, g, b);
|
|
|
var h = 0;
|
|
|
var s = 0;
|
|
|
var l = (max + min) / 2;
|
|
|
if (max === min) {
|
|
|
s = 0;
|
|
|
h = 0; // achromatic
|
|
|
}
|
|
|
else {
|
|
|
var d = max - min;
|
|
|
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
|
switch (max) {
|
|
|
case r:
|
|
|
h = (g - b) / d + (g < b ? 6 : 0);
|
|
|
break;
|
|
|
case g:
|
|
|
h = (b - r) / d + 2;
|
|
|
break;
|
|
|
case b:
|
|
|
h = (r - g) / d + 4;
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
h /= 6;
|
|
|
}
|
|
|
return { h: h, s: s, l: l };
|
|
|
}
|
|
|
function hue2rgb(p, q, t) {
|
|
|
if (t < 0) {
|
|
|
t += 1;
|
|
|
}
|
|
|
if (t > 1) {
|
|
|
t -= 1;
|
|
|
}
|
|
|
if (t < 1 / 6) {
|
|
|
return p + (q - p) * (6 * t);
|
|
|
}
|
|
|
if (t < 1 / 2) {
|
|
|
return q;
|
|
|
}
|
|
|
if (t < 2 / 3) {
|
|
|
return p + (q - p) * (2 / 3 - t) * 6;
|
|
|
}
|
|
|
return p;
|
|
|
}
|
|
|
/**
|
|
|
* Converts an HSL color value to RGB.
|
|
|
*
|
|
|
* *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
|
|
|
* *Returns:* { r, g, b } in the set [0, 255]
|
|
|
*/
|
|
|
function hslToRgb(h, s, l) {
|
|
|
var r;
|
|
|
var g;
|
|
|
var b;
|
|
|
h = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(h, 360);
|
|
|
s = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(s, 100);
|
|
|
l = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(l, 100);
|
|
|
if (s === 0) {
|
|
|
// achromatic
|
|
|
g = l;
|
|
|
b = l;
|
|
|
r = l;
|
|
|
}
|
|
|
else {
|
|
|
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
|
var p = 2 * l - q;
|
|
|
r = hue2rgb(p, q, h + 1 / 3);
|
|
|
g = hue2rgb(p, q, h);
|
|
|
b = hue2rgb(p, q, h - 1 / 3);
|
|
|
}
|
|
|
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
|
}
|
|
|
/**
|
|
|
* Converts an RGB color value to HSV
|
|
|
*
|
|
|
* *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
|
|
|
* *Returns:* { h, s, v } in [0,1]
|
|
|
*/
|
|
|
function rgbToHsv(r, g, b) {
|
|
|
r = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(r, 255);
|
|
|
g = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(g, 255);
|
|
|
b = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(b, 255);
|
|
|
var max = Math.max(r, g, b);
|
|
|
var min = Math.min(r, g, b);
|
|
|
var h = 0;
|
|
|
var v = max;
|
|
|
var d = max - min;
|
|
|
var s = max === 0 ? 0 : d / max;
|
|
|
if (max === min) {
|
|
|
h = 0; // achromatic
|
|
|
}
|
|
|
else {
|
|
|
switch (max) {
|
|
|
case r:
|
|
|
h = (g - b) / d + (g < b ? 6 : 0);
|
|
|
break;
|
|
|
case g:
|
|
|
h = (b - r) / d + 2;
|
|
|
break;
|
|
|
case b:
|
|
|
h = (r - g) / d + 4;
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
h /= 6;
|
|
|
}
|
|
|
return { h: h, s: s, v: v };
|
|
|
}
|
|
|
/**
|
|
|
* Converts an HSV color value to RGB.
|
|
|
*
|
|
|
* *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
|
|
|
* *Returns:* { r, g, b } in the set [0, 255]
|
|
|
*/
|
|
|
function hsvToRgb(h, s, v) {
|
|
|
h = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(h, 360) * 6;
|
|
|
s = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(s, 100);
|
|
|
v = Object(_util__WEBPACK_IMPORTED_MODULE_0__["bound01"])(v, 100);
|
|
|
var i = Math.floor(h);
|
|
|
var f = h - i;
|
|
|
var p = v * (1 - s);
|
|
|
var q = v * (1 - f * s);
|
|
|
var t = v * (1 - (1 - f) * s);
|
|
|
var mod = i % 6;
|
|
|
var r = [v, q, p, p, t, v][mod];
|
|
|
var g = [t, v, v, q, p, p][mod];
|
|
|
var b = [p, p, t, v, v, q][mod];
|
|
|
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
|
}
|
|
|
/**
|
|
|
* Converts an RGB color to hex
|
|
|
*
|
|
|
* Assumes r, g, and b are contained in the set [0, 255]
|
|
|
* Returns a 3 or 6 character hex
|
|
|
*/
|
|
|
function rgbToHex(r, g, b, allow3Char) {
|
|
|
var hex = [
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(r).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(g).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(b).toString(16)),
|
|
|
];
|
|
|
// Return a 3 character hex if possible
|
|
|
if (allow3Char &&
|
|
|
hex[0].startsWith(hex[0].charAt(1)) &&
|
|
|
hex[1].startsWith(hex[1].charAt(1)) &&
|
|
|
hex[2].startsWith(hex[2].charAt(1))) {
|
|
|
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
|
|
|
}
|
|
|
return hex.join('');
|
|
|
}
|
|
|
/**
|
|
|
* Converts an RGBA color plus alpha transparency to hex
|
|
|
*
|
|
|
* Assumes r, g, b are contained in the set [0, 255] and
|
|
|
* a in [0, 1]. Returns a 4 or 8 character rgba hex
|
|
|
*/
|
|
|
// eslint-disable-next-line max-params
|
|
|
function rgbaToHex(r, g, b, a, allow4Char) {
|
|
|
var hex = [
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(r).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(g).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(b).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(convertDecimalToHex(a)),
|
|
|
];
|
|
|
// Return a 4 character hex if possible
|
|
|
if (allow4Char &&
|
|
|
hex[0].startsWith(hex[0].charAt(1)) &&
|
|
|
hex[1].startsWith(hex[1].charAt(1)) &&
|
|
|
hex[2].startsWith(hex[2].charAt(1)) &&
|
|
|
hex[3].startsWith(hex[3].charAt(1))) {
|
|
|
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
|
|
|
}
|
|
|
return hex.join('');
|
|
|
}
|
|
|
/**
|
|
|
* Converts an RGBA color to an ARGB Hex8 string
|
|
|
* Rarely used, but required for "toFilter()"
|
|
|
*/
|
|
|
function rgbaToArgbHex(r, g, b, a) {
|
|
|
var hex = [
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(convertDecimalToHex(a)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(r).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(g).toString(16)),
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_0__["pad2"])(Math.round(b).toString(16)),
|
|
|
];
|
|
|
return hex.join('');
|
|
|
}
|
|
|
/** Converts a decimal to a hex value */
|
|
|
function convertDecimalToHex(d) {
|
|
|
return Math.round(parseFloat(d) * 255).toString(16);
|
|
|
}
|
|
|
/** Converts a hex value to a decimal */
|
|
|
function convertHexToDecimal(h) {
|
|
|
return parseIntFromHex(h) / 255;
|
|
|
}
|
|
|
/** Parse a base-16 hex value into a base-10 integer */
|
|
|
function parseIntFromHex(val) {
|
|
|
return parseInt(val, 16);
|
|
|
}
|
|
|
function numberInputToObject(color) {
|
|
|
return {
|
|
|
r: color >> 16,
|
|
|
g: (color & 0xff00) >> 8,
|
|
|
b: color & 0xff,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! exports provided: names */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "names", function() { return names; });
|
|
|
// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json
|
|
|
/**
|
|
|
* @hidden
|
|
|
*/
|
|
|
var names = {
|
|
|
aliceblue: '#f0f8ff',
|
|
|
antiquewhite: '#faebd7',
|
|
|
aqua: '#00ffff',
|
|
|
aquamarine: '#7fffd4',
|
|
|
azure: '#f0ffff',
|
|
|
beige: '#f5f5dc',
|
|
|
bisque: '#ffe4c4',
|
|
|
black: '#000000',
|
|
|
blanchedalmond: '#ffebcd',
|
|
|
blue: '#0000ff',
|
|
|
blueviolet: '#8a2be2',
|
|
|
brown: '#a52a2a',
|
|
|
burlywood: '#deb887',
|
|
|
cadetblue: '#5f9ea0',
|
|
|
chartreuse: '#7fff00',
|
|
|
chocolate: '#d2691e',
|
|
|
coral: '#ff7f50',
|
|
|
cornflowerblue: '#6495ed',
|
|
|
cornsilk: '#fff8dc',
|
|
|
crimson: '#dc143c',
|
|
|
cyan: '#00ffff',
|
|
|
darkblue: '#00008b',
|
|
|
darkcyan: '#008b8b',
|
|
|
darkgoldenrod: '#b8860b',
|
|
|
darkgray: '#a9a9a9',
|
|
|
darkgreen: '#006400',
|
|
|
darkgrey: '#a9a9a9',
|
|
|
darkkhaki: '#bdb76b',
|
|
|
darkmagenta: '#8b008b',
|
|
|
darkolivegreen: '#556b2f',
|
|
|
darkorange: '#ff8c00',
|
|
|
darkorchid: '#9932cc',
|
|
|
darkred: '#8b0000',
|
|
|
darksalmon: '#e9967a',
|
|
|
darkseagreen: '#8fbc8f',
|
|
|
darkslateblue: '#483d8b',
|
|
|
darkslategray: '#2f4f4f',
|
|
|
darkslategrey: '#2f4f4f',
|
|
|
darkturquoise: '#00ced1',
|
|
|
darkviolet: '#9400d3',
|
|
|
deeppink: '#ff1493',
|
|
|
deepskyblue: '#00bfff',
|
|
|
dimgray: '#696969',
|
|
|
dimgrey: '#696969',
|
|
|
dodgerblue: '#1e90ff',
|
|
|
firebrick: '#b22222',
|
|
|
floralwhite: '#fffaf0',
|
|
|
forestgreen: '#228b22',
|
|
|
fuchsia: '#ff00ff',
|
|
|
gainsboro: '#dcdcdc',
|
|
|
ghostwhite: '#f8f8ff',
|
|
|
goldenrod: '#daa520',
|
|
|
gold: '#ffd700',
|
|
|
gray: '#808080',
|
|
|
green: '#008000',
|
|
|
greenyellow: '#adff2f',
|
|
|
grey: '#808080',
|
|
|
honeydew: '#f0fff0',
|
|
|
hotpink: '#ff69b4',
|
|
|
indianred: '#cd5c5c',
|
|
|
indigo: '#4b0082',
|
|
|
ivory: '#fffff0',
|
|
|
khaki: '#f0e68c',
|
|
|
lavenderblush: '#fff0f5',
|
|
|
lavender: '#e6e6fa',
|
|
|
lawngreen: '#7cfc00',
|
|
|
lemonchiffon: '#fffacd',
|
|
|
lightblue: '#add8e6',
|
|
|
lightcoral: '#f08080',
|
|
|
lightcyan: '#e0ffff',
|
|
|
lightgoldenrodyellow: '#fafad2',
|
|
|
lightgray: '#d3d3d3',
|
|
|
lightgreen: '#90ee90',
|
|
|
lightgrey: '#d3d3d3',
|
|
|
lightpink: '#ffb6c1',
|
|
|
lightsalmon: '#ffa07a',
|
|
|
lightseagreen: '#20b2aa',
|
|
|
lightskyblue: '#87cefa',
|
|
|
lightslategray: '#778899',
|
|
|
lightslategrey: '#778899',
|
|
|
lightsteelblue: '#b0c4de',
|
|
|
lightyellow: '#ffffe0',
|
|
|
lime: '#00ff00',
|
|
|
limegreen: '#32cd32',
|
|
|
linen: '#faf0e6',
|
|
|
magenta: '#ff00ff',
|
|
|
maroon: '#800000',
|
|
|
mediumaquamarine: '#66cdaa',
|
|
|
mediumblue: '#0000cd',
|
|
|
mediumorchid: '#ba55d3',
|
|
|
mediumpurple: '#9370db',
|
|
|
mediumseagreen: '#3cb371',
|
|
|
mediumslateblue: '#7b68ee',
|
|
|
mediumspringgreen: '#00fa9a',
|
|
|
mediumturquoise: '#48d1cc',
|
|
|
mediumvioletred: '#c71585',
|
|
|
midnightblue: '#191970',
|
|
|
mintcream: '#f5fffa',
|
|
|
mistyrose: '#ffe4e1',
|
|
|
moccasin: '#ffe4b5',
|
|
|
navajowhite: '#ffdead',
|
|
|
navy: '#000080',
|
|
|
oldlace: '#fdf5e6',
|
|
|
olive: '#808000',
|
|
|
olivedrab: '#6b8e23',
|
|
|
orange: '#ffa500',
|
|
|
orangered: '#ff4500',
|
|
|
orchid: '#da70d6',
|
|
|
palegoldenrod: '#eee8aa',
|
|
|
palegreen: '#98fb98',
|
|
|
paleturquoise: '#afeeee',
|
|
|
palevioletred: '#db7093',
|
|
|
papayawhip: '#ffefd5',
|
|
|
peachpuff: '#ffdab9',
|
|
|
peru: '#cd853f',
|
|
|
pink: '#ffc0cb',
|
|
|
plum: '#dda0dd',
|
|
|
powderblue: '#b0e0e6',
|
|
|
purple: '#800080',
|
|
|
rebeccapurple: '#663399',
|
|
|
red: '#ff0000',
|
|
|
rosybrown: '#bc8f8f',
|
|
|
royalblue: '#4169e1',
|
|
|
saddlebrown: '#8b4513',
|
|
|
salmon: '#fa8072',
|
|
|
sandybrown: '#f4a460',
|
|
|
seagreen: '#2e8b57',
|
|
|
seashell: '#fff5ee',
|
|
|
sienna: '#a0522d',
|
|
|
silver: '#c0c0c0',
|
|
|
skyblue: '#87ceeb',
|
|
|
slateblue: '#6a5acd',
|
|
|
slategray: '#708090',
|
|
|
slategrey: '#708090',
|
|
|
snow: '#fffafa',
|
|
|
springgreen: '#00ff7f',
|
|
|
steelblue: '#4682b4',
|
|
|
tan: '#d2b48c',
|
|
|
teal: '#008080',
|
|
|
thistle: '#d8bfd8',
|
|
|
tomato: '#ff6347',
|
|
|
turquoise: '#40e0d0',
|
|
|
violet: '#ee82ee',
|
|
|
wheat: '#f5deb3',
|
|
|
white: '#ffffff',
|
|
|
whitesmoke: '#f5f5f5',
|
|
|
yellow: '#ffff00',
|
|
|
yellowgreen: '#9acd32',
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/format-input.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/format-input.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: inputToRGB, stringInputToObject, isValidCSSUnit */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inputToRGB", function() { return inputToRGB; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringInputToObject", function() { return stringInputToObject; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidCSSUnit", function() { return isValidCSSUnit; });
|
|
|
/* harmony import */ var _conversion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conversion */ "./node_modules/@ctrl/tinycolor/dist/module/conversion.js");
|
|
|
/* harmony import */ var _css_color_names__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css-color-names */ "./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./node_modules/@ctrl/tinycolor/dist/module/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Given a string or object, convert that input to RGB
|
|
|
*
|
|
|
* Possible string inputs:
|
|
|
* ```
|
|
|
* "red"
|
|
|
* "#f00" or "f00"
|
|
|
* "#ff0000" or "ff0000"
|
|
|
* "#ff000000" or "ff000000"
|
|
|
* "rgb 255 0 0" or "rgb (255, 0, 0)"
|
|
|
* "rgb 1.0 0 0" or "rgb (1, 0, 0)"
|
|
|
* "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
|
|
|
* "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
|
|
|
* "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
|
|
|
* "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
|
|
|
* "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
|
|
|
* ```
|
|
|
*/
|
|
|
function inputToRGB(color) {
|
|
|
var rgb = { r: 0, g: 0, b: 0 };
|
|
|
var a = 1;
|
|
|
var s = null;
|
|
|
var v = null;
|
|
|
var l = null;
|
|
|
var ok = false;
|
|
|
var format = false;
|
|
|
if (typeof color === 'string') {
|
|
|
color = stringInputToObject(color);
|
|
|
}
|
|
|
if (typeof color === 'object') {
|
|
|
if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
|
|
|
rgb = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToRgb"])(color.r, color.g, color.b);
|
|
|
ok = true;
|
|
|
format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';
|
|
|
}
|
|
|
else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
|
|
|
s = Object(_util__WEBPACK_IMPORTED_MODULE_2__["convertToPercentage"])(color.s);
|
|
|
v = Object(_util__WEBPACK_IMPORTED_MODULE_2__["convertToPercentage"])(color.v);
|
|
|
rgb = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["hsvToRgb"])(color.h, s, v);
|
|
|
ok = true;
|
|
|
format = 'hsv';
|
|
|
}
|
|
|
else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
|
|
|
s = Object(_util__WEBPACK_IMPORTED_MODULE_2__["convertToPercentage"])(color.s);
|
|
|
l = Object(_util__WEBPACK_IMPORTED_MODULE_2__["convertToPercentage"])(color.l);
|
|
|
rgb = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["hslToRgb"])(color.h, s, l);
|
|
|
ok = true;
|
|
|
format = 'hsl';
|
|
|
}
|
|
|
if (Object.prototype.hasOwnProperty.call(color, 'a')) {
|
|
|
a = color.a;
|
|
|
}
|
|
|
}
|
|
|
a = Object(_util__WEBPACK_IMPORTED_MODULE_2__["boundAlpha"])(a);
|
|
|
return {
|
|
|
ok: ok,
|
|
|
format: color.format || format,
|
|
|
r: Math.min(255, Math.max(rgb.r, 0)),
|
|
|
g: Math.min(255, Math.max(rgb.g, 0)),
|
|
|
b: Math.min(255, Math.max(rgb.b, 0)),
|
|
|
a: a,
|
|
|
};
|
|
|
}
|
|
|
// <http://www.w3.org/TR/css3-values/#integers>
|
|
|
var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
|
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
|
|
// Actual matching.
|
|
|
// Parentheses and commas are optional, but not required.
|
|
|
// Whitespace can take the place of commas or opening paren
|
|
|
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
|
|
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
|
|
var matchers = {
|
|
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
|
rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),
|
|
|
hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),
|
|
|
hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),
|
|
|
hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),
|
|
|
hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),
|
|
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
|
};
|
|
|
/**
|
|
|
* Permissive string parsing. Take in a number of formats, and output an object
|
|
|
* based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
|
|
|
*/
|
|
|
function stringInputToObject(color) {
|
|
|
color = color.trim().toLowerCase();
|
|
|
if (color.length === 0) {
|
|
|
return false;
|
|
|
}
|
|
|
var named = false;
|
|
|
if (_css_color_names__WEBPACK_IMPORTED_MODULE_1__["names"][color]) {
|
|
|
color = _css_color_names__WEBPACK_IMPORTED_MODULE_1__["names"][color];
|
|
|
named = true;
|
|
|
}
|
|
|
else if (color === 'transparent') {
|
|
|
return { r: 0, g: 0, b: 0, a: 0, format: 'name' };
|
|
|
}
|
|
|
// Try to match string input using regular expressions.
|
|
|
// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
|
|
|
// Just return an object and let the conversion functions handle that.
|
|
|
// This way the result will be the same whether the tinycolor is initialized with string or object.
|
|
|
var match = matchers.rgb.exec(color);
|
|
|
if (match) {
|
|
|
return { r: match[1], g: match[2], b: match[3] };
|
|
|
}
|
|
|
match = matchers.rgba.exec(color);
|
|
|
if (match) {
|
|
|
return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
|
|
}
|
|
|
match = matchers.hsl.exec(color);
|
|
|
if (match) {
|
|
|
return { h: match[1], s: match[2], l: match[3] };
|
|
|
}
|
|
|
match = matchers.hsla.exec(color);
|
|
|
if (match) {
|
|
|
return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
|
|
}
|
|
|
match = matchers.hsv.exec(color);
|
|
|
if (match) {
|
|
|
return { h: match[1], s: match[2], v: match[3] };
|
|
|
}
|
|
|
match = matchers.hsva.exec(color);
|
|
|
if (match) {
|
|
|
return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
|
|
}
|
|
|
match = matchers.hex8.exec(color);
|
|
|
if (match) {
|
|
|
return {
|
|
|
r: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[1]),
|
|
|
g: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[2]),
|
|
|
b: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[3]),
|
|
|
a: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["convertHexToDecimal"])(match[4]),
|
|
|
format: named ? 'name' : 'hex8',
|
|
|
};
|
|
|
}
|
|
|
match = matchers.hex6.exec(color);
|
|
|
if (match) {
|
|
|
return {
|
|
|
r: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[1]),
|
|
|
g: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[2]),
|
|
|
b: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[3]),
|
|
|
format: named ? 'name' : 'hex',
|
|
|
};
|
|
|
}
|
|
|
match = matchers.hex4.exec(color);
|
|
|
if (match) {
|
|
|
return {
|
|
|
r: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[1] + match[1]),
|
|
|
g: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[2] + match[2]),
|
|
|
b: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[3] + match[3]),
|
|
|
a: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["convertHexToDecimal"])(match[4] + match[4]),
|
|
|
format: named ? 'name' : 'hex8',
|
|
|
};
|
|
|
}
|
|
|
match = matchers.hex3.exec(color);
|
|
|
if (match) {
|
|
|
return {
|
|
|
r: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[1] + match[1]),
|
|
|
g: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[2] + match[2]),
|
|
|
b: Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["parseIntFromHex"])(match[3] + match[3]),
|
|
|
format: named ? 'name' : 'hex',
|
|
|
};
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
/**
|
|
|
* Check to see if it looks like a CSS unit
|
|
|
* (see `matchers` above for definition).
|
|
|
*/
|
|
|
function isValidCSSUnit(color) {
|
|
|
return Boolean(matchers.CSS_UNIT.exec(String(color)));
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/from-ratio.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/from-ratio.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: fromRatio, legacyRandom */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromRatio", function() { return fromRatio; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "legacyRandom", function() { return legacyRandom; });
|
|
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/@ctrl/tinycolor/dist/module/index.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./node_modules/@ctrl/tinycolor/dist/module/util.js");
|
|
|
|
|
|
|
|
|
/**
|
|
|
* If input is an object, force 1 into "1.0" to handle ratios properly
|
|
|
* String input requires "1.0" as input, so 1 will be treated as 1
|
|
|
*/
|
|
|
function fromRatio(ratio, opts) {
|
|
|
var newColor = {
|
|
|
r: Object(_util__WEBPACK_IMPORTED_MODULE_1__["convertToPercentage"])(ratio.r),
|
|
|
g: Object(_util__WEBPACK_IMPORTED_MODULE_1__["convertToPercentage"])(ratio.g),
|
|
|
b: Object(_util__WEBPACK_IMPORTED_MODULE_1__["convertToPercentage"])(ratio.b),
|
|
|
};
|
|
|
if (ratio.a !== undefined) {
|
|
|
newColor.a = Number(ratio.a);
|
|
|
}
|
|
|
return new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](newColor, opts);
|
|
|
}
|
|
|
/** old random function */
|
|
|
function legacyRandom() {
|
|
|
return new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"]({
|
|
|
r: Math.random(),
|
|
|
g: Math.random(),
|
|
|
b: Math.random(),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/index.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/index.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! exports provided: TinyColor, tinycolor */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TinyColor", function() { return TinyColor; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tinycolor", function() { return tinycolor; });
|
|
|
/* harmony import */ var _conversion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conversion */ "./node_modules/@ctrl/tinycolor/dist/module/conversion.js");
|
|
|
/* harmony import */ var _css_color_names__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css-color-names */ "./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js");
|
|
|
/* harmony import */ var _format_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./format-input */ "./node_modules/@ctrl/tinycolor/dist/module/format-input.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./node_modules/@ctrl/tinycolor/dist/module/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TinyColor = /** @class */ (function () {
|
|
|
function TinyColor(color, opts) {
|
|
|
if (color === void 0) { color = ''; }
|
|
|
if (opts === void 0) { opts = {}; }
|
|
|
var _a;
|
|
|
// If input is already a tinycolor, return itself
|
|
|
if (color instanceof TinyColor) {
|
|
|
// eslint-disable-next-line no-constructor-return
|
|
|
return color;
|
|
|
}
|
|
|
if (typeof color === 'number') {
|
|
|
color = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["numberInputToObject"])(color);
|
|
|
}
|
|
|
this.originalInput = color;
|
|
|
var rgb = Object(_format_input__WEBPACK_IMPORTED_MODULE_2__["inputToRGB"])(color);
|
|
|
this.originalInput = color;
|
|
|
this.r = rgb.r;
|
|
|
this.g = rgb.g;
|
|
|
this.b = rgb.b;
|
|
|
this.a = rgb.a;
|
|
|
this.roundA = Math.round(100 * this.a) / 100;
|
|
|
this.format = (_a = opts.format) !== null && _a !== void 0 ? _a : rgb.format;
|
|
|
this.gradientType = opts.gradientType;
|
|
|
// Don't let the range of [0,255] come back in [0,1].
|
|
|
// Potentially lose a little bit of precision here, but will fix issues where
|
|
|
// .5 gets interpreted as half of the total, instead of half of 1
|
|
|
// If it was supposed to be 128, this was already taken care of by `inputToRgb`
|
|
|
if (this.r < 1) {
|
|
|
this.r = Math.round(this.r);
|
|
|
}
|
|
|
if (this.g < 1) {
|
|
|
this.g = Math.round(this.g);
|
|
|
}
|
|
|
if (this.b < 1) {
|
|
|
this.b = Math.round(this.b);
|
|
|
}
|
|
|
this.isValid = rgb.ok;
|
|
|
}
|
|
|
TinyColor.prototype.isDark = function () {
|
|
|
return this.getBrightness() < 128;
|
|
|
};
|
|
|
TinyColor.prototype.isLight = function () {
|
|
|
return !this.isDark();
|
|
|
};
|
|
|
/**
|
|
|
* Returns the perceived brightness of the color, from 0-255.
|
|
|
*/
|
|
|
TinyColor.prototype.getBrightness = function () {
|
|
|
// http://www.w3.org/TR/AERT#color-contrast
|
|
|
var rgb = this.toRgb();
|
|
|
return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
|
|
|
};
|
|
|
/**
|
|
|
* Returns the perceived luminance of a color, from 0-1.
|
|
|
*/
|
|
|
TinyColor.prototype.getLuminance = function () {
|
|
|
// http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
|
var rgb = this.toRgb();
|
|
|
var R;
|
|
|
var G;
|
|
|
var B;
|
|
|
var RsRGB = rgb.r / 255;
|
|
|
var GsRGB = rgb.g / 255;
|
|
|
var BsRGB = rgb.b / 255;
|
|
|
if (RsRGB <= 0.03928) {
|
|
|
R = RsRGB / 12.92;
|
|
|
}
|
|
|
else {
|
|
|
// eslint-disable-next-line prefer-exponentiation-operator
|
|
|
R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
|
|
|
}
|
|
|
if (GsRGB <= 0.03928) {
|
|
|
G = GsRGB / 12.92;
|
|
|
}
|
|
|
else {
|
|
|
// eslint-disable-next-line prefer-exponentiation-operator
|
|
|
G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
|
|
|
}
|
|
|
if (BsRGB <= 0.03928) {
|
|
|
B = BsRGB / 12.92;
|
|
|
}
|
|
|
else {
|
|
|
// eslint-disable-next-line prefer-exponentiation-operator
|
|
|
B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
|
|
|
}
|
|
|
return 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
|
|
};
|
|
|
/**
|
|
|
* Returns the alpha value of a color, from 0-1.
|
|
|
*/
|
|
|
TinyColor.prototype.getAlpha = function () {
|
|
|
return this.a;
|
|
|
};
|
|
|
/**
|
|
|
* Sets the alpha value on the current color.
|
|
|
*
|
|
|
* @param alpha - The new alpha value. The accepted range is 0-1.
|
|
|
*/
|
|
|
TinyColor.prototype.setAlpha = function (alpha) {
|
|
|
this.a = Object(_util__WEBPACK_IMPORTED_MODULE_3__["boundAlpha"])(alpha);
|
|
|
this.roundA = Math.round(100 * this.a) / 100;
|
|
|
return this;
|
|
|
};
|
|
|
/**
|
|
|
* Returns the object as a HSVA object.
|
|
|
*/
|
|
|
TinyColor.prototype.toHsv = function () {
|
|
|
var hsv = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHsv"])(this.r, this.g, this.b);
|
|
|
return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hsva values interpolated into a string with the following format:
|
|
|
* "hsva(xxx, xxx, xxx, xx)".
|
|
|
*/
|
|
|
TinyColor.prototype.toHsvString = function () {
|
|
|
var hsv = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHsv"])(this.r, this.g, this.b);
|
|
|
var h = Math.round(hsv.h * 360);
|
|
|
var s = Math.round(hsv.s * 100);
|
|
|
var v = Math.round(hsv.v * 100);
|
|
|
return this.a === 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this.roundA + ")";
|
|
|
};
|
|
|
/**
|
|
|
* Returns the object as a HSLA object.
|
|
|
*/
|
|
|
TinyColor.prototype.toHsl = function () {
|
|
|
var hsl = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHsl"])(this.r, this.g, this.b);
|
|
|
return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hsla values interpolated into a string with the following format:
|
|
|
* "hsla(xxx, xxx, xxx, xx)".
|
|
|
*/
|
|
|
TinyColor.prototype.toHslString = function () {
|
|
|
var hsl = Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHsl"])(this.r, this.g, this.b);
|
|
|
var h = Math.round(hsl.h * 360);
|
|
|
var s = Math.round(hsl.s * 100);
|
|
|
var l = Math.round(hsl.l * 100);
|
|
|
return this.a === 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this.roundA + ")";
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hex value of the color.
|
|
|
* @param allow3Char will shorten hex value to 3 char if possible
|
|
|
*/
|
|
|
TinyColor.prototype.toHex = function (allow3Char) {
|
|
|
if (allow3Char === void 0) { allow3Char = false; }
|
|
|
return Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHex"])(this.r, this.g, this.b, allow3Char);
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hex value of the color -with a # appened.
|
|
|
* @param allow3Char will shorten hex value to 3 char if possible
|
|
|
*/
|
|
|
TinyColor.prototype.toHexString = function (allow3Char) {
|
|
|
if (allow3Char === void 0) { allow3Char = false; }
|
|
|
return '#' + this.toHex(allow3Char);
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hex 8 value of the color.
|
|
|
* @param allow4Char will shorten hex value to 4 char if possible
|
|
|
*/
|
|
|
TinyColor.prototype.toHex8 = function (allow4Char) {
|
|
|
if (allow4Char === void 0) { allow4Char = false; }
|
|
|
return Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbaToHex"])(this.r, this.g, this.b, this.a, allow4Char);
|
|
|
};
|
|
|
/**
|
|
|
* Returns the hex 8 value of the color -with a # appened.
|
|
|
* @param allow4Char will shorten hex value to 4 char if possible
|
|
|
*/
|
|
|
TinyColor.prototype.toHex8String = function (allow4Char) {
|
|
|
if (allow4Char === void 0) { allow4Char = false; }
|
|
|
return '#' + this.toHex8(allow4Char);
|
|
|
};
|
|
|
/**
|
|
|
* Returns the object as a RGBA object.
|
|
|
*/
|
|
|
TinyColor.prototype.toRgb = function () {
|
|
|
return {
|
|
|
r: Math.round(this.r),
|
|
|
g: Math.round(this.g),
|
|
|
b: Math.round(this.b),
|
|
|
a: this.a,
|
|
|
};
|
|
|
};
|
|
|
/**
|
|
|
* Returns the RGBA values interpolated into a string with the following format:
|
|
|
* "RGBA(xxx, xxx, xxx, xx)".
|
|
|
*/
|
|
|
TinyColor.prototype.toRgbString = function () {
|
|
|
var r = Math.round(this.r);
|
|
|
var g = Math.round(this.g);
|
|
|
var b = Math.round(this.b);
|
|
|
return this.a === 1 ? "rgb(" + r + ", " + g + ", " + b + ")" : "rgba(" + r + ", " + g + ", " + b + ", " + this.roundA + ")";
|
|
|
};
|
|
|
/**
|
|
|
* Returns the object as a RGBA object.
|
|
|
*/
|
|
|
TinyColor.prototype.toPercentageRgb = function () {
|
|
|
var fmt = function (x) { return Math.round(Object(_util__WEBPACK_IMPORTED_MODULE_3__["bound01"])(x, 255) * 100) + "%"; };
|
|
|
return {
|
|
|
r: fmt(this.r),
|
|
|
g: fmt(this.g),
|
|
|
b: fmt(this.b),
|
|
|
a: this.a,
|
|
|
};
|
|
|
};
|
|
|
/**
|
|
|
* Returns the RGBA relative values interpolated into a string
|
|
|
*/
|
|
|
TinyColor.prototype.toPercentageRgbString = function () {
|
|
|
var rnd = function (x) { return Math.round(Object(_util__WEBPACK_IMPORTED_MODULE_3__["bound01"])(x, 255) * 100); };
|
|
|
return this.a === 1
|
|
|
? "rgb(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%)"
|
|
|
: "rgba(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%, " + this.roundA + ")";
|
|
|
};
|
|
|
/**
|
|
|
* The 'real' name of the color -if there is one.
|
|
|
*/
|
|
|
TinyColor.prototype.toName = function () {
|
|
|
if (this.a === 0) {
|
|
|
return 'transparent';
|
|
|
}
|
|
|
if (this.a < 1) {
|
|
|
return false;
|
|
|
}
|
|
|
var hex = '#' + Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbToHex"])(this.r, this.g, this.b, false);
|
|
|
for (var _i = 0, _a = Object.entries(_css_color_names__WEBPACK_IMPORTED_MODULE_1__["names"]); _i < _a.length; _i++) {
|
|
|
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
|
if (hex === value) {
|
|
|
return key;
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
};
|
|
|
TinyColor.prototype.toString = function (format) {
|
|
|
var formatSet = Boolean(format);
|
|
|
format = format !== null && format !== void 0 ? format : this.format;
|
|
|
var formattedString = false;
|
|
|
var hasAlpha = this.a < 1 && this.a >= 0;
|
|
|
var needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith('hex') || format === 'name');
|
|
|
if (needsAlphaFormat) {
|
|
|
// Special case for "transparent", all other non-alpha formats
|
|
|
// will return rgba when there is transparency.
|
|
|
if (format === 'name' && this.a === 0) {
|
|
|
return this.toName();
|
|
|
}
|
|
|
return this.toRgbString();
|
|
|
}
|
|
|
if (format === 'rgb') {
|
|
|
formattedString = this.toRgbString();
|
|
|
}
|
|
|
if (format === 'prgb') {
|
|
|
formattedString = this.toPercentageRgbString();
|
|
|
}
|
|
|
if (format === 'hex' || format === 'hex6') {
|
|
|
formattedString = this.toHexString();
|
|
|
}
|
|
|
if (format === 'hex3') {
|
|
|
formattedString = this.toHexString(true);
|
|
|
}
|
|
|
if (format === 'hex4') {
|
|
|
formattedString = this.toHex8String(true);
|
|
|
}
|
|
|
if (format === 'hex8') {
|
|
|
formattedString = this.toHex8String();
|
|
|
}
|
|
|
if (format === 'name') {
|
|
|
formattedString = this.toName();
|
|
|
}
|
|
|
if (format === 'hsl') {
|
|
|
formattedString = this.toHslString();
|
|
|
}
|
|
|
if (format === 'hsv') {
|
|
|
formattedString = this.toHsvString();
|
|
|
}
|
|
|
return formattedString || this.toHexString();
|
|
|
};
|
|
|
TinyColor.prototype.toNumber = function () {
|
|
|
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
|
};
|
|
|
TinyColor.prototype.clone = function () {
|
|
|
return new TinyColor(this.toString());
|
|
|
};
|
|
|
/**
|
|
|
* Lighten the color a given amount. Providing 100 will always return white.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.lighten = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
var hsl = this.toHsl();
|
|
|
hsl.l += amount / 100;
|
|
|
hsl.l = Object(_util__WEBPACK_IMPORTED_MODULE_3__["clamp01"])(hsl.l);
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
/**
|
|
|
* Brighten the color a given amount, from 0 to 100.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.brighten = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
var rgb = this.toRgb();
|
|
|
rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
|
|
|
rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
|
|
|
rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
|
|
|
return new TinyColor(rgb);
|
|
|
};
|
|
|
/**
|
|
|
* Darken the color a given amount, from 0 to 100.
|
|
|
* Providing 100 will always return black.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.darken = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
var hsl = this.toHsl();
|
|
|
hsl.l -= amount / 100;
|
|
|
hsl.l = Object(_util__WEBPACK_IMPORTED_MODULE_3__["clamp01"])(hsl.l);
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
/**
|
|
|
* Mix the color with pure white, from 0 to 100.
|
|
|
* Providing 0 will do nothing, providing 100 will always return white.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.tint = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
return this.mix('white', amount);
|
|
|
};
|
|
|
/**
|
|
|
* Mix the color with pure black, from 0 to 100.
|
|
|
* Providing 0 will do nothing, providing 100 will always return black.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.shade = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
return this.mix('black', amount);
|
|
|
};
|
|
|
/**
|
|
|
* Desaturate the color a given amount, from 0 to 100.
|
|
|
* Providing 100 will is the same as calling greyscale
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.desaturate = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
var hsl = this.toHsl();
|
|
|
hsl.s -= amount / 100;
|
|
|
hsl.s = Object(_util__WEBPACK_IMPORTED_MODULE_3__["clamp01"])(hsl.s);
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
/**
|
|
|
* Saturate the color a given amount, from 0 to 100.
|
|
|
* @param amount - valid between 1-100
|
|
|
*/
|
|
|
TinyColor.prototype.saturate = function (amount) {
|
|
|
if (amount === void 0) { amount = 10; }
|
|
|
var hsl = this.toHsl();
|
|
|
hsl.s += amount / 100;
|
|
|
hsl.s = Object(_util__WEBPACK_IMPORTED_MODULE_3__["clamp01"])(hsl.s);
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
/**
|
|
|
* Completely desaturates a color into greyscale.
|
|
|
* Same as calling `desaturate(100)`
|
|
|
*/
|
|
|
TinyColor.prototype.greyscale = function () {
|
|
|
return this.desaturate(100);
|
|
|
};
|
|
|
/**
|
|
|
* Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
|
|
|
* Values outside of this range will be wrapped into this range.
|
|
|
*/
|
|
|
TinyColor.prototype.spin = function (amount) {
|
|
|
var hsl = this.toHsl();
|
|
|
var hue = (hsl.h + amount) % 360;
|
|
|
hsl.h = hue < 0 ? 360 + hue : hue;
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
/**
|
|
|
* Mix the current color a given amount with another color, from 0 to 100.
|
|
|
* 0 means no mixing (return current color).
|
|
|
*/
|
|
|
TinyColor.prototype.mix = function (color, amount) {
|
|
|
if (amount === void 0) { amount = 50; }
|
|
|
var rgb1 = this.toRgb();
|
|
|
var rgb2 = new TinyColor(color).toRgb();
|
|
|
var p = amount / 100;
|
|
|
var rgba = {
|
|
|
r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
|
|
g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
|
|
b: (rgb2.b - rgb1.b) * p + rgb1.b,
|
|
|
a: (rgb2.a - rgb1.a) * p + rgb1.a,
|
|
|
};
|
|
|
return new TinyColor(rgba);
|
|
|
};
|
|
|
TinyColor.prototype.analogous = function (results, slices) {
|
|
|
if (results === void 0) { results = 6; }
|
|
|
if (slices === void 0) { slices = 30; }
|
|
|
var hsl = this.toHsl();
|
|
|
var part = 360 / slices;
|
|
|
var ret = [this];
|
|
|
for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results;) {
|
|
|
hsl.h = (hsl.h + part) % 360;
|
|
|
ret.push(new TinyColor(hsl));
|
|
|
}
|
|
|
return ret;
|
|
|
};
|
|
|
/**
|
|
|
* taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
|
|
|
*/
|
|
|
TinyColor.prototype.complement = function () {
|
|
|
var hsl = this.toHsl();
|
|
|
hsl.h = (hsl.h + 180) % 360;
|
|
|
return new TinyColor(hsl);
|
|
|
};
|
|
|
TinyColor.prototype.monochromatic = function (results) {
|
|
|
if (results === void 0) { results = 6; }
|
|
|
var hsv = this.toHsv();
|
|
|
var h = hsv.h;
|
|
|
var s = hsv.s;
|
|
|
var v = hsv.v;
|
|
|
var res = [];
|
|
|
var modification = 1 / results;
|
|
|
while (results--) {
|
|
|
res.push(new TinyColor({ h: h, s: s, v: v }));
|
|
|
v = (v + modification) % 1;
|
|
|
}
|
|
|
return res;
|
|
|
};
|
|
|
TinyColor.prototype.splitcomplement = function () {
|
|
|
var hsl = this.toHsl();
|
|
|
var h = hsl.h;
|
|
|
return [
|
|
|
this,
|
|
|
new TinyColor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),
|
|
|
new TinyColor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }),
|
|
|
];
|
|
|
};
|
|
|
/**
|
|
|
* Compute how the color would appear on a background
|
|
|
*/
|
|
|
TinyColor.prototype.onBackground = function (background) {
|
|
|
var fg = this.toRgb();
|
|
|
var bg = new TinyColor(background).toRgb();
|
|
|
return new TinyColor({
|
|
|
r: bg.r + (fg.r - bg.r) * fg.a,
|
|
|
g: bg.g + (fg.g - bg.g) * fg.a,
|
|
|
b: bg.b + (fg.b - bg.b) * fg.a,
|
|
|
});
|
|
|
};
|
|
|
/**
|
|
|
* Alias for `polyad(3)`
|
|
|
*/
|
|
|
TinyColor.prototype.triad = function () {
|
|
|
return this.polyad(3);
|
|
|
};
|
|
|
/**
|
|
|
* Alias for `polyad(4)`
|
|
|
*/
|
|
|
TinyColor.prototype.tetrad = function () {
|
|
|
return this.polyad(4);
|
|
|
};
|
|
|
/**
|
|
|
* Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
|
|
|
* monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
|
|
|
*/
|
|
|
TinyColor.prototype.polyad = function (n) {
|
|
|
var hsl = this.toHsl();
|
|
|
var h = hsl.h;
|
|
|
var result = [this];
|
|
|
var increment = 360 / n;
|
|
|
for (var i = 1; i < n; i++) {
|
|
|
result.push(new TinyColor({ h: (h + i * increment) % 360, s: hsl.s, l: hsl.l }));
|
|
|
}
|
|
|
return result;
|
|
|
};
|
|
|
/**
|
|
|
* compare color vs current color
|
|
|
*/
|
|
|
TinyColor.prototype.equals = function (color) {
|
|
|
return this.toRgbString() === new TinyColor(color).toRgbString();
|
|
|
};
|
|
|
return TinyColor;
|
|
|
}());
|
|
|
|
|
|
// kept for backwards compatability with v1
|
|
|
function tinycolor(color, opts) {
|
|
|
if (color === void 0) { color = ''; }
|
|
|
if (opts === void 0) { opts = {}; }
|
|
|
return new TinyColor(color, opts);
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/interfaces.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/interfaces.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! no exports provided */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/public_api.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/public_api.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: TinyColor, tinycolor, names, readability, isReadable, mostReadable, toMsFilter, fromRatio, legacyRandom, inputToRGB, stringInputToObject, isValidCSSUnit, random, bounds, rgbToRgb, rgbToHsl, hslToRgb, rgbToHsv, hsvToRgb, rgbToHex, rgbaToHex, rgbaToArgbHex, convertDecimalToHex, convertHexToDecimal, parseIntFromHex, numberInputToObject, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/@ctrl/tinycolor/dist/module/index.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TinyColor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tinycolor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["tinycolor"]; });
|
|
|
|
|
|
/* harmony import */ var _css_color_names__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css-color-names */ "./node_modules/@ctrl/tinycolor/dist/module/css-color-names.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "names", function() { return _css_color_names__WEBPACK_IMPORTED_MODULE_1__["names"]; });
|
|
|
|
|
|
/* harmony import */ var _readability__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./readability */ "./node_modules/@ctrl/tinycolor/dist/module/readability.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "readability", function() { return _readability__WEBPACK_IMPORTED_MODULE_2__["readability"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isReadable", function() { return _readability__WEBPACK_IMPORTED_MODULE_2__["isReadable"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mostReadable", function() { return _readability__WEBPACK_IMPORTED_MODULE_2__["mostReadable"]; });
|
|
|
|
|
|
/* harmony import */ var _to_ms_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./to-ms-filter */ "./node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toMsFilter", function() { return _to_ms_filter__WEBPACK_IMPORTED_MODULE_3__["toMsFilter"]; });
|
|
|
|
|
|
/* harmony import */ var _from_ratio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./from-ratio */ "./node_modules/@ctrl/tinycolor/dist/module/from-ratio.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromRatio", function() { return _from_ratio__WEBPACK_IMPORTED_MODULE_4__["fromRatio"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "legacyRandom", function() { return _from_ratio__WEBPACK_IMPORTED_MODULE_4__["legacyRandom"]; });
|
|
|
|
|
|
/* harmony import */ var _format_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./format-input */ "./node_modules/@ctrl/tinycolor/dist/module/format-input.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "inputToRGB", function() { return _format_input__WEBPACK_IMPORTED_MODULE_5__["inputToRGB"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringInputToObject", function() { return _format_input__WEBPACK_IMPORTED_MODULE_5__["stringInputToObject"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isValidCSSUnit", function() { return _format_input__WEBPACK_IMPORTED_MODULE_5__["isValidCSSUnit"]; });
|
|
|
|
|
|
/* harmony import */ var _random__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./random */ "./node_modules/@ctrl/tinycolor/dist/module/random.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "random", function() { return _random__WEBPACK_IMPORTED_MODULE_6__["random"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bounds", function() { return _random__WEBPACK_IMPORTED_MODULE_6__["bounds"]; });
|
|
|
|
|
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interfaces */ "./node_modules/@ctrl/tinycolor/dist/module/interfaces.js");
|
|
|
/* empty/unused harmony star reexport *//* harmony import */ var _conversion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./conversion */ "./node_modules/@ctrl/tinycolor/dist/module/conversion.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbToRgb", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbToRgb"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbToHsl", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbToHsl"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hslToRgb", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["hslToRgb"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbToHsv", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbToHsv"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsvToRgb", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["hsvToRgb"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbToHex", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbToHex"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbaToHex", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbaToHex"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgbaToArgbHex", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["rgbaToArgbHex"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "convertDecimalToHex", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["convertDecimalToHex"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "convertHexToDecimal", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["convertHexToDecimal"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseIntFromHex", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["parseIntFromHex"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "numberInputToObject", function() { return _conversion__WEBPACK_IMPORTED_MODULE_8__["numberInputToObject"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// kept for backwards compatability with v1
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_index__WEBPACK_IMPORTED_MODULE_0__["tinycolor"]);
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/random.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/random.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: random, bounds */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "random", function() { return random; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounds", function() { return bounds; });
|
|
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/@ctrl/tinycolor/dist/module/index.js");
|
|
|
// randomColor by David Merfield under the CC0 license
|
|
|
// https://github.com/davidmerfield/randomColor/
|
|
|
|
|
|
function random(options) {
|
|
|
if (options === void 0) { options = {}; }
|
|
|
// Check if we need to generate multiple colors
|
|
|
if (options.count !== undefined &&
|
|
|
options.count !== null) {
|
|
|
var totalColors = options.count;
|
|
|
var colors = [];
|
|
|
options.count = undefined;
|
|
|
while (totalColors > colors.length) {
|
|
|
// Since we're generating multiple colors,
|
|
|
// incremement the seed. Otherwise we'd just
|
|
|
// generate the same color each time...
|
|
|
options.count = null;
|
|
|
if (options.seed) {
|
|
|
options.seed += 1;
|
|
|
}
|
|
|
colors.push(random(options));
|
|
|
}
|
|
|
options.count = totalColors;
|
|
|
return colors;
|
|
|
}
|
|
|
// First we pick a hue (H)
|
|
|
var h = pickHue(options.hue, options.seed);
|
|
|
// Then use H to determine saturation (S)
|
|
|
var s = pickSaturation(h, options);
|
|
|
// Then use S and H to determine brightness (B).
|
|
|
var v = pickBrightness(h, s, options);
|
|
|
var res = { h: h, s: s, v: v };
|
|
|
if (options.alpha !== undefined) {
|
|
|
res.a = options.alpha;
|
|
|
}
|
|
|
// Then we return the HSB color in the desired format
|
|
|
return new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](res);
|
|
|
}
|
|
|
function pickHue(hue, seed) {
|
|
|
var hueRange = getHueRange(hue);
|
|
|
var res = randomWithin(hueRange, seed);
|
|
|
// Instead of storing red as two seperate ranges,
|
|
|
// we group them, using negative numbers
|
|
|
if (res < 0) {
|
|
|
res = 360 + res;
|
|
|
}
|
|
|
return res;
|
|
|
}
|
|
|
function pickSaturation(hue, options) {
|
|
|
if (options.hue === 'monochrome') {
|
|
|
return 0;
|
|
|
}
|
|
|
if (options.luminosity === 'random') {
|
|
|
return randomWithin([0, 100], options.seed);
|
|
|
}
|
|
|
var saturationRange = getColorInfo(hue).saturationRange;
|
|
|
var sMin = saturationRange[0];
|
|
|
var sMax = saturationRange[1];
|
|
|
switch (options.luminosity) {
|
|
|
case 'bright':
|
|
|
sMin = 55;
|
|
|
break;
|
|
|
case 'dark':
|
|
|
sMin = sMax - 10;
|
|
|
break;
|
|
|
case 'light':
|
|
|
sMax = 55;
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
return randomWithin([sMin, sMax], options.seed);
|
|
|
}
|
|
|
function pickBrightness(H, S, options) {
|
|
|
var bMin = getMinimumBrightness(H, S);
|
|
|
var bMax = 100;
|
|
|
switch (options.luminosity) {
|
|
|
case 'dark':
|
|
|
bMax = bMin + 20;
|
|
|
break;
|
|
|
case 'light':
|
|
|
bMin = (bMax + bMin) / 2;
|
|
|
break;
|
|
|
case 'random':
|
|
|
bMin = 0;
|
|
|
bMax = 100;
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
return randomWithin([bMin, bMax], options.seed);
|
|
|
}
|
|
|
function getMinimumBrightness(H, S) {
|
|
|
var lowerBounds = getColorInfo(H).lowerBounds;
|
|
|
for (var i = 0; i < lowerBounds.length - 1; i++) {
|
|
|
var s1 = lowerBounds[i][0];
|
|
|
var v1 = lowerBounds[i][1];
|
|
|
var s2 = lowerBounds[i + 1][0];
|
|
|
var v2 = lowerBounds[i + 1][1];
|
|
|
if (S >= s1 && S <= s2) {
|
|
|
var m = (v2 - v1) / (s2 - s1);
|
|
|
var b = v1 - m * s1;
|
|
|
return m * S + b;
|
|
|
}
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
|
function getHueRange(colorInput) {
|
|
|
var num = parseInt(colorInput, 10);
|
|
|
if (!Number.isNaN(num) && num < 360 && num > 0) {
|
|
|
return [num, num];
|
|
|
}
|
|
|
if (typeof colorInput === 'string') {
|
|
|
var namedColor = bounds.find(function (n) { return n.name === colorInput; });
|
|
|
if (namedColor) {
|
|
|
var color = defineColor(namedColor);
|
|
|
if (color.hueRange) {
|
|
|
return color.hueRange;
|
|
|
}
|
|
|
}
|
|
|
var parsed = new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](colorInput);
|
|
|
if (parsed.isValid) {
|
|
|
var hue = parsed.toHsv().h;
|
|
|
return [hue, hue];
|
|
|
}
|
|
|
}
|
|
|
return [0, 360];
|
|
|
}
|
|
|
function getColorInfo(hue) {
|
|
|
// Maps red colors to make picking hue easier
|
|
|
if (hue >= 334 && hue <= 360) {
|
|
|
hue -= 360;
|
|
|
}
|
|
|
for (var _i = 0, bounds_1 = bounds; _i < bounds_1.length; _i++) {
|
|
|
var bound = bounds_1[_i];
|
|
|
var color = defineColor(bound);
|
|
|
if (color.hueRange && hue >= color.hueRange[0] && hue <= color.hueRange[1]) {
|
|
|
return color;
|
|
|
}
|
|
|
}
|
|
|
throw Error('Color not found');
|
|
|
}
|
|
|
function randomWithin(range, seed) {
|
|
|
if (seed === undefined) {
|
|
|
return Math.floor(range[0] + Math.random() * (range[1] + 1 - range[0]));
|
|
|
}
|
|
|
// Seeded random algorithm from http://indiegamr.com/generate-repeatable-random-numbers-in-js/
|
|
|
var max = range[1] || 1;
|
|
|
var min = range[0] || 0;
|
|
|
seed = (seed * 9301 + 49297) % 233280;
|
|
|
var rnd = seed / 233280.0;
|
|
|
return Math.floor(min + rnd * (max - min));
|
|
|
}
|
|
|
function defineColor(bound) {
|
|
|
var sMin = bound.lowerBounds[0][0];
|
|
|
var sMax = bound.lowerBounds[bound.lowerBounds.length - 1][0];
|
|
|
var bMin = bound.lowerBounds[bound.lowerBounds.length - 1][1];
|
|
|
var bMax = bound.lowerBounds[0][1];
|
|
|
return {
|
|
|
name: bound.name,
|
|
|
hueRange: bound.hueRange,
|
|
|
lowerBounds: bound.lowerBounds,
|
|
|
saturationRange: [sMin, sMax],
|
|
|
brightnessRange: [bMin, bMax],
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* @hidden
|
|
|
*/
|
|
|
var bounds = [
|
|
|
{
|
|
|
name: 'monochrome',
|
|
|
hueRange: null,
|
|
|
lowerBounds: [
|
|
|
[0, 0],
|
|
|
[100, 0],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'red',
|
|
|
hueRange: [-26, 18],
|
|
|
lowerBounds: [
|
|
|
[20, 100],
|
|
|
[30, 92],
|
|
|
[40, 89],
|
|
|
[50, 85],
|
|
|
[60, 78],
|
|
|
[70, 70],
|
|
|
[80, 60],
|
|
|
[90, 55],
|
|
|
[100, 50],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'orange',
|
|
|
hueRange: [19, 46],
|
|
|
lowerBounds: [
|
|
|
[20, 100],
|
|
|
[30, 93],
|
|
|
[40, 88],
|
|
|
[50, 86],
|
|
|
[60, 85],
|
|
|
[70, 70],
|
|
|
[100, 70],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'yellow',
|
|
|
hueRange: [47, 62],
|
|
|
lowerBounds: [
|
|
|
[25, 100],
|
|
|
[40, 94],
|
|
|
[50, 89],
|
|
|
[60, 86],
|
|
|
[70, 84],
|
|
|
[80, 82],
|
|
|
[90, 80],
|
|
|
[100, 75],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'green',
|
|
|
hueRange: [63, 178],
|
|
|
lowerBounds: [
|
|
|
[30, 100],
|
|
|
[40, 90],
|
|
|
[50, 85],
|
|
|
[60, 81],
|
|
|
[70, 74],
|
|
|
[80, 64],
|
|
|
[90, 50],
|
|
|
[100, 40],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'blue',
|
|
|
hueRange: [179, 257],
|
|
|
lowerBounds: [
|
|
|
[20, 100],
|
|
|
[30, 86],
|
|
|
[40, 80],
|
|
|
[50, 74],
|
|
|
[60, 60],
|
|
|
[70, 52],
|
|
|
[80, 44],
|
|
|
[90, 39],
|
|
|
[100, 35],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'purple',
|
|
|
hueRange: [258, 282],
|
|
|
lowerBounds: [
|
|
|
[20, 100],
|
|
|
[30, 87],
|
|
|
[40, 79],
|
|
|
[50, 70],
|
|
|
[60, 65],
|
|
|
[70, 59],
|
|
|
[80, 52],
|
|
|
[90, 45],
|
|
|
[100, 42],
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
name: 'pink',
|
|
|
hueRange: [283, 334],
|
|
|
lowerBounds: [
|
|
|
[20, 100],
|
|
|
[30, 90],
|
|
|
[40, 86],
|
|
|
[60, 84],
|
|
|
[80, 80],
|
|
|
[90, 75],
|
|
|
[100, 73],
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/readability.js":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/readability.js ***!
|
|
|
\*****************************************************************/
|
|
|
/*! exports provided: readability, isReadable, mostReadable */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "readability", function() { return readability; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isReadable", function() { return isReadable; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mostReadable", function() { return mostReadable; });
|
|
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/@ctrl/tinycolor/dist/module/index.js");
|
|
|
|
|
|
// Readability Functions
|
|
|
// ---------------------
|
|
|
// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
|
|
|
/**
|
|
|
* AKA `contrast`
|
|
|
*
|
|
|
* Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
|
|
|
*/
|
|
|
function readability(color1, color2) {
|
|
|
var c1 = new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](color1);
|
|
|
var c2 = new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](color2);
|
|
|
return ((Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) /
|
|
|
(Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05));
|
|
|
}
|
|
|
/**
|
|
|
* Ensure that foreground and background color combinations meet WCAG2 guidelines.
|
|
|
* The third argument is an object.
|
|
|
* the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
|
|
|
* the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
|
|
|
* If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
|
|
|
*
|
|
|
* Example
|
|
|
* ```ts
|
|
|
* new TinyColor().isReadable('#000', '#111') => false
|
|
|
* new TinyColor().isReadable('#000', '#111', { level: 'AA', size: 'large' }) => false
|
|
|
* ```
|
|
|
*/
|
|
|
function isReadable(color1, color2, wcag2) {
|
|
|
var _a, _b;
|
|
|
if (wcag2 === void 0) { wcag2 = { level: 'AA', size: 'small' }; }
|
|
|
var readabilityLevel = readability(color1, color2);
|
|
|
switch (((_a = wcag2.level) !== null && _a !== void 0 ? _a : 'AA') + ((_b = wcag2.size) !== null && _b !== void 0 ? _b : 'small')) {
|
|
|
case 'AAsmall':
|
|
|
case 'AAAlarge':
|
|
|
return readabilityLevel >= 4.5;
|
|
|
case 'AAlarge':
|
|
|
return readabilityLevel >= 3;
|
|
|
case 'AAAsmall':
|
|
|
return readabilityLevel >= 7;
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Given a base color and a list of possible foreground or background
|
|
|
* colors for that base, returns the most readable color.
|
|
|
* Optionally returns Black or White if the most readable color is unreadable.
|
|
|
*
|
|
|
* @param baseColor - the base color.
|
|
|
* @param colorList - array of colors to pick the most readable one from.
|
|
|
* @param args - and object with extra arguments
|
|
|
*
|
|
|
* Example
|
|
|
* ```ts
|
|
|
* new TinyColor().mostReadable('#123', ['#124", "#125'], { includeFallbackColors: false }).toHexString(); // "#112255"
|
|
|
* new TinyColor().mostReadable('#123', ['#124", "#125'],{ includeFallbackColors: true }).toHexString(); // "#ffffff"
|
|
|
* new TinyColor().mostReadable('#a8015a', ["#faf3f3"], { includeFallbackColors:true, level: 'AAA', size: 'large' }).toHexString(); // "#faf3f3"
|
|
|
* new TinyColor().mostReadable('#a8015a', ["#faf3f3"], { includeFallbackColors:true, level: 'AAA', size: 'small' }).toHexString(); // "#ffffff"
|
|
|
* ```
|
|
|
*/
|
|
|
function mostReadable(baseColor, colorList, args) {
|
|
|
if (args === void 0) { args = { includeFallbackColors: false, level: 'AA', size: 'small' }; }
|
|
|
var bestColor = null;
|
|
|
var bestScore = 0;
|
|
|
var includeFallbackColors = args.includeFallbackColors, level = args.level, size = args.size;
|
|
|
for (var _i = 0, colorList_1 = colorList; _i < colorList_1.length; _i++) {
|
|
|
var color = colorList_1[_i];
|
|
|
var score = readability(baseColor, color);
|
|
|
if (score > bestScore) {
|
|
|
bestScore = score;
|
|
|
bestColor = new _index__WEBPACK_IMPORTED_MODULE_0__["TinyColor"](color);
|
|
|
}
|
|
|
}
|
|
|
if (isReadable(baseColor, bestColor, { level: level, size: size }) || !includeFallbackColors) {
|
|
|
return bestColor;
|
|
|
}
|
|
|
args.includeFallbackColors = false;
|
|
|
return mostReadable(baseColor, ['#fff', '#000'], args);
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: toMsFilter */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toMsFilter", function() { return toMsFilter; });
|
|
|
/* harmony import */ var _conversion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conversion */ "./node_modules/@ctrl/tinycolor/dist/module/conversion.js");
|
|
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/@ctrl/tinycolor/dist/module/index.js");
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Returns the color represented as a Microsoft filter for use in old versions of IE.
|
|
|
*/
|
|
|
function toMsFilter(firstColor, secondColor) {
|
|
|
var color = new _index__WEBPACK_IMPORTED_MODULE_1__["TinyColor"](firstColor);
|
|
|
var hex8String = '#' + Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbaToArgbHex"])(color.r, color.g, color.b, color.a);
|
|
|
var secondHex8String = hex8String;
|
|
|
var gradientType = color.gradientType ? 'GradientType = 1, ' : '';
|
|
|
if (secondColor) {
|
|
|
var s = new _index__WEBPACK_IMPORTED_MODULE_1__["TinyColor"](secondColor);
|
|
|
secondHex8String = '#' + Object(_conversion__WEBPACK_IMPORTED_MODULE_0__["rgbaToArgbHex"])(s.r, s.g, s.b, s.a);
|
|
|
}
|
|
|
return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/@ctrl/tinycolor/dist/module/util.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/@ctrl/tinycolor/dist/module/util.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: bound01, clamp01, isOnePointZero, isPercentage, boundAlpha, convertToPercentage, pad2 */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bound01", function() { return bound01; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clamp01", function() { return clamp01; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isOnePointZero", function() { return isOnePointZero; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPercentage", function() { return isPercentage; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boundAlpha", function() { return boundAlpha; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToPercentage", function() { return convertToPercentage; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pad2", function() { return pad2; });
|
|
|
/**
|
|
|
* Take input from [0, n] and return it as [0, 1]
|
|
|
* @hidden
|
|
|
*/
|
|
|
function bound01(n, max) {
|
|
|
if (isOnePointZero(n)) {
|
|
|
n = '100%';
|
|
|
}
|
|
|
var isPercent = isPercentage(n);
|
|
|
n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
|
|
|
// Automatically convert percentage into number
|
|
|
if (isPercent) {
|
|
|
n = parseInt(String(n * max), 10) / 100;
|
|
|
}
|
|
|
// Handle floating point rounding errors
|
|
|
if (Math.abs(n - max) < 0.000001) {
|
|
|
return 1;
|
|
|
}
|
|
|
// Convert into [0, 1] range if it isn't already
|
|
|
if (max === 360) {
|
|
|
// If n is a hue given in degrees,
|
|
|
// wrap around out-of-range values into [0, 360] range
|
|
|
// then convert into [0, 1].
|
|
|
n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));
|
|
|
}
|
|
|
else {
|
|
|
// If n not a hue given in degrees
|
|
|
// Convert into [0, 1] range if it isn't already.
|
|
|
n = (n % max) / parseFloat(String(max));
|
|
|
}
|
|
|
return n;
|
|
|
}
|
|
|
/**
|
|
|
* Force a number between 0 and 1
|
|
|
* @hidden
|
|
|
*/
|
|
|
function clamp01(val) {
|
|
|
return Math.min(1, Math.max(0, val));
|
|
|
}
|
|
|
/**
|
|
|
* Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
|
|
|
* <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
|
|
|
* @hidden
|
|
|
*/
|
|
|
function isOnePointZero(n) {
|
|
|
return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
|
|
|
}
|
|
|
/**
|
|
|
* Check to see if string passed in is a percentage
|
|
|
* @hidden
|
|
|
*/
|
|
|
function isPercentage(n) {
|
|
|
return typeof n === 'string' && n.indexOf('%') !== -1;
|
|
|
}
|
|
|
/**
|
|
|
* Return a valid alpha value [0,1] with all invalid values being set to 1
|
|
|
* @hidden
|
|
|
*/
|
|
|
function boundAlpha(a) {
|
|
|
a = parseFloat(a);
|
|
|
if (isNaN(a) || a < 0 || a > 1) {
|
|
|
a = 1;
|
|
|
}
|
|
|
return a;
|
|
|
}
|
|
|
/**
|
|
|
* Replace a decimal with it's percentage value
|
|
|
* @hidden
|
|
|
*/
|
|
|
function convertToPercentage(n) {
|
|
|
if (n <= 1) {
|
|
|
return Number(n) * 100 + "%";
|
|
|
}
|
|
|
return n;
|
|
|
}
|
|
|
/**
|
|
|
* Force a hex value to have 2 characters
|
|
|
* @hidden
|
|
|
*/
|
|
|
function pad2(c) {
|
|
|
return c.length === 1 ? '0' + c : String(c);
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/colors.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/colors.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.PresetColorTypes = exports.PresetStatusColorTypes = void 0;
|
|
|
|
|
|
var _type = __webpack_require__(/*! ./type */ "./node_modules/antd/lib/_util/type.js");
|
|
|
|
|
|
var PresetStatusColorTypes = (0, _type.tuple)('success', 'processing', 'error', 'default', 'warning'); // eslint-disable-next-line import/prefer-default-export
|
|
|
|
|
|
exports.PresetStatusColorTypes = PresetStatusColorTypes;
|
|
|
var PresetColorTypes = (0, _type.tuple)('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
|
|
|
exports.PresetColorTypes = PresetColorTypes;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/devWarning.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/devWarning.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
Object.defineProperty(exports, "resetWarned", {
|
|
|
enumerable: true,
|
|
|
get: function get() {
|
|
|
return _warning.resetWarned;
|
|
|
}
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _warning = _interopRequireWildcard(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _default = function _default(valid, component, message) {
|
|
|
(0, _warning["default"])(valid, "[antd: ".concat(component, "] ").concat(message));
|
|
|
};
|
|
|
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/easings.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/easings.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.easeInOutCubic = easeInOutCubic;
|
|
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
|
function easeInOutCubic(t, b, c, d) {
|
|
|
var cc = c - b;
|
|
|
t /= d / 2;
|
|
|
|
|
|
if (t < 1) {
|
|
|
return cc / 2 * t * t * t + b;
|
|
|
} // eslint-disable-next-line no-return-assign
|
|
|
|
|
|
|
|
|
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/getScroll.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/getScroll.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.isWindow = isWindow;
|
|
|
exports["default"] = getScroll;
|
|
|
|
|
|
function isWindow(obj) {
|
|
|
return obj !== null && obj !== undefined && obj === obj.window;
|
|
|
}
|
|
|
|
|
|
function getScroll(target, top) {
|
|
|
var _a;
|
|
|
|
|
|
if (typeof window === 'undefined') {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
var method = top ? 'scrollTop' : 'scrollLeft';
|
|
|
var result = 0;
|
|
|
|
|
|
if (isWindow(target)) {
|
|
|
result = target[top ? 'pageYOffset' : 'pageXOffset'];
|
|
|
} else if (target instanceof Document) {
|
|
|
result = target.documentElement[method];
|
|
|
} else if (target) {
|
|
|
result = target[method];
|
|
|
}
|
|
|
|
|
|
if (target && !isWindow(target) && typeof result !== 'number') {
|
|
|
result = (_a = (target.ownerDocument || target).documentElement) === null || _a === void 0 ? void 0 : _a[method];
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/hooks/useForceUpdate.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/hooks/useForceUpdate.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = useForceUpdate;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function useForceUpdate() {
|
|
|
var _React$useReducer = React.useReducer(function (x) {
|
|
|
return x + 1;
|
|
|
}, 0),
|
|
|
_React$useReducer2 = (0, _slicedToArray2["default"])(_React$useReducer, 2),
|
|
|
forceUpdate = _React$useReducer2[1];
|
|
|
|
|
|
return forceUpdate;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/hooks/useSyncState.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/hooks/useSyncState.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = useSyncState;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _useForceUpdate = _interopRequireDefault(__webpack_require__(/*! ./useForceUpdate */ "./node_modules/antd/lib/_util/hooks/useForceUpdate.js"));
|
|
|
|
|
|
function useSyncState(initialValue) {
|
|
|
var ref = React.useRef(initialValue);
|
|
|
var forceUpdate = (0, _useForceUpdate["default"])();
|
|
|
return [function () {
|
|
|
return ref.current;
|
|
|
}, function (newValue) {
|
|
|
ref.current = newValue; // re-render
|
|
|
|
|
|
forceUpdate();
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/isNumeric.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/isNumeric.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var isNumeric = function isNumeric(value) {
|
|
|
return !isNaN(parseFloat(value)) && isFinite(value);
|
|
|
};
|
|
|
|
|
|
var _default = isNumeric;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/motion.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/motion.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.getTransitionName = void 0;
|
|
|
|
|
|
// ================== Collapse Motion ==================
|
|
|
var getCollapsedHeight = function getCollapsedHeight() {
|
|
|
return {
|
|
|
height: 0,
|
|
|
opacity: 0
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var getRealHeight = function getRealHeight(node) {
|
|
|
return {
|
|
|
height: node.scrollHeight,
|
|
|
opacity: 1
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var getCurrentHeight = function getCurrentHeight(node) {
|
|
|
return {
|
|
|
height: node.offsetHeight
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var skipOpacityTransition = function skipOpacityTransition(_, event) {
|
|
|
return event.propertyName === 'height';
|
|
|
};
|
|
|
|
|
|
var collapseMotion = {
|
|
|
motionName: 'ant-motion-collapse',
|
|
|
onAppearStart: getCollapsedHeight,
|
|
|
onEnterStart: getCollapsedHeight,
|
|
|
onAppearActive: getRealHeight,
|
|
|
onEnterActive: getRealHeight,
|
|
|
onLeaveStart: getCurrentHeight,
|
|
|
onLeaveActive: getCollapsedHeight,
|
|
|
onAppearEnd: skipOpacityTransition,
|
|
|
onEnterEnd: skipOpacityTransition,
|
|
|
onLeaveEnd: skipOpacityTransition,
|
|
|
motionDeadline: 500
|
|
|
};
|
|
|
|
|
|
var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
|
|
|
if (transitionName !== undefined) {
|
|
|
return transitionName;
|
|
|
}
|
|
|
|
|
|
return "".concat(rootPrefixCls, "-").concat(motion);
|
|
|
};
|
|
|
|
|
|
exports.getTransitionName = getTransitionName;
|
|
|
var _default = collapseMotion;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/raf.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/raf.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = wrapperRaf;
|
|
|
|
|
|
var _raf = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/raf */ "./node_modules/rc-util/lib/raf.js"));
|
|
|
|
|
|
var id = 0;
|
|
|
var ids = {}; // Support call raf with delay specified frame
|
|
|
|
|
|
function wrapperRaf(callback) {
|
|
|
var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
|
var myId = id++;
|
|
|
var restFrames = delayFrames;
|
|
|
|
|
|
function internalCallback() {
|
|
|
restFrames -= 1;
|
|
|
|
|
|
if (restFrames <= 0) {
|
|
|
callback();
|
|
|
delete ids[myId];
|
|
|
} else {
|
|
|
ids[myId] = (0, _raf["default"])(internalCallback);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
ids[myId] = (0, _raf["default"])(internalCallback);
|
|
|
return myId;
|
|
|
}
|
|
|
|
|
|
wrapperRaf.cancel = function cancel(pid) {
|
|
|
if (pid === undefined) return;
|
|
|
|
|
|
_raf["default"].cancel(ids[pid]);
|
|
|
|
|
|
delete ids[pid];
|
|
|
};
|
|
|
|
|
|
wrapperRaf.ids = ids; // export this for test usage
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/reactNode.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/reactNode.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.replaceElement = replaceElement;
|
|
|
exports.cloneElement = cloneElement;
|
|
|
exports.isValidElement = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var isValidElement = React.isValidElement;
|
|
|
exports.isValidElement = isValidElement;
|
|
|
|
|
|
function replaceElement(element, replacement, props) {
|
|
|
if (!isValidElement(element)) return replacement;
|
|
|
return /*#__PURE__*/React.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
|
|
|
}
|
|
|
|
|
|
function cloneElement(element, props) {
|
|
|
return replaceElement(element, element, props);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/responsiveObserve.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/responsiveObserve.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.responsiveMap = exports.responsiveArray = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends3 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
exports.responsiveArray = responsiveArray;
|
|
|
var responsiveMap = {
|
|
|
xs: '(max-width: 575px)',
|
|
|
sm: '(min-width: 576px)',
|
|
|
md: '(min-width: 768px)',
|
|
|
lg: '(min-width: 992px)',
|
|
|
xl: '(min-width: 1200px)',
|
|
|
xxl: '(min-width: 1600px)'
|
|
|
};
|
|
|
exports.responsiveMap = responsiveMap;
|
|
|
var subscribers = new Map();
|
|
|
var subUid = -1;
|
|
|
var screens = {};
|
|
|
var responsiveObserve = {
|
|
|
matchHandlers: {},
|
|
|
dispatch: function dispatch(pointMap) {
|
|
|
screens = pointMap;
|
|
|
subscribers.forEach(function (func) {
|
|
|
return func(screens);
|
|
|
});
|
|
|
return subscribers.size >= 1;
|
|
|
},
|
|
|
subscribe: function subscribe(func) {
|
|
|
if (!subscribers.size) this.register();
|
|
|
subUid += 1;
|
|
|
subscribers.set(subUid, func);
|
|
|
func(screens);
|
|
|
return subUid;
|
|
|
},
|
|
|
unsubscribe: function unsubscribe(token) {
|
|
|
subscribers["delete"](token);
|
|
|
if (!subscribers.size) this.unregister();
|
|
|
},
|
|
|
unregister: function unregister() {
|
|
|
var _this = this;
|
|
|
|
|
|
Object.keys(responsiveMap).forEach(function (screen) {
|
|
|
var matchMediaQuery = responsiveMap[screen];
|
|
|
var handler = _this.matchHandlers[matchMediaQuery];
|
|
|
handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
|
|
|
});
|
|
|
subscribers.clear();
|
|
|
},
|
|
|
register: function register() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
Object.keys(responsiveMap).forEach(function (screen) {
|
|
|
var matchMediaQuery = responsiveMap[screen];
|
|
|
|
|
|
var listener = function listener(_ref) {
|
|
|
var matches = _ref.matches;
|
|
|
|
|
|
_this2.dispatch((0, _extends3["default"])((0, _extends3["default"])({}, screens), (0, _defineProperty2["default"])({}, screen, matches)));
|
|
|
};
|
|
|
|
|
|
var mql = window.matchMedia(matchMediaQuery);
|
|
|
mql.addListener(listener);
|
|
|
_this2.matchHandlers[matchMediaQuery] = {
|
|
|
mql: mql,
|
|
|
listener: listener
|
|
|
};
|
|
|
listener(mql);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
var _default = responsiveObserve;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/scrollTo.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/scrollTo.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = scrollTo;
|
|
|
|
|
|
var _raf = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/raf */ "./node_modules/rc-util/lib/raf.js"));
|
|
|
|
|
|
var _getScroll = _interopRequireWildcard(__webpack_require__(/*! ./getScroll */ "./node_modules/antd/lib/_util/getScroll.js"));
|
|
|
|
|
|
var _easings = __webpack_require__(/*! ./easings */ "./node_modules/antd/lib/_util/easings.js");
|
|
|
|
|
|
function scrollTo(y) {
|
|
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
var _options$getContainer = options.getContainer,
|
|
|
getContainer = _options$getContainer === void 0 ? function () {
|
|
|
return window;
|
|
|
} : _options$getContainer,
|
|
|
callback = options.callback,
|
|
|
_options$duration = options.duration,
|
|
|
duration = _options$duration === void 0 ? 450 : _options$duration;
|
|
|
var container = getContainer();
|
|
|
var scrollTop = (0, _getScroll["default"])(container, true);
|
|
|
var startTime = Date.now();
|
|
|
|
|
|
var frameFunc = function frameFunc() {
|
|
|
var timestamp = Date.now();
|
|
|
var time = timestamp - startTime;
|
|
|
var nextScrollTop = (0, _easings.easeInOutCubic)(time > duration ? duration : time, scrollTop, y, duration);
|
|
|
|
|
|
if ((0, _getScroll.isWindow)(container)) {
|
|
|
container.scrollTo(window.pageXOffset, nextScrollTop);
|
|
|
} else if (container instanceof HTMLDocument || container.constructor.name === 'HTMLDocument') {
|
|
|
container.documentElement.scrollTop = nextScrollTop;
|
|
|
} else {
|
|
|
container.scrollTop = nextScrollTop;
|
|
|
}
|
|
|
|
|
|
if (time < duration) {
|
|
|
(0, _raf["default"])(frameFunc);
|
|
|
} else if (typeof callback === 'function') {
|
|
|
callback();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
(0, _raf["default"])(frameFunc);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/type.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/type.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.tupleNum = exports.tuple = void 0;
|
|
|
|
|
|
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
|
|
|
var tuple = function tuple() {
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
return args;
|
|
|
};
|
|
|
|
|
|
exports.tuple = tuple;
|
|
|
|
|
|
var tupleNum = function tupleNum() {
|
|
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
|
args[_key2] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
return args;
|
|
|
};
|
|
|
|
|
|
exports.tupleNum = tupleNum;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/unreachableException.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/unreachableException.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var UnreachableException = function UnreachableException(value) {
|
|
|
(0, _classCallCheck2["default"])(this, UnreachableException);
|
|
|
return new Error("unreachable case: ".concat(JSON.stringify(value)));
|
|
|
};
|
|
|
|
|
|
exports["default"] = UnreachableException;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/_util/wave.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/_util/wave.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _dynamicCSS = __webpack_require__(/*! rc-util/lib/Dom/dynamicCSS */ "./node_modules/rc-util/lib/Dom/dynamicCSS.js");
|
|
|
|
|
|
var _ref2 = __webpack_require__(/*! rc-util/lib/ref */ "./node_modules/rc-util/lib/ref.js");
|
|
|
|
|
|
var _raf = _interopRequireDefault(__webpack_require__(/*! ./raf */ "./node_modules/antd/lib/_util/raf.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ./reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var styleForPseudo; // Where el is the DOM element you'd like to test for visibility
|
|
|
|
|
|
function isHidden(element) {
|
|
|
if (false) {}
|
|
|
|
|
|
return !element || element.offsetParent === null || element.hidden;
|
|
|
}
|
|
|
|
|
|
function isNotGrey(color) {
|
|
|
// eslint-disable-next-line no-useless-escape
|
|
|
var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
|
|
|
|
|
|
if (match && match[1] && match[2] && match[3]) {
|
|
|
return !(match[1] === match[2] && match[2] === match[3]);
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var Wave = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(Wave, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(Wave);
|
|
|
|
|
|
function Wave() {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2["default"])(this, Wave);
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.containerRef = /*#__PURE__*/React.createRef();
|
|
|
_this.animationStart = false;
|
|
|
_this.destroyed = false;
|
|
|
|
|
|
_this.onClick = function (node, waveColor) {
|
|
|
var _a, _b;
|
|
|
|
|
|
if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var insertExtraNode = _this.props.insertExtraNode;
|
|
|
_this.extraNode = document.createElement('div');
|
|
|
|
|
|
var _assertThisInitialize = (0, _assertThisInitialized2["default"])(_this),
|
|
|
extraNode = _assertThisInitialize.extraNode;
|
|
|
|
|
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
|
extraNode.className = "".concat(getPrefixCls(''), "-click-animating-node");
|
|
|
|
|
|
var attributeName = _this.getAttributeName();
|
|
|
|
|
|
node.setAttribute(attributeName, 'true'); // Not white or transparent or grey
|
|
|
|
|
|
if (waveColor && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && isNotGrey(waveColor) && !/rgba\((?:\d*, ){3}0\)/.test(waveColor) && // any transparent rgba color
|
|
|
waveColor !== 'transparent') {
|
|
|
extraNode.style.borderColor = waveColor;
|
|
|
var nodeRoot = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || node.ownerDocument;
|
|
|
var nodeBody = nodeRoot instanceof Document ? nodeRoot.body : (_b = nodeRoot.firstChild) !== null && _b !== void 0 ? _b : nodeRoot;
|
|
|
styleForPseudo = (0, _dynamicCSS.updateCSS)("\n [".concat(getPrefixCls(''), "-click-animating-without-extra-node='true']::after, .").concat(getPrefixCls(''), "-click-animating-node {\n --antd-wave-shadow-color: ").concat(waveColor, ";\n }"), 'antd-wave', {
|
|
|
csp: _this.csp,
|
|
|
attachTo: nodeBody
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (insertExtraNode) {
|
|
|
node.appendChild(extraNode);
|
|
|
}
|
|
|
|
|
|
['transition', 'animation'].forEach(function (name) {
|
|
|
node.addEventListener("".concat(name, "start"), _this.onTransitionStart);
|
|
|
node.addEventListener("".concat(name, "end"), _this.onTransitionEnd);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onTransitionStart = function (e) {
|
|
|
if (_this.destroyed) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var node = _this.containerRef.current;
|
|
|
|
|
|
if (!e || e.target !== node || _this.animationStart) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.resetEffect(node);
|
|
|
};
|
|
|
|
|
|
_this.onTransitionEnd = function (e) {
|
|
|
if (!e || e.animationName !== 'fadeEffect') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.resetEffect(e.target);
|
|
|
};
|
|
|
|
|
|
_this.bindAnimationEvent = function (node) {
|
|
|
if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.indexOf('disabled') >= 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var onClick = function onClick(e) {
|
|
|
// Fix radio button click twice
|
|
|
if (e.target.tagName === 'INPUT' || isHidden(e.target)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.resetEffect(node); // Get wave color from target
|
|
|
|
|
|
|
|
|
var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
|
|
|
getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');
|
|
|
_this.clickWaveTimeoutId = window.setTimeout(function () {
|
|
|
return _this.onClick(node, waveColor);
|
|
|
}, 0);
|
|
|
|
|
|
_raf["default"].cancel(_this.animationStartId);
|
|
|
|
|
|
_this.animationStart = true; // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
|
|
|
|
|
|
_this.animationStartId = (0, _raf["default"])(function () {
|
|
|
_this.animationStart = false;
|
|
|
}, 10);
|
|
|
};
|
|
|
|
|
|
node.addEventListener('click', onClick, true);
|
|
|
return {
|
|
|
cancel: function cancel() {
|
|
|
node.removeEventListener('click', onClick, true);
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
|
|
|
_this.renderWave = function (_ref) {
|
|
|
var csp = _ref.csp;
|
|
|
var children = _this.props.children;
|
|
|
_this.csp = csp;
|
|
|
if (! /*#__PURE__*/React.isValidElement(children)) return children;
|
|
|
var ref = _this.containerRef;
|
|
|
|
|
|
if ((0, _ref2.supportRef)(children)) {
|
|
|
ref = (0, _ref2.composeRef)(children.ref, _this.containerRef);
|
|
|
}
|
|
|
|
|
|
return (0, _reactNode.cloneElement)(children, {
|
|
|
ref: ref
|
|
|
});
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(Wave, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
var node = this.containerRef.current;
|
|
|
|
|
|
if (!node || node.nodeType !== 1) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.instance = this.bindAnimationEvent(node);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
if (this.instance) {
|
|
|
this.instance.cancel();
|
|
|
}
|
|
|
|
|
|
if (this.clickWaveTimeoutId) {
|
|
|
clearTimeout(this.clickWaveTimeoutId);
|
|
|
}
|
|
|
|
|
|
this.destroyed = true;
|
|
|
}
|
|
|
}, {
|
|
|
key: "getAttributeName",
|
|
|
value: function getAttributeName() {
|
|
|
var getPrefixCls = this.context.getPrefixCls;
|
|
|
var insertExtraNode = this.props.insertExtraNode;
|
|
|
return insertExtraNode ? "".concat(getPrefixCls(''), "-click-animating") : "".concat(getPrefixCls(''), "-click-animating-without-extra-node");
|
|
|
}
|
|
|
}, {
|
|
|
key: "resetEffect",
|
|
|
value: function resetEffect(node) {
|
|
|
var _this2 = this;
|
|
|
|
|
|
if (!node || node === this.extraNode || !(node instanceof Element)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var insertExtraNode = this.props.insertExtraNode;
|
|
|
var attributeName = this.getAttributeName();
|
|
|
node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
|
|
|
|
|
|
if (styleForPseudo) {
|
|
|
styleForPseudo.innerHTML = '';
|
|
|
}
|
|
|
|
|
|
if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
|
|
|
node.removeChild(this.extraNode);
|
|
|
}
|
|
|
|
|
|
['transition', 'animation'].forEach(function (name) {
|
|
|
node.removeEventListener("".concat(name, "start"), _this2.onTransitionStart);
|
|
|
node.removeEventListener("".concat(name, "end"), _this2.onTransitionEnd);
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderWave);
|
|
|
}
|
|
|
}]);
|
|
|
return Wave;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports["default"] = Wave;
|
|
|
Wave.contextType = _configProvider.ConfigContext;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/button/LoadingIcon.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/button/LoadingIcon.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcMotion = _interopRequireDefault(__webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js"));
|
|
|
|
|
|
var _LoadingOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/LoadingOutlined */ "./node_modules/@ant-design/icons/LoadingOutlined.js"));
|
|
|
|
|
|
var getCollapsedWidth = function getCollapsedWidth() {
|
|
|
return {
|
|
|
width: 0,
|
|
|
opacity: 0,
|
|
|
transform: 'scale(0)'
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var getRealWidth = function getRealWidth(node) {
|
|
|
return {
|
|
|
width: node.scrollWidth,
|
|
|
opacity: 1,
|
|
|
transform: 'scale(1)'
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var LoadingIcon = function LoadingIcon(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
loading = _ref.loading,
|
|
|
existIcon = _ref.existIcon;
|
|
|
var visible = !!loading;
|
|
|
|
|
|
if (existIcon) {
|
|
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
|
className: "".concat(prefixCls, "-loading-icon")
|
|
|
}, /*#__PURE__*/_react["default"].createElement(_LoadingOutlined["default"], null));
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/_react["default"].createElement(_rcMotion["default"], {
|
|
|
visible: visible // We do not really use this motionName
|
|
|
,
|
|
|
motionName: "".concat(prefixCls, "-loading-icon-motion"),
|
|
|
removeOnLeave: true,
|
|
|
onAppearStart: getCollapsedWidth,
|
|
|
onAppearActive: getRealWidth,
|
|
|
onEnterStart: getCollapsedWidth,
|
|
|
onEnterActive: getRealWidth,
|
|
|
onLeaveStart: getRealWidth,
|
|
|
onLeaveActive: getCollapsedWidth
|
|
|
}, function (_ref2, ref) {
|
|
|
var className = _ref2.className,
|
|
|
style = _ref2.style;
|
|
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
|
className: "".concat(prefixCls, "-loading-icon"),
|
|
|
style: style,
|
|
|
ref: ref
|
|
|
}, /*#__PURE__*/_react["default"].createElement(_LoadingOutlined["default"], {
|
|
|
className: className
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var _default = LoadingIcon;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/button/button-group.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/button/button-group.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _unreachableException = _interopRequireDefault(__webpack_require__(/*! ../_util/unreachableException */ "./node_modules/antd/lib/_util/unreachableException.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var ButtonGroup = function ButtonGroup(props) {
|
|
|
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var getPrefixCls = _ref.getPrefixCls,
|
|
|
direction = _ref.direction;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
size = props.size,
|
|
|
className = props.className,
|
|
|
others = __rest(props, ["prefixCls", "size", "className"]);
|
|
|
|
|
|
var prefixCls = getPrefixCls('btn-group', customizePrefixCls); // large => lg
|
|
|
// small => sm
|
|
|
|
|
|
var sizeCls = '';
|
|
|
|
|
|
switch (size) {
|
|
|
case 'large':
|
|
|
sizeCls = 'lg';
|
|
|
break;
|
|
|
|
|
|
case 'small':
|
|
|
sizeCls = 'sm';
|
|
|
break;
|
|
|
|
|
|
case 'middle':
|
|
|
case undefined:
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
// eslint-disable-next-line no-console
|
|
|
console.warn(new _unreachableException["default"](size));
|
|
|
}
|
|
|
|
|
|
var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, others, {
|
|
|
className: classes
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var _default = ButtonGroup;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/button/button.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/button/button.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.convertLegacyProps = convertLegacyProps;
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _buttonGroup = _interopRequireDefault(__webpack_require__(/*! ./button-group */ "./node_modules/antd/lib/button/button-group.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _wave = _interopRequireDefault(__webpack_require__(/*! ../_util/wave */ "./node_modules/antd/lib/_util/wave.js"));
|
|
|
|
|
|
var _type = __webpack_require__(/*! ../_util/type */ "./node_modules/antd/lib/_util/type.js");
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var _SizeContext = _interopRequireDefault(__webpack_require__(/*! ../config-provider/SizeContext */ "./node_modules/antd/lib/config-provider/SizeContext.js"));
|
|
|
|
|
|
var _LoadingIcon = _interopRequireDefault(__webpack_require__(/*! ./LoadingIcon */ "./node_modules/antd/lib/button/LoadingIcon.js"));
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
/* eslint-disable react/button-has-type */
|
|
|
|
|
|
|
|
|
var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
|
|
|
var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
|
|
|
|
|
|
function isString(str) {
|
|
|
return typeof str === 'string';
|
|
|
}
|
|
|
|
|
|
function isUnborderedButtonType(type) {
|
|
|
return type === 'text' || type === 'link';
|
|
|
} // Insert one space between two chinese characters automatically.
|
|
|
|
|
|
|
|
|
function insertSpace(child, needInserted) {
|
|
|
// Check the child if is undefined or null.
|
|
|
if (child == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var SPACE = needInserted ? ' ' : ''; // strictNullChecks oops.
|
|
|
|
|
|
if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {
|
|
|
return (0, _reactNode.cloneElement)(child, {
|
|
|
children: child.props.children.split('').join(SPACE)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (typeof child === 'string') {
|
|
|
if (isTwoCNChar(child)) {
|
|
|
child = child.split('').join(SPACE);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", null, child);
|
|
|
}
|
|
|
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
function spaceChildren(children, needInserted) {
|
|
|
var isPrevChildPure = false;
|
|
|
var childList = [];
|
|
|
React.Children.forEach(children, function (child) {
|
|
|
var type = (0, _typeof2["default"])(child);
|
|
|
var isCurrentChildPure = type === 'string' || type === 'number';
|
|
|
|
|
|
if (isPrevChildPure && isCurrentChildPure) {
|
|
|
var lastIndex = childList.length - 1;
|
|
|
var lastChild = childList[lastIndex];
|
|
|
childList[lastIndex] = "".concat(lastChild).concat(child);
|
|
|
} else {
|
|
|
childList.push(child);
|
|
|
}
|
|
|
|
|
|
isPrevChildPure = isCurrentChildPure;
|
|
|
}); // Pass to React.Children.map to auto fill key
|
|
|
|
|
|
return React.Children.map(childList, function (child) {
|
|
|
return insertSpace(child, needInserted);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var ButtonTypes = (0, _type.tuple)('default', 'primary', 'ghost', 'dashed', 'link', 'text');
|
|
|
var ButtonShapes = (0, _type.tuple)('circle', 'round');
|
|
|
var ButtonHTMLTypes = (0, _type.tuple)('submit', 'button', 'reset');
|
|
|
|
|
|
function convertLegacyProps(type) {
|
|
|
if (type === 'danger') {
|
|
|
return {
|
|
|
danger: true
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
type: type
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var InternalButton = function InternalButton(props, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var _props$loading = props.loading,
|
|
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
|
customizePrefixCls = props.prefixCls,
|
|
|
type = props.type,
|
|
|
danger = props.danger,
|
|
|
shape = props.shape,
|
|
|
customizeSize = props.size,
|
|
|
className = props.className,
|
|
|
children = props.children,
|
|
|
icon = props.icon,
|
|
|
_props$ghost = props.ghost,
|
|
|
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
|
_props$block = props.block,
|
|
|
block = _props$block === void 0 ? false : _props$block,
|
|
|
_props$htmlType = props.htmlType,
|
|
|
htmlType = _props$htmlType === void 0 ? 'button' : _props$htmlType,
|
|
|
rest = __rest(props, ["loading", "prefixCls", "type", "danger", "shape", "size", "className", "children", "icon", "ghost", "block", "htmlType"]);
|
|
|
|
|
|
var size = React.useContext(_SizeContext["default"]);
|
|
|
|
|
|
var _React$useState = React.useState(!!loading),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
innerLoading = _React$useState2[0],
|
|
|
setLoading = _React$useState2[1];
|
|
|
|
|
|
var _React$useState3 = React.useState(false),
|
|
|
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
|
|
hasTwoCNChar = _React$useState4[0],
|
|
|
setHasTwoCNChar = _React$useState4[1];
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
autoInsertSpaceInButton = _React$useContext.autoInsertSpaceInButton,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var buttonRef = ref || /*#__PURE__*/React.createRef();
|
|
|
var delayTimeoutRef = React.useRef();
|
|
|
|
|
|
var isNeedInserted = function isNeedInserted() {
|
|
|
return React.Children.count(children) === 1 && !icon && !isUnborderedButtonType(type);
|
|
|
};
|
|
|
|
|
|
var fixTwoCNChar = function fixTwoCNChar() {
|
|
|
// Fix for HOC usage like <FormatMessage />
|
|
|
if (!buttonRef || !buttonRef.current || autoInsertSpaceInButton === false) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var buttonText = buttonRef.current.textContent;
|
|
|
|
|
|
if (isNeedInserted() && isTwoCNChar(buttonText)) {
|
|
|
if (!hasTwoCNChar) {
|
|
|
setHasTwoCNChar(true);
|
|
|
}
|
|
|
} else if (hasTwoCNChar) {
|
|
|
setHasTwoCNChar(false);
|
|
|
}
|
|
|
}; // =============== Update Loading ===============
|
|
|
|
|
|
|
|
|
var loadingOrDelay;
|
|
|
|
|
|
if ((0, _typeof2["default"])(loading) === 'object' && loading.delay) {
|
|
|
loadingOrDelay = loading.delay || true;
|
|
|
} else {
|
|
|
loadingOrDelay = !!loading;
|
|
|
}
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
clearTimeout(delayTimeoutRef.current);
|
|
|
|
|
|
if (typeof loadingOrDelay === 'number') {
|
|
|
delayTimeoutRef.current = window.setTimeout(function () {
|
|
|
setLoading(loadingOrDelay);
|
|
|
}, loadingOrDelay);
|
|
|
} else {
|
|
|
setLoading(loadingOrDelay);
|
|
|
}
|
|
|
}, [loadingOrDelay]);
|
|
|
React.useEffect(fixTwoCNChar, [buttonRef]);
|
|
|
|
|
|
var handleClick = function handleClick(e) {
|
|
|
var _a;
|
|
|
|
|
|
var onClick = props.onClick,
|
|
|
disabled = props.disabled; // https://github.com/ant-design/ant-design/issues/30207
|
|
|
|
|
|
if (innerLoading || disabled) {
|
|
|
e.preventDefault();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
(_a = onClick) === null || _a === void 0 ? void 0 : _a(e);
|
|
|
};
|
|
|
|
|
|
(0, _devWarning["default"])(!(typeof icon === 'string' && icon.length > 2), 'Button', "`icon` is using ReactNode instead of string naming in v4. Please check `".concat(icon, "` at https://ant.design/components/icon"));
|
|
|
(0, _devWarning["default"])(!(ghost && isUnborderedButtonType(type)), 'Button', "`link` or `text` button can't be a `ghost` button.");
|
|
|
var prefixCls = getPrefixCls('btn', customizePrefixCls);
|
|
|
var autoInsertSpace = autoInsertSpaceInButton !== false; // large => lg
|
|
|
// small => sm
|
|
|
|
|
|
var sizeCls = '';
|
|
|
|
|
|
switch (customizeSize || size) {
|
|
|
case 'large':
|
|
|
sizeCls = 'lg';
|
|
|
break;
|
|
|
|
|
|
case 'small':
|
|
|
sizeCls = 'sm';
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var iconType = innerLoading ? 'loading' : icon;
|
|
|
var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(type), type), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(shape), shape), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnborderedButtonType(type)), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-loading"), innerLoading), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-block"), block), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
var iconNode = icon && !innerLoading ? icon : /*#__PURE__*/React.createElement(_LoadingIcon["default"], {
|
|
|
existIcon: !!icon,
|
|
|
prefixCls: prefixCls,
|
|
|
loading: !!innerLoading
|
|
|
});
|
|
|
var kids = children || children === 0 ? spaceChildren(children, isNeedInserted() && autoInsertSpace) : null;
|
|
|
var linkButtonRestProps = (0, _omit["default"])(rest, ['navigate']);
|
|
|
|
|
|
if (linkButtonRestProps.href !== undefined) {
|
|
|
return /*#__PURE__*/React.createElement("a", (0, _extends2["default"])({}, linkButtonRestProps, {
|
|
|
className: classes,
|
|
|
onClick: handleClick,
|
|
|
ref: buttonRef
|
|
|
}), iconNode, kids);
|
|
|
}
|
|
|
|
|
|
var buttonNode = /*#__PURE__*/React.createElement("button", (0, _extends2["default"])({}, rest, {
|
|
|
type: htmlType,
|
|
|
className: classes,
|
|
|
onClick: handleClick,
|
|
|
ref: buttonRef
|
|
|
}), iconNode, kids);
|
|
|
|
|
|
if (isUnborderedButtonType(type)) {
|
|
|
return buttonNode;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_wave["default"], null, buttonNode);
|
|
|
};
|
|
|
|
|
|
var Button = /*#__PURE__*/React.forwardRef(InternalButton);
|
|
|
Button.displayName = 'Button';
|
|
|
Button.Group = _buttonGroup["default"];
|
|
|
Button.__ANT_BUTTON = true;
|
|
|
var _default = Button;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/button/index.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/button/index.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _button = _interopRequireDefault(__webpack_require__(/*! ./button */ "./node_modules/antd/lib/button/button.js"));
|
|
|
|
|
|
var _default = _button["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/calendar/locale/en_US.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/calendar/locale/en_US.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(/*! ../../date-picker/locale/en_US */ "./node_modules/antd/lib/date-picker/locale/en_US.js"));
|
|
|
|
|
|
var _default = _en_US["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/checkbox/Checkbox.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/checkbox/Checkbox.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _rcCheckbox = _interopRequireDefault(__webpack_require__(/*! rc-checkbox */ "./node_modules/rc-checkbox/es/index.js"));
|
|
|
|
|
|
var _Group = __webpack_require__(/*! ./Group */ "./node_modules/antd/lib/checkbox/Group.js");
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var InternalCheckbox = function InternalCheckbox(_a, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
children = _a.children,
|
|
|
_a$indeterminate = _a.indeterminate,
|
|
|
indeterminate = _a$indeterminate === void 0 ? false : _a$indeterminate,
|
|
|
style = _a.style,
|
|
|
onMouseEnter = _a.onMouseEnter,
|
|
|
onMouseLeave = _a.onMouseLeave,
|
|
|
_a$skipGroup = _a.skipGroup,
|
|
|
skipGroup = _a$skipGroup === void 0 ? false : _a$skipGroup,
|
|
|
restProps = __rest(_a, ["prefixCls", "className", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var checkboxGroup = React.useContext(_Group.GroupContext);
|
|
|
var prevValue = React.useRef(restProps.value);
|
|
|
React.useEffect(function () {
|
|
|
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
|
|
|
(0, _devWarning["default"])('checked' in restProps || !!checkboxGroup || !('value' in restProps), 'Checkbox', '`value` is not a valid prop, do you mean `checked`?');
|
|
|
}, []);
|
|
|
React.useEffect(function () {
|
|
|
if (skipGroup) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (restProps.value !== prevValue.current) {
|
|
|
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
|
|
|
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
|
|
|
}
|
|
|
|
|
|
return function () {
|
|
|
return checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
|
|
|
};
|
|
|
}, [restProps.value]);
|
|
|
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
|
|
var checkboxProps = (0, _extends2["default"])({}, restProps);
|
|
|
|
|
|
if (checkboxGroup && !skipGroup) {
|
|
|
checkboxProps.onChange = function () {
|
|
|
if (restProps.onChange) {
|
|
|
restProps.onChange.apply(restProps, arguments);
|
|
|
}
|
|
|
|
|
|
if (checkboxGroup.toggleOption) {
|
|
|
checkboxGroup.toggleOption({
|
|
|
label: children,
|
|
|
value: restProps.value
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
checkboxProps.name = checkboxGroup.name;
|
|
|
checkboxProps.checked = checkboxGroup.value.indexOf(restProps.value) !== -1;
|
|
|
checkboxProps.disabled = restProps.disabled || checkboxGroup.disabled;
|
|
|
}
|
|
|
|
|
|
var classString = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper"), true), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper-disabled"), checkboxProps.disabled), _classNames), className);
|
|
|
var checkboxClass = (0, _classnames["default"])((0, _defineProperty2["default"])({}, "".concat(prefixCls, "-indeterminate"), indeterminate));
|
|
|
return (
|
|
|
/*#__PURE__*/
|
|
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
|
React.createElement("label", {
|
|
|
className: classString,
|
|
|
style: style,
|
|
|
onMouseEnter: onMouseEnter,
|
|
|
onMouseLeave: onMouseLeave
|
|
|
}, /*#__PURE__*/React.createElement(_rcCheckbox["default"], (0, _extends2["default"])({}, checkboxProps, {
|
|
|
prefixCls: prefixCls,
|
|
|
className: checkboxClass,
|
|
|
ref: ref
|
|
|
})), children !== undefined && /*#__PURE__*/React.createElement("span", null, children))
|
|
|
);
|
|
|
};
|
|
|
|
|
|
var Checkbox = /*#__PURE__*/React.forwardRef(InternalCheckbox);
|
|
|
Checkbox.displayName = 'Checkbox';
|
|
|
var _default = Checkbox;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/checkbox/Group.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/checkbox/Group.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.GroupContext = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _Checkbox = _interopRequireDefault(__webpack_require__(/*! ./Checkbox */ "./node_modules/antd/lib/checkbox/Checkbox.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var GroupContext = /*#__PURE__*/React.createContext(null);
|
|
|
exports.GroupContext = GroupContext;
|
|
|
|
|
|
var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
|
|
|
var defaultValue = _a.defaultValue,
|
|
|
children = _a.children,
|
|
|
_a$options = _a.options,
|
|
|
options = _a$options === void 0 ? [] : _a$options,
|
|
|
customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
style = _a.style,
|
|
|
onChange = _a.onChange,
|
|
|
restProps = __rest(_a, ["defaultValue", "children", "options", "prefixCls", "className", "style", "onChange"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var _React$useState = React.useState(restProps.value || defaultValue || []),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
value = _React$useState2[0],
|
|
|
setValue = _React$useState2[1];
|
|
|
|
|
|
var _React$useState3 = React.useState([]),
|
|
|
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
|
|
registeredValues = _React$useState4[0],
|
|
|
setRegisteredValues = _React$useState4[1];
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
if ('value' in restProps) {
|
|
|
setValue(restProps.value || []);
|
|
|
}
|
|
|
}, [restProps.value]);
|
|
|
|
|
|
var getOptions = function getOptions() {
|
|
|
return options.map(function (option) {
|
|
|
if (typeof option === 'string') {
|
|
|
return {
|
|
|
label: option,
|
|
|
value: option
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return option;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var cancelValue = function cancelValue(val) {
|
|
|
setRegisteredValues(function (prevValues) {
|
|
|
return prevValues.filter(function (v) {
|
|
|
return v !== val;
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var registerValue = function registerValue(val) {
|
|
|
setRegisteredValues(function (prevValues) {
|
|
|
return [].concat((0, _toConsumableArray2["default"])(prevValues), [val]);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var toggleOption = function toggleOption(option) {
|
|
|
var optionIndex = value.indexOf(option.value);
|
|
|
var newValue = (0, _toConsumableArray2["default"])(value);
|
|
|
|
|
|
if (optionIndex === -1) {
|
|
|
newValue.push(option.value);
|
|
|
} else {
|
|
|
newValue.splice(optionIndex, 1);
|
|
|
}
|
|
|
|
|
|
if (!('value' in restProps)) {
|
|
|
setValue(newValue);
|
|
|
}
|
|
|
|
|
|
var opts = getOptions();
|
|
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(function (val) {
|
|
|
return registeredValues.indexOf(val) !== -1;
|
|
|
}).sort(function (a, b) {
|
|
|
var indexA = opts.findIndex(function (opt) {
|
|
|
return opt.value === a;
|
|
|
});
|
|
|
var indexB = opts.findIndex(function (opt) {
|
|
|
return opt.value === b;
|
|
|
});
|
|
|
return indexA - indexB;
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
|
|
var groupPrefixCls = "".concat(prefixCls, "-group");
|
|
|
var domProps = (0, _omit["default"])(restProps, ['value', 'disabled']);
|
|
|
|
|
|
if (options && options.length > 0) {
|
|
|
children = getOptions().map(function (option) {
|
|
|
return /*#__PURE__*/React.createElement(_Checkbox["default"], {
|
|
|
prefixCls: prefixCls,
|
|
|
key: option.value.toString(),
|
|
|
disabled: 'disabled' in option ? option.disabled : restProps.disabled,
|
|
|
value: option.value,
|
|
|
checked: value.indexOf(option.value) !== -1,
|
|
|
onChange: option.onChange,
|
|
|
className: "".concat(groupPrefixCls, "-item"),
|
|
|
style: option.style
|
|
|
}, option.label);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var context = {
|
|
|
toggleOption: toggleOption,
|
|
|
value: value,
|
|
|
disabled: restProps.disabled,
|
|
|
name: restProps.name,
|
|
|
// https://github.com/ant-design/ant-design/issues/16376
|
|
|
registerValue: registerValue,
|
|
|
cancelValue: cancelValue
|
|
|
};
|
|
|
var classString = (0, _classnames["default"])(groupPrefixCls, (0, _defineProperty2["default"])({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), className);
|
|
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
|
className: classString,
|
|
|
style: style
|
|
|
}, domProps, {
|
|
|
ref: ref
|
|
|
}), /*#__PURE__*/React.createElement(GroupContext.Provider, {
|
|
|
value: context
|
|
|
}, children));
|
|
|
};
|
|
|
|
|
|
var CheckboxGroup = /*#__PURE__*/React.forwardRef(InternalCheckboxGroup);
|
|
|
|
|
|
var _default = /*#__PURE__*/React.memo(CheckboxGroup);
|
|
|
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/checkbox/index.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/checkbox/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _Checkbox = _interopRequireDefault(__webpack_require__(/*! ./Checkbox */ "./node_modules/antd/lib/checkbox/Checkbox.js"));
|
|
|
|
|
|
var _Group = _interopRequireDefault(__webpack_require__(/*! ./Group */ "./node_modules/antd/lib/checkbox/Group.js"));
|
|
|
|
|
|
var Checkbox = _Checkbox["default"];
|
|
|
Checkbox.Group = _Group["default"];
|
|
|
Checkbox.__ANT_CHECKBOX = true;
|
|
|
var _default = Checkbox;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/config-provider/SizeContext.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/config-provider/SizeContext.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.SizeContextProvider = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var SizeContext = /*#__PURE__*/React.createContext(undefined);
|
|
|
|
|
|
var SizeContextProvider = function SizeContextProvider(_ref) {
|
|
|
var children = _ref.children,
|
|
|
size = _ref.size;
|
|
|
return /*#__PURE__*/React.createElement(SizeContext.Consumer, null, function (originSize) {
|
|
|
return /*#__PURE__*/React.createElement(SizeContext.Provider, {
|
|
|
value: size || originSize
|
|
|
}, children);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
exports.SizeContextProvider = SizeContextProvider;
|
|
|
var _default = SizeContext;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/config-provider/context.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/config-provider/context.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.withConfigConsumer = withConfigConsumer;
|
|
|
exports.ConfigConsumer = exports.ConfigContext = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _renderEmpty = _interopRequireDefault(__webpack_require__(/*! ./renderEmpty */ "./node_modules/antd/lib/config-provider/renderEmpty.js"));
|
|
|
|
|
|
var defaultGetPrefixCls = function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
|
|
|
if (customizePrefixCls) return customizePrefixCls;
|
|
|
return suffixCls ? "ant-".concat(suffixCls) : 'ant';
|
|
|
};
|
|
|
|
|
|
var ConfigContext = /*#__PURE__*/React.createContext({
|
|
|
// We provide a default function for Context without provider
|
|
|
getPrefixCls: defaultGetPrefixCls,
|
|
|
renderEmpty: _renderEmpty["default"]
|
|
|
});
|
|
|
exports.ConfigContext = ConfigContext;
|
|
|
var ConfigConsumer = ConfigContext.Consumer;
|
|
|
/** @deprecated Use hooks instead. This is a legacy function */
|
|
|
|
|
|
exports.ConfigConsumer = ConfigConsumer;
|
|
|
|
|
|
function withConfigConsumer(config) {
|
|
|
return function withConfigConsumerFunc(Component) {
|
|
|
// Wrap with ConfigConsumer. Since we need compatible with react 15, be care when using ref methods
|
|
|
var SFC = function SFC(props) {
|
|
|
return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (configProps) {
|
|
|
var basicPrefixCls = config.prefixCls;
|
|
|
var getPrefixCls = configProps.getPrefixCls;
|
|
|
var customizePrefixCls = props.prefixCls;
|
|
|
var prefixCls = getPrefixCls(basicPrefixCls, customizePrefixCls);
|
|
|
return /*#__PURE__*/React.createElement(Component, (0, _extends2["default"])({}, configProps, props, {
|
|
|
prefixCls: prefixCls
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var cons = Component.constructor;
|
|
|
var name = cons && cons.displayName || Component.name || 'Component';
|
|
|
SFC.displayName = "withConfigConsumer(".concat(name, ")");
|
|
|
return SFC;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/config-provider/index.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/config-provider/index.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
Object.defineProperty(exports, "ConfigConsumer", {
|
|
|
enumerable: true,
|
|
|
get: function get() {
|
|
|
return _context.ConfigConsumer;
|
|
|
}
|
|
|
});
|
|
|
Object.defineProperty(exports, "ConfigContext", {
|
|
|
enumerable: true,
|
|
|
get: function get() {
|
|
|
return _context.ConfigContext;
|
|
|
}
|
|
|
});
|
|
|
exports["default"] = exports.globalConfig = exports.defaultPrefixCls = exports.configConsumerProps = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _Context = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/lib/components/Context */ "./node_modules/@ant-design/icons/lib/components/Context.js"));
|
|
|
|
|
|
var _rcFieldForm = __webpack_require__(/*! rc-field-form */ "./node_modules/rc-field-form/es/index.js");
|
|
|
|
|
|
var _useMemo = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/hooks/useMemo */ "./node_modules/rc-util/lib/hooks/useMemo.js"));
|
|
|
|
|
|
var _localeProvider = _interopRequireWildcard(__webpack_require__(/*! ../locale-provider */ "./node_modules/antd/lib/locale-provider/index.js"));
|
|
|
|
|
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/antd/lib/locale-provider/LocaleReceiver.js"));
|
|
|
|
|
|
var _context = __webpack_require__(/*! ./context */ "./node_modules/antd/lib/config-provider/context.js");
|
|
|
|
|
|
var _SizeContext = _interopRequireWildcard(__webpack_require__(/*! ./SizeContext */ "./node_modules/antd/lib/config-provider/SizeContext.js"));
|
|
|
|
|
|
var _message = _interopRequireDefault(__webpack_require__(/*! ../message */ "./node_modules/antd/lib/message/index.js"));
|
|
|
|
|
|
var _notification = _interopRequireDefault(__webpack_require__(/*! ../notification */ "./node_modules/antd/lib/notification/index.js"));
|
|
|
|
|
|
var configConsumerProps = ['getTargetContainer', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader']; // These props is used by `useContext` directly in sub component
|
|
|
|
|
|
exports.configConsumerProps = configConsumerProps;
|
|
|
var PASSED_PROPS = ['getTargetContainer', 'getPopupContainer', 'renderEmpty', 'pageHeader', 'input', 'form'];
|
|
|
var defaultPrefixCls = 'ant';
|
|
|
exports.defaultPrefixCls = defaultPrefixCls;
|
|
|
var globalPrefixCls;
|
|
|
|
|
|
var setGlobalConfig = function setGlobalConfig(params) {
|
|
|
if (params.prefixCls !== undefined) {
|
|
|
globalPrefixCls = params.prefixCls;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function getGlobalPrefixCls() {
|
|
|
return globalPrefixCls || defaultPrefixCls;
|
|
|
}
|
|
|
|
|
|
var globalConfig = function globalConfig() {
|
|
|
return {
|
|
|
getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
|
|
|
if (customizePrefixCls) return customizePrefixCls;
|
|
|
return suffixCls ? "".concat(getGlobalPrefixCls(), "-").concat(suffixCls) : getGlobalPrefixCls();
|
|
|
},
|
|
|
getRootPrefixCls: function getRootPrefixCls(rootPrefixCls, customizePrefixCls) {
|
|
|
// Customize rootPrefixCls is first priority
|
|
|
if (rootPrefixCls) {
|
|
|
return rootPrefixCls;
|
|
|
} // If Global prefixCls provided, use this
|
|
|
|
|
|
|
|
|
if (globalPrefixCls) {
|
|
|
return globalPrefixCls;
|
|
|
} // [Legacy] If customize prefixCls provided, we cut it to get the prefixCls
|
|
|
|
|
|
|
|
|
if (customizePrefixCls && customizePrefixCls.includes('-')) {
|
|
|
return customizePrefixCls.replace(/^(.*)-[^-]*$/, '$1');
|
|
|
} // Fallback to default prefixCls
|
|
|
|
|
|
|
|
|
return getGlobalPrefixCls();
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
|
|
|
exports.globalConfig = globalConfig;
|
|
|
|
|
|
var ProviderChildren = function ProviderChildren(props) {
|
|
|
var children = props.children,
|
|
|
csp = props.csp,
|
|
|
autoInsertSpaceInButton = props.autoInsertSpaceInButton,
|
|
|
form = props.form,
|
|
|
locale = props.locale,
|
|
|
componentSize = props.componentSize,
|
|
|
direction = props.direction,
|
|
|
space = props.space,
|
|
|
virtual = props.virtual,
|
|
|
dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
|
|
|
legacyLocale = props.legacyLocale,
|
|
|
parentContext = props.parentContext,
|
|
|
iconPrefixCls = props.iconPrefixCls;
|
|
|
var getPrefixCls = React.useCallback(function (suffixCls, customizePrefixCls) {
|
|
|
var prefixCls = props.prefixCls;
|
|
|
if (customizePrefixCls) return customizePrefixCls;
|
|
|
var mergedPrefixCls = prefixCls || parentContext.getPrefixCls('');
|
|
|
return suffixCls ? "".concat(mergedPrefixCls, "-").concat(suffixCls) : mergedPrefixCls;
|
|
|
}, [parentContext.getPrefixCls]);
|
|
|
var config = (0, _extends2["default"])((0, _extends2["default"])({}, parentContext), {
|
|
|
csp: csp,
|
|
|
autoInsertSpaceInButton: autoInsertSpaceInButton,
|
|
|
locale: locale || legacyLocale,
|
|
|
direction: direction,
|
|
|
space: space,
|
|
|
virtual: virtual,
|
|
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
|
getPrefixCls: getPrefixCls
|
|
|
}); // Pass the props used by `useContext` directly with child component.
|
|
|
// These props should merged into `config`.
|
|
|
|
|
|
PASSED_PROPS.forEach(function (propName) {
|
|
|
var propValue = props[propName];
|
|
|
|
|
|
if (propValue) {
|
|
|
config[propName] = propValue;
|
|
|
}
|
|
|
}); // https://github.com/ant-design/ant-design/issues/27617
|
|
|
|
|
|
var memoedConfig = (0, _useMemo["default"])(function () {
|
|
|
return config;
|
|
|
}, config, function (prevConfig, currentConfig) {
|
|
|
var prevKeys = Object.keys(prevConfig);
|
|
|
var currentKeys = Object.keys(currentConfig);
|
|
|
return prevKeys.length !== currentKeys.length || prevKeys.some(function (key) {
|
|
|
return prevConfig[key] !== currentConfig[key];
|
|
|
});
|
|
|
});
|
|
|
var memoIconContextValue = React.useMemo(function () {
|
|
|
return {
|
|
|
prefixCls: iconPrefixCls,
|
|
|
csp: csp
|
|
|
};
|
|
|
}, [iconPrefixCls]);
|
|
|
var childNode = children; // Additional Form provider
|
|
|
|
|
|
var validateMessages = {};
|
|
|
|
|
|
if (locale && locale.Form && locale.Form.defaultValidateMessages) {
|
|
|
validateMessages = locale.Form.defaultValidateMessages;
|
|
|
}
|
|
|
|
|
|
if (form && form.validateMessages) {
|
|
|
validateMessages = (0, _extends2["default"])((0, _extends2["default"])({}, validateMessages), form.validateMessages);
|
|
|
}
|
|
|
|
|
|
if (Object.keys(validateMessages).length > 0) {
|
|
|
childNode = /*#__PURE__*/React.createElement(_rcFieldForm.FormProvider, {
|
|
|
validateMessages: validateMessages
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
if (locale) {
|
|
|
childNode = /*#__PURE__*/React.createElement(_localeProvider["default"], {
|
|
|
locale: locale,
|
|
|
_ANT_MARK__: _localeProvider.ANT_MARK
|
|
|
}, childNode);
|
|
|
}
|
|
|
|
|
|
if (iconPrefixCls) {
|
|
|
childNode = /*#__PURE__*/React.createElement(_Context["default"].Provider, {
|
|
|
value: memoIconContextValue
|
|
|
}, childNode);
|
|
|
}
|
|
|
|
|
|
if (componentSize) {
|
|
|
childNode = /*#__PURE__*/React.createElement(_SizeContext.SizeContextProvider, {
|
|
|
size: componentSize
|
|
|
}, childNode);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_context.ConfigContext.Provider, {
|
|
|
value: memoedConfig
|
|
|
}, childNode);
|
|
|
};
|
|
|
|
|
|
var ConfigProvider = function ConfigProvider(props) {
|
|
|
React.useEffect(function () {
|
|
|
if (props.direction) {
|
|
|
_message["default"].config({
|
|
|
rtl: props.direction === 'rtl'
|
|
|
});
|
|
|
|
|
|
_notification["default"].config({
|
|
|
rtl: props.direction === 'rtl'
|
|
|
});
|
|
|
}
|
|
|
}, [props.direction]);
|
|
|
return /*#__PURE__*/React.createElement(_LocaleReceiver["default"], null, function (_, __, legacyLocale) {
|
|
|
return /*#__PURE__*/React.createElement(_context.ConfigConsumer, null, function (context) {
|
|
|
return /*#__PURE__*/React.createElement(ProviderChildren, (0, _extends2["default"])({
|
|
|
parentContext: context,
|
|
|
legacyLocale: legacyLocale
|
|
|
}, props));
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
/** @private internal Usage. do not use in your production */
|
|
|
|
|
|
|
|
|
ConfigProvider.ConfigContext = _context.ConfigContext;
|
|
|
ConfigProvider.SizeContext = _SizeContext["default"];
|
|
|
ConfigProvider.config = setGlobalConfig;
|
|
|
var _default = ConfigProvider;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/config-provider/renderEmpty.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/config-provider/renderEmpty.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _empty = _interopRequireDefault(__webpack_require__(/*! ../empty */ "./node_modules/antd/lib/empty/index.js"));
|
|
|
|
|
|
var _ = __webpack_require__(/*! . */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var renderEmpty = function renderEmpty(componentName) {
|
|
|
return /*#__PURE__*/React.createElement(_.ConfigConsumer, null, function (_ref) {
|
|
|
var getPrefixCls = _ref.getPrefixCls;
|
|
|
var prefix = getPrefixCls('empty');
|
|
|
|
|
|
switch (componentName) {
|
|
|
case 'Table':
|
|
|
case 'List':
|
|
|
return /*#__PURE__*/React.createElement(_empty["default"], {
|
|
|
image: _empty["default"].PRESENTED_IMAGE_SIMPLE
|
|
|
});
|
|
|
|
|
|
case 'Select':
|
|
|
case 'TreeSelect':
|
|
|
case 'Cascader':
|
|
|
case 'Transfer':
|
|
|
case 'Mentions':
|
|
|
return /*#__PURE__*/React.createElement(_empty["default"], {
|
|
|
image: _empty["default"].PRESENTED_IMAGE_SIMPLE,
|
|
|
className: "".concat(prefix, "-small")
|
|
|
});
|
|
|
|
|
|
default:
|
|
|
return /*#__PURE__*/React.createElement(_empty["default"], null);
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var _default = renderEmpty;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/date-picker/locale/en_US.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/date-picker/locale/en_US.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(/*! rc-picker/lib/locale/en_US */ "./node_modules/rc-picker/lib/locale/en_US.js"));
|
|
|
|
|
|
var _en_US2 = _interopRequireDefault(__webpack_require__(/*! ../../time-picker/locale/en_US */ "./node_modules/antd/lib/time-picker/locale/en_US.js"));
|
|
|
|
|
|
// Merge into a locale object
|
|
|
var locale = {
|
|
|
lang: (0, _extends2["default"])({
|
|
|
placeholder: 'Select date',
|
|
|
yearPlaceholder: 'Select year',
|
|
|
quarterPlaceholder: 'Select quarter',
|
|
|
monthPlaceholder: 'Select month',
|
|
|
weekPlaceholder: 'Select week',
|
|
|
rangePlaceholder: ['Start date', 'End date'],
|
|
|
rangeYearPlaceholder: ['Start year', 'End year'],
|
|
|
rangeMonthPlaceholder: ['Start month', 'End month'],
|
|
|
rangeWeekPlaceholder: ['Start week', 'End week']
|
|
|
}, _en_US["default"]),
|
|
|
timePickerLocale: (0, _extends2["default"])({}, _en_US2["default"])
|
|
|
}; // All settings at:
|
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
|
|
var _default = locale;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/dropdown/dropdown-button.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/dropdown/dropdown-button.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _EllipsisOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/EllipsisOutlined */ "./node_modules/@ant-design/icons/EllipsisOutlined.js"));
|
|
|
|
|
|
var _button = _interopRequireDefault(__webpack_require__(/*! ../button */ "./node_modules/antd/lib/button/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _dropdown = _interopRequireDefault(__webpack_require__(/*! ./dropdown */ "./node_modules/antd/lib/dropdown/dropdown.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var ButtonGroup = _button["default"].Group;
|
|
|
|
|
|
var DropdownButton = function DropdownButton(props) {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getContextPopupContainer = _React$useContext.getPopupContainer,
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
type = props.type,
|
|
|
disabled = props.disabled,
|
|
|
onClick = props.onClick,
|
|
|
htmlType = props.htmlType,
|
|
|
children = props.children,
|
|
|
className = props.className,
|
|
|
overlay = props.overlay,
|
|
|
trigger = props.trigger,
|
|
|
align = props.align,
|
|
|
visible = props.visible,
|
|
|
onVisibleChange = props.onVisibleChange,
|
|
|
placement = props.placement,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
href = props.href,
|
|
|
_props$icon = props.icon,
|
|
|
icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(_EllipsisOutlined["default"], null) : _props$icon,
|
|
|
title = props.title,
|
|
|
buttonsRender = props.buttonsRender,
|
|
|
restProps = __rest(props, ["prefixCls", "type", "disabled", "onClick", "htmlType", "children", "className", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender"]);
|
|
|
|
|
|
var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
|
|
|
var dropdownProps = {
|
|
|
align: align,
|
|
|
overlay: overlay,
|
|
|
disabled: disabled,
|
|
|
trigger: disabled ? [] : trigger,
|
|
|
onVisibleChange: onVisibleChange,
|
|
|
getPopupContainer: getPopupContainer || getContextPopupContainer
|
|
|
};
|
|
|
|
|
|
if ('visible' in props) {
|
|
|
dropdownProps.visible = visible;
|
|
|
}
|
|
|
|
|
|
if ('placement' in props) {
|
|
|
dropdownProps.placement = placement;
|
|
|
} else {
|
|
|
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
|
|
}
|
|
|
|
|
|
var leftButton = /*#__PURE__*/React.createElement(_button["default"], {
|
|
|
type: type,
|
|
|
disabled: disabled,
|
|
|
onClick: onClick,
|
|
|
htmlType: htmlType,
|
|
|
href: href,
|
|
|
title: title
|
|
|
}, children);
|
|
|
var rightButton = /*#__PURE__*/React.createElement(_button["default"], {
|
|
|
type: type,
|
|
|
icon: icon
|
|
|
});
|
|
|
|
|
|
var _buttonsRender = buttonsRender([leftButton, rightButton]),
|
|
|
_buttonsRender2 = (0, _slicedToArray2["default"])(_buttonsRender, 2),
|
|
|
leftButtonToRender = _buttonsRender2[0],
|
|
|
rightButtonToRender = _buttonsRender2[1];
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(ButtonGroup, (0, _extends2["default"])({}, restProps, {
|
|
|
className: (0, _classnames["default"])(prefixCls, className)
|
|
|
}), leftButtonToRender, /*#__PURE__*/React.createElement(_dropdown["default"], dropdownProps, rightButtonToRender));
|
|
|
};
|
|
|
|
|
|
DropdownButton.__ANT_BUTTON = true;
|
|
|
DropdownButton.defaultProps = {
|
|
|
type: 'default',
|
|
|
buttonsRender: function buttonsRender(buttons) {
|
|
|
return buttons;
|
|
|
}
|
|
|
};
|
|
|
var _default = DropdownButton;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/dropdown/dropdown.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/dropdown/dropdown.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcDropdown = _interopRequireDefault(__webpack_require__(/*! rc-dropdown */ "./node_modules/rc-dropdown/es/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _RightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/RightOutlined */ "./node_modules/@ant-design/icons/RightOutlined.js"));
|
|
|
|
|
|
var _dropdownButton = _interopRequireDefault(__webpack_require__(/*! ./dropdown-button */ "./node_modules/antd/lib/dropdown/dropdown-button.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var _type = __webpack_require__(/*! ../_util/type */ "./node_modules/antd/lib/_util/type.js");
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var Placements = (0, _type.tuple)('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight');
|
|
|
|
|
|
var Dropdown = function Dropdown(props) {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getContextPopupContainer = _React$useContext.getPopupContainer,
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var getTransitionName = function getTransitionName() {
|
|
|
var rootPrefixCls = getPrefixCls();
|
|
|
var _props$placement = props.placement,
|
|
|
placement = _props$placement === void 0 ? '' : _props$placement,
|
|
|
transitionName = props.transitionName;
|
|
|
|
|
|
if (transitionName !== undefined) {
|
|
|
return transitionName;
|
|
|
}
|
|
|
|
|
|
if (placement.indexOf('top') >= 0) {
|
|
|
return "".concat(rootPrefixCls, "-slide-down");
|
|
|
}
|
|
|
|
|
|
return "".concat(rootPrefixCls, "-slide-up");
|
|
|
};
|
|
|
|
|
|
var renderOverlay = function renderOverlay(prefixCls) {
|
|
|
// rc-dropdown already can process the function of overlay, but we have check logic here.
|
|
|
// So we need render the element to check and pass back to rc-dropdown.
|
|
|
var overlay = props.overlay;
|
|
|
var overlayNode;
|
|
|
|
|
|
if (typeof overlay === 'function') {
|
|
|
overlayNode = overlay();
|
|
|
} else {
|
|
|
overlayNode = overlay;
|
|
|
}
|
|
|
|
|
|
overlayNode = React.Children.only(typeof overlayNode === 'string' ? /*#__PURE__*/React.createElement("span", null, overlayNode) : overlayNode);
|
|
|
var overlayProps = overlayNode.props; // Warning if use other mode
|
|
|
|
|
|
(0, _devWarning["default"])(!overlayProps.mode || overlayProps.mode === 'vertical', 'Dropdown', "mode=\"".concat(overlayProps.mode, "\" is not supported for Dropdown's Menu.")); // menu cannot be selectable in dropdown defaultly
|
|
|
// menu should be focusable in dropdown defaultly
|
|
|
|
|
|
var _overlayProps$selecta = overlayProps.selectable,
|
|
|
selectable = _overlayProps$selecta === void 0 ? false : _overlayProps$selecta,
|
|
|
_overlayProps$focusab = overlayProps.focusable,
|
|
|
focusable = _overlayProps$focusab === void 0 ? true : _overlayProps$focusab,
|
|
|
expandIcon = overlayProps.expandIcon;
|
|
|
var overlayNodeExpandIcon = typeof expandIcon !== 'undefined' && /*#__PURE__*/React.isValidElement(expandIcon) ? expandIcon : /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-menu-submenu-arrow")
|
|
|
}, /*#__PURE__*/React.createElement(_RightOutlined["default"], {
|
|
|
className: "".concat(prefixCls, "-menu-submenu-arrow-icon")
|
|
|
}));
|
|
|
var fixedModeOverlay = typeof overlayNode.type === 'string' ? overlayNode : (0, _reactNode.cloneElement)(overlayNode, {
|
|
|
mode: 'vertical',
|
|
|
selectable: selectable,
|
|
|
focusable: focusable,
|
|
|
expandIcon: overlayNodeExpandIcon
|
|
|
});
|
|
|
return fixedModeOverlay;
|
|
|
};
|
|
|
|
|
|
var getPlacement = function getPlacement() {
|
|
|
var placement = props.placement;
|
|
|
|
|
|
if (placement !== undefined) {
|
|
|
return placement;
|
|
|
}
|
|
|
|
|
|
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
|
};
|
|
|
|
|
|
var arrow = props.arrow,
|
|
|
customizePrefixCls = props.prefixCls,
|
|
|
children = props.children,
|
|
|
trigger = props.trigger,
|
|
|
disabled = props.disabled,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
overlayClassName = props.overlayClassName;
|
|
|
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
|
var child = React.Children.only(children);
|
|
|
var dropdownTrigger = (0, _reactNode.cloneElement)(child, {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-trigger"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), child.props.className),
|
|
|
disabled: disabled
|
|
|
});
|
|
|
var overlayClassNameCustomized = (0, _classnames["default"])(overlayClassName, (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
|
|
var triggerActions = disabled ? [] : trigger;
|
|
|
var alignPoint;
|
|
|
|
|
|
if (triggerActions && triggerActions.indexOf('contextMenu') !== -1) {
|
|
|
alignPoint = true;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_rcDropdown["default"], (0, _extends2["default"])({
|
|
|
arrow: arrow,
|
|
|
alignPoint: alignPoint
|
|
|
}, props, {
|
|
|
overlayClassName: overlayClassNameCustomized,
|
|
|
prefixCls: prefixCls,
|
|
|
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
|
|
transitionName: getTransitionName(),
|
|
|
trigger: triggerActions,
|
|
|
overlay: function overlay() {
|
|
|
return renderOverlay(prefixCls);
|
|
|
},
|
|
|
placement: getPlacement()
|
|
|
}), dropdownTrigger);
|
|
|
};
|
|
|
|
|
|
Dropdown.Button = _dropdownButton["default"];
|
|
|
Dropdown.defaultProps = {
|
|
|
mouseEnterDelay: 0.15,
|
|
|
mouseLeaveDelay: 0.1
|
|
|
};
|
|
|
var _default = Dropdown;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/dropdown/index.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/dropdown/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _dropdown = _interopRequireDefault(__webpack_require__(/*! ./dropdown */ "./node_modules/antd/lib/dropdown/dropdown.js"));
|
|
|
|
|
|
var _default = _dropdown["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/empty/empty.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/empty/empty.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var Empty = function Empty() {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
|
|
|
var prefixCls = getPrefixCls('empty-img-default');
|
|
|
return /*#__PURE__*/React.createElement("svg", {
|
|
|
className: prefixCls,
|
|
|
width: "184",
|
|
|
height: "152",
|
|
|
viewBox: "0 0 184 152",
|
|
|
xmlns: "http://www.w3.org/2000/svg"
|
|
|
}, /*#__PURE__*/React.createElement("g", {
|
|
|
fill: "none",
|
|
|
fillRule: "evenodd"
|
|
|
}, /*#__PURE__*/React.createElement("g", {
|
|
|
transform: "translate(24 31.67)"
|
|
|
}, /*#__PURE__*/React.createElement("ellipse", {
|
|
|
className: "".concat(prefixCls, "-ellipse"),
|
|
|
cx: "67.797",
|
|
|
cy: "106.89",
|
|
|
rx: "67.797",
|
|
|
ry: "12.668"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
className: "".concat(prefixCls, "-path-1"),
|
|
|
d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
className: "".concat(prefixCls, "-path-2"),
|
|
|
d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
|
|
|
transform: "translate(13.56)"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
className: "".concat(prefixCls, "-path-3"),
|
|
|
d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
className: "".concat(prefixCls, "-path-4"),
|
|
|
d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"
|
|
|
})), /*#__PURE__*/React.createElement("path", {
|
|
|
className: "".concat(prefixCls, "-path-5"),
|
|
|
d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"
|
|
|
}), /*#__PURE__*/React.createElement("g", {
|
|
|
className: "".concat(prefixCls, "-g"),
|
|
|
transform: "translate(149.65 15.383)"
|
|
|
}, /*#__PURE__*/React.createElement("ellipse", {
|
|
|
cx: "20.654",
|
|
|
cy: "3.167",
|
|
|
rx: "2.849",
|
|
|
ry: "2.815"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
|
|
|
}))));
|
|
|
};
|
|
|
|
|
|
var _default = Empty;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/empty/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/empty/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/antd/lib/locale-provider/LocaleReceiver.js"));
|
|
|
|
|
|
var _empty = _interopRequireDefault(__webpack_require__(/*! ./empty */ "./node_modules/antd/lib/empty/empty.js"));
|
|
|
|
|
|
var _simple = _interopRequireDefault(__webpack_require__(/*! ./simple */ "./node_modules/antd/lib/empty/simple.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var defaultEmptyImg = /*#__PURE__*/React.createElement(_empty["default"], null);
|
|
|
var simpleEmptyImg = /*#__PURE__*/React.createElement(_simple["default"], null);
|
|
|
|
|
|
var Empty = function Empty(_a) {
|
|
|
var className = _a.className,
|
|
|
customizePrefixCls = _a.prefixCls,
|
|
|
_a$image = _a.image,
|
|
|
image = _a$image === void 0 ? defaultEmptyImg : _a$image,
|
|
|
description = _a.description,
|
|
|
children = _a.children,
|
|
|
imageStyle = _a.imageStyle,
|
|
|
restProps = __rest(_a, ["className", "prefixCls", "image", "description", "children", "imageStyle"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_LocaleReceiver["default"], {
|
|
|
componentName: "Empty"
|
|
|
}, function (locale) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = getPrefixCls('empty', customizePrefixCls);
|
|
|
var des = typeof description !== 'undefined' ? description : locale.description;
|
|
|
var alt = typeof des === 'string' ? des : 'empty';
|
|
|
var imageNode = null;
|
|
|
|
|
|
if (typeof image === 'string') {
|
|
|
imageNode = /*#__PURE__*/React.createElement("img", {
|
|
|
alt: alt,
|
|
|
src: image
|
|
|
});
|
|
|
} else {
|
|
|
imageNode = image;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
|
className: (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-normal"), image === simpleEmptyImg), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className)
|
|
|
}, restProps), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-image"),
|
|
|
style: imageStyle
|
|
|
}, imageNode), des && /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-description")
|
|
|
}, des), children && /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-footer")
|
|
|
}, children));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
|
|
Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
|
|
|
var _default = Empty;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/empty/simple.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/empty/simple.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var Simple = function Simple() {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
|
|
|
var prefixCls = getPrefixCls('empty-img-simple');
|
|
|
return /*#__PURE__*/React.createElement("svg", {
|
|
|
className: prefixCls,
|
|
|
width: "64",
|
|
|
height: "41",
|
|
|
viewBox: "0 0 64 41",
|
|
|
xmlns: "http://www.w3.org/2000/svg"
|
|
|
}, /*#__PURE__*/React.createElement("g", {
|
|
|
transform: "translate(0 1)",
|
|
|
fill: "none",
|
|
|
fillRule: "evenodd"
|
|
|
}, /*#__PURE__*/React.createElement("ellipse", {
|
|
|
className: "".concat(prefixCls, "-ellipse"),
|
|
|
cx: "32",
|
|
|
cy: "33",
|
|
|
rx: "32",
|
|
|
ry: "7"
|
|
|
}), /*#__PURE__*/React.createElement("g", {
|
|
|
className: "".concat(prefixCls, "-g"),
|
|
|
fillRule: "nonzero"
|
|
|
}, /*#__PURE__*/React.createElement("path", {
|
|
|
d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
|
|
|
}), /*#__PURE__*/React.createElement("path", {
|
|
|
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
|
|
|
className: "".concat(prefixCls, "-path")
|
|
|
}))));
|
|
|
};
|
|
|
|
|
|
var _default = Simple;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/grid/hooks/useBreakpoint.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/grid/hooks/useBreakpoint.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
var _responsiveObserve = _interopRequireDefault(__webpack_require__(/*! ../../_util/responsiveObserve */ "./node_modules/antd/lib/_util/responsiveObserve.js"));
|
|
|
|
|
|
function useBreakpoint() {
|
|
|
var _useState = (0, _react.useState)({}),
|
|
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
|
screens = _useState2[0],
|
|
|
setScreens = _useState2[1];
|
|
|
|
|
|
(0, _react.useEffect)(function () {
|
|
|
var token = _responsiveObserve["default"].subscribe(function (supportScreens) {
|
|
|
setScreens(supportScreens);
|
|
|
});
|
|
|
|
|
|
return function () {
|
|
|
return _responsiveObserve["default"].unsubscribe(token);
|
|
|
};
|
|
|
}, []);
|
|
|
return screens;
|
|
|
}
|
|
|
|
|
|
var _default = useBreakpoint;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/layout/Sider.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/layout/Sider.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.SiderContext = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _BarsOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/BarsOutlined */ "./node_modules/@ant-design/icons/BarsOutlined.js"));
|
|
|
|
|
|
var _RightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/RightOutlined */ "./node_modules/@ant-design/icons/RightOutlined.js"));
|
|
|
|
|
|
var _LeftOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/LeftOutlined */ "./node_modules/@ant-design/icons/LeftOutlined.js"));
|
|
|
|
|
|
var _layout = __webpack_require__(/*! ./layout */ "./node_modules/antd/lib/layout/layout.js");
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _isNumeric = _interopRequireDefault(__webpack_require__(/*! ../_util/isNumeric */ "./node_modules/antd/lib/_util/isNumeric.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var dimensionMaxMap = {
|
|
|
xs: '479.98px',
|
|
|
sm: '575.98px',
|
|
|
md: '767.98px',
|
|
|
lg: '991.98px',
|
|
|
xl: '1199.98px',
|
|
|
xxl: '1599.98px'
|
|
|
};
|
|
|
var SiderContext = /*#__PURE__*/React.createContext({});
|
|
|
exports.SiderContext = SiderContext;
|
|
|
|
|
|
var generateId = function () {
|
|
|
var i = 0;
|
|
|
return function () {
|
|
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
|
i += 1;
|
|
|
return "".concat(prefix).concat(i);
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
var Sider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
trigger = _a.trigger,
|
|
|
children = _a.children,
|
|
|
_a$defaultCollapsed = _a.defaultCollapsed,
|
|
|
defaultCollapsed = _a$defaultCollapsed === void 0 ? false : _a$defaultCollapsed,
|
|
|
_a$theme = _a.theme,
|
|
|
theme = _a$theme === void 0 ? 'dark' : _a$theme,
|
|
|
_a$style = _a.style,
|
|
|
style = _a$style === void 0 ? {} : _a$style,
|
|
|
_a$collapsible = _a.collapsible,
|
|
|
collapsible = _a$collapsible === void 0 ? false : _a$collapsible,
|
|
|
_a$reverseArrow = _a.reverseArrow,
|
|
|
reverseArrow = _a$reverseArrow === void 0 ? false : _a$reverseArrow,
|
|
|
_a$width = _a.width,
|
|
|
width = _a$width === void 0 ? 200 : _a$width,
|
|
|
_a$collapsedWidth = _a.collapsedWidth,
|
|
|
collapsedWidth = _a$collapsedWidth === void 0 ? 80 : _a$collapsedWidth,
|
|
|
zeroWidthTriggerStyle = _a.zeroWidthTriggerStyle,
|
|
|
breakpoint = _a.breakpoint,
|
|
|
onCollapse = _a.onCollapse,
|
|
|
onBreakpoint = _a.onBreakpoint,
|
|
|
props = __rest(_a, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
|
|
|
|
|
|
var _useContext = (0, React.useContext)(_layout.LayoutContext),
|
|
|
siderHook = _useContext.siderHook;
|
|
|
|
|
|
var _useState = (0, React.useState)('collapsed' in props ? props.collapsed : defaultCollapsed),
|
|
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
|
collapsed = _useState2[0],
|
|
|
setCollapsed = _useState2[1];
|
|
|
|
|
|
var _useState3 = (0, React.useState)(false),
|
|
|
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
|
below = _useState4[0],
|
|
|
setBelow = _useState4[1];
|
|
|
|
|
|
(0, React.useEffect)(function () {
|
|
|
if ('collapsed' in props) {
|
|
|
setCollapsed(props.collapsed);
|
|
|
}
|
|
|
}, [props.collapsed]);
|
|
|
|
|
|
var handleSetCollapsed = function handleSetCollapsed(value, type) {
|
|
|
if (!('collapsed' in props)) {
|
|
|
setCollapsed(value);
|
|
|
}
|
|
|
|
|
|
onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(value, type);
|
|
|
}; // ========================= Responsive =========================
|
|
|
|
|
|
|
|
|
var responsiveHandlerRef = (0, React.useRef)();
|
|
|
|
|
|
responsiveHandlerRef.current = function (mql) {
|
|
|
setBelow(mql.matches);
|
|
|
onBreakpoint === null || onBreakpoint === void 0 ? void 0 : onBreakpoint(mql.matches);
|
|
|
|
|
|
if (collapsed !== mql.matches) {
|
|
|
handleSetCollapsed(mql.matches, 'responsive');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
(0, React.useEffect)(function () {
|
|
|
function responsiveHandler(mql) {
|
|
|
return responsiveHandlerRef.current(mql);
|
|
|
}
|
|
|
|
|
|
var mql;
|
|
|
|
|
|
if (typeof window !== 'undefined') {
|
|
|
var _window = window,
|
|
|
matchMedia = _window.matchMedia;
|
|
|
|
|
|
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
|
|
mql = matchMedia("(max-width: ".concat(dimensionMaxMap[breakpoint], ")"));
|
|
|
|
|
|
try {
|
|
|
mql.addEventListener('change', responsiveHandler);
|
|
|
} catch (error) {
|
|
|
mql.addListener(responsiveHandler);
|
|
|
}
|
|
|
|
|
|
responsiveHandler(mql);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return function () {
|
|
|
try {
|
|
|
mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
|
|
|
} catch (error) {
|
|
|
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
|
|
}
|
|
|
};
|
|
|
}, []);
|
|
|
(0, React.useEffect)(function () {
|
|
|
var uniqueId = generateId('ant-sider-');
|
|
|
siderHook.addSider(uniqueId);
|
|
|
return function () {
|
|
|
return siderHook.removeSider(uniqueId);
|
|
|
};
|
|
|
}, []);
|
|
|
|
|
|
var toggle = function toggle() {
|
|
|
handleSetCollapsed(!collapsed, 'clickTrigger');
|
|
|
};
|
|
|
|
|
|
var _useContext2 = (0, React.useContext)(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _useContext2.getPrefixCls;
|
|
|
|
|
|
var renderSider = function renderSider() {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
|
|
|
var divProps = (0, _omit["default"])(props, ['collapsed']);
|
|
|
var rawWidth = collapsed ? collapsedWidth : width; // use "px" as fallback unit for width
|
|
|
|
|
|
var siderWidth = (0, _isNumeric["default"])(rawWidth) ? "".concat(rawWidth, "px") : String(rawWidth); // special trigger when collapsedWidth == 0
|
|
|
|
|
|
var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? /*#__PURE__*/React.createElement("span", {
|
|
|
onClick: toggle,
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-zero-width-trigger"), "".concat(prefixCls, "-zero-width-trigger-").concat(reverseArrow ? 'right' : 'left')),
|
|
|
style: zeroWidthTriggerStyle
|
|
|
}, trigger || /*#__PURE__*/React.createElement(_BarsOutlined["default"], null)) : null;
|
|
|
var iconObj = {
|
|
|
expanded: reverseArrow ? /*#__PURE__*/React.createElement(_RightOutlined["default"], null) : /*#__PURE__*/React.createElement(_LeftOutlined["default"], null),
|
|
|
collapsed: reverseArrow ? /*#__PURE__*/React.createElement(_LeftOutlined["default"], null) : /*#__PURE__*/React.createElement(_RightOutlined["default"], null)
|
|
|
};
|
|
|
var status = collapsed ? 'collapsed' : 'expanded';
|
|
|
var defaultTrigger = iconObj[status];
|
|
|
var triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-trigger"),
|
|
|
onClick: toggle,
|
|
|
style: {
|
|
|
width: siderWidth
|
|
|
}
|
|
|
}, trigger || defaultTrigger) : null;
|
|
|
var divStyle = (0, _extends2["default"])((0, _extends2["default"])({}, style), {
|
|
|
flex: "0 0 ".concat(siderWidth),
|
|
|
maxWidth: siderWidth,
|
|
|
minWidth: siderWidth,
|
|
|
width: siderWidth
|
|
|
});
|
|
|
var siderCls = (0, _classnames["default"])(prefixCls, "".concat(prefixCls, "-").concat(theme), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-collapsed"), !!collapsed), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-below"), !!below), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), _classNames), className);
|
|
|
return /*#__PURE__*/React.createElement("aside", (0, _extends2["default"])({
|
|
|
className: siderCls
|
|
|
}, divProps, {
|
|
|
style: divStyle,
|
|
|
ref: ref
|
|
|
}), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-children")
|
|
|
}, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(SiderContext.Provider, {
|
|
|
value: {
|
|
|
siderCollapsed: collapsed,
|
|
|
collapsedWidth: collapsedWidth
|
|
|
}
|
|
|
}, renderSider());
|
|
|
});
|
|
|
Sider.displayName = 'Sider';
|
|
|
var _default = Sider;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/layout/layout.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/layout/layout.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.Content = exports.Footer = exports.Header = exports.LayoutContext = void 0;
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var LayoutContext = /*#__PURE__*/React.createContext({
|
|
|
siderHook: {
|
|
|
addSider: function addSider() {
|
|
|
return null;
|
|
|
},
|
|
|
removeSider: function removeSider() {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
exports.LayoutContext = LayoutContext;
|
|
|
|
|
|
function generator(_ref) {
|
|
|
var suffixCls = _ref.suffixCls,
|
|
|
tagName = _ref.tagName,
|
|
|
displayName = _ref.displayName;
|
|
|
return function (BasicComponent) {
|
|
|
var Adapter = function Adapter(props) {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls;
|
|
|
var prefixCls = getPrefixCls(suffixCls, customizePrefixCls);
|
|
|
return /*#__PURE__*/React.createElement(BasicComponent, (0, _extends2["default"])({
|
|
|
prefixCls: prefixCls,
|
|
|
tagName: tagName
|
|
|
}, props));
|
|
|
};
|
|
|
|
|
|
Adapter.displayName = displayName;
|
|
|
return Adapter;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var Basic = function Basic(props) {
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
children = props.children,
|
|
|
tagName = props.tagName,
|
|
|
others = __rest(props, ["prefixCls", "className", "children", "tagName"]);
|
|
|
|
|
|
var classString = (0, _classnames["default"])(prefixCls, className);
|
|
|
return /*#__PURE__*/React.createElement(tagName, (0, _extends2["default"])({
|
|
|
className: classString
|
|
|
}, others), children);
|
|
|
};
|
|
|
|
|
|
var BasicLayout = function BasicLayout(props) {
|
|
|
var _classNames;
|
|
|
|
|
|
var _React$useContext2 = React.useContext(_configProvider.ConfigContext),
|
|
|
direction = _React$useContext2.direction;
|
|
|
|
|
|
var _React$useState = React.useState([]),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
siders = _React$useState2[0],
|
|
|
setSiders = _React$useState2[1];
|
|
|
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
children = props.children,
|
|
|
hasSider = props.hasSider,
|
|
|
Tag = props.tagName,
|
|
|
others = __rest(props, ["prefixCls", "className", "children", "hasSider", "tagName"]);
|
|
|
|
|
|
var classString = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-has-sider"), typeof hasSider === 'boolean' ? hasSider : siders.length > 0), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
return /*#__PURE__*/React.createElement(LayoutContext.Provider, {
|
|
|
value: {
|
|
|
siderHook: {
|
|
|
addSider: function addSider(id) {
|
|
|
setSiders(function (prev) {
|
|
|
return [].concat((0, _toConsumableArray2["default"])(prev), [id]);
|
|
|
});
|
|
|
},
|
|
|
removeSider: function removeSider(id) {
|
|
|
setSiders(function (prev) {
|
|
|
return prev.filter(function (currentId) {
|
|
|
return currentId !== id;
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement(Tag, (0, _extends2["default"])({
|
|
|
className: classString
|
|
|
}, others), children));
|
|
|
};
|
|
|
|
|
|
var Layout = generator({
|
|
|
suffixCls: 'layout',
|
|
|
tagName: 'section',
|
|
|
displayName: 'Layout'
|
|
|
})(BasicLayout);
|
|
|
var Header = generator({
|
|
|
suffixCls: 'layout-header',
|
|
|
tagName: 'header',
|
|
|
displayName: 'Header'
|
|
|
})(Basic);
|
|
|
exports.Header = Header;
|
|
|
var Footer = generator({
|
|
|
suffixCls: 'layout-footer',
|
|
|
tagName: 'footer',
|
|
|
displayName: 'Footer'
|
|
|
})(Basic);
|
|
|
exports.Footer = Footer;
|
|
|
var Content = generator({
|
|
|
suffixCls: 'layout-content',
|
|
|
tagName: 'main',
|
|
|
displayName: 'Content'
|
|
|
})(Basic);
|
|
|
exports.Content = Content;
|
|
|
var _default = Layout;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale-provider/LocaleReceiver.js":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale-provider/LocaleReceiver.js ***!
|
|
|
\*****************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.useLocaleReceiver = useLocaleReceiver;
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _default = _interopRequireDefault(__webpack_require__(/*! ./default */ "./node_modules/antd/lib/locale-provider/default.js"));
|
|
|
|
|
|
var _context = _interopRequireDefault(__webpack_require__(/*! ./context */ "./node_modules/antd/lib/locale-provider/context.js"));
|
|
|
|
|
|
var LocaleReceiver = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(LocaleReceiver, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(LocaleReceiver);
|
|
|
|
|
|
function LocaleReceiver() {
|
|
|
(0, _classCallCheck2["default"])(this, LocaleReceiver);
|
|
|
return _super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(LocaleReceiver, [{
|
|
|
key: "getLocale",
|
|
|
value: function getLocale() {
|
|
|
var _this$props = this.props,
|
|
|
componentName = _this$props.componentName,
|
|
|
defaultLocale = _this$props.defaultLocale;
|
|
|
var locale = defaultLocale || _default["default"][componentName || 'global'];
|
|
|
var antLocale = this.context;
|
|
|
var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
|
|
|
return (0, _extends2["default"])((0, _extends2["default"])({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {});
|
|
|
}
|
|
|
}, {
|
|
|
key: "getLocaleCode",
|
|
|
value: function getLocaleCode() {
|
|
|
var antLocale = this.context;
|
|
|
var localeCode = antLocale && antLocale.locale; // Had use LocaleProvide but didn't set locale
|
|
|
|
|
|
if (antLocale && antLocale.exist && !localeCode) {
|
|
|
return _default["default"].locale;
|
|
|
}
|
|
|
|
|
|
return localeCode;
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return this.props.children(this.getLocale(), this.getLocaleCode(), this.context);
|
|
|
}
|
|
|
}]);
|
|
|
return LocaleReceiver;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports["default"] = LocaleReceiver;
|
|
|
LocaleReceiver.defaultProps = {
|
|
|
componentName: 'global'
|
|
|
};
|
|
|
LocaleReceiver.contextType = _context["default"];
|
|
|
|
|
|
function useLocaleReceiver(componentName, defaultLocale) {
|
|
|
var antLocale = React.useContext(_context["default"]);
|
|
|
var componentLocale = React.useMemo(function () {
|
|
|
var locale = defaultLocale || _default["default"][componentName || 'global'];
|
|
|
var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
|
|
|
return (0, _extends2["default"])((0, _extends2["default"])({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {});
|
|
|
}, [componentName, defaultLocale, antLocale]);
|
|
|
return [componentLocale];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale-provider/context.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale-provider/context.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
var LocaleContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
|
var _default = LocaleContext;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale-provider/default.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale-provider/default.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _default2 = _interopRequireDefault(__webpack_require__(/*! ../locale/default */ "./node_modules/antd/lib/locale/default.js"));
|
|
|
|
|
|
var _default = _default2["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale-provider/index.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale-provider/index.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.ANT_MARK = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var _locale = __webpack_require__(/*! ../modal/locale */ "./node_modules/antd/lib/modal/locale.js");
|
|
|
|
|
|
var _context = _interopRequireDefault(__webpack_require__(/*! ./context */ "./node_modules/antd/lib/locale-provider/context.js"));
|
|
|
|
|
|
var ANT_MARK = 'internalMark';
|
|
|
exports.ANT_MARK = ANT_MARK;
|
|
|
|
|
|
var LocaleProvider = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(LocaleProvider, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(LocaleProvider);
|
|
|
|
|
|
function LocaleProvider(props) {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2["default"])(this, LocaleProvider);
|
|
|
_this = _super.call(this, props);
|
|
|
(0, _locale.changeConfirmLocale)(props.locale && props.locale.Modal);
|
|
|
(0, _devWarning["default"])(props._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale');
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(LocaleProvider, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
(0, _locale.changeConfirmLocale)(this.props.locale && this.props.locale.Modal);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
var locale = this.props.locale;
|
|
|
|
|
|
if (prevProps.locale !== locale) {
|
|
|
(0, _locale.changeConfirmLocale)(locale && locale.Modal);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
(0, _locale.changeConfirmLocale)();
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this$props = this.props,
|
|
|
locale = _this$props.locale,
|
|
|
children = _this$props.children;
|
|
|
return /*#__PURE__*/React.createElement(_context["default"].Provider, {
|
|
|
value: (0, _extends2["default"])((0, _extends2["default"])({}, locale), {
|
|
|
exist: true
|
|
|
})
|
|
|
}, children);
|
|
|
}
|
|
|
}]);
|
|
|
return LocaleProvider;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports["default"] = LocaleProvider;
|
|
|
LocaleProvider.defaultProps = {
|
|
|
locale: {}
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale/default.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale/default.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(/*! rc-pagination/lib/locale/en_US */ "./node_modules/rc-pagination/lib/locale/en_US.js"));
|
|
|
|
|
|
var _en_US2 = _interopRequireDefault(__webpack_require__(/*! ../date-picker/locale/en_US */ "./node_modules/antd/lib/date-picker/locale/en_US.js"));
|
|
|
|
|
|
var _en_US3 = _interopRequireDefault(__webpack_require__(/*! ../time-picker/locale/en_US */ "./node_modules/antd/lib/time-picker/locale/en_US.js"));
|
|
|
|
|
|
var _en_US4 = _interopRequireDefault(__webpack_require__(/*! ../calendar/locale/en_US */ "./node_modules/antd/lib/calendar/locale/en_US.js"));
|
|
|
|
|
|
/* eslint-disable no-template-curly-in-string */
|
|
|
var typeTemplate = '${label} is not a valid ${type}';
|
|
|
var localeValues = {
|
|
|
locale: 'en',
|
|
|
Pagination: _en_US["default"],
|
|
|
DatePicker: _en_US2["default"],
|
|
|
TimePicker: _en_US3["default"],
|
|
|
Calendar: _en_US4["default"],
|
|
|
global: {
|
|
|
placeholder: 'Please select'
|
|
|
},
|
|
|
Table: {
|
|
|
filterTitle: 'Filter menu',
|
|
|
filterConfirm: 'OK',
|
|
|
filterReset: 'Reset',
|
|
|
filterEmptyText: 'No filters',
|
|
|
emptyText: 'No data',
|
|
|
selectAll: 'Select current page',
|
|
|
selectInvert: 'Invert current page',
|
|
|
selectNone: 'Clear all data',
|
|
|
selectionAll: 'Select all data',
|
|
|
sortTitle: 'Sort',
|
|
|
expand: 'Expand row',
|
|
|
collapse: 'Collapse row',
|
|
|
triggerDesc: 'Click to sort descending',
|
|
|
triggerAsc: 'Click to sort ascending',
|
|
|
cancelSort: 'Click to cancel sorting'
|
|
|
},
|
|
|
Modal: {
|
|
|
okText: 'OK',
|
|
|
cancelText: 'Cancel',
|
|
|
justOkText: 'OK'
|
|
|
},
|
|
|
Popconfirm: {
|
|
|
okText: 'OK',
|
|
|
cancelText: 'Cancel'
|
|
|
},
|
|
|
Transfer: {
|
|
|
titles: ['', ''],
|
|
|
searchPlaceholder: 'Search here',
|
|
|
itemUnit: 'item',
|
|
|
itemsUnit: 'items',
|
|
|
remove: 'Remove',
|
|
|
selectCurrent: 'Select current page',
|
|
|
removeCurrent: 'Remove current page',
|
|
|
selectAll: 'Select all data',
|
|
|
removeAll: 'Remove all data',
|
|
|
selectInvert: 'Invert current page'
|
|
|
},
|
|
|
Upload: {
|
|
|
uploading: 'Uploading...',
|
|
|
removeFile: 'Remove file',
|
|
|
uploadError: 'Upload error',
|
|
|
previewFile: 'Preview file',
|
|
|
downloadFile: 'Download file'
|
|
|
},
|
|
|
Empty: {
|
|
|
description: 'No Data'
|
|
|
},
|
|
|
Icon: {
|
|
|
icon: 'icon'
|
|
|
},
|
|
|
Text: {
|
|
|
edit: 'Edit',
|
|
|
copy: 'Copy',
|
|
|
copied: 'Copied',
|
|
|
expand: 'Expand'
|
|
|
},
|
|
|
PageHeader: {
|
|
|
back: 'Back'
|
|
|
},
|
|
|
Form: {
|
|
|
optional: '(optional)',
|
|
|
defaultValidateMessages: {
|
|
|
"default": 'Field validation error for ${label}',
|
|
|
required: 'Please enter ${label}',
|
|
|
"enum": '${label} must be one of [${enum}]',
|
|
|
whitespace: '${label} cannot be a blank character',
|
|
|
date: {
|
|
|
format: '${label} date format is invalid',
|
|
|
parse: '${label} cannot be converted to a date',
|
|
|
invalid: '${label} is an invalid date'
|
|
|
},
|
|
|
types: {
|
|
|
string: typeTemplate,
|
|
|
method: typeTemplate,
|
|
|
array: typeTemplate,
|
|
|
object: typeTemplate,
|
|
|
number: typeTemplate,
|
|
|
date: typeTemplate,
|
|
|
"boolean": typeTemplate,
|
|
|
integer: typeTemplate,
|
|
|
"float": typeTemplate,
|
|
|
regexp: typeTemplate,
|
|
|
email: typeTemplate,
|
|
|
url: typeTemplate,
|
|
|
hex: typeTemplate
|
|
|
},
|
|
|
string: {
|
|
|
len: '${label} must be ${len} characters',
|
|
|
min: '${label} must be at least ${min} characters',
|
|
|
max: '${label} must be up to ${max} characters',
|
|
|
range: '${label} must be between ${min}-${max} characters'
|
|
|
},
|
|
|
number: {
|
|
|
len: '${label} must be equal to ${len}',
|
|
|
min: '${label} must be minimum ${min}',
|
|
|
max: '${label} must be maximum ${max}',
|
|
|
range: '${label} must be between ${min}-${max}'
|
|
|
},
|
|
|
array: {
|
|
|
len: 'Must be ${len} ${label}',
|
|
|
min: 'At least ${min} ${label}',
|
|
|
max: 'At most ${max} ${label}',
|
|
|
range: 'The amount of ${label} must be between ${min}-${max}'
|
|
|
},
|
|
|
pattern: {
|
|
|
mismatch: '${label} does not match the pattern ${pattern}'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
Image: {
|
|
|
preview: 'Preview'
|
|
|
}
|
|
|
};
|
|
|
var _default = localeValues;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/locale/en_US.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/locale/en_US.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _default2 = _interopRequireDefault(__webpack_require__(/*! ./default */ "./node_modules/antd/lib/locale/default.js"));
|
|
|
|
|
|
var _default = _default2["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/menu/MenuContext.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/menu/MenuContext.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
var MenuContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
inlineCollapsed: false
|
|
|
});
|
|
|
var _default = MenuContext;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/menu/MenuItem.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/menu/MenuItem.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcMenu = __webpack_require__(/*! rc-menu */ "./node_modules/rc-menu/es/index.js");
|
|
|
|
|
|
var _toArray = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _MenuContext = _interopRequireDefault(__webpack_require__(/*! ./MenuContext */ "./node_modules/antd/lib/menu/MenuContext.js"));
|
|
|
|
|
|
var _tooltip = _interopRequireDefault(__webpack_require__(/*! ../tooltip */ "./node_modules/antd/lib/tooltip/index.js"));
|
|
|
|
|
|
var _Sider = __webpack_require__(/*! ../layout/Sider */ "./node_modules/antd/lib/layout/Sider.js");
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var MenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(MenuItem, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(MenuItem);
|
|
|
|
|
|
function MenuItem() {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2["default"])(this, MenuItem);
|
|
|
_this = _super.apply(this, arguments);
|
|
|
|
|
|
_this.renderItem = function (_ref) {
|
|
|
var siderCollapsed = _ref.siderCollapsed;
|
|
|
var _this$props = _this.props,
|
|
|
level = _this$props.level,
|
|
|
className = _this$props.className,
|
|
|
children = _this$props.children,
|
|
|
rootPrefixCls = _this$props.rootPrefixCls;
|
|
|
|
|
|
var _a = _this.props,
|
|
|
title = _a.title,
|
|
|
icon = _a.icon,
|
|
|
danger = _a.danger,
|
|
|
rest = __rest(_a, ["title", "icon", "danger"]);
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_MenuContext["default"].Consumer, null, function (_ref2) {
|
|
|
var _classNames;
|
|
|
|
|
|
var inlineCollapsed = _ref2.inlineCollapsed,
|
|
|
direction = _ref2.direction;
|
|
|
|
|
|
var _a;
|
|
|
|
|
|
var tooltipTitle = title;
|
|
|
|
|
|
if (typeof title === 'undefined') {
|
|
|
tooltipTitle = level === 1 ? children : '';
|
|
|
} else if (title === false) {
|
|
|
tooltipTitle = '';
|
|
|
}
|
|
|
|
|
|
var tooltipProps = {
|
|
|
title: tooltipTitle
|
|
|
};
|
|
|
|
|
|
if (!siderCollapsed && !inlineCollapsed) {
|
|
|
tooltipProps.title = null; // Reset `visible` to fix control mode tooltip display not correct
|
|
|
// ref: https://github.com/ant-design/ant-design/issues/16742
|
|
|
|
|
|
tooltipProps.visible = false;
|
|
|
}
|
|
|
|
|
|
var childrenLength = (0, _toArray["default"])(children).length;
|
|
|
return /*#__PURE__*/React.createElement(_tooltip["default"], (0, _extends2["default"])({}, tooltipProps, {
|
|
|
placement: direction === 'rtl' ? 'left' : 'right',
|
|
|
overlayClassName: "".concat(rootPrefixCls, "-inline-collapsed-tooltip")
|
|
|
}), /*#__PURE__*/React.createElement(_rcMenu.Item, (0, _extends2["default"])({}, rest, {
|
|
|
className: (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(rootPrefixCls, "-item-danger"), danger), (0, _defineProperty2["default"])(_classNames, "".concat(rootPrefixCls, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),
|
|
|
title: title
|
|
|
}), (0, _reactNode.cloneElement)(icon, {
|
|
|
className: (0, _classnames["default"])((0, _reactNode.isValidElement)(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', "".concat(rootPrefixCls, "-item-icon"))
|
|
|
}), _this.renderItemChildren(inlineCollapsed)));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(MenuItem, [{
|
|
|
key: "renderItemChildren",
|
|
|
value: function renderItemChildren(inlineCollapsed) {
|
|
|
var _this$props2 = this.props,
|
|
|
icon = _this$props2.icon,
|
|
|
children = _this$props2.children,
|
|
|
level = _this$props2.level,
|
|
|
rootPrefixCls = _this$props2.rootPrefixCls; // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span
|
|
|
// ref: https://github.com/ant-design/ant-design/pull/23456
|
|
|
|
|
|
if (!icon || (0, _reactNode.isValidElement)(children) && children.type === 'span') {
|
|
|
if (children && inlineCollapsed && level === 1 && typeof children === 'string') {
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(rootPrefixCls, "-inline-collapsed-noicon")
|
|
|
}, children.charAt(0));
|
|
|
}
|
|
|
|
|
|
return children;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", null, children);
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return /*#__PURE__*/React.createElement(_Sider.SiderContext.Consumer, null, this.renderItem);
|
|
|
}
|
|
|
}]);
|
|
|
return MenuItem;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports["default"] = MenuItem;
|
|
|
MenuItem.isMenuItem = true;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/menu/SubMenu.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/menu/SubMenu.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcMenu = __webpack_require__(/*! rc-menu */ "./node_modules/rc-menu/es/index.js");
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _MenuContext = _interopRequireDefault(__webpack_require__(/*! ./MenuContext */ "./node_modules/antd/lib/menu/MenuContext.js"));
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var SubMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(SubMenu, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(SubMenu);
|
|
|
|
|
|
function SubMenu() {
|
|
|
(0, _classCallCheck2["default"])(this, SubMenu);
|
|
|
return _super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(SubMenu, [{
|
|
|
key: "renderTitle",
|
|
|
value: function renderTitle(inlineCollapsed) {
|
|
|
var _this$props = this.props,
|
|
|
icon = _this$props.icon,
|
|
|
title = _this$props.title,
|
|
|
level = _this$props.level,
|
|
|
rootPrefixCls = _this$props.rootPrefixCls;
|
|
|
|
|
|
if (!icon) {
|
|
|
return inlineCollapsed && level === 1 && title && typeof title === 'string' ? /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(rootPrefixCls, "-inline-collapsed-noicon")
|
|
|
}, title.charAt(0)) : title;
|
|
|
} // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span
|
|
|
// ref: https://github.com/ant-design/ant-design/pull/23456
|
|
|
|
|
|
|
|
|
var titleIsSpan = (0, _reactNode.isValidElement)(title) && title.type === 'span';
|
|
|
return /*#__PURE__*/React.createElement(React.Fragment, null, icon, titleIsSpan ? title : /*#__PURE__*/React.createElement("span", null, title));
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this = this;
|
|
|
|
|
|
var _this$props2 = this.props,
|
|
|
rootPrefixCls = _this$props2.rootPrefixCls,
|
|
|
popupClassName = _this$props2.popupClassName;
|
|
|
return /*#__PURE__*/React.createElement(_MenuContext["default"].Consumer, null, function (_ref) {
|
|
|
var inlineCollapsed = _ref.inlineCollapsed,
|
|
|
antdMenuTheme = _ref.antdMenuTheme;
|
|
|
return /*#__PURE__*/React.createElement(_rcMenu.SubMenu, (0, _extends2["default"])({}, (0, _omit["default"])(_this.props, ['icon']), {
|
|
|
title: _this.renderTitle(inlineCollapsed),
|
|
|
popupClassName: (0, _classnames["default"])(rootPrefixCls, "".concat(rootPrefixCls, "-").concat(antdMenuTheme), popupClassName)
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
}]);
|
|
|
return SubMenu;
|
|
|
}(React.Component);
|
|
|
|
|
|
SubMenu.contextType = _MenuContext["default"]; // fix issue:https://github.com/ant-design/ant-design/issues/8666
|
|
|
|
|
|
SubMenu.isSubMenu = 1;
|
|
|
var _default = SubMenu;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/menu/index.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/menu/index.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcMenu = _interopRequireWildcard(__webpack_require__(/*! rc-menu */ "./node_modules/rc-menu/es/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _SubMenu = _interopRequireDefault(__webpack_require__(/*! ./SubMenu */ "./node_modules/antd/lib/menu/SubMenu.js"));
|
|
|
|
|
|
var _MenuItem = _interopRequireDefault(__webpack_require__(/*! ./MenuItem */ "./node_modules/antd/lib/menu/MenuItem.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var _Sider = __webpack_require__(/*! ../layout/Sider */ "./node_modules/antd/lib/layout/Sider.js");
|
|
|
|
|
|
var _motion = _interopRequireDefault(__webpack_require__(/*! ../_util/motion */ "./node_modules/antd/lib/_util/motion.js"));
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var _MenuContext = _interopRequireDefault(__webpack_require__(/*! ./MenuContext */ "./node_modules/antd/lib/menu/MenuContext.js"));
|
|
|
|
|
|
var InternalMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(InternalMenu, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(InternalMenu);
|
|
|
|
|
|
function InternalMenu(props) {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2["default"])(this, InternalMenu);
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.renderMenu = function (_ref) {
|
|
|
var getPopupContainer = _ref.getPopupContainer,
|
|
|
getPrefixCls = _ref.getPrefixCls,
|
|
|
direction = _ref.direction;
|
|
|
var rootPrefixCls = getPrefixCls();
|
|
|
var _this$props = _this.props,
|
|
|
customizePrefixCls = _this$props.prefixCls,
|
|
|
className = _this$props.className,
|
|
|
theme = _this$props.theme,
|
|
|
expandIcon = _this$props.expandIcon;
|
|
|
var defaultMotions = {
|
|
|
horizontal: {
|
|
|
motionName: "".concat(rootPrefixCls, "-slide-up")
|
|
|
},
|
|
|
inline: _motion["default"],
|
|
|
other: {
|
|
|
motionName: "".concat(rootPrefixCls, "-zoom-big")
|
|
|
}
|
|
|
};
|
|
|
var prefixCls = getPrefixCls('menu', customizePrefixCls);
|
|
|
var menuClassName = (0, _classnames["default"])("".concat(prefixCls, "-").concat(theme), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-inline-collapsed"), _this.getInlineCollapsed()), className);
|
|
|
return /*#__PURE__*/React.createElement(_MenuContext["default"].Provider, {
|
|
|
value: {
|
|
|
inlineCollapsed: _this.getInlineCollapsed() || false,
|
|
|
antdMenuTheme: theme,
|
|
|
direction: direction
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement(_rcMenu["default"], (0, _extends2["default"])({
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}, _this.props, {
|
|
|
className: menuClassName,
|
|
|
prefixCls: prefixCls,
|
|
|
direction: direction,
|
|
|
defaultMotions: defaultMotions,
|
|
|
expandIcon: (0, _reactNode.cloneElement)(expandIcon, {
|
|
|
className: "".concat(prefixCls, "-submenu-expand-icon")
|
|
|
})
|
|
|
})));
|
|
|
};
|
|
|
|
|
|
(0, _devWarning["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.');
|
|
|
(0, _devWarning["default"])(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.');
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(InternalMenu, [{
|
|
|
key: "getInlineCollapsed",
|
|
|
value: function getInlineCollapsed() {
|
|
|
var _this$props2 = this.props,
|
|
|
inlineCollapsed = _this$props2.inlineCollapsed,
|
|
|
siderCollapsed = _this$props2.siderCollapsed;
|
|
|
|
|
|
if (siderCollapsed !== undefined) {
|
|
|
return siderCollapsed;
|
|
|
}
|
|
|
|
|
|
return inlineCollapsed;
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderMenu);
|
|
|
}
|
|
|
}]);
|
|
|
return InternalMenu;
|
|
|
}(React.Component);
|
|
|
|
|
|
InternalMenu.defaultProps = {
|
|
|
className: '',
|
|
|
theme: 'light',
|
|
|
focusable: false
|
|
|
}; // We should keep this as ref-able
|
|
|
|
|
|
var Menu = /*#__PURE__*/function (_React$Component2) {
|
|
|
(0, _inherits2["default"])(Menu, _React$Component2);
|
|
|
|
|
|
var _super2 = (0, _createSuper2["default"])(Menu);
|
|
|
|
|
|
function Menu() {
|
|
|
(0, _classCallCheck2["default"])(this, Menu);
|
|
|
return _super2.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(Menu, [{
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_Sider.SiderContext.Consumer, null, function (context) {
|
|
|
return /*#__PURE__*/React.createElement(InternalMenu, (0, _extends2["default"])({}, _this2.props, context));
|
|
|
});
|
|
|
}
|
|
|
}]);
|
|
|
return Menu;
|
|
|
}(React.Component);
|
|
|
|
|
|
Menu.Divider = _rcMenu.Divider;
|
|
|
Menu.Item = _MenuItem["default"];
|
|
|
Menu.SubMenu = _SubMenu["default"];
|
|
|
Menu.ItemGroup = _rcMenu.ItemGroup;
|
|
|
var _default = Menu;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/message/hooks/useMessage.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/message/hooks/useMessage.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = createUseMessage;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _useNotification = _interopRequireDefault(__webpack_require__(/*! rc-notification/lib/useNotification */ "./node_modules/rc-notification/lib/useNotification.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _ = __webpack_require__(/*! .. */ "./node_modules/antd/lib/message/index.js");
|
|
|
|
|
|
function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
|
|
|
var useMessage = function useMessage() {
|
|
|
// We can only get content by render
|
|
|
var getPrefixCls; // We create a proxy to handle delay created instance
|
|
|
|
|
|
var innerInstance = null;
|
|
|
var proxy = {
|
|
|
add: function add(noticeProps, holderCallback) {
|
|
|
innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var _useRCNotification = (0, _useNotification["default"])(proxy),
|
|
|
_useRCNotification2 = (0, _slicedToArray2["default"])(_useRCNotification, 2),
|
|
|
hookNotify = _useRCNotification2[0],
|
|
|
holder = _useRCNotification2[1];
|
|
|
|
|
|
function notify(args) {
|
|
|
var customizePrefixCls = args.prefixCls;
|
|
|
var mergedPrefixCls = getPrefixCls('message', customizePrefixCls);
|
|
|
var rootPrefixCls = getPrefixCls();
|
|
|
var target = args.key || (0, _.getKeyThenIncreaseKey)();
|
|
|
var closePromise = new Promise(function (resolve) {
|
|
|
var callback = function callback() {
|
|
|
if (typeof args.onClose === 'function') {
|
|
|
args.onClose();
|
|
|
}
|
|
|
|
|
|
return resolve(true);
|
|
|
};
|
|
|
|
|
|
getRcNotificationInstance((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
prefixCls: mergedPrefixCls,
|
|
|
rootPrefixCls: rootPrefixCls
|
|
|
}), function (_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
instance = _ref.instance;
|
|
|
innerInstance = instance;
|
|
|
hookNotify(getRCNoticeProps((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
key: target,
|
|
|
onClose: callback
|
|
|
}), prefixCls));
|
|
|
});
|
|
|
});
|
|
|
|
|
|
var result = function result() {
|
|
|
if (innerInstance) {
|
|
|
innerInstance.removeNotice(target);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
result.then = function (filled, rejected) {
|
|
|
return closePromise.then(filled, rejected);
|
|
|
};
|
|
|
|
|
|
result.promise = closePromise;
|
|
|
return result;
|
|
|
} // Fill functions
|
|
|
|
|
|
|
|
|
var hookApiRef = React.useRef({});
|
|
|
hookApiRef.current.open = notify;
|
|
|
['success', 'info', 'warning', 'error', 'loading'].forEach(function (type) {
|
|
|
return (0, _.attachTypeApi)(hookApiRef.current, type);
|
|
|
});
|
|
|
return [hookApiRef.current, /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, {
|
|
|
key: "holder"
|
|
|
}, function (context) {
|
|
|
getPrefixCls = context.getPrefixCls;
|
|
|
return holder;
|
|
|
})];
|
|
|
};
|
|
|
|
|
|
return useMessage;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/message/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/message/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getKeyThenIncreaseKey = getKeyThenIncreaseKey;
|
|
|
exports.attachTypeApi = attachTypeApi;
|
|
|
exports["default"] = exports.getInstance = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _rcNotification = _interopRequireDefault(__webpack_require__(/*! rc-notification */ "./node_modules/rc-notification/es/index.js"));
|
|
|
|
|
|
var _LoadingOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/LoadingOutlined */ "./node_modules/@ant-design/icons/LoadingOutlined.js"));
|
|
|
|
|
|
var _ExclamationCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/ExclamationCircleFilled */ "./node_modules/@ant-design/icons/ExclamationCircleFilled.js"));
|
|
|
|
|
|
var _CloseCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseCircleFilled */ "./node_modules/@ant-design/icons/CloseCircleFilled.js"));
|
|
|
|
|
|
var _CheckCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CheckCircleFilled */ "./node_modules/@ant-design/icons/CheckCircleFilled.js"));
|
|
|
|
|
|
var _InfoCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/InfoCircleFilled */ "./node_modules/@ant-design/icons/InfoCircleFilled.js"));
|
|
|
|
|
|
var _useMessage = _interopRequireDefault(__webpack_require__(/*! ./hooks/useMessage */ "./node_modules/antd/lib/message/hooks/useMessage.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var messageInstance;
|
|
|
var defaultDuration = 3;
|
|
|
var defaultTop;
|
|
|
var key = 1;
|
|
|
var localPrefixCls = '';
|
|
|
var transitionName = 'move-up';
|
|
|
var hasTransitionName = false;
|
|
|
var getContainer;
|
|
|
var maxCount;
|
|
|
var rtl = false;
|
|
|
|
|
|
function getKeyThenIncreaseKey() {
|
|
|
return key++;
|
|
|
}
|
|
|
|
|
|
function setMessageConfig(options) {
|
|
|
if (options.top !== undefined) {
|
|
|
defaultTop = options.top;
|
|
|
messageInstance = null; // delete messageInstance for new defaultTop
|
|
|
}
|
|
|
|
|
|
if (options.duration !== undefined) {
|
|
|
defaultDuration = options.duration;
|
|
|
}
|
|
|
|
|
|
if (options.prefixCls !== undefined) {
|
|
|
localPrefixCls = options.prefixCls;
|
|
|
}
|
|
|
|
|
|
if (options.getContainer !== undefined) {
|
|
|
getContainer = options.getContainer;
|
|
|
}
|
|
|
|
|
|
if (options.transitionName !== undefined) {
|
|
|
transitionName = options.transitionName;
|
|
|
messageInstance = null; // delete messageInstance for new transitionName
|
|
|
|
|
|
hasTransitionName = true;
|
|
|
}
|
|
|
|
|
|
if (options.maxCount !== undefined) {
|
|
|
maxCount = options.maxCount;
|
|
|
messageInstance = null;
|
|
|
}
|
|
|
|
|
|
if (options.rtl !== undefined) {
|
|
|
rtl = options.rtl;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getRCNotificationInstance(args, callback) {
|
|
|
var customizePrefixCls = args.prefixCls;
|
|
|
|
|
|
var _globalConfig = (0, _configProvider.globalConfig)(),
|
|
|
getPrefixCls = _globalConfig.getPrefixCls,
|
|
|
getRootPrefixCls = _globalConfig.getRootPrefixCls;
|
|
|
|
|
|
var prefixCls = getPrefixCls('message', customizePrefixCls || localPrefixCls);
|
|
|
var rootPrefixCls = getRootPrefixCls(args.rootPrefixCls, prefixCls);
|
|
|
|
|
|
if (messageInstance) {
|
|
|
callback({
|
|
|
prefixCls: prefixCls,
|
|
|
rootPrefixCls: rootPrefixCls,
|
|
|
instance: messageInstance
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var instanceConfig = {
|
|
|
prefixCls: prefixCls,
|
|
|
transitionName: hasTransitionName ? transitionName : "".concat(rootPrefixCls, "-").concat(transitionName),
|
|
|
style: {
|
|
|
top: defaultTop
|
|
|
},
|
|
|
getContainer: getContainer,
|
|
|
maxCount: maxCount
|
|
|
};
|
|
|
|
|
|
_rcNotification["default"].newInstance(instanceConfig, function (instance) {
|
|
|
if (messageInstance) {
|
|
|
callback({
|
|
|
prefixCls: prefixCls,
|
|
|
rootPrefixCls: rootPrefixCls,
|
|
|
instance: messageInstance
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
messageInstance = instance;
|
|
|
|
|
|
if (false) {}
|
|
|
|
|
|
callback({
|
|
|
prefixCls: prefixCls,
|
|
|
rootPrefixCls: rootPrefixCls,
|
|
|
instance: instance
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var typeToIcon = {
|
|
|
info: _InfoCircleFilled["default"],
|
|
|
success: _CheckCircleFilled["default"],
|
|
|
error: _CloseCircleFilled["default"],
|
|
|
warning: _ExclamationCircleFilled["default"],
|
|
|
loading: _LoadingOutlined["default"]
|
|
|
};
|
|
|
|
|
|
function getRCNoticeProps(args, prefixCls) {
|
|
|
var _classNames;
|
|
|
|
|
|
var duration = args.duration !== undefined ? args.duration : defaultDuration;
|
|
|
var IconComponent = typeToIcon[args.type];
|
|
|
var messageClass = (0, _classnames["default"])("".concat(prefixCls, "-custom-content"), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(args.type), args.type), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), rtl === true), _classNames));
|
|
|
return {
|
|
|
key: args.key,
|
|
|
duration: duration,
|
|
|
style: args.style || {},
|
|
|
className: args.className,
|
|
|
content: /*#__PURE__*/React.createElement("div", {
|
|
|
className: messageClass
|
|
|
}, args.icon || IconComponent && /*#__PURE__*/React.createElement(IconComponent, null), /*#__PURE__*/React.createElement("span", null, args.content)),
|
|
|
onClose: args.onClose,
|
|
|
onClick: args.onClick
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function notice(args) {
|
|
|
var target = args.key || key++;
|
|
|
var closePromise = new Promise(function (resolve) {
|
|
|
var callback = function callback() {
|
|
|
if (typeof args.onClose === 'function') {
|
|
|
args.onClose();
|
|
|
}
|
|
|
|
|
|
return resolve(true);
|
|
|
};
|
|
|
|
|
|
getRCNotificationInstance(args, function (_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
instance = _ref.instance;
|
|
|
instance.notice(getRCNoticeProps((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
key: target,
|
|
|
onClose: callback
|
|
|
}), prefixCls));
|
|
|
});
|
|
|
});
|
|
|
|
|
|
var result = function result() {
|
|
|
if (messageInstance) {
|
|
|
messageInstance.removeNotice(target);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
result.then = function (filled, rejected) {
|
|
|
return closePromise.then(filled, rejected);
|
|
|
};
|
|
|
|
|
|
result.promise = closePromise;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
function isArgsProps(content) {
|
|
|
return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
|
|
|
}
|
|
|
|
|
|
var api = {
|
|
|
open: notice,
|
|
|
config: setMessageConfig,
|
|
|
destroy: function destroy(messageKey) {
|
|
|
if (messageInstance) {
|
|
|
if (messageKey) {
|
|
|
var _messageInstance = messageInstance,
|
|
|
removeNotice = _messageInstance.removeNotice;
|
|
|
removeNotice(messageKey);
|
|
|
} else {
|
|
|
var _messageInstance2 = messageInstance,
|
|
|
destroy = _messageInstance2.destroy;
|
|
|
destroy();
|
|
|
messageInstance = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function attachTypeApi(originalApi, type) {
|
|
|
originalApi[type] = function (content, duration, onClose) {
|
|
|
if (isArgsProps(content)) {
|
|
|
return originalApi.open((0, _extends2["default"])((0, _extends2["default"])({}, content), {
|
|
|
type: type
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
if (typeof duration === 'function') {
|
|
|
onClose = duration;
|
|
|
duration = undefined;
|
|
|
}
|
|
|
|
|
|
return originalApi.open({
|
|
|
content: content,
|
|
|
duration: duration,
|
|
|
type: type,
|
|
|
onClose: onClose
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
|
|
['success', 'info', 'warning', 'error', 'loading'].forEach(function (type) {
|
|
|
return attachTypeApi(api, type);
|
|
|
});
|
|
|
api.warn = api.warning;
|
|
|
api.useMessage = (0, _useMessage["default"])(getRCNotificationInstance, getRCNoticeProps);
|
|
|
/** @private test Only function. Not work on production */
|
|
|
|
|
|
var getInstance = function getInstance() {
|
|
|
return false ? undefined : null;
|
|
|
};
|
|
|
|
|
|
exports.getInstance = getInstance;
|
|
|
var _default = api;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/modal/locale.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/modal/locale.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.changeConfirmLocale = changeConfirmLocale;
|
|
|
exports.getConfirmLocale = getConfirmLocale;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _default = _interopRequireDefault(__webpack_require__(/*! ../locale/default */ "./node_modules/antd/lib/locale/default.js"));
|
|
|
|
|
|
var runtimeLocale = (0, _extends2["default"])({}, _default["default"].Modal);
|
|
|
|
|
|
function changeConfirmLocale(newLocale) {
|
|
|
if (newLocale) {
|
|
|
runtimeLocale = (0, _extends2["default"])((0, _extends2["default"])({}, runtimeLocale), newLocale);
|
|
|
} else {
|
|
|
runtimeLocale = (0, _extends2["default"])({}, _default["default"].Modal);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getConfirmLocale() {
|
|
|
return runtimeLocale;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/notification/hooks/useNotification.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/notification/hooks/useNotification.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = createUseNotification;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _useNotification = _interopRequireDefault(__webpack_require__(/*! rc-notification/lib/useNotification */ "./node_modules/rc-notification/lib/useNotification.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
function createUseNotification(getNotificationInstance, getRCNoticeProps) {
|
|
|
var useNotification = function useNotification() {
|
|
|
// We can only get content by render
|
|
|
var getPrefixCls; // We create a proxy to handle delay created instance
|
|
|
|
|
|
var innerInstance = null;
|
|
|
var proxy = {
|
|
|
add: function add(noticeProps, holderCallback) {
|
|
|
innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var _useRCNotification = (0, _useNotification["default"])(proxy),
|
|
|
_useRCNotification2 = (0, _slicedToArray2["default"])(_useRCNotification, 2),
|
|
|
hookNotify = _useRCNotification2[0],
|
|
|
holder = _useRCNotification2[1];
|
|
|
|
|
|
function notify(args) {
|
|
|
var customizePrefixCls = args.prefixCls;
|
|
|
var mergedPrefixCls = getPrefixCls('notification', customizePrefixCls);
|
|
|
getNotificationInstance((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
prefixCls: mergedPrefixCls
|
|
|
}), function (_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
instance = _ref.instance;
|
|
|
innerInstance = instance;
|
|
|
hookNotify(getRCNoticeProps(args, prefixCls));
|
|
|
});
|
|
|
} // Fill functions
|
|
|
|
|
|
|
|
|
var hookApiRef = React.useRef({});
|
|
|
hookApiRef.current.open = notify;
|
|
|
['success', 'info', 'warning', 'error'].forEach(function (type) {
|
|
|
hookApiRef.current[type] = function (args) {
|
|
|
return hookApiRef.current.open((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
type: type
|
|
|
}));
|
|
|
};
|
|
|
});
|
|
|
return [hookApiRef.current, /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, {
|
|
|
key: "holder"
|
|
|
}, function (context) {
|
|
|
getPrefixCls = context.getPrefixCls;
|
|
|
return holder;
|
|
|
})];
|
|
|
};
|
|
|
|
|
|
return useNotification;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/notification/index.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/notification/index.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.getInstance = void 0;
|
|
|
|
|
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcNotification = _interopRequireDefault(__webpack_require__(/*! rc-notification */ "./node_modules/rc-notification/es/index.js"));
|
|
|
|
|
|
var _CloseOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseOutlined */ "./node_modules/@ant-design/icons/CloseOutlined.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _CheckCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CheckCircleOutlined */ "./node_modules/@ant-design/icons/CheckCircleOutlined.js"));
|
|
|
|
|
|
var _CloseCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseCircleOutlined */ "./node_modules/@ant-design/icons/CloseCircleOutlined.js"));
|
|
|
|
|
|
var _ExclamationCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/ExclamationCircleOutlined */ "./node_modules/@ant-design/icons/ExclamationCircleOutlined.js"));
|
|
|
|
|
|
var _InfoCircleOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/InfoCircleOutlined */ "./node_modules/@ant-design/icons/InfoCircleOutlined.js"));
|
|
|
|
|
|
var _useNotification = _interopRequireDefault(__webpack_require__(/*! ./hooks/useNotification */ "./node_modules/antd/lib/notification/hooks/useNotification.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
|
|
|
function adopt(value) {
|
|
|
return value instanceof P ? value : new P(function (resolve) {
|
|
|
resolve(value);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
function fulfilled(value) {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function rejected(value) {
|
|
|
try {
|
|
|
step(generator["throw"](value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function step(result) {
|
|
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
|
}
|
|
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var notificationInstance = {};
|
|
|
var defaultDuration = 4.5;
|
|
|
var defaultTop = 24;
|
|
|
var defaultBottom = 24;
|
|
|
var defaultPrefixCls = '';
|
|
|
var defaultPlacement = 'topRight';
|
|
|
var defaultGetContainer;
|
|
|
var defaultCloseIcon;
|
|
|
var rtl = false;
|
|
|
|
|
|
function setNotificationConfig(options) {
|
|
|
var duration = options.duration,
|
|
|
placement = options.placement,
|
|
|
bottom = options.bottom,
|
|
|
top = options.top,
|
|
|
getContainer = options.getContainer,
|
|
|
closeIcon = options.closeIcon,
|
|
|
prefixCls = options.prefixCls;
|
|
|
|
|
|
if (prefixCls !== undefined) {
|
|
|
defaultPrefixCls = prefixCls;
|
|
|
}
|
|
|
|
|
|
if (duration !== undefined) {
|
|
|
defaultDuration = duration;
|
|
|
}
|
|
|
|
|
|
if (placement !== undefined) {
|
|
|
defaultPlacement = placement;
|
|
|
} else if (options.rtl) {
|
|
|
defaultPlacement = 'topLeft';
|
|
|
}
|
|
|
|
|
|
if (bottom !== undefined) {
|
|
|
defaultBottom = bottom;
|
|
|
}
|
|
|
|
|
|
if (top !== undefined) {
|
|
|
defaultTop = top;
|
|
|
}
|
|
|
|
|
|
if (getContainer !== undefined) {
|
|
|
defaultGetContainer = getContainer;
|
|
|
}
|
|
|
|
|
|
if (closeIcon !== undefined) {
|
|
|
defaultCloseIcon = closeIcon;
|
|
|
}
|
|
|
|
|
|
if (options.rtl !== undefined) {
|
|
|
rtl = options.rtl;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getPlacementStyle(placement) {
|
|
|
var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
|
|
|
var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
|
|
|
var style;
|
|
|
|
|
|
switch (placement) {
|
|
|
case 'topLeft':
|
|
|
style = {
|
|
|
left: 0,
|
|
|
top: top,
|
|
|
bottom: 'auto'
|
|
|
};
|
|
|
break;
|
|
|
|
|
|
case 'topRight':
|
|
|
style = {
|
|
|
right: 0,
|
|
|
top: top,
|
|
|
bottom: 'auto'
|
|
|
};
|
|
|
break;
|
|
|
|
|
|
case 'bottomLeft':
|
|
|
style = {
|
|
|
left: 0,
|
|
|
top: 'auto',
|
|
|
bottom: bottom
|
|
|
};
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
style = {
|
|
|
right: 0,
|
|
|
top: 'auto',
|
|
|
bottom: bottom
|
|
|
};
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return style;
|
|
|
}
|
|
|
|
|
|
function getNotificationInstance(args, callback) {
|
|
|
var _args$placement = args.placement,
|
|
|
placement = _args$placement === void 0 ? defaultPlacement : _args$placement,
|
|
|
top = args.top,
|
|
|
bottom = args.bottom,
|
|
|
_args$getContainer = args.getContainer,
|
|
|
getContainer = _args$getContainer === void 0 ? defaultGetContainer : _args$getContainer,
|
|
|
_args$closeIcon = args.closeIcon,
|
|
|
closeIcon = _args$closeIcon === void 0 ? defaultCloseIcon : _args$closeIcon,
|
|
|
customizePrefixCls = args.prefixCls;
|
|
|
|
|
|
var _globalConfig = (0, _configProvider.globalConfig)(),
|
|
|
getPrefixCls = _globalConfig.getPrefixCls;
|
|
|
|
|
|
var prefixCls = getPrefixCls('notification', customizePrefixCls || defaultPrefixCls);
|
|
|
var cacheKey = "".concat(prefixCls, "-").concat(placement);
|
|
|
var cacheInstance = notificationInstance[cacheKey];
|
|
|
|
|
|
if (cacheInstance) {
|
|
|
Promise.resolve(cacheInstance).then(function (instance) {
|
|
|
callback({
|
|
|
prefixCls: "".concat(prefixCls, "-notice"),
|
|
|
instance: instance
|
|
|
});
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var closeIconToRender = /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-close-x")
|
|
|
}, closeIcon || /*#__PURE__*/React.createElement(_CloseOutlined["default"], {
|
|
|
className: "".concat(prefixCls, "-close-icon")
|
|
|
}));
|
|
|
var notificationClass = (0, _classnames["default"])("".concat(prefixCls, "-").concat(placement), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-rtl"), rtl === true));
|
|
|
notificationInstance[cacheKey] = new Promise(function (resolve) {
|
|
|
_rcNotification["default"].newInstance({
|
|
|
prefixCls: prefixCls,
|
|
|
className: notificationClass,
|
|
|
style: getPlacementStyle(placement, top, bottom),
|
|
|
getContainer: getContainer,
|
|
|
closeIcon: closeIconToRender
|
|
|
}, function (notification) {
|
|
|
resolve(notification);
|
|
|
callback({
|
|
|
prefixCls: "".concat(prefixCls, "-notice"),
|
|
|
instance: notification
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var typeToIcon = {
|
|
|
success: _CheckCircleOutlined["default"],
|
|
|
info: _InfoCircleOutlined["default"],
|
|
|
error: _CloseCircleOutlined["default"],
|
|
|
warning: _ExclamationCircleOutlined["default"]
|
|
|
};
|
|
|
|
|
|
function getRCNoticeProps(args, prefixCls) {
|
|
|
var durationArg = args.duration,
|
|
|
icon = args.icon,
|
|
|
type = args.type,
|
|
|
description = args.description,
|
|
|
message = args.message,
|
|
|
btn = args.btn,
|
|
|
onClose = args.onClose,
|
|
|
onClick = args.onClick,
|
|
|
key = args.key,
|
|
|
style = args.style,
|
|
|
className = args.className;
|
|
|
var duration = durationArg === undefined ? defaultDuration : durationArg;
|
|
|
var iconNode = null;
|
|
|
|
|
|
if (icon) {
|
|
|
iconNode = /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-icon")
|
|
|
}, args.icon);
|
|
|
} else if (type) {
|
|
|
iconNode = /*#__PURE__*/React.createElement(typeToIcon[type] || null, {
|
|
|
className: "".concat(prefixCls, "-icon ").concat(prefixCls, "-icon-").concat(type)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var autoMarginTag = !description && iconNode ? /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-message-single-line-auto-margin")
|
|
|
}) : null;
|
|
|
return {
|
|
|
content: /*#__PURE__*/React.createElement("div", {
|
|
|
className: iconNode ? "".concat(prefixCls, "-with-icon") : '',
|
|
|
role: "alert"
|
|
|
}, iconNode, /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-message")
|
|
|
}, autoMarginTag, message), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-description")
|
|
|
}, description), btn ? /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-btn")
|
|
|
}, btn) : null),
|
|
|
duration: duration,
|
|
|
closable: true,
|
|
|
onClose: onClose,
|
|
|
onClick: onClick,
|
|
|
key: key,
|
|
|
style: style || {},
|
|
|
className: (0, _classnames["default"])(className, (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-").concat(type), !!type))
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function notice(args) {
|
|
|
getNotificationInstance(args, function (_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
instance = _ref.instance;
|
|
|
instance.notice(getRCNoticeProps(args, prefixCls));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var api = {
|
|
|
open: notice,
|
|
|
close: function close(key) {
|
|
|
Object.keys(notificationInstance).forEach(function (cacheKey) {
|
|
|
return Promise.resolve(notificationInstance[cacheKey]).then(function (instance) {
|
|
|
instance.removeNotice(key);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
config: setNotificationConfig,
|
|
|
destroy: function destroy() {
|
|
|
Object.keys(notificationInstance).forEach(function (cacheKey) {
|
|
|
Promise.resolve(notificationInstance[cacheKey]).then(function (instance) {
|
|
|
instance.destroy();
|
|
|
});
|
|
|
delete notificationInstance[cacheKey]; // lgtm[js/missing-await]
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
['success', 'info', 'warning', 'error'].forEach(function (type) {
|
|
|
api[type] = function (args) {
|
|
|
return api.open((0, _extends2["default"])((0, _extends2["default"])({}, args), {
|
|
|
type: type
|
|
|
}));
|
|
|
};
|
|
|
});
|
|
|
api.warn = api.warning;
|
|
|
api.useNotification = (0, _useNotification["default"])(getNotificationInstance, getRCNoticeProps);
|
|
|
/** @private test Only function. Not work on production */
|
|
|
|
|
|
var getInstance = function getInstance(cacheKey) {
|
|
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
return _context.abrupt("return", false ? undefined : null);
|
|
|
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
exports.getInstance = getInstance;
|
|
|
var _default = api;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/pagination/MiniSelect.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/pagination/MiniSelect.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _select = _interopRequireDefault(__webpack_require__(/*! ../select */ "./node_modules/antd/lib/select/index.js"));
|
|
|
|
|
|
var MiniSelect = function MiniSelect(props) {
|
|
|
return /*#__PURE__*/React.createElement(_select["default"], (0, _extends2["default"])({
|
|
|
size: "small"
|
|
|
}, props));
|
|
|
};
|
|
|
|
|
|
MiniSelect.Option = _select["default"].Option;
|
|
|
var _default = MiniSelect;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/pagination/Pagination.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/pagination/Pagination.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcPagination = _interopRequireDefault(__webpack_require__(/*! rc-pagination */ "./node_modules/rc-pagination/es/index.js"));
|
|
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(/*! rc-pagination/lib/locale/en_US */ "./node_modules/rc-pagination/lib/locale/en_US.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _LeftOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/LeftOutlined */ "./node_modules/@ant-design/icons/LeftOutlined.js"));
|
|
|
|
|
|
var _RightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/RightOutlined */ "./node_modules/@ant-design/icons/RightOutlined.js"));
|
|
|
|
|
|
var _DoubleLeftOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/DoubleLeftOutlined */ "./node_modules/@ant-design/icons/DoubleLeftOutlined.js"));
|
|
|
|
|
|
var _DoubleRightOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/DoubleRightOutlined */ "./node_modules/@ant-design/icons/DoubleRightOutlined.js"));
|
|
|
|
|
|
var _MiniSelect = _interopRequireDefault(__webpack_require__(/*! ./MiniSelect */ "./node_modules/antd/lib/pagination/MiniSelect.js"));
|
|
|
|
|
|
var _select = _interopRequireDefault(__webpack_require__(/*! ../select */ "./node_modules/antd/lib/select/index.js"));
|
|
|
|
|
|
var _LocaleReceiver = _interopRequireDefault(__webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./node_modules/antd/lib/locale-provider/LocaleReceiver.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _useBreakpoint2 = _interopRequireDefault(__webpack_require__(/*! ../grid/hooks/useBreakpoint */ "./node_modules/antd/lib/grid/hooks/useBreakpoint.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var Pagination = function Pagination(_a) {
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
customizeSelectPrefixCls = _a.selectPrefixCls,
|
|
|
className = _a.className,
|
|
|
size = _a.size,
|
|
|
customLocale = _a.locale,
|
|
|
restProps = __rest(_a, ["prefixCls", "selectPrefixCls", "className", "size", "locale"]);
|
|
|
|
|
|
var _useBreakpoint = (0, _useBreakpoint2["default"])(),
|
|
|
xs = _useBreakpoint.xs;
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var prefixCls = getPrefixCls('pagination', customizePrefixCls);
|
|
|
|
|
|
var getIconsProps = function getIconsProps() {
|
|
|
var ellipsis = /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-item-ellipsis")
|
|
|
}, "\u2022\u2022\u2022");
|
|
|
var prevIcon = /*#__PURE__*/React.createElement("button", {
|
|
|
className: "".concat(prefixCls, "-item-link"),
|
|
|
type: "button",
|
|
|
tabIndex: -1
|
|
|
}, /*#__PURE__*/React.createElement(_LeftOutlined["default"], null));
|
|
|
var nextIcon = /*#__PURE__*/React.createElement("button", {
|
|
|
className: "".concat(prefixCls, "-item-link"),
|
|
|
type: "button",
|
|
|
tabIndex: -1
|
|
|
}, /*#__PURE__*/React.createElement(_RightOutlined["default"], null));
|
|
|
var jumpPrevIcon = /*#__PURE__*/React.createElement("a", {
|
|
|
className: "".concat(prefixCls, "-item-link")
|
|
|
}, /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-item-container")
|
|
|
}, /*#__PURE__*/React.createElement(_DoubleLeftOutlined["default"], {
|
|
|
className: "".concat(prefixCls, "-item-link-icon")
|
|
|
}), ellipsis));
|
|
|
var jumpNextIcon = /*#__PURE__*/React.createElement("a", {
|
|
|
className: "".concat(prefixCls, "-item-link")
|
|
|
}, /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-item-container")
|
|
|
}, /*#__PURE__*/React.createElement(_DoubleRightOutlined["default"], {
|
|
|
className: "".concat(prefixCls, "-item-link-icon")
|
|
|
}), ellipsis)); // change arrows direction in right-to-left direction
|
|
|
|
|
|
if (direction === 'rtl') {
|
|
|
var _ref = [nextIcon, prevIcon];
|
|
|
prevIcon = _ref[0];
|
|
|
nextIcon = _ref[1];
|
|
|
var _ref2 = [jumpNextIcon, jumpPrevIcon];
|
|
|
jumpPrevIcon = _ref2[0];
|
|
|
jumpNextIcon = _ref2[1];
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
prevIcon: prevIcon,
|
|
|
nextIcon: nextIcon,
|
|
|
jumpPrevIcon: jumpPrevIcon,
|
|
|
jumpNextIcon: jumpNextIcon
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var renderPagination = function renderPagination(contextLocale) {
|
|
|
var locale = (0, _extends2["default"])((0, _extends2["default"])({}, contextLocale), customLocale);
|
|
|
var isSmall = size === 'small' || !!(xs && !size && restProps.responsive);
|
|
|
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
|
|
|
var extendedClassName = (0, _classnames["default"])((0, _defineProperty2["default"])({
|
|
|
mini: isSmall
|
|
|
}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), className);
|
|
|
return /*#__PURE__*/React.createElement(_rcPagination["default"], (0, _extends2["default"])({}, restProps, {
|
|
|
prefixCls: prefixCls,
|
|
|
selectPrefixCls: selectPrefixCls
|
|
|
}, getIconsProps(), {
|
|
|
className: extendedClassName,
|
|
|
selectComponentClass: isSmall ? _MiniSelect["default"] : _select["default"],
|
|
|
locale: locale
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_LocaleReceiver["default"], {
|
|
|
componentName: "Pagination",
|
|
|
defaultLocale: _en_US["default"]
|
|
|
}, renderPagination);
|
|
|
};
|
|
|
|
|
|
var _default = Pagination;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/pagination/index.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/pagination/index.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _Pagination = _interopRequireDefault(__webpack_require__(/*! ./Pagination */ "./node_modules/antd/lib/pagination/Pagination.js"));
|
|
|
|
|
|
var _default = _Pagination["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/radio/context.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/radio/context.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = exports.RadioGroupContextProvider = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var RadioGroupContext = /*#__PURE__*/React.createContext(null);
|
|
|
var RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
exports.RadioGroupContextProvider = RadioGroupContextProvider;
|
|
|
var _default = RadioGroupContext;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/radio/group.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/radio/group.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _useMergedState3 = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/hooks/useMergedState */ "./node_modules/rc-util/lib/hooks/useMergedState.js"));
|
|
|
|
|
|
var _radio = _interopRequireDefault(__webpack_require__(/*! ./radio */ "./node_modules/antd/lib/radio/radio.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _SizeContext = _interopRequireDefault(__webpack_require__(/*! ../config-provider/SizeContext */ "./node_modules/antd/lib/config-provider/SizeContext.js"));
|
|
|
|
|
|
var _context = __webpack_require__(/*! ./context */ "./node_modules/antd/lib/radio/context.js");
|
|
|
|
|
|
var RadioGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var size = React.useContext(_SizeContext["default"]);
|
|
|
|
|
|
var _useMergedState = (0, _useMergedState3["default"])(props.defaultValue, {
|
|
|
value: props.value
|
|
|
}),
|
|
|
_useMergedState2 = (0, _slicedToArray2["default"])(_useMergedState, 2),
|
|
|
value = _useMergedState2[0],
|
|
|
setValue = _useMergedState2[1];
|
|
|
|
|
|
var onRadioChange = function onRadioChange(ev) {
|
|
|
var lastValue = value;
|
|
|
var val = ev.target.value;
|
|
|
|
|
|
if (!('value' in props)) {
|
|
|
setValue(val);
|
|
|
}
|
|
|
|
|
|
var onChange = props.onChange;
|
|
|
|
|
|
if (onChange && val !== lastValue) {
|
|
|
onChange(ev);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var renderGroup = function renderGroup() {
|
|
|
var _classNames;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
_props$className = props.className,
|
|
|
className = _props$className === void 0 ? '' : _props$className,
|
|
|
options = props.options,
|
|
|
optionType = props.optionType,
|
|
|
_props$buttonStyle = props.buttonStyle,
|
|
|
buttonStyle = _props$buttonStyle === void 0 ? 'outline' : _props$buttonStyle,
|
|
|
disabled = props.disabled,
|
|
|
children = props.children,
|
|
|
customizeSize = props.size,
|
|
|
style = props.style,
|
|
|
id = props.id,
|
|
|
onMouseEnter = props.onMouseEnter,
|
|
|
onMouseLeave = props.onMouseLeave;
|
|
|
var prefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
|
var groupPrefixCls = "".concat(prefixCls, "-group");
|
|
|
var childrenToRender = children; // 如果存在 options, 优先使用
|
|
|
|
|
|
if (options && options.length > 0) {
|
|
|
var optionsPrefixCls = optionType === 'button' ? "".concat(prefixCls, "-button") : prefixCls;
|
|
|
childrenToRender = options.map(function (option) {
|
|
|
if (typeof option === 'string') {
|
|
|
// 此处类型自动推导为 string
|
|
|
return /*#__PURE__*/React.createElement(_radio["default"], {
|
|
|
key: option,
|
|
|
prefixCls: optionsPrefixCls,
|
|
|
disabled: disabled,
|
|
|
value: option,
|
|
|
checked: value === option
|
|
|
}, option);
|
|
|
} // 此处类型自动推导为 { label: string value: string }
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_radio["default"], {
|
|
|
key: "radio-group-value-options-".concat(option.value),
|
|
|
prefixCls: optionsPrefixCls,
|
|
|
disabled: option.disabled || disabled,
|
|
|
value: option.value,
|
|
|
checked: value === option.value,
|
|
|
style: option.style
|
|
|
}, option.label);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var mergedSize = customizeSize || size;
|
|
|
var classString = (0, _classnames["default"])(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(groupPrefixCls, "-").concat(mergedSize), mergedSize), (0, _defineProperty2["default"])(_classNames, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: classString,
|
|
|
style: style,
|
|
|
onMouseEnter: onMouseEnter,
|
|
|
onMouseLeave: onMouseLeave,
|
|
|
id: id,
|
|
|
ref: ref
|
|
|
}, childrenToRender);
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_context.RadioGroupContextProvider, {
|
|
|
value: {
|
|
|
onChange: onRadioChange,
|
|
|
value: value,
|
|
|
disabled: props.disabled,
|
|
|
name: props.name
|
|
|
}
|
|
|
}, renderGroup());
|
|
|
});
|
|
|
|
|
|
var _default = /*#__PURE__*/React.memo(RadioGroup);
|
|
|
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/radio/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/radio/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
Object.defineProperty(exports, "Group", {
|
|
|
enumerable: true,
|
|
|
get: function get() {
|
|
|
return _group["default"];
|
|
|
}
|
|
|
});
|
|
|
Object.defineProperty(exports, "Button", {
|
|
|
enumerable: true,
|
|
|
get: function get() {
|
|
|
return _radioButton["default"];
|
|
|
}
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _radio = _interopRequireDefault(__webpack_require__(/*! ./radio */ "./node_modules/antd/lib/radio/radio.js"));
|
|
|
|
|
|
var _group = _interopRequireDefault(__webpack_require__(/*! ./group */ "./node_modules/antd/lib/radio/group.js"));
|
|
|
|
|
|
var _radioButton = _interopRequireDefault(__webpack_require__(/*! ./radioButton */ "./node_modules/antd/lib/radio/radioButton.js"));
|
|
|
|
|
|
var Radio = _radio["default"];
|
|
|
Radio.Button = _radioButton["default"];
|
|
|
Radio.Group = _group["default"];
|
|
|
var _default = Radio;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/radio/radio.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/radio/radio.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcCheckbox = _interopRequireDefault(__webpack_require__(/*! rc-checkbox */ "./node_modules/rc-checkbox/es/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _ref = __webpack_require__(/*! rc-util/lib/ref */ "./node_modules/rc-util/lib/ref.js");
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _context = _interopRequireDefault(__webpack_require__(/*! ./context */ "./node_modules/antd/lib/radio/context.js"));
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var InternalRadio = function InternalRadio(props, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var context = React.useContext(_context["default"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var innerRef = React.useRef();
|
|
|
var mergedRef = (0, _ref.composeRef)(ref, innerRef);
|
|
|
React.useEffect(function () {
|
|
|
(0, _devWarning["default"])(!('optionType' in props), 'Radio', '`optionType` is only support in Radio.Group.');
|
|
|
}, []);
|
|
|
|
|
|
var onChange = function onChange(e) {
|
|
|
var _a, _b;
|
|
|
|
|
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
|
(_b = context === null || context === void 0 ? void 0 : context.onChange) === null || _b === void 0 ? void 0 : _b.call(context, e);
|
|
|
};
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
children = props.children,
|
|
|
style = props.style,
|
|
|
restProps = __rest(props, ["prefixCls", "className", "children", "style"]);
|
|
|
|
|
|
var prefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
|
var radioProps = (0, _extends2["default"])({}, restProps);
|
|
|
|
|
|
if (context) {
|
|
|
radioProps.name = context.name;
|
|
|
radioProps.onChange = onChange;
|
|
|
radioProps.checked = props.value === context.value;
|
|
|
radioProps.disabled = props.disabled || context.disabled;
|
|
|
}
|
|
|
|
|
|
var wrapperClassString = (0, _classnames["default"])("".concat(prefixCls, "-wrapper"), (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper-checked"), radioProps.checked), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
return (
|
|
|
/*#__PURE__*/
|
|
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
|
React.createElement("label", {
|
|
|
className: wrapperClassString,
|
|
|
style: style,
|
|
|
onMouseEnter: props.onMouseEnter,
|
|
|
onMouseLeave: props.onMouseLeave
|
|
|
}, /*#__PURE__*/React.createElement(_rcCheckbox["default"], (0, _extends2["default"])({}, radioProps, {
|
|
|
prefixCls: prefixCls,
|
|
|
ref: mergedRef
|
|
|
})), children !== undefined ? /*#__PURE__*/React.createElement("span", null, children) : null)
|
|
|
);
|
|
|
};
|
|
|
|
|
|
var Radio = /*#__PURE__*/React.forwardRef(InternalRadio);
|
|
|
Radio.displayName = 'Radio';
|
|
|
Radio.defaultProps = {
|
|
|
type: 'radio'
|
|
|
};
|
|
|
var _default = Radio;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/radio/radioButton.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/radio/radioButton.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _radio = _interopRequireDefault(__webpack_require__(/*! ./radio */ "./node_modules/antd/lib/radio/radio.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _context = _interopRequireDefault(__webpack_require__(/*! ./context */ "./node_modules/antd/lib/radio/context.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var RadioButton = function RadioButton(props, ref) {
|
|
|
var radioGroupContext = React.useContext(_context["default"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
radioProps = __rest(props, ["prefixCls"]);
|
|
|
|
|
|
var prefixCls = getPrefixCls('radio-button', customizePrefixCls);
|
|
|
|
|
|
if (radioGroupContext) {
|
|
|
radioProps.checked = props.value === radioGroupContext.value;
|
|
|
radioProps.disabled = props.disabled || radioGroupContext.disabled;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_radio["default"], (0, _extends2["default"])({
|
|
|
prefixCls: prefixCls
|
|
|
}, radioProps, {
|
|
|
type: "radio",
|
|
|
ref: ref
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(RadioButton);
|
|
|
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/select/index.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/select/index.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _rcSelect = _interopRequireWildcard(__webpack_require__(/*! rc-select */ "./node_modules/rc-select/es/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _iconUtil = _interopRequireDefault(__webpack_require__(/*! ./utils/iconUtil */ "./node_modules/antd/lib/select/utils/iconUtil.js"));
|
|
|
|
|
|
var _SizeContext = _interopRequireDefault(__webpack_require__(/*! ../config-provider/SizeContext */ "./node_modules/antd/lib/config-provider/SizeContext.js"));
|
|
|
|
|
|
var _motion = __webpack_require__(/*! ../_util/motion */ "./node_modules/antd/lib/_util/motion.js");
|
|
|
|
|
|
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
|
|
|
|
var InternalSelect = function InternalSelect(_a, ref) {
|
|
|
var _classNames2;
|
|
|
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
_a$bordered = _a.bordered,
|
|
|
bordered = _a$bordered === void 0 ? true : _a$bordered,
|
|
|
className = _a.className,
|
|
|
getPopupContainer = _a.getPopupContainer,
|
|
|
dropdownClassName = _a.dropdownClassName,
|
|
|
_a$listHeight = _a.listHeight,
|
|
|
listHeight = _a$listHeight === void 0 ? 256 : _a$listHeight,
|
|
|
_a$listItemHeight = _a.listItemHeight,
|
|
|
listItemHeight = _a$listItemHeight === void 0 ? 24 : _a$listItemHeight,
|
|
|
customizeSize = _a.size,
|
|
|
notFoundContent = _a.notFoundContent,
|
|
|
props = __rest(_a, ["prefixCls", "bordered", "className", "getPopupContainer", "dropdownClassName", "listHeight", "listItemHeight", "size", "notFoundContent"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getContextPopupContainer = _React$useContext.getPopupContainer,
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
renderEmpty = _React$useContext.renderEmpty,
|
|
|
direction = _React$useContext.direction,
|
|
|
virtual = _React$useContext.virtual,
|
|
|
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
|
|
|
|
|
|
var size = React.useContext(_SizeContext["default"]);
|
|
|
var prefixCls = getPrefixCls('select', customizePrefixCls);
|
|
|
var rootPrefixCls = getPrefixCls();
|
|
|
var mode = React.useMemo(function () {
|
|
|
var m = props.mode;
|
|
|
|
|
|
if (m === 'combobox') {
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
|
|
|
return 'combobox';
|
|
|
}
|
|
|
|
|
|
return m;
|
|
|
}, [props.mode]);
|
|
|
var isMultiple = mode === 'multiple' || mode === 'tags'; // ===================== Empty =====================
|
|
|
|
|
|
var mergedNotFound;
|
|
|
|
|
|
if (notFoundContent !== undefined) {
|
|
|
mergedNotFound = notFoundContent;
|
|
|
} else if (mode === 'combobox') {
|
|
|
mergedNotFound = null;
|
|
|
} else {
|
|
|
mergedNotFound = renderEmpty('Select');
|
|
|
} // ===================== Icons =====================
|
|
|
|
|
|
|
|
|
var _getIcons = (0, _iconUtil["default"])((0, _extends2["default"])((0, _extends2["default"])({}, props), {
|
|
|
multiple: isMultiple,
|
|
|
prefixCls: prefixCls
|
|
|
})),
|
|
|
suffixIcon = _getIcons.suffixIcon,
|
|
|
itemIcon = _getIcons.itemIcon,
|
|
|
removeIcon = _getIcons.removeIcon,
|
|
|
clearIcon = _getIcons.clearIcon;
|
|
|
|
|
|
var selectProps = (0, _omit["default"])(props, ['suffixIcon', 'itemIcon']);
|
|
|
var rcSelectRtlDropDownClassName = (0, _classnames["default"])(dropdownClassName, (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
|
|
|
var mergedSize = customizeSize || size;
|
|
|
var mergedClassName = (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), _classNames2), className);
|
|
|
return /*#__PURE__*/React.createElement(_rcSelect["default"], (0, _extends2["default"])({
|
|
|
ref: ref,
|
|
|
virtual: virtual,
|
|
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth
|
|
|
}, selectProps, {
|
|
|
transitionName: (0, _motion.getTransitionName)(rootPrefixCls, 'slide-up', props.transitionName),
|
|
|
listHeight: listHeight,
|
|
|
listItemHeight: listItemHeight,
|
|
|
mode: mode,
|
|
|
prefixCls: prefixCls,
|
|
|
direction: direction,
|
|
|
inputIcon: suffixIcon,
|
|
|
menuItemSelectedIcon: itemIcon,
|
|
|
removeIcon: removeIcon,
|
|
|
clearIcon: clearIcon,
|
|
|
notFoundContent: mergedNotFound,
|
|
|
className: mergedClassName,
|
|
|
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
|
|
dropdownClassName: rcSelectRtlDropDownClassName
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var SelectRef = /*#__PURE__*/React.forwardRef(InternalSelect);
|
|
|
var Select = SelectRef;
|
|
|
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
|
Select.Option = _rcSelect.Option;
|
|
|
Select.OptGroup = _rcSelect.OptGroup;
|
|
|
var _default = Select;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/select/utils/iconUtil.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/select/utils/iconUtil.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = getIcons;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _DownOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/DownOutlined */ "./node_modules/@ant-design/icons/DownOutlined.js"));
|
|
|
|
|
|
var _LoadingOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/LoadingOutlined */ "./node_modules/@ant-design/icons/LoadingOutlined.js"));
|
|
|
|
|
|
var _CheckOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CheckOutlined */ "./node_modules/@ant-design/icons/CheckOutlined.js"));
|
|
|
|
|
|
var _CloseOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseOutlined */ "./node_modules/@ant-design/icons/CloseOutlined.js"));
|
|
|
|
|
|
var _CloseCircleFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseCircleFilled */ "./node_modules/@ant-design/icons/CloseCircleFilled.js"));
|
|
|
|
|
|
var _SearchOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/SearchOutlined */ "./node_modules/@ant-design/icons/SearchOutlined.js"));
|
|
|
|
|
|
function getIcons(_ref) {
|
|
|
var suffixIcon = _ref.suffixIcon,
|
|
|
clearIcon = _ref.clearIcon,
|
|
|
menuItemSelectedIcon = _ref.menuItemSelectedIcon,
|
|
|
removeIcon = _ref.removeIcon,
|
|
|
loading = _ref.loading,
|
|
|
multiple = _ref.multiple,
|
|
|
prefixCls = _ref.prefixCls;
|
|
|
// Clear Icon
|
|
|
var mergedClearIcon = clearIcon;
|
|
|
|
|
|
if (!clearIcon) {
|
|
|
mergedClearIcon = /*#__PURE__*/React.createElement(_CloseCircleFilled["default"], null);
|
|
|
} // Arrow item icon
|
|
|
|
|
|
|
|
|
var mergedSuffixIcon = null;
|
|
|
|
|
|
if (suffixIcon !== undefined) {
|
|
|
mergedSuffixIcon = suffixIcon;
|
|
|
} else if (loading) {
|
|
|
mergedSuffixIcon = /*#__PURE__*/React.createElement(_LoadingOutlined["default"], {
|
|
|
spin: true
|
|
|
});
|
|
|
} else {
|
|
|
var iconCls = "".concat(prefixCls, "-suffix");
|
|
|
|
|
|
mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
|
|
|
var open = _ref2.open,
|
|
|
showSearch = _ref2.showSearch;
|
|
|
|
|
|
if (open && showSearch) {
|
|
|
return /*#__PURE__*/React.createElement(_SearchOutlined["default"], {
|
|
|
className: iconCls
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_DownOutlined["default"], {
|
|
|
className: iconCls
|
|
|
});
|
|
|
};
|
|
|
} // Checked item icon
|
|
|
|
|
|
|
|
|
var mergedItemIcon = null;
|
|
|
|
|
|
if (menuItemSelectedIcon !== undefined) {
|
|
|
mergedItemIcon = menuItemSelectedIcon;
|
|
|
} else if (multiple) {
|
|
|
mergedItemIcon = /*#__PURE__*/React.createElement(_CheckOutlined["default"], null);
|
|
|
} else {
|
|
|
mergedItemIcon = null;
|
|
|
}
|
|
|
|
|
|
var mergedRemoveIcon = null;
|
|
|
|
|
|
if (removeIcon !== undefined) {
|
|
|
mergedRemoveIcon = removeIcon;
|
|
|
} else {
|
|
|
mergedRemoveIcon = /*#__PURE__*/React.createElement(_CloseOutlined["default"], null);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
clearIcon: mergedClearIcon,
|
|
|
suffixIcon: mergedSuffixIcon,
|
|
|
itemIcon: mergedItemIcon,
|
|
|
removeIcon: mergedRemoveIcon
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/spin/index.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/spin/index.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _debounce = _interopRequireDefault(__webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _type = __webpack_require__(/*! ../_util/type */ "./node_modules/antd/lib/_util/type.js");
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var SpinSizes = (0, _type.tuple)('small', 'default', 'large'); // Render indicator
|
|
|
|
|
|
var defaultIndicator = null;
|
|
|
|
|
|
function renderIndicator(prefixCls, props) {
|
|
|
var indicator = props.indicator;
|
|
|
var dotClassName = "".concat(prefixCls, "-dot"); // should not be render default indicator when indicator value is null
|
|
|
|
|
|
if (indicator === null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if ((0, _reactNode.isValidElement)(indicator)) {
|
|
|
return (0, _reactNode.cloneElement)(indicator, {
|
|
|
className: (0, _classnames["default"])(indicator.props.className, dotClassName)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ((0, _reactNode.isValidElement)(defaultIndicator)) {
|
|
|
return (0, _reactNode.cloneElement)(defaultIndicator, {
|
|
|
className: (0, _classnames["default"])(defaultIndicator.props.className, dotClassName)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames["default"])(dotClassName, "".concat(prefixCls, "-dot-spin"))
|
|
|
}, /*#__PURE__*/React.createElement("i", {
|
|
|
className: "".concat(prefixCls, "-dot-item")
|
|
|
}), /*#__PURE__*/React.createElement("i", {
|
|
|
className: "".concat(prefixCls, "-dot-item")
|
|
|
}), /*#__PURE__*/React.createElement("i", {
|
|
|
className: "".concat(prefixCls, "-dot-item")
|
|
|
}), /*#__PURE__*/React.createElement("i", {
|
|
|
className: "".concat(prefixCls, "-dot-item")
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
function shouldDelay(spinning, delay) {
|
|
|
return !!spinning && !!delay && !isNaN(Number(delay));
|
|
|
}
|
|
|
|
|
|
var Spin = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2["default"])(Spin, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2["default"])(Spin);
|
|
|
|
|
|
function Spin(props) {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2["default"])(this, Spin);
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.debouncifyUpdateSpinning = function (props) {
|
|
|
var _ref = props || _this.props,
|
|
|
delay = _ref.delay;
|
|
|
|
|
|
if (delay) {
|
|
|
_this.cancelExistingSpin();
|
|
|
|
|
|
_this.updateSpinning = (0, _debounce["default"])(_this.originalUpdateSpinning, delay);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.updateSpinning = function () {
|
|
|
var spinning = _this.props.spinning;
|
|
|
var currentSpinning = _this.state.spinning;
|
|
|
|
|
|
if (currentSpinning !== spinning) {
|
|
|
_this.setState({
|
|
|
spinning: spinning
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.renderSpin = function (_ref2) {
|
|
|
var _classNames;
|
|
|
|
|
|
var getPrefixCls = _ref2.getPrefixCls,
|
|
|
direction = _ref2.direction;
|
|
|
|
|
|
var _a = _this.props,
|
|
|
customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
size = _a.size,
|
|
|
tip = _a.tip,
|
|
|
wrapperClassName = _a.wrapperClassName,
|
|
|
style = _a.style,
|
|
|
restProps = __rest(_a, ["prefixCls", "className", "size", "tip", "wrapperClassName", "style"]);
|
|
|
|
|
|
var spinning = _this.state.spinning;
|
|
|
var prefixCls = getPrefixCls('spin', customizePrefixCls);
|
|
|
var spinClassName = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-spinning"), spinning), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-show-text"), !!tip), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className); // fix https://fb.me/react-unknown-prop
|
|
|
|
|
|
var divProps = (0, _omit["default"])(restProps, ['spinning', 'delay', 'indicator']);
|
|
|
var spinElement = /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, divProps, {
|
|
|
style: style,
|
|
|
className: spinClassName
|
|
|
}), renderIndicator(prefixCls, _this.props), tip ? /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-text")
|
|
|
}, tip) : null);
|
|
|
|
|
|
if (_this.isNestedPattern()) {
|
|
|
var containerClassName = (0, _classnames["default"])("".concat(prefixCls, "-container"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-blur"), spinning));
|
|
|
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, divProps, {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-nested-loading"), wrapperClassName)
|
|
|
}), spinning && /*#__PURE__*/React.createElement("div", {
|
|
|
key: "loading"
|
|
|
}, spinElement), /*#__PURE__*/React.createElement("div", {
|
|
|
className: containerClassName,
|
|
|
key: "container"
|
|
|
}, _this.props.children));
|
|
|
}
|
|
|
|
|
|
return spinElement;
|
|
|
};
|
|
|
|
|
|
var spinning = props.spinning,
|
|
|
delay = props.delay;
|
|
|
var shouldBeDelayed = shouldDelay(spinning, delay);
|
|
|
_this.state = {
|
|
|
spinning: spinning && !shouldBeDelayed
|
|
|
};
|
|
|
_this.originalUpdateSpinning = _this.updateSpinning;
|
|
|
|
|
|
_this.debouncifyUpdateSpinning(props);
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2["default"])(Spin, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.updateSpinning();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
this.debouncifyUpdateSpinning();
|
|
|
this.updateSpinning();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.cancelExistingSpin();
|
|
|
}
|
|
|
}, {
|
|
|
key: "cancelExistingSpin",
|
|
|
value: function cancelExistingSpin() {
|
|
|
var updateSpinning = this.updateSpinning;
|
|
|
|
|
|
if (updateSpinning && updateSpinning.cancel) {
|
|
|
updateSpinning.cancel();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "isNestedPattern",
|
|
|
value: function isNestedPattern() {
|
|
|
return !!(this.props && typeof this.props.children !== 'undefined');
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderSpin);
|
|
|
}
|
|
|
}], [{
|
|
|
key: "setDefaultIndicator",
|
|
|
value: function setDefaultIndicator(indicator) {
|
|
|
defaultIndicator = indicator;
|
|
|
}
|
|
|
}]);
|
|
|
return Spin;
|
|
|
}(React.Component);
|
|
|
|
|
|
Spin.defaultProps = {
|
|
|
spinning: true,
|
|
|
size: 'default',
|
|
|
wrapperClassName: ''
|
|
|
};
|
|
|
var _default = Spin;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/Column.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/Column.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
function Column(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var _default = Column;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/ColumnGroup.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/ColumnGroup.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
function ColumnGroup(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var _default = ColumnGroup;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/ExpandIcon.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/ExpandIcon.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
function renderExpandIcon(locale) {
|
|
|
return function expandIcon(_ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
onExpand = _ref.onExpand,
|
|
|
record = _ref.record,
|
|
|
expanded = _ref.expanded,
|
|
|
expandable = _ref.expandable;
|
|
|
var iconPrefix = "".concat(prefixCls, "-row-expand-icon");
|
|
|
return /*#__PURE__*/React.createElement("button", {
|
|
|
type: "button",
|
|
|
onClick: function onClick(e) {
|
|
|
onExpand(record, e);
|
|
|
e.stopPropagation();
|
|
|
},
|
|
|
className: (0, _classnames["default"])(iconPrefix, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(iconPrefix, "-spaced"), !expandable), (0, _defineProperty2["default"])(_classNames, "".concat(iconPrefix, "-expanded"), expandable && expanded), (0, _defineProperty2["default"])(_classNames, "".concat(iconPrefix, "-collapsed"), expandable && !expanded), _classNames)),
|
|
|
"aria-label": expanded ? locale.collapse : locale.expand
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var _default = renderExpandIcon;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/Table.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/Table.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _rcTable = _interopRequireWildcard(__webpack_require__(/*! rc-table */ "./node_modules/rc-table/es/index.js"));
|
|
|
|
|
|
var _Table = __webpack_require__(/*! rc-table/lib/Table */ "./node_modules/rc-table/lib/Table.js");
|
|
|
|
|
|
var _useColumns = __webpack_require__(/*! rc-table/lib/hooks/useColumns */ "./node_modules/rc-table/lib/hooks/useColumns.js");
|
|
|
|
|
|
var _spin = _interopRequireDefault(__webpack_require__(/*! ../spin */ "./node_modules/antd/lib/spin/index.js"));
|
|
|
|
|
|
var _pagination = _interopRequireDefault(__webpack_require__(/*! ../pagination */ "./node_modules/antd/lib/pagination/index.js"));
|
|
|
|
|
|
var _context = __webpack_require__(/*! ../config-provider/context */ "./node_modules/antd/lib/config-provider/context.js");
|
|
|
|
|
|
var _usePagination3 = _interopRequireWildcard(__webpack_require__(/*! ./hooks/usePagination */ "./node_modules/antd/lib/table/hooks/usePagination.js"));
|
|
|
|
|
|
var _useLazyKVMap3 = _interopRequireDefault(__webpack_require__(/*! ./hooks/useLazyKVMap */ "./node_modules/antd/lib/table/hooks/useLazyKVMap.js"));
|
|
|
|
|
|
var _useSelection3 = _interopRequireWildcard(__webpack_require__(/*! ./hooks/useSelection */ "./node_modules/antd/lib/table/hooks/useSelection.js"));
|
|
|
|
|
|
var _useSorter3 = _interopRequireWildcard(__webpack_require__(/*! ./hooks/useSorter */ "./node_modules/antd/lib/table/hooks/useSorter.js"));
|
|
|
|
|
|
var _useFilter3 = _interopRequireWildcard(__webpack_require__(/*! ./hooks/useFilter */ "./node_modules/antd/lib/table/hooks/useFilter/index.js"));
|
|
|
|
|
|
var _useTitleColumns3 = _interopRequireDefault(__webpack_require__(/*! ./hooks/useTitleColumns */ "./node_modules/antd/lib/table/hooks/useTitleColumns.js"));
|
|
|
|
|
|
var _ExpandIcon = _interopRequireDefault(__webpack_require__(/*! ./ExpandIcon */ "./node_modules/antd/lib/table/ExpandIcon.js"));
|
|
|
|
|
|
var _scrollTo = _interopRequireDefault(__webpack_require__(/*! ../_util/scrollTo */ "./node_modules/antd/lib/_util/scrollTo.js"));
|
|
|
|
|
|
var _en_US = _interopRequireDefault(__webpack_require__(/*! ../locale/en_US */ "./node_modules/antd/lib/locale/en_US.js"));
|
|
|
|
|
|
var _SizeContext = _interopRequireDefault(__webpack_require__(/*! ../config-provider/SizeContext */ "./node_modules/antd/lib/config-provider/SizeContext.js"));
|
|
|
|
|
|
var _Column = _interopRequireDefault(__webpack_require__(/*! ./Column */ "./node_modules/antd/lib/table/Column.js"));
|
|
|
|
|
|
var _ColumnGroup = _interopRequireDefault(__webpack_require__(/*! ./ColumnGroup */ "./node_modules/antd/lib/table/ColumnGroup.js"));
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
var _useBreakpoint = _interopRequireDefault(__webpack_require__(/*! ../grid/hooks/useBreakpoint */ "./node_modules/antd/lib/grid/hooks/useBreakpoint.js"));
|
|
|
|
|
|
var EMPTY_LIST = [];
|
|
|
|
|
|
function Table(props) {
|
|
|
var _classNames3;
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
customizeSize = props.size,
|
|
|
bordered = props.bordered,
|
|
|
customizeDropdownPrefixCls = props.dropdownPrefixCls,
|
|
|
dataSource = props.dataSource,
|
|
|
pagination = props.pagination,
|
|
|
rowSelection = props.rowSelection,
|
|
|
rowKey = props.rowKey,
|
|
|
rowClassName = props.rowClassName,
|
|
|
columns = props.columns,
|
|
|
children = props.children,
|
|
|
legacyChildrenColumnName = props.childrenColumnName,
|
|
|
onChange = props.onChange,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
loading = props.loading,
|
|
|
expandIcon = props.expandIcon,
|
|
|
expandable = props.expandable,
|
|
|
expandedRowRender = props.expandedRowRender,
|
|
|
expandIconColumnIndex = props.expandIconColumnIndex,
|
|
|
indentSize = props.indentSize,
|
|
|
scroll = props.scroll,
|
|
|
sortDirections = props.sortDirections,
|
|
|
locale = props.locale,
|
|
|
_props$showSorterTool = props.showSorterTooltip,
|
|
|
showSorterTooltip = _props$showSorterTool === void 0 ? true : _props$showSorterTool;
|
|
|
(0, _devWarning["default"])(!(typeof rowKey === 'function' && rowKey.length > 1), 'Table', '`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.');
|
|
|
var screens = (0, _useBreakpoint["default"])();
|
|
|
var mergedColumns = React.useMemo(function () {
|
|
|
var matched = new Set(Object.keys(screens).filter(function (m) {
|
|
|
return screens[m];
|
|
|
}));
|
|
|
return (columns || (0, _useColumns.convertChildrenToColumns)(children)).filter(function (c) {
|
|
|
return !c.responsive || c.responsive.some(function (r) {
|
|
|
return matched.has(r);
|
|
|
});
|
|
|
});
|
|
|
}, [children, columns, screens]);
|
|
|
var tableProps = (0, _omit["default"])(props, ['className', 'style', 'columns']);
|
|
|
var size = React.useContext(_SizeContext["default"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_context.ConfigContext),
|
|
|
_React$useContext$loc = _React$useContext.locale,
|
|
|
contextLocale = _React$useContext$loc === void 0 ? _en_US["default"] : _React$useContext$loc,
|
|
|
renderEmpty = _React$useContext.renderEmpty,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var mergedSize = customizeSize || size;
|
|
|
var tableLocale = (0, _extends2["default"])((0, _extends2["default"])({}, contextLocale.Table), locale);
|
|
|
var rawData = dataSource || EMPTY_LIST;
|
|
|
|
|
|
var _React$useContext2 = React.useContext(_context.ConfigContext),
|
|
|
getPrefixCls = _React$useContext2.getPrefixCls;
|
|
|
|
|
|
var prefixCls = getPrefixCls('table', customizePrefixCls);
|
|
|
var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls);
|
|
|
var mergedExpandable = (0, _extends2["default"])({
|
|
|
childrenColumnName: legacyChildrenColumnName,
|
|
|
expandIconColumnIndex: expandIconColumnIndex
|
|
|
}, expandable);
|
|
|
var _mergedExpandable$chi = mergedExpandable.childrenColumnName,
|
|
|
childrenColumnName = _mergedExpandable$chi === void 0 ? 'children' : _mergedExpandable$chi;
|
|
|
var expandType = React.useMemo(function () {
|
|
|
if (rawData.some(function (item) {
|
|
|
var _a;
|
|
|
|
|
|
return (_a = item) === null || _a === void 0 ? void 0 : _a[childrenColumnName];
|
|
|
})) {
|
|
|
return 'nest';
|
|
|
}
|
|
|
|
|
|
if (expandedRowRender || expandable && expandable.expandedRowRender) {
|
|
|
return 'row';
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}, [rawData]);
|
|
|
var internalRefs = {
|
|
|
body: React.useRef()
|
|
|
}; // ============================ RowKey ============================
|
|
|
|
|
|
var getRowKey = React.useMemo(function () {
|
|
|
if (typeof rowKey === 'function') {
|
|
|
return rowKey;
|
|
|
}
|
|
|
|
|
|
return function (record) {
|
|
|
var _a;
|
|
|
|
|
|
return (_a = record) === null || _a === void 0 ? void 0 : _a[rowKey];
|
|
|
};
|
|
|
}, [rowKey]);
|
|
|
|
|
|
var _useLazyKVMap = (0, _useLazyKVMap3["default"])(rawData, childrenColumnName, getRowKey),
|
|
|
_useLazyKVMap2 = (0, _slicedToArray2["default"])(_useLazyKVMap, 1),
|
|
|
getRecordByKey = _useLazyKVMap2[0]; // ============================ Events =============================
|
|
|
|
|
|
|
|
|
var changeEventInfo = {};
|
|
|
|
|
|
var triggerOnChange = function triggerOnChange(info, action) {
|
|
|
var reset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
|
var changeInfo = (0, _extends2["default"])((0, _extends2["default"])({}, changeEventInfo), info);
|
|
|
|
|
|
if (reset) {
|
|
|
changeEventInfo.resetPagination(); // Reset event param
|
|
|
|
|
|
if (changeInfo.pagination.current) {
|
|
|
changeInfo.pagination.current = 1;
|
|
|
} // Trigger pagination events
|
|
|
|
|
|
|
|
|
if (pagination && pagination.onChange) {
|
|
|
pagination.onChange(1, changeInfo.pagination.pageSize);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (scroll && scroll.scrollToFirstRowOnChange !== false && internalRefs.body.current) {
|
|
|
(0, _scrollTo["default"])(0, {
|
|
|
getContainer: function getContainer() {
|
|
|
return internalRefs.body.current;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
onChange === null || onChange === void 0 ? void 0 : onChange(changeInfo.pagination, changeInfo.filters, changeInfo.sorter, {
|
|
|
currentDataSource: (0, _useFilter3.getFilterData)((0, _useSorter3.getSortData)(rawData, changeInfo.sorterStates, childrenColumnName), changeInfo.filterStates),
|
|
|
action: action
|
|
|
});
|
|
|
};
|
|
|
/**
|
|
|
* Controlled state in `columns` is not a good idea that makes too many code (1000+ line?) to read
|
|
|
* state out and then put it back to title render. Move these code into `hooks` but still too
|
|
|
* complex. We should provides Table props like `sorter` & `filter` to handle control in next big version.
|
|
|
*/
|
|
|
// ============================ Sorter =============================
|
|
|
|
|
|
|
|
|
var onSorterChange = function onSorterChange(sorter, sorterStates) {
|
|
|
triggerOnChange({
|
|
|
sorter: sorter,
|
|
|
sorterStates: sorterStates
|
|
|
}, 'sort', false);
|
|
|
};
|
|
|
|
|
|
var _useSorter = (0, _useSorter3["default"])({
|
|
|
prefixCls: prefixCls,
|
|
|
mergedColumns: mergedColumns,
|
|
|
onSorterChange: onSorterChange,
|
|
|
sortDirections: sortDirections || ['ascend', 'descend'],
|
|
|
tableLocale: tableLocale,
|
|
|
showSorterTooltip: showSorterTooltip
|
|
|
}),
|
|
|
_useSorter2 = (0, _slicedToArray2["default"])(_useSorter, 4),
|
|
|
transformSorterColumns = _useSorter2[0],
|
|
|
sortStates = _useSorter2[1],
|
|
|
sorterTitleProps = _useSorter2[2],
|
|
|
getSorters = _useSorter2[3];
|
|
|
|
|
|
var sortedData = React.useMemo(function () {
|
|
|
return (0, _useSorter3.getSortData)(rawData, sortStates, childrenColumnName);
|
|
|
}, [rawData, sortStates]);
|
|
|
changeEventInfo.sorter = getSorters();
|
|
|
changeEventInfo.sorterStates = sortStates; // ============================ Filter ============================
|
|
|
|
|
|
var onFilterChange = function onFilterChange(filters, filterStates) {
|
|
|
triggerOnChange({
|
|
|
filters: filters,
|
|
|
filterStates: filterStates
|
|
|
}, 'filter', true);
|
|
|
};
|
|
|
|
|
|
var _useFilter = (0, _useFilter3["default"])({
|
|
|
prefixCls: prefixCls,
|
|
|
locale: tableLocale,
|
|
|
dropdownPrefixCls: dropdownPrefixCls,
|
|
|
mergedColumns: mergedColumns,
|
|
|
onFilterChange: onFilterChange,
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}),
|
|
|
_useFilter2 = (0, _slicedToArray2["default"])(_useFilter, 3),
|
|
|
transformFilterColumns = _useFilter2[0],
|
|
|
filterStates = _useFilter2[1],
|
|
|
getFilters = _useFilter2[2];
|
|
|
|
|
|
var mergedData = (0, _useFilter3.getFilterData)(sortedData, filterStates);
|
|
|
changeEventInfo.filters = getFilters();
|
|
|
changeEventInfo.filterStates = filterStates; // ============================ Column ============================
|
|
|
|
|
|
var columnTitleProps = React.useMemo(function () {
|
|
|
return (0, _extends2["default"])({}, sorterTitleProps);
|
|
|
}, [sorterTitleProps]);
|
|
|
|
|
|
var _useTitleColumns = (0, _useTitleColumns3["default"])(columnTitleProps),
|
|
|
_useTitleColumns2 = (0, _slicedToArray2["default"])(_useTitleColumns, 1),
|
|
|
transformTitleColumns = _useTitleColumns2[0]; // ========================== Pagination ==========================
|
|
|
|
|
|
|
|
|
var onPaginationChange = function onPaginationChange(current, pageSize) {
|
|
|
triggerOnChange({
|
|
|
pagination: (0, _extends2["default"])((0, _extends2["default"])({}, changeEventInfo.pagination), {
|
|
|
current: current,
|
|
|
pageSize: pageSize
|
|
|
})
|
|
|
}, 'paginate');
|
|
|
};
|
|
|
|
|
|
var _usePagination = (0, _usePagination3["default"])(mergedData.length, pagination, onPaginationChange),
|
|
|
_usePagination2 = (0, _slicedToArray2["default"])(_usePagination, 2),
|
|
|
mergedPagination = _usePagination2[0],
|
|
|
resetPagination = _usePagination2[1];
|
|
|
|
|
|
changeEventInfo.pagination = pagination === false ? {} : (0, _usePagination3.getPaginationParam)(pagination, mergedPagination);
|
|
|
changeEventInfo.resetPagination = resetPagination; // ============================= Data =============================
|
|
|
|
|
|
var pageData = React.useMemo(function () {
|
|
|
if (pagination === false || !mergedPagination.pageSize) {
|
|
|
return mergedData;
|
|
|
}
|
|
|
|
|
|
var _mergedPagination$cur = mergedPagination.current,
|
|
|
current = _mergedPagination$cur === void 0 ? 1 : _mergedPagination$cur,
|
|
|
total = mergedPagination.total,
|
|
|
_mergedPagination$pag = mergedPagination.pageSize,
|
|
|
pageSize = _mergedPagination$pag === void 0 ? _usePagination3.DEFAULT_PAGE_SIZE : _mergedPagination$pag;
|
|
|
(0, _devWarning["default"])(current > 0, 'Table', '`current` should be positive number.'); // Dynamic table data
|
|
|
|
|
|
if (mergedData.length < total) {
|
|
|
if (mergedData.length > pageSize) {
|
|
|
(0, _devWarning["default"])(false, 'Table', '`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.');
|
|
|
return mergedData.slice((current - 1) * pageSize, current * pageSize);
|
|
|
}
|
|
|
|
|
|
return mergedData;
|
|
|
}
|
|
|
|
|
|
return mergedData.slice((current - 1) * pageSize, current * pageSize);
|
|
|
}, [!!pagination, mergedData, mergedPagination && mergedPagination.current, mergedPagination && mergedPagination.pageSize, mergedPagination && mergedPagination.total]); // ========================== Selections ==========================
|
|
|
|
|
|
var _useSelection = (0, _useSelection3["default"])(rowSelection, {
|
|
|
prefixCls: prefixCls,
|
|
|
data: mergedData,
|
|
|
pageData: pageData,
|
|
|
getRowKey: getRowKey,
|
|
|
getRecordByKey: getRecordByKey,
|
|
|
expandType: expandType,
|
|
|
childrenColumnName: childrenColumnName,
|
|
|
locale: tableLocale,
|
|
|
expandIconColumnIndex: mergedExpandable.expandIconColumnIndex,
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}),
|
|
|
_useSelection2 = (0, _slicedToArray2["default"])(_useSelection, 2),
|
|
|
transformSelectionColumns = _useSelection2[0],
|
|
|
selectedKeySet = _useSelection2[1];
|
|
|
|
|
|
var internalRowClassName = function internalRowClassName(record, index, indent) {
|
|
|
var mergedRowClassName;
|
|
|
|
|
|
if (typeof rowClassName === 'function') {
|
|
|
mergedRowClassName = (0, _classnames["default"])(rowClassName(record, index, indent));
|
|
|
} else {
|
|
|
mergedRowClassName = (0, _classnames["default"])(rowClassName);
|
|
|
}
|
|
|
|
|
|
return (0, _classnames["default"])((0, _defineProperty2["default"])({}, "".concat(prefixCls, "-row-selected"), selectedKeySet.has(getRowKey(record, index))), mergedRowClassName);
|
|
|
}; // ========================== Expandable ==========================
|
|
|
// Pass origin render status into `rc-table`, this can be removed when refactor with `rc-table`
|
|
|
|
|
|
|
|
|
mergedExpandable.__PARENT_RENDER_ICON__ = mergedExpandable.expandIcon; // Customize expandable icon
|
|
|
|
|
|
mergedExpandable.expandIcon = mergedExpandable.expandIcon || expandIcon || (0, _ExpandIcon["default"])(tableLocale); // Adjust expand icon index, no overwrite expandIconColumnIndex if set.
|
|
|
|
|
|
if (expandType === 'nest' && mergedExpandable.expandIconColumnIndex === undefined) {
|
|
|
mergedExpandable.expandIconColumnIndex = rowSelection ? 1 : 0;
|
|
|
} else if (mergedExpandable.expandIconColumnIndex > 0 && rowSelection) {
|
|
|
mergedExpandable.expandIconColumnIndex -= 1;
|
|
|
} // Indent size
|
|
|
|
|
|
|
|
|
if (typeof mergedExpandable.indentSize !== 'number') {
|
|
|
mergedExpandable.indentSize = typeof indentSize === 'number' ? indentSize : 15;
|
|
|
} // ============================ Render ============================
|
|
|
|
|
|
|
|
|
var transformColumns = React.useCallback(function (innerColumns) {
|
|
|
return transformTitleColumns(transformSelectionColumns(transformFilterColumns(transformSorterColumns(innerColumns))));
|
|
|
}, [transformSorterColumns, transformFilterColumns, transformSelectionColumns]);
|
|
|
var topPaginationNode;
|
|
|
var bottomPaginationNode;
|
|
|
|
|
|
if (pagination !== false && (mergedPagination === null || mergedPagination === void 0 ? void 0 : mergedPagination.total)) {
|
|
|
var paginationSize;
|
|
|
|
|
|
if (mergedPagination.size) {
|
|
|
paginationSize = mergedPagination.size;
|
|
|
} else {
|
|
|
paginationSize = mergedSize === 'small' || mergedSize === 'middle' ? 'small' : undefined;
|
|
|
}
|
|
|
|
|
|
var renderPagination = function renderPagination(position) {
|
|
|
return /*#__PURE__*/React.createElement(_pagination["default"], (0, _extends2["default"])({
|
|
|
className: "".concat(prefixCls, "-pagination ").concat(prefixCls, "-pagination-").concat(position)
|
|
|
}, mergedPagination, {
|
|
|
size: paginationSize
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var defaultPosition = direction === 'rtl' ? 'left' : 'right';
|
|
|
var position = mergedPagination.position;
|
|
|
|
|
|
if (position !== null && Array.isArray(position)) {
|
|
|
var topPos = position.find(function (p) {
|
|
|
return p.indexOf('top') !== -1;
|
|
|
});
|
|
|
var bottomPos = position.find(function (p) {
|
|
|
return p.indexOf('bottom') !== -1;
|
|
|
});
|
|
|
var isDisable = position.every(function (p) {
|
|
|
return "".concat(p) === 'none';
|
|
|
});
|
|
|
|
|
|
if (!topPos && !bottomPos && !isDisable) {
|
|
|
bottomPaginationNode = renderPagination(defaultPosition);
|
|
|
}
|
|
|
|
|
|
if (topPos) {
|
|
|
topPaginationNode = renderPagination(topPos.toLowerCase().replace('top', ''));
|
|
|
}
|
|
|
|
|
|
if (bottomPos) {
|
|
|
bottomPaginationNode = renderPagination(bottomPos.toLowerCase().replace('bottom', ''));
|
|
|
}
|
|
|
} else {
|
|
|
bottomPaginationNode = renderPagination(defaultPosition);
|
|
|
}
|
|
|
} // >>>>>>>>> Spinning
|
|
|
|
|
|
|
|
|
var spinProps;
|
|
|
|
|
|
if (typeof loading === 'boolean') {
|
|
|
spinProps = {
|
|
|
spinning: loading
|
|
|
};
|
|
|
} else if ((0, _typeof2["default"])(loading) === 'object') {
|
|
|
spinProps = (0, _extends2["default"])({
|
|
|
spinning: true
|
|
|
}, loading);
|
|
|
}
|
|
|
|
|
|
var wrapperClassNames = (0, _classnames["default"])("".concat(prefixCls, "-wrapper"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-wrapper-rtl"), direction === 'rtl'), className);
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: wrapperClassNames,
|
|
|
style: style
|
|
|
}, /*#__PURE__*/React.createElement(_spin["default"], (0, _extends2["default"])({
|
|
|
spinning: false
|
|
|
}, spinProps), topPaginationNode, /*#__PURE__*/React.createElement(_rcTable["default"], (0, _extends2["default"])({}, tableProps, {
|
|
|
columns: mergedColumns,
|
|
|
direction: direction,
|
|
|
expandable: mergedExpandable,
|
|
|
prefixCls: prefixCls,
|
|
|
className: (0, _classnames["default"])((_classNames3 = {}, (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-middle"), mergedSize === 'middle'), (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-small"), mergedSize === 'small'), (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-bordered"), bordered), (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-empty"), rawData.length === 0), _classNames3)),
|
|
|
data: pageData,
|
|
|
rowKey: getRowKey,
|
|
|
rowClassName: internalRowClassName,
|
|
|
emptyText: locale && locale.emptyText || renderEmpty('Table') // Internal
|
|
|
,
|
|
|
internalHooks: _Table.INTERNAL_HOOKS,
|
|
|
internalRefs: internalRefs,
|
|
|
transformColumns: transformColumns
|
|
|
})), bottomPaginationNode));
|
|
|
}
|
|
|
|
|
|
Table.defaultProps = {
|
|
|
rowKey: 'key'
|
|
|
};
|
|
|
Table.SELECTION_ALL = _useSelection3.SELECTION_ALL;
|
|
|
Table.SELECTION_INVERT = _useSelection3.SELECTION_INVERT;
|
|
|
Table.SELECTION_NONE = _useSelection3.SELECTION_NONE;
|
|
|
Table.Column = _Column["default"];
|
|
|
Table.ColumnGroup = _ColumnGroup["default"];
|
|
|
Table.Summary = _rcTable.Summary;
|
|
|
var _default = Table;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useFilter/FilterDropdown.js":
|
|
|
/*!***********************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useFilter/FilterDropdown.js ***!
|
|
|
\***********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _isEqual = _interopRequireDefault(__webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js"));
|
|
|
|
|
|
var _FilterFilled = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/FilterFilled */ "./node_modules/@ant-design/icons/FilterFilled.js"));
|
|
|
|
|
|
var _button = _interopRequireDefault(__webpack_require__(/*! ../../../button */ "./node_modules/antd/lib/button/index.js"));
|
|
|
|
|
|
var _menu = _interopRequireDefault(__webpack_require__(/*! ../../../menu */ "./node_modules/antd/lib/menu/index.js"));
|
|
|
|
|
|
var _checkbox = _interopRequireDefault(__webpack_require__(/*! ../../../checkbox */ "./node_modules/antd/lib/checkbox/index.js"));
|
|
|
|
|
|
var _radio = _interopRequireDefault(__webpack_require__(/*! ../../../radio */ "./node_modules/antd/lib/radio/index.js"));
|
|
|
|
|
|
var _dropdown = _interopRequireDefault(__webpack_require__(/*! ../../../dropdown */ "./node_modules/antd/lib/dropdown/index.js"));
|
|
|
|
|
|
var _empty = _interopRequireDefault(__webpack_require__(/*! ../../../empty */ "./node_modules/antd/lib/empty/index.js"));
|
|
|
|
|
|
var _FilterWrapper = _interopRequireDefault(__webpack_require__(/*! ./FilterWrapper */ "./node_modules/antd/lib/table/hooks/useFilter/FilterWrapper.js"));
|
|
|
|
|
|
var _useSyncState3 = _interopRequireDefault(__webpack_require__(/*! ../../../_util/hooks/useSyncState */ "./node_modules/antd/lib/_util/hooks/useSyncState.js"));
|
|
|
|
|
|
var _context = __webpack_require__(/*! ../../../config-provider/context */ "./node_modules/antd/lib/config-provider/context.js");
|
|
|
|
|
|
var SubMenu = _menu["default"].SubMenu,
|
|
|
MenuItem = _menu["default"].Item;
|
|
|
|
|
|
function hasSubMenu(filters) {
|
|
|
return filters.some(function (_ref) {
|
|
|
var children = _ref.children;
|
|
|
return children;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function renderFilterItems(_ref2) {
|
|
|
var filters = _ref2.filters,
|
|
|
prefixCls = _ref2.prefixCls,
|
|
|
filteredKeys = _ref2.filteredKeys,
|
|
|
filterMultiple = _ref2.filterMultiple,
|
|
|
locale = _ref2.locale;
|
|
|
|
|
|
if (filters.length === 0) {
|
|
|
// wrapped with <div /> to avoid react warning
|
|
|
// https://github.com/ant-design/ant-design/issues/25979
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
style: {
|
|
|
margin: '16px 0'
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement(_empty["default"], {
|
|
|
image: _empty["default"].PRESENTED_IMAGE_SIMPLE,
|
|
|
description: locale.filterEmptyText,
|
|
|
imageStyle: {
|
|
|
height: 24
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return filters.map(function (filter, index) {
|
|
|
var key = String(filter.value);
|
|
|
|
|
|
if (filter.children) {
|
|
|
return /*#__PURE__*/React.createElement(SubMenu, {
|
|
|
key: key || index,
|
|
|
title: filter.text,
|
|
|
popupClassName: "".concat(prefixCls, "-dropdown-submenu")
|
|
|
}, renderFilterItems({
|
|
|
filters: filter.children,
|
|
|
prefixCls: prefixCls,
|
|
|
filteredKeys: filteredKeys,
|
|
|
filterMultiple: filterMultiple,
|
|
|
locale: locale
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
var Component = filterMultiple ? _checkbox["default"] : _radio["default"];
|
|
|
return /*#__PURE__*/React.createElement(MenuItem, {
|
|
|
key: filter.value !== undefined ? key : index
|
|
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
|
checked: filteredKeys.includes(key)
|
|
|
}), /*#__PURE__*/React.createElement("span", null, filter.text));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function FilterDropdown(props) {
|
|
|
var _a;
|
|
|
|
|
|
var prefixCls = props.prefixCls,
|
|
|
column = props.column,
|
|
|
dropdownPrefixCls = props.dropdownPrefixCls,
|
|
|
columnKey = props.columnKey,
|
|
|
filterMultiple = props.filterMultiple,
|
|
|
filterState = props.filterState,
|
|
|
triggerFilter = props.triggerFilter,
|
|
|
locale = props.locale,
|
|
|
children = props.children,
|
|
|
getPopupContainer = props.getPopupContainer;
|
|
|
var filterDropdownVisible = column.filterDropdownVisible,
|
|
|
onFilterDropdownVisibleChange = column.onFilterDropdownVisibleChange;
|
|
|
|
|
|
var _React$useState = React.useState(false),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
visible = _React$useState2[0],
|
|
|
setVisible = _React$useState2[1];
|
|
|
|
|
|
var filtered = !!(filterState && (((_a = filterState.filteredKeys) === null || _a === void 0 ? void 0 : _a.length) || filterState.forceFiltered));
|
|
|
|
|
|
var triggerVisible = function triggerVisible(newVisible) {
|
|
|
setVisible(newVisible);
|
|
|
onFilterDropdownVisibleChange === null || onFilterDropdownVisibleChange === void 0 ? void 0 : onFilterDropdownVisibleChange(newVisible);
|
|
|
};
|
|
|
|
|
|
var mergedVisible = typeof filterDropdownVisible === 'boolean' ? filterDropdownVisible : visible; // ===================== Select Keys =====================
|
|
|
|
|
|
var propFilteredKeys = filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys;
|
|
|
|
|
|
var _useSyncState = (0, _useSyncState3["default"])(propFilteredKeys || []),
|
|
|
_useSyncState2 = (0, _slicedToArray2["default"])(_useSyncState, 2),
|
|
|
getFilteredKeysSync = _useSyncState2[0],
|
|
|
setFilteredKeysSync = _useSyncState2[1];
|
|
|
|
|
|
var onSelectKeys = function onSelectKeys(_ref3) {
|
|
|
var selectedKeys = _ref3.selectedKeys;
|
|
|
setFilteredKeysSync(selectedKeys);
|
|
|
};
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
onSelectKeys({
|
|
|
selectedKeys: propFilteredKeys || []
|
|
|
});
|
|
|
}, [propFilteredKeys]); // ====================== Open Keys ======================
|
|
|
|
|
|
var _React$useState3 = React.useState([]),
|
|
|
_React$useState4 = (0, _slicedToArray2["default"])(_React$useState3, 2),
|
|
|
openKeys = _React$useState4[0],
|
|
|
setOpenKeys = _React$useState4[1];
|
|
|
|
|
|
var openRef = React.useRef();
|
|
|
|
|
|
var onOpenChange = function onOpenChange(keys) {
|
|
|
openRef.current = window.setTimeout(function () {
|
|
|
setOpenKeys(keys);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var onMenuClick = function onMenuClick() {
|
|
|
window.clearTimeout(openRef.current);
|
|
|
};
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
return function () {
|
|
|
window.clearTimeout(openRef.current);
|
|
|
};
|
|
|
}, []); // ======================= Submit ========================
|
|
|
|
|
|
var internalTriggerFilter = function internalTriggerFilter(keys) {
|
|
|
var mergedKeys = keys && keys.length ? keys : null;
|
|
|
|
|
|
if (mergedKeys === null && (!filterState || !filterState.filteredKeys)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if ((0, _isEqual["default"])(mergedKeys, filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
triggerFilter({
|
|
|
column: column,
|
|
|
key: columnKey,
|
|
|
filteredKeys: mergedKeys
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var onConfirm = function onConfirm() {
|
|
|
triggerVisible(false);
|
|
|
internalTriggerFilter(getFilteredKeysSync());
|
|
|
};
|
|
|
|
|
|
var onReset = function onReset() {
|
|
|
setFilteredKeysSync([]);
|
|
|
triggerVisible(false);
|
|
|
internalTriggerFilter([]);
|
|
|
};
|
|
|
|
|
|
var doFilter = function doFilter() {
|
|
|
var param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
|
closeDropdown: true
|
|
|
};
|
|
|
triggerVisible(!param.closeDropdown);
|
|
|
internalTriggerFilter(getFilteredKeysSync());
|
|
|
};
|
|
|
|
|
|
var onVisibleChange = function onVisibleChange(newVisible) {
|
|
|
if (newVisible && propFilteredKeys !== undefined) {
|
|
|
// Sync filteredKeys on appear in controlled mode (propFilteredKeys !== undefiend)
|
|
|
setFilteredKeysSync(propFilteredKeys || []);
|
|
|
}
|
|
|
|
|
|
triggerVisible(newVisible); // Default will filter when closed
|
|
|
|
|
|
if (!newVisible && !column.filterDropdown) {
|
|
|
onConfirm();
|
|
|
}
|
|
|
}; // ======================== Style ========================
|
|
|
|
|
|
|
|
|
var dropdownMenuClass = (0, _classnames["default"])((0, _defineProperty2["default"])({}, "".concat(dropdownPrefixCls, "-menu-without-submenu"), !hasSubMenu(column.filters || [])));
|
|
|
var dropdownContent;
|
|
|
|
|
|
if (typeof column.filterDropdown === 'function') {
|
|
|
dropdownContent = column.filterDropdown({
|
|
|
prefixCls: "".concat(dropdownPrefixCls, "-custom"),
|
|
|
setSelectedKeys: function setSelectedKeys(selectedKeys) {
|
|
|
return onSelectKeys({
|
|
|
selectedKeys: selectedKeys
|
|
|
});
|
|
|
},
|
|
|
selectedKeys: getFilteredKeysSync(),
|
|
|
confirm: doFilter,
|
|
|
clearFilters: onReset,
|
|
|
filters: column.filters,
|
|
|
visible: mergedVisible
|
|
|
});
|
|
|
} else if (column.filterDropdown) {
|
|
|
dropdownContent = column.filterDropdown;
|
|
|
} else {
|
|
|
var selectedKeys = getFilteredKeysSync() || [];
|
|
|
dropdownContent = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_menu["default"], {
|
|
|
multiple: filterMultiple,
|
|
|
prefixCls: "".concat(dropdownPrefixCls, "-menu"),
|
|
|
className: dropdownMenuClass,
|
|
|
onClick: onMenuClick,
|
|
|
onSelect: onSelectKeys,
|
|
|
onDeselect: onSelectKeys,
|
|
|
selectedKeys: selectedKeys,
|
|
|
getPopupContainer: getPopupContainer,
|
|
|
openKeys: openKeys,
|
|
|
onOpenChange: onOpenChange
|
|
|
}, renderFilterItems({
|
|
|
filters: column.filters || [],
|
|
|
prefixCls: prefixCls,
|
|
|
filteredKeys: getFilteredKeysSync(),
|
|
|
filterMultiple: filterMultiple,
|
|
|
locale: locale
|
|
|
})), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-dropdown-btns")
|
|
|
}, /*#__PURE__*/React.createElement(_button["default"], {
|
|
|
type: "link",
|
|
|
size: "small",
|
|
|
disabled: selectedKeys.length === 0,
|
|
|
onClick: onReset
|
|
|
}, locale.filterReset), /*#__PURE__*/React.createElement(_button["default"], {
|
|
|
type: "primary",
|
|
|
size: "small",
|
|
|
onClick: onConfirm
|
|
|
}, locale.filterConfirm)));
|
|
|
}
|
|
|
|
|
|
var menu = /*#__PURE__*/React.createElement(_FilterWrapper["default"], {
|
|
|
className: "".concat(prefixCls, "-dropdown")
|
|
|
}, dropdownContent);
|
|
|
var filterIcon;
|
|
|
|
|
|
if (typeof column.filterIcon === 'function') {
|
|
|
filterIcon = column.filterIcon(filtered);
|
|
|
} else if (column.filterIcon) {
|
|
|
filterIcon = column.filterIcon;
|
|
|
} else {
|
|
|
filterIcon = /*#__PURE__*/React.createElement(_FilterFilled["default"], null);
|
|
|
}
|
|
|
|
|
|
var _React$useContext = React.useContext(_context.ConfigContext),
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-column"))
|
|
|
}, /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-column-title")
|
|
|
}, children), /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-trigger-container"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-trigger-container-open"), mergedVisible)),
|
|
|
onClick: function onClick(e) {
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement(_dropdown["default"], {
|
|
|
overlay: menu,
|
|
|
trigger: ['click'],
|
|
|
visible: mergedVisible,
|
|
|
onVisibleChange: onVisibleChange,
|
|
|
getPopupContainer: getPopupContainer,
|
|
|
placement: direction === 'rtl' ? 'bottomLeft' : 'bottomRight'
|
|
|
}, /*#__PURE__*/React.createElement("span", {
|
|
|
role: "button",
|
|
|
tabIndex: -1,
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-trigger"), {
|
|
|
active: filtered
|
|
|
})
|
|
|
}, filterIcon))));
|
|
|
}
|
|
|
|
|
|
var _default = FilterDropdown;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useFilter/FilterWrapper.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useFilter/FilterWrapper.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var FilterDropdownMenuWrapper = function FilterDropdownMenuWrapper(props) {
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: props.className,
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
}
|
|
|
}, props.children);
|
|
|
};
|
|
|
|
|
|
var _default = FilterDropdownMenuWrapper;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useFilter/index.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useFilter/index.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getFilterData = getFilterData;
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _util = __webpack_require__(/*! ../../util */ "./node_modules/antd/lib/table/util.js");
|
|
|
|
|
|
var _FilterDropdown = _interopRequireDefault(__webpack_require__(/*! ./FilterDropdown */ "./node_modules/antd/lib/table/hooks/useFilter/FilterDropdown.js"));
|
|
|
|
|
|
function collectFilterStates(columns, init, pos) {
|
|
|
var filterStates = [];
|
|
|
(columns || []).forEach(function (column, index) {
|
|
|
var _a;
|
|
|
|
|
|
var columnPos = (0, _util.getColumnPos)(index, pos);
|
|
|
|
|
|
if ('children' in column) {
|
|
|
filterStates = [].concat((0, _toConsumableArray2["default"])(filterStates), (0, _toConsumableArray2["default"])(collectFilterStates(column.children, init, columnPos)));
|
|
|
} else if (column.filters || 'filterDropdown' in column || 'onFilter' in column) {
|
|
|
if ('filteredValue' in column) {
|
|
|
// Controlled
|
|
|
var filteredValues = column.filteredValue;
|
|
|
|
|
|
if (!('filterDropdown' in column)) {
|
|
|
filteredValues = (_a = filteredValues === null || filteredValues === void 0 ? void 0 : filteredValues.map(String)) !== null && _a !== void 0 ? _a : filteredValues;
|
|
|
}
|
|
|
|
|
|
filterStates.push({
|
|
|
column: column,
|
|
|
key: (0, _util.getColumnKey)(column, columnPos),
|
|
|
filteredKeys: filteredValues,
|
|
|
forceFiltered: column.filtered
|
|
|
});
|
|
|
} else {
|
|
|
// Uncontrolled
|
|
|
filterStates.push({
|
|
|
column: column,
|
|
|
key: (0, _util.getColumnKey)(column, columnPos),
|
|
|
filteredKeys: init && column.defaultFilteredValue ? column.defaultFilteredValue : undefined,
|
|
|
forceFiltered: column.filtered
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return filterStates;
|
|
|
}
|
|
|
|
|
|
function injectFilter(prefixCls, dropdownPrefixCls, columns, filterStates, triggerFilter, getPopupContainer, locale, pos) {
|
|
|
return columns.map(function (column, index) {
|
|
|
var columnPos = (0, _util.getColumnPos)(index, pos);
|
|
|
var _column$filterMultipl = column.filterMultiple,
|
|
|
filterMultiple = _column$filterMultipl === void 0 ? true : _column$filterMultipl;
|
|
|
var newColumn = column;
|
|
|
|
|
|
if (newColumn.filters || newColumn.filterDropdown) {
|
|
|
var columnKey = (0, _util.getColumnKey)(newColumn, columnPos);
|
|
|
var filterState = filterStates.find(function (_ref) {
|
|
|
var key = _ref.key;
|
|
|
return columnKey === key;
|
|
|
});
|
|
|
newColumn = (0, _extends2["default"])((0, _extends2["default"])({}, newColumn), {
|
|
|
title: function title(renderProps) {
|
|
|
return /*#__PURE__*/React.createElement(_FilterDropdown["default"], {
|
|
|
prefixCls: "".concat(prefixCls, "-filter"),
|
|
|
dropdownPrefixCls: dropdownPrefixCls,
|
|
|
column: newColumn,
|
|
|
columnKey: columnKey,
|
|
|
filterState: filterState,
|
|
|
filterMultiple: filterMultiple,
|
|
|
triggerFilter: triggerFilter,
|
|
|
locale: locale,
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}, (0, _util.renderColumnTitle)(column.title, renderProps));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ('children' in newColumn) {
|
|
|
newColumn = (0, _extends2["default"])((0, _extends2["default"])({}, newColumn), {
|
|
|
children: injectFilter(prefixCls, dropdownPrefixCls, newColumn.children, filterStates, triggerFilter, getPopupContainer, locale, columnPos)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return newColumn;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function flattenKeys(filters) {
|
|
|
var keys = [];
|
|
|
(filters || []).forEach(function (_ref2) {
|
|
|
var value = _ref2.value,
|
|
|
children = _ref2.children;
|
|
|
keys.push(value);
|
|
|
|
|
|
if (children) {
|
|
|
keys = [].concat((0, _toConsumableArray2["default"])(keys), (0, _toConsumableArray2["default"])(flattenKeys(children)));
|
|
|
}
|
|
|
});
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
function generateFilterInfo(filterStates) {
|
|
|
var currentFilters = {};
|
|
|
filterStates.forEach(function (_ref3) {
|
|
|
var key = _ref3.key,
|
|
|
filteredKeys = _ref3.filteredKeys,
|
|
|
column = _ref3.column;
|
|
|
var filters = column.filters,
|
|
|
filterDropdown = column.filterDropdown;
|
|
|
|
|
|
if (filterDropdown) {
|
|
|
currentFilters[key] = filteredKeys || null;
|
|
|
} else if (Array.isArray(filteredKeys)) {
|
|
|
var keys = flattenKeys(filters);
|
|
|
currentFilters[key] = keys.filter(function (originKey) {
|
|
|
return filteredKeys.includes(String(originKey));
|
|
|
});
|
|
|
} else {
|
|
|
currentFilters[key] = null;
|
|
|
}
|
|
|
});
|
|
|
return currentFilters;
|
|
|
}
|
|
|
|
|
|
function getFilterData(data, filterStates) {
|
|
|
return filterStates.reduce(function (currentData, filterState) {
|
|
|
var _filterState$column = filterState.column,
|
|
|
onFilter = _filterState$column.onFilter,
|
|
|
filters = _filterState$column.filters,
|
|
|
filteredKeys = filterState.filteredKeys;
|
|
|
|
|
|
if (onFilter && filteredKeys && filteredKeys.length) {
|
|
|
return currentData.filter(function (record) {
|
|
|
return filteredKeys.some(function (key) {
|
|
|
var keys = flattenKeys(filters);
|
|
|
var keyIndex = keys.findIndex(function (k) {
|
|
|
return String(k) === String(key);
|
|
|
});
|
|
|
var realKey = keyIndex !== -1 ? keys[keyIndex] : key;
|
|
|
return onFilter(realKey, record);
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return currentData;
|
|
|
}, data);
|
|
|
}
|
|
|
|
|
|
function useFilter(_ref4) {
|
|
|
var prefixCls = _ref4.prefixCls,
|
|
|
dropdownPrefixCls = _ref4.dropdownPrefixCls,
|
|
|
mergedColumns = _ref4.mergedColumns,
|
|
|
onFilterChange = _ref4.onFilterChange,
|
|
|
getPopupContainer = _ref4.getPopupContainer,
|
|
|
tableLocale = _ref4.locale;
|
|
|
|
|
|
var _React$useState = React.useState(collectFilterStates(mergedColumns, true)),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
filterStates = _React$useState2[0],
|
|
|
setFilterStates = _React$useState2[1];
|
|
|
|
|
|
var mergedFilterStates = React.useMemo(function () {
|
|
|
var collectedStates = collectFilterStates(mergedColumns, false); // Return if not controlled
|
|
|
|
|
|
if (collectedStates.every(function (_ref5) {
|
|
|
var filteredKeys = _ref5.filteredKeys;
|
|
|
return filteredKeys === undefined;
|
|
|
})) {
|
|
|
return filterStates;
|
|
|
}
|
|
|
|
|
|
return collectedStates;
|
|
|
}, [mergedColumns, filterStates]);
|
|
|
var getFilters = React.useCallback(function () {
|
|
|
return generateFilterInfo(mergedFilterStates);
|
|
|
}, [mergedFilterStates]);
|
|
|
|
|
|
var triggerFilter = function triggerFilter(filterState) {
|
|
|
var newFilterStates = mergedFilterStates.filter(function (_ref6) {
|
|
|
var key = _ref6.key;
|
|
|
return key !== filterState.key;
|
|
|
});
|
|
|
newFilterStates.push(filterState);
|
|
|
setFilterStates(newFilterStates);
|
|
|
onFilterChange(generateFilterInfo(newFilterStates), newFilterStates);
|
|
|
};
|
|
|
|
|
|
var transformColumns = function transformColumns(innerColumns) {
|
|
|
return injectFilter(prefixCls, dropdownPrefixCls, innerColumns, mergedFilterStates, triggerFilter, getPopupContainer, tableLocale);
|
|
|
};
|
|
|
|
|
|
return [transformColumns, mergedFilterStates, getFilters];
|
|
|
}
|
|
|
|
|
|
var _default = useFilter;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useLazyKVMap.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useLazyKVMap.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = useLazyKVMap;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function useLazyKVMap(data, childrenColumnName, getRowKey) {
|
|
|
var mapCacheRef = React.useRef({});
|
|
|
|
|
|
function getRecordByKey(key) {
|
|
|
if (!mapCacheRef.current || mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
|
|
|
var kvMap = new Map();
|
|
|
/* eslint-disable no-inner-declarations */
|
|
|
|
|
|
function dig(records) {
|
|
|
records.forEach(function (record, index) {
|
|
|
var rowKey = getRowKey(record, index);
|
|
|
kvMap.set(rowKey, record);
|
|
|
|
|
|
if (record && (0, _typeof2["default"])(record) === 'object' && childrenColumnName in record) {
|
|
|
dig(record[childrenColumnName] || []);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
dig(data);
|
|
|
mapCacheRef.current = {
|
|
|
data: data,
|
|
|
childrenColumnName: childrenColumnName,
|
|
|
kvMap: kvMap,
|
|
|
getRowKey: getRowKey
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return mapCacheRef.current.kvMap.get(key);
|
|
|
}
|
|
|
|
|
|
return [getRecordByKey];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/usePagination.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/usePagination.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getPaginationParam = getPaginationParam;
|
|
|
exports["default"] = usePagination;
|
|
|
exports.DEFAULT_PAGE_SIZE = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var DEFAULT_PAGE_SIZE = 10;
|
|
|
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
|
|
|
|
|
|
function getPaginationParam(pagination, mergedPagination) {
|
|
|
var param = {
|
|
|
current: mergedPagination.current,
|
|
|
pageSize: mergedPagination.pageSize
|
|
|
};
|
|
|
var paginationObj = pagination && (0, _typeof2["default"])(pagination) === 'object' ? pagination : {};
|
|
|
Object.keys(paginationObj).forEach(function (pageProp) {
|
|
|
var value = mergedPagination[pageProp];
|
|
|
|
|
|
if (typeof value !== 'function') {
|
|
|
param[pageProp] = value;
|
|
|
}
|
|
|
});
|
|
|
return param;
|
|
|
}
|
|
|
|
|
|
function extendsObject() {
|
|
|
var result = {};
|
|
|
|
|
|
for (var _len = arguments.length, list = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
list[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
list.forEach(function (obj) {
|
|
|
if (obj) {
|
|
|
Object.keys(obj).forEach(function (key) {
|
|
|
var val = obj[key];
|
|
|
|
|
|
if (val !== undefined) {
|
|
|
result[key] = val;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
function usePagination(total, pagination, onChange) {
|
|
|
var _a = pagination && (0, _typeof2["default"])(pagination) === 'object' ? pagination : {},
|
|
|
_a$total = _a.total,
|
|
|
paginationTotal = _a$total === void 0 ? 0 : _a$total,
|
|
|
paginationObj = __rest(_a, ["total"]);
|
|
|
|
|
|
var _useState = (0, _react.useState)(function () {
|
|
|
return {
|
|
|
current: 'defaultCurrent' in paginationObj ? paginationObj.defaultCurrent : 1,
|
|
|
pageSize: 'defaultPageSize' in paginationObj ? paginationObj.defaultPageSize : DEFAULT_PAGE_SIZE
|
|
|
};
|
|
|
}),
|
|
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
|
innerPagination = _useState2[0],
|
|
|
setInnerPagination = _useState2[1]; // ============ Basic Pagination Config ============
|
|
|
|
|
|
|
|
|
var mergedPagination = extendsObject(innerPagination, paginationObj, {
|
|
|
total: paginationTotal > 0 ? paginationTotal : total
|
|
|
}); // Reset `current` if data length or pageSize changed
|
|
|
|
|
|
var maxPage = Math.ceil((paginationTotal || total) / mergedPagination.pageSize);
|
|
|
|
|
|
if (mergedPagination.current > maxPage) {
|
|
|
// Prevent a maximum page count of 0
|
|
|
mergedPagination.current = maxPage || 1;
|
|
|
}
|
|
|
|
|
|
var refreshPagination = function refreshPagination() {
|
|
|
var current = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
|
var pageSize = arguments.length > 1 ? arguments[1] : undefined;
|
|
|
setInnerPagination({
|
|
|
current: current,
|
|
|
pageSize: pageSize || mergedPagination.pageSize
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var onInternalChange = function onInternalChange(current, pageSize) {
|
|
|
var _a;
|
|
|
|
|
|
if (pagination) {
|
|
|
(_a = pagination.onChange) === null || _a === void 0 ? void 0 : _a.call(pagination, current, pageSize);
|
|
|
}
|
|
|
|
|
|
refreshPagination(current, pageSize);
|
|
|
onChange(current, pageSize || (mergedPagination === null || mergedPagination === void 0 ? void 0 : mergedPagination.pageSize));
|
|
|
};
|
|
|
|
|
|
if (pagination === false) {
|
|
|
return [{}, function () {}];
|
|
|
}
|
|
|
|
|
|
return [(0, _extends2["default"])((0, _extends2["default"])({}, mergedPagination), {
|
|
|
onChange: onInternalChange
|
|
|
}), refreshPagination];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useSelection.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useSelection.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = useSelection;
|
|
|
exports.SELECTION_NONE = exports.SELECTION_INVERT = exports.SELECTION_ALL = void 0;
|
|
|
|
|
|
var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ "./node_modules/@babel/runtime/helpers/toArray.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _DownOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/DownOutlined */ "./node_modules/@ant-design/icons/DownOutlined.js"));
|
|
|
|
|
|
var _treeUtil = __webpack_require__(/*! rc-tree/lib/utils/treeUtil */ "./node_modules/rc-tree/lib/utils/treeUtil.js");
|
|
|
|
|
|
var _conductUtil = __webpack_require__(/*! rc-tree/lib/utils/conductUtil */ "./node_modules/rc-tree/lib/utils/conductUtil.js");
|
|
|
|
|
|
var _util = __webpack_require__(/*! rc-tree/lib/util */ "./node_modules/rc-tree/lib/util.js");
|
|
|
|
|
|
var _rcTable = __webpack_require__(/*! rc-table */ "./node_modules/rc-table/es/index.js");
|
|
|
|
|
|
var _useMergedState3 = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/hooks/useMergedState */ "./node_modules/rc-util/lib/hooks/useMergedState.js"));
|
|
|
|
|
|
var _checkbox = _interopRequireDefault(__webpack_require__(/*! ../../checkbox */ "./node_modules/antd/lib/checkbox/index.js"));
|
|
|
|
|
|
var _dropdown = _interopRequireDefault(__webpack_require__(/*! ../../dropdown */ "./node_modules/antd/lib/dropdown/index.js"));
|
|
|
|
|
|
var _menu = _interopRequireDefault(__webpack_require__(/*! ../../menu */ "./node_modules/antd/lib/menu/index.js"));
|
|
|
|
|
|
var _radio = _interopRequireDefault(__webpack_require__(/*! ../../radio */ "./node_modules/antd/lib/radio/index.js"));
|
|
|
|
|
|
var _devWarning = _interopRequireDefault(__webpack_require__(/*! ../../_util/devWarning */ "./node_modules/antd/lib/_util/devWarning.js"));
|
|
|
|
|
|
// TODO: warning if use ajax!!!
|
|
|
var SELECTION_ALL = 'SELECT_ALL';
|
|
|
exports.SELECTION_ALL = SELECTION_ALL;
|
|
|
var SELECTION_INVERT = 'SELECT_INVERT';
|
|
|
exports.SELECTION_INVERT = SELECTION_INVERT;
|
|
|
var SELECTION_NONE = 'SELECT_NONE';
|
|
|
exports.SELECTION_NONE = SELECTION_NONE;
|
|
|
|
|
|
function getFixedType(column) {
|
|
|
return column && column.fixed;
|
|
|
}
|
|
|
|
|
|
function flattenData(data, childrenColumnName) {
|
|
|
var list = [];
|
|
|
(data || []).forEach(function (record) {
|
|
|
list.push(record);
|
|
|
|
|
|
if (record && (0, _typeof2["default"])(record) === 'object' && childrenColumnName in record) {
|
|
|
list = [].concat((0, _toConsumableArray2["default"])(list), (0, _toConsumableArray2["default"])(flattenData(record[childrenColumnName], childrenColumnName)));
|
|
|
}
|
|
|
});
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
function useSelection(rowSelection, config) {
|
|
|
var _ref = rowSelection || {},
|
|
|
preserveSelectedRowKeys = _ref.preserveSelectedRowKeys,
|
|
|
selectedRowKeys = _ref.selectedRowKeys,
|
|
|
defaultSelectedRowKeys = _ref.defaultSelectedRowKeys,
|
|
|
getCheckboxProps = _ref.getCheckboxProps,
|
|
|
onSelectionChange = _ref.onChange,
|
|
|
onSelect = _ref.onSelect,
|
|
|
onSelectAll = _ref.onSelectAll,
|
|
|
onSelectInvert = _ref.onSelectInvert,
|
|
|
onSelectNone = _ref.onSelectNone,
|
|
|
onSelectMultiple = _ref.onSelectMultiple,
|
|
|
selectionColWidth = _ref.columnWidth,
|
|
|
selectionType = _ref.type,
|
|
|
selections = _ref.selections,
|
|
|
fixed = _ref.fixed,
|
|
|
customizeRenderCell = _ref.renderCell,
|
|
|
hideSelectAll = _ref.hideSelectAll,
|
|
|
_ref$checkStrictly = _ref.checkStrictly,
|
|
|
checkStrictly = _ref$checkStrictly === void 0 ? true : _ref$checkStrictly;
|
|
|
|
|
|
var prefixCls = config.prefixCls,
|
|
|
data = config.data,
|
|
|
pageData = config.pageData,
|
|
|
getRecordByKey = config.getRecordByKey,
|
|
|
getRowKey = config.getRowKey,
|
|
|
expandType = config.expandType,
|
|
|
childrenColumnName = config.childrenColumnName,
|
|
|
tableLocale = config.locale,
|
|
|
expandIconColumnIndex = config.expandIconColumnIndex,
|
|
|
getPopupContainer = config.getPopupContainer; // ======================== Caches ========================
|
|
|
|
|
|
var preserveRecordsRef = React.useRef(new Map()); // ========================= Keys =========================
|
|
|
|
|
|
var _useMergedState = (0, _useMergedState3["default"])(selectedRowKeys || defaultSelectedRowKeys || [], {
|
|
|
value: selectedRowKeys
|
|
|
}),
|
|
|
_useMergedState2 = (0, _slicedToArray2["default"])(_useMergedState, 2),
|
|
|
mergedSelectedKeys = _useMergedState2[0],
|
|
|
setMergedSelectedKeys = _useMergedState2[1];
|
|
|
|
|
|
var _useMemo = (0, React.useMemo)(function () {
|
|
|
return checkStrictly ? {
|
|
|
keyEntities: null
|
|
|
} : (0, _treeUtil.convertDataToEntities)(data, {
|
|
|
externalGetKey: getRowKey,
|
|
|
childrenPropName: childrenColumnName
|
|
|
});
|
|
|
}, [data, getRowKey, checkStrictly, childrenColumnName]),
|
|
|
keyEntities = _useMemo.keyEntities; // Get flatten data
|
|
|
|
|
|
|
|
|
var flattedData = (0, React.useMemo)(function () {
|
|
|
return flattenData(pageData, childrenColumnName);
|
|
|
}, [pageData, childrenColumnName]); // Get all checkbox props
|
|
|
|
|
|
var checkboxPropsMap = (0, React.useMemo)(function () {
|
|
|
var map = new Map();
|
|
|
flattedData.forEach(function (record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
var checkboxProps = (getCheckboxProps ? getCheckboxProps(record) : null) || {};
|
|
|
map.set(key, checkboxProps);
|
|
|
|
|
|
if ( true && ('checked' in checkboxProps || 'defaultChecked' in checkboxProps)) {
|
|
|
(0, _devWarning["default"])(false, 'Table', 'Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.');
|
|
|
}
|
|
|
});
|
|
|
return map;
|
|
|
}, [flattedData, getRowKey, getCheckboxProps]);
|
|
|
var isCheckboxDisabled = (0, React.useCallback)(function (r) {
|
|
|
var _a;
|
|
|
|
|
|
return !!((_a = checkboxPropsMap.get(getRowKey(r))) === null || _a === void 0 ? void 0 : _a.disabled);
|
|
|
}, [checkboxPropsMap, getRowKey]);
|
|
|
|
|
|
var _useMemo2 = (0, React.useMemo)(function () {
|
|
|
if (checkStrictly) {
|
|
|
return [mergedSelectedKeys || [], []];
|
|
|
}
|
|
|
|
|
|
var _conductCheck = (0, _conductUtil.conductCheck)(mergedSelectedKeys, true, keyEntities, isCheckboxDisabled),
|
|
|
checkedKeys = _conductCheck.checkedKeys,
|
|
|
halfCheckedKeys = _conductCheck.halfCheckedKeys;
|
|
|
|
|
|
return [checkedKeys || [], halfCheckedKeys];
|
|
|
}, [mergedSelectedKeys, checkStrictly, keyEntities, isCheckboxDisabled]),
|
|
|
_useMemo3 = (0, _slicedToArray2["default"])(_useMemo2, 2),
|
|
|
derivedSelectedKeys = _useMemo3[0],
|
|
|
derivedHalfSelectedKeys = _useMemo3[1];
|
|
|
|
|
|
var derivedSelectedKeySet = (0, React.useMemo)(function () {
|
|
|
var keys = selectionType === 'radio' ? derivedSelectedKeys.slice(0, 1) : derivedSelectedKeys;
|
|
|
return new Set(keys);
|
|
|
}, [derivedSelectedKeys, selectionType]);
|
|
|
var derivedHalfSelectedKeySet = (0, React.useMemo)(function () {
|
|
|
return selectionType === 'radio' ? new Set() : new Set(derivedHalfSelectedKeys);
|
|
|
}, [derivedHalfSelectedKeys, selectionType]); // Save last selected key to enable range selection
|
|
|
|
|
|
var _useState = (0, React.useState)(null),
|
|
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
|
lastSelectedKey = _useState2[0],
|
|
|
setLastSelectedKey = _useState2[1]; // Reset if rowSelection reset
|
|
|
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
if (!rowSelection) {
|
|
|
setMergedSelectedKeys([]);
|
|
|
}
|
|
|
}, [!!rowSelection]);
|
|
|
var setSelectedKeys = (0, React.useCallback)(function (keys) {
|
|
|
var availableKeys;
|
|
|
var records;
|
|
|
|
|
|
if (preserveSelectedRowKeys) {
|
|
|
// Keep key if mark as preserveSelectedRowKeys
|
|
|
var newCache = new Map();
|
|
|
availableKeys = keys;
|
|
|
records = keys.map(function (key) {
|
|
|
var record = getRecordByKey(key);
|
|
|
|
|
|
if (!record && preserveRecordsRef.current.has(key)) {
|
|
|
record = preserveRecordsRef.current.get(key);
|
|
|
}
|
|
|
|
|
|
newCache.set(key, record);
|
|
|
return record;
|
|
|
}); // Refresh to new cache
|
|
|
|
|
|
preserveRecordsRef.current = newCache;
|
|
|
} else {
|
|
|
// Filter key which not exist in the `dataSource`
|
|
|
availableKeys = [];
|
|
|
records = [];
|
|
|
keys.forEach(function (key) {
|
|
|
var record = getRecordByKey(key);
|
|
|
|
|
|
if (record !== undefined) {
|
|
|
availableKeys.push(key);
|
|
|
records.push(record);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
setMergedSelectedKeys(availableKeys);
|
|
|
onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(availableKeys, records);
|
|
|
}, [setMergedSelectedKeys, getRecordByKey, onSelectionChange, preserveSelectedRowKeys]); // ====================== Selections ======================
|
|
|
// Trigger single `onSelect` event
|
|
|
|
|
|
var triggerSingleSelection = (0, React.useCallback)(function (key, selected, keys, event) {
|
|
|
if (onSelect) {
|
|
|
var rows = keys.map(function (k) {
|
|
|
return getRecordByKey(k);
|
|
|
});
|
|
|
onSelect(getRecordByKey(key), selected, rows, event);
|
|
|
}
|
|
|
|
|
|
setSelectedKeys(keys);
|
|
|
}, [onSelect, getRecordByKey, setSelectedKeys]);
|
|
|
var mergedSelections = (0, React.useMemo)(function () {
|
|
|
if (!selections || hideSelectAll) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var selectionList = selections === true ? [SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE] : selections;
|
|
|
return selectionList.map(function (selection) {
|
|
|
if (selection === SELECTION_ALL) {
|
|
|
return {
|
|
|
key: 'all',
|
|
|
text: tableLocale.selectionAll,
|
|
|
onSelect: function onSelect() {
|
|
|
setSelectedKeys(data.map(function (record, index) {
|
|
|
return getRowKey(record, index);
|
|
|
}));
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (selection === SELECTION_INVERT) {
|
|
|
return {
|
|
|
key: 'invert',
|
|
|
text: tableLocale.selectInvert,
|
|
|
onSelect: function onSelect() {
|
|
|
var keySet = new Set(derivedSelectedKeySet);
|
|
|
pageData.forEach(function (record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
|
|
|
if (keySet.has(key)) {
|
|
|
keySet["delete"](key);
|
|
|
} else {
|
|
|
keySet.add(key);
|
|
|
}
|
|
|
});
|
|
|
var keys = Array.from(keySet);
|
|
|
|
|
|
if (onSelectInvert) {
|
|
|
(0, _devWarning["default"])(false, 'Table', '`onSelectInvert` will be removed in future. Please use `onChange` instead.');
|
|
|
onSelectInvert(keys);
|
|
|
}
|
|
|
|
|
|
setSelectedKeys(keys);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (selection === SELECTION_NONE) {
|
|
|
return {
|
|
|
key: 'none',
|
|
|
text: tableLocale.selectNone,
|
|
|
onSelect: function onSelect() {
|
|
|
onSelectNone === null || onSelectNone === void 0 ? void 0 : onSelectNone();
|
|
|
setSelectedKeys([]);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return selection;
|
|
|
});
|
|
|
}, [selections, derivedSelectedKeySet, pageData, getRowKey, onSelectInvert, setSelectedKeys]); // ======================= Columns ========================
|
|
|
|
|
|
var transformColumns = (0, React.useCallback)(function (columns) {
|
|
|
if (!rowSelection) {
|
|
|
return columns;
|
|
|
} // Support selection
|
|
|
|
|
|
|
|
|
var keySet = new Set(derivedSelectedKeySet); // Record key only need check with enabled
|
|
|
|
|
|
var recordKeys = flattedData.map(getRowKey).filter(function (key) {
|
|
|
return !checkboxPropsMap.get(key).disabled;
|
|
|
});
|
|
|
var checkedCurrentAll = recordKeys.every(function (key) {
|
|
|
return keySet.has(key);
|
|
|
});
|
|
|
var checkedCurrentSome = recordKeys.some(function (key) {
|
|
|
return keySet.has(key);
|
|
|
});
|
|
|
|
|
|
var onSelectAllChange = function onSelectAllChange() {
|
|
|
var changeKeys = [];
|
|
|
|
|
|
if (checkedCurrentAll) {
|
|
|
recordKeys.forEach(function (key) {
|
|
|
keySet["delete"](key);
|
|
|
changeKeys.push(key);
|
|
|
});
|
|
|
} else {
|
|
|
recordKeys.forEach(function (key) {
|
|
|
if (!keySet.has(key)) {
|
|
|
keySet.add(key);
|
|
|
changeKeys.push(key);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var keys = Array.from(keySet);
|
|
|
onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(!checkedCurrentAll, keys.map(function (k) {
|
|
|
return getRecordByKey(k);
|
|
|
}), changeKeys.map(function (k) {
|
|
|
return getRecordByKey(k);
|
|
|
}));
|
|
|
setSelectedKeys(keys);
|
|
|
}; // ===================== Render =====================
|
|
|
// Title Cell
|
|
|
|
|
|
|
|
|
var title;
|
|
|
|
|
|
if (selectionType !== 'radio') {
|
|
|
var customizeSelections;
|
|
|
|
|
|
if (mergedSelections) {
|
|
|
var menu = /*#__PURE__*/React.createElement(_menu["default"], {
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}, mergedSelections.map(function (selection, index) {
|
|
|
var key = selection.key,
|
|
|
text = selection.text,
|
|
|
onSelectionClick = selection.onSelect;
|
|
|
return /*#__PURE__*/React.createElement(_menu["default"].Item, {
|
|
|
key: key || index,
|
|
|
onClick: function onClick() {
|
|
|
onSelectionClick === null || onSelectionClick === void 0 ? void 0 : onSelectionClick(recordKeys);
|
|
|
}
|
|
|
}, text);
|
|
|
}));
|
|
|
customizeSelections = /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-selection-extra")
|
|
|
}, /*#__PURE__*/React.createElement(_dropdown["default"], {
|
|
|
overlay: menu,
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(_DownOutlined["default"], null))));
|
|
|
}
|
|
|
|
|
|
var allDisabled = flattedData.every(function (record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
var checkboxProps = checkboxPropsMap.get(key) || {};
|
|
|
return checkboxProps.disabled;
|
|
|
});
|
|
|
title = !hideSelectAll && /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-selection")
|
|
|
}, /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
|
checked: !allDisabled && !!flattedData.length && checkedCurrentAll,
|
|
|
indeterminate: !checkedCurrentAll && checkedCurrentSome,
|
|
|
onChange: onSelectAllChange,
|
|
|
disabled: flattedData.length === 0 || allDisabled,
|
|
|
skipGroup: true
|
|
|
}), customizeSelections);
|
|
|
} // Body Cell
|
|
|
|
|
|
|
|
|
var renderCell;
|
|
|
|
|
|
if (selectionType === 'radio') {
|
|
|
renderCell = function renderCell(_, record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
var checked = keySet.has(key);
|
|
|
return {
|
|
|
node: /*#__PURE__*/React.createElement(_radio["default"], (0, _extends2["default"])({}, checkboxPropsMap.get(key), {
|
|
|
checked: checked,
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
},
|
|
|
onChange: function onChange(event) {
|
|
|
if (!keySet.has(key)) {
|
|
|
triggerSingleSelection(key, true, [key], event.nativeEvent);
|
|
|
}
|
|
|
}
|
|
|
})),
|
|
|
checked: checked
|
|
|
};
|
|
|
};
|
|
|
} else {
|
|
|
renderCell = function renderCell(_, record, index) {
|
|
|
var _a;
|
|
|
|
|
|
var key = getRowKey(record, index);
|
|
|
var checked = keySet.has(key);
|
|
|
var indeterminate = derivedHalfSelectedKeySet.has(key);
|
|
|
var checkboxProps = checkboxPropsMap.get(key);
|
|
|
var mergedIndeterminate;
|
|
|
|
|
|
if (expandType === 'nest') {
|
|
|
mergedIndeterminate = indeterminate;
|
|
|
(0, _devWarning["default"])(typeof (checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.indeterminate) !== 'boolean', 'Table', 'set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.');
|
|
|
} else {
|
|
|
mergedIndeterminate = (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.indeterminate) !== null && _a !== void 0 ? _a : indeterminate;
|
|
|
} // Record checked
|
|
|
|
|
|
|
|
|
return {
|
|
|
node: /*#__PURE__*/React.createElement(_checkbox["default"], (0, _extends2["default"])({}, checkboxProps, {
|
|
|
indeterminate: mergedIndeterminate,
|
|
|
checked: checked,
|
|
|
skipGroup: true,
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
},
|
|
|
onChange: function onChange(_ref2) {
|
|
|
var nativeEvent = _ref2.nativeEvent;
|
|
|
var shiftKey = nativeEvent.shiftKey;
|
|
|
var startIndex = -1;
|
|
|
var endIndex = -1; // Get range of this
|
|
|
|
|
|
if (shiftKey && checkStrictly) {
|
|
|
var pointKeys = new Set([lastSelectedKey, key]);
|
|
|
recordKeys.some(function (recordKey, recordIndex) {
|
|
|
if (pointKeys.has(recordKey)) {
|
|
|
if (startIndex === -1) {
|
|
|
startIndex = recordIndex;
|
|
|
} else {
|
|
|
endIndex = recordIndex;
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (endIndex !== -1 && startIndex !== endIndex && checkStrictly) {
|
|
|
// Batch update selections
|
|
|
var rangeKeys = recordKeys.slice(startIndex, endIndex + 1);
|
|
|
var changedKeys = [];
|
|
|
|
|
|
if (checked) {
|
|
|
rangeKeys.forEach(function (recordKey) {
|
|
|
if (keySet.has(recordKey)) {
|
|
|
changedKeys.push(recordKey);
|
|
|
keySet["delete"](recordKey);
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
rangeKeys.forEach(function (recordKey) {
|
|
|
if (!keySet.has(recordKey)) {
|
|
|
changedKeys.push(recordKey);
|
|
|
keySet.add(recordKey);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var keys = Array.from(keySet);
|
|
|
onSelectMultiple === null || onSelectMultiple === void 0 ? void 0 : onSelectMultiple(!checked, keys.map(function (recordKey) {
|
|
|
return getRecordByKey(recordKey);
|
|
|
}), changedKeys.map(function (recordKey) {
|
|
|
return getRecordByKey(recordKey);
|
|
|
}));
|
|
|
setSelectedKeys(keys);
|
|
|
} else {
|
|
|
// Single record selected
|
|
|
var originCheckedKeys = derivedSelectedKeys;
|
|
|
|
|
|
if (checkStrictly) {
|
|
|
var checkedKeys = checked ? (0, _util.arrDel)(originCheckedKeys, key) : (0, _util.arrAdd)(originCheckedKeys, key);
|
|
|
triggerSingleSelection(key, !checked, checkedKeys, nativeEvent);
|
|
|
} else {
|
|
|
// Always fill first
|
|
|
var result = (0, _conductUtil.conductCheck)([].concat((0, _toConsumableArray2["default"])(originCheckedKeys), [key]), true, keyEntities, isCheckboxDisabled);
|
|
|
var _checkedKeys = result.checkedKeys,
|
|
|
halfCheckedKeys = result.halfCheckedKeys;
|
|
|
var nextCheckedKeys = _checkedKeys; // If remove, we do it again to correction
|
|
|
|
|
|
if (checked) {
|
|
|
var tempKeySet = new Set(_checkedKeys);
|
|
|
tempKeySet["delete"](key);
|
|
|
nextCheckedKeys = (0, _conductUtil.conductCheck)(Array.from(tempKeySet), {
|
|
|
checked: false,
|
|
|
halfCheckedKeys: halfCheckedKeys
|
|
|
}, keyEntities, isCheckboxDisabled).checkedKeys;
|
|
|
}
|
|
|
|
|
|
triggerSingleSelection(key, !checked, nextCheckedKeys, nativeEvent);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setLastSelectedKey(key);
|
|
|
}
|
|
|
})),
|
|
|
checked: checked
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var renderSelectionCell = function renderSelectionCell(_, record, index) {
|
|
|
var _renderCell = renderCell(_, record, index),
|
|
|
node = _renderCell.node,
|
|
|
checked = _renderCell.checked;
|
|
|
|
|
|
if (customizeRenderCell) {
|
|
|
return customizeRenderCell(checked, record, index, node);
|
|
|
}
|
|
|
|
|
|
return node;
|
|
|
}; // Columns
|
|
|
|
|
|
|
|
|
var selectionColumn = (0, _defineProperty2["default"])({
|
|
|
width: selectionColWidth,
|
|
|
className: "".concat(prefixCls, "-selection-column"),
|
|
|
title: rowSelection.columnTitle || title,
|
|
|
render: renderSelectionCell
|
|
|
}, _rcTable.INTERNAL_COL_DEFINE, {
|
|
|
className: "".concat(prefixCls, "-selection-col")
|
|
|
});
|
|
|
|
|
|
if (expandType === 'row' && columns.length && !expandIconColumnIndex) {
|
|
|
var _columns = (0, _toArray2["default"])(columns),
|
|
|
expandColumn = _columns[0],
|
|
|
restColumns = _columns.slice(1);
|
|
|
|
|
|
var selectionFixed = fixed || getFixedType(restColumns[0]);
|
|
|
|
|
|
if (selectionFixed) {
|
|
|
expandColumn.fixed = selectionFixed;
|
|
|
}
|
|
|
|
|
|
return [expandColumn, (0, _extends2["default"])((0, _extends2["default"])({}, selectionColumn), {
|
|
|
fixed: selectionFixed
|
|
|
})].concat((0, _toConsumableArray2["default"])(restColumns));
|
|
|
}
|
|
|
|
|
|
return [(0, _extends2["default"])((0, _extends2["default"])({}, selectionColumn), {
|
|
|
fixed: fixed || getFixedType(columns[0])
|
|
|
})].concat((0, _toConsumableArray2["default"])(columns));
|
|
|
}, [getRowKey, flattedData, rowSelection, derivedSelectedKeys, derivedSelectedKeySet, derivedHalfSelectedKeySet, selectionColWidth, mergedSelections, expandType, lastSelectedKey, checkboxPropsMap, onSelectMultiple, triggerSingleSelection, isCheckboxDisabled]);
|
|
|
return [transformColumns, derivedSelectedKeySet];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useSorter.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useSorter.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getSortData = getSortData;
|
|
|
exports["default"] = useFilterSorter;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends3 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _CaretDownOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CaretDownOutlined */ "./node_modules/@ant-design/icons/CaretDownOutlined.js"));
|
|
|
|
|
|
var _CaretUpOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CaretUpOutlined */ "./node_modules/@ant-design/icons/CaretUpOutlined.js"));
|
|
|
|
|
|
var _tooltip = _interopRequireDefault(__webpack_require__(/*! ../../tooltip */ "./node_modules/antd/lib/tooltip/index.js"));
|
|
|
|
|
|
var _util = __webpack_require__(/*! ../util */ "./node_modules/antd/lib/table/util.js");
|
|
|
|
|
|
var ASCEND = 'ascend';
|
|
|
var DESCEND = 'descend';
|
|
|
|
|
|
function getMultiplePriority(column) {
|
|
|
if ((0, _typeof2["default"])(column.sorter) === 'object' && typeof column.sorter.multiple === 'number') {
|
|
|
return column.sorter.multiple;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function getSortFunction(sorter) {
|
|
|
if (typeof sorter === 'function') {
|
|
|
return sorter;
|
|
|
}
|
|
|
|
|
|
if (sorter && (0, _typeof2["default"])(sorter) === 'object' && sorter.compare) {
|
|
|
return sorter.compare;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function nextSortDirection(sortDirections, current) {
|
|
|
if (!current) {
|
|
|
return sortDirections[0];
|
|
|
}
|
|
|
|
|
|
return sortDirections[sortDirections.indexOf(current) + 1];
|
|
|
}
|
|
|
|
|
|
function collectSortStates(columns, init, pos) {
|
|
|
var sortStates = [];
|
|
|
|
|
|
function pushState(column, columnPos) {
|
|
|
sortStates.push({
|
|
|
column: column,
|
|
|
key: (0, _util.getColumnKey)(column, columnPos),
|
|
|
multiplePriority: getMultiplePriority(column),
|
|
|
sortOrder: column.sortOrder
|
|
|
});
|
|
|
}
|
|
|
|
|
|
(columns || []).forEach(function (column, index) {
|
|
|
var columnPos = (0, _util.getColumnPos)(index, pos);
|
|
|
|
|
|
if (column.children) {
|
|
|
if ('sortOrder' in column) {
|
|
|
// Controlled
|
|
|
pushState(column, columnPos);
|
|
|
}
|
|
|
|
|
|
sortStates = [].concat((0, _toConsumableArray2["default"])(sortStates), (0, _toConsumableArray2["default"])(collectSortStates(column.children, init, columnPos)));
|
|
|
} else if (column.sorter) {
|
|
|
if ('sortOrder' in column) {
|
|
|
// Controlled
|
|
|
pushState(column, columnPos);
|
|
|
} else if (init && column.defaultSortOrder) {
|
|
|
// Default sorter
|
|
|
sortStates.push({
|
|
|
column: column,
|
|
|
key: (0, _util.getColumnKey)(column, columnPos),
|
|
|
multiplePriority: getMultiplePriority(column),
|
|
|
sortOrder: column.defaultSortOrder
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return sortStates;
|
|
|
}
|
|
|
|
|
|
function injectSorter(prefixCls, columns, sorterSates, triggerSorter, defaultSortDirections, tableLocale, tableShowSorterTooltip, pos) {
|
|
|
return (columns || []).map(function (column, index) {
|
|
|
var columnPos = (0, _util.getColumnPos)(index, pos);
|
|
|
var newColumn = column;
|
|
|
|
|
|
if (newColumn.sorter) {
|
|
|
var sortDirections = newColumn.sortDirections || defaultSortDirections;
|
|
|
var showSorterTooltip = newColumn.showSorterTooltip === undefined ? tableShowSorterTooltip : newColumn.showSorterTooltip;
|
|
|
var columnKey = (0, _util.getColumnKey)(newColumn, columnPos);
|
|
|
var sorterState = sorterSates.find(function (_ref) {
|
|
|
var key = _ref.key;
|
|
|
return key === columnKey;
|
|
|
});
|
|
|
var sorterOrder = sorterState ? sorterState.sortOrder : null;
|
|
|
var nextSortOrder = nextSortDirection(sortDirections, sorterOrder);
|
|
|
var upNode = sortDirections.includes(ASCEND) && /*#__PURE__*/React.createElement(_CaretUpOutlined["default"], {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-up"), {
|
|
|
active: sorterOrder === ASCEND
|
|
|
})
|
|
|
});
|
|
|
var downNode = sortDirections.includes(DESCEND) && /*#__PURE__*/React.createElement(_CaretDownOutlined["default"], {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter-down"), {
|
|
|
active: sorterOrder === DESCEND
|
|
|
})
|
|
|
});
|
|
|
|
|
|
var _ref2 = tableLocale || {},
|
|
|
cancelSort = _ref2.cancelSort,
|
|
|
triggerAsc = _ref2.triggerAsc,
|
|
|
triggerDesc = _ref2.triggerDesc;
|
|
|
|
|
|
var sortTip = cancelSort;
|
|
|
|
|
|
if (nextSortOrder === DESCEND) {
|
|
|
sortTip = triggerDesc;
|
|
|
} else if (nextSortOrder === ASCEND) {
|
|
|
sortTip = triggerAsc;
|
|
|
}
|
|
|
|
|
|
var tooltipProps = (0, _typeof2["default"])(showSorterTooltip) === 'object' ? showSorterTooltip : {
|
|
|
title: sortTip
|
|
|
};
|
|
|
newColumn = (0, _extends3["default"])((0, _extends3["default"])({}, newColumn), {
|
|
|
className: (0, _classnames["default"])(newColumn.className, (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-column-sort"), sorterOrder)),
|
|
|
title: function title(renderProps) {
|
|
|
var renderSortTitle = /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-column-sorters")
|
|
|
}, /*#__PURE__*/React.createElement("span", null, (0, _util.renderColumnTitle)(column.title, renderProps)), /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames["default"])("".concat(prefixCls, "-column-sorter"), (0, _defineProperty2["default"])({}, "".concat(prefixCls, "-column-sorter-full"), !!(upNode && downNode)))
|
|
|
}, /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-column-sorter-inner")
|
|
|
}, upNode, downNode)));
|
|
|
return showSorterTooltip ? /*#__PURE__*/React.createElement(_tooltip["default"], tooltipProps, /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-column-sorters-with-tooltip")
|
|
|
}, renderSortTitle)) : renderSortTitle;
|
|
|
},
|
|
|
onHeaderCell: function onHeaderCell(col) {
|
|
|
var cell = column.onHeaderCell && column.onHeaderCell(col) || {};
|
|
|
var originOnClick = cell.onClick;
|
|
|
|
|
|
cell.onClick = function (event) {
|
|
|
triggerSorter({
|
|
|
column: column,
|
|
|
key: columnKey,
|
|
|
sortOrder: nextSortOrder,
|
|
|
multiplePriority: getMultiplePriority(column)
|
|
|
});
|
|
|
|
|
|
if (originOnClick) {
|
|
|
originOnClick(event);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
cell.className = (0, _classnames["default"])(cell.className, "".concat(prefixCls, "-column-has-sorters"));
|
|
|
return cell;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ('children' in newColumn) {
|
|
|
newColumn = (0, _extends3["default"])((0, _extends3["default"])({}, newColumn), {
|
|
|
children: injectSorter(prefixCls, newColumn.children, sorterSates, triggerSorter, defaultSortDirections, tableLocale, tableShowSorterTooltip, columnPos)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return newColumn;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function stateToInfo(sorterStates) {
|
|
|
var column = sorterStates.column,
|
|
|
sortOrder = sorterStates.sortOrder;
|
|
|
return {
|
|
|
column: column,
|
|
|
order: sortOrder,
|
|
|
field: column.dataIndex,
|
|
|
columnKey: column.key
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function generateSorterInfo(sorterStates) {
|
|
|
var list = sorterStates.filter(function (_ref3) {
|
|
|
var sortOrder = _ref3.sortOrder;
|
|
|
return sortOrder;
|
|
|
}).map(stateToInfo); // =========== Legacy compatible support ===========
|
|
|
// https://github.com/ant-design/ant-design/pull/19226
|
|
|
|
|
|
if (list.length === 0 && sorterStates.length) {
|
|
|
return (0, _extends3["default"])((0, _extends3["default"])({}, stateToInfo(sorterStates[sorterStates.length - 1])), {
|
|
|
column: undefined
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (list.length <= 1) {
|
|
|
return list[0] || {};
|
|
|
}
|
|
|
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
function getSortData(data, sortStates, childrenColumnName) {
|
|
|
var innerSorterStates = sortStates.slice().sort(function (a, b) {
|
|
|
return b.multiplePriority - a.multiplePriority;
|
|
|
});
|
|
|
var cloneData = data.slice();
|
|
|
var runningSorters = innerSorterStates.filter(function (_ref4) {
|
|
|
var sorter = _ref4.column.sorter,
|
|
|
sortOrder = _ref4.sortOrder;
|
|
|
return getSortFunction(sorter) && sortOrder;
|
|
|
}); // Skip if no sorter needed
|
|
|
|
|
|
if (!runningSorters.length) {
|
|
|
return cloneData;
|
|
|
}
|
|
|
|
|
|
return cloneData.sort(function (record1, record2) {
|
|
|
for (var i = 0; i < runningSorters.length; i += 1) {
|
|
|
var sorterState = runningSorters[i];
|
|
|
var sorter = sorterState.column.sorter,
|
|
|
sortOrder = sorterState.sortOrder;
|
|
|
var compareFn = getSortFunction(sorter);
|
|
|
|
|
|
if (compareFn && sortOrder) {
|
|
|
var compareResult = compareFn(record1, record2, sortOrder);
|
|
|
|
|
|
if (compareResult !== 0) {
|
|
|
return sortOrder === ASCEND ? compareResult : -compareResult;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
}).map(function (record) {
|
|
|
var subRecords = record[childrenColumnName];
|
|
|
|
|
|
if (subRecords) {
|
|
|
return (0, _extends3["default"])((0, _extends3["default"])({}, record), (0, _defineProperty2["default"])({}, childrenColumnName, getSortData(subRecords, sortStates, childrenColumnName)));
|
|
|
}
|
|
|
|
|
|
return record;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function useFilterSorter(_ref5) {
|
|
|
var prefixCls = _ref5.prefixCls,
|
|
|
mergedColumns = _ref5.mergedColumns,
|
|
|
onSorterChange = _ref5.onSorterChange,
|
|
|
sortDirections = _ref5.sortDirections,
|
|
|
tableLocale = _ref5.tableLocale,
|
|
|
showSorterTooltip = _ref5.showSorterTooltip;
|
|
|
|
|
|
var _React$useState = React.useState(collectSortStates(mergedColumns, true)),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
sortStates = _React$useState2[0],
|
|
|
setSortStates = _React$useState2[1];
|
|
|
|
|
|
var mergedSorterStates = React.useMemo(function () {
|
|
|
var validate = true;
|
|
|
var collectedStates = collectSortStates(mergedColumns, false); // Return if not controlled
|
|
|
|
|
|
if (!collectedStates.length) {
|
|
|
return sortStates;
|
|
|
}
|
|
|
|
|
|
var validateStates = [];
|
|
|
|
|
|
function patchStates(state) {
|
|
|
if (validate) {
|
|
|
validateStates.push(state);
|
|
|
} else {
|
|
|
validateStates.push((0, _extends3["default"])((0, _extends3["default"])({}, state), {
|
|
|
sortOrder: null
|
|
|
}));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var multipleMode = null;
|
|
|
collectedStates.forEach(function (state) {
|
|
|
if (multipleMode === null) {
|
|
|
patchStates(state);
|
|
|
|
|
|
if (state.sortOrder) {
|
|
|
if (state.multiplePriority === false) {
|
|
|
validate = false;
|
|
|
} else {
|
|
|
multipleMode = true;
|
|
|
}
|
|
|
}
|
|
|
} else if (multipleMode && state.multiplePriority !== false) {
|
|
|
patchStates(state);
|
|
|
} else {
|
|
|
validate = false;
|
|
|
patchStates(state);
|
|
|
}
|
|
|
});
|
|
|
return validateStates;
|
|
|
}, [mergedColumns, sortStates]); // Get render columns title required props
|
|
|
|
|
|
var columnTitleSorterProps = React.useMemo(function () {
|
|
|
var sortColumns = mergedSorterStates.map(function (_ref6) {
|
|
|
var column = _ref6.column,
|
|
|
sortOrder = _ref6.sortOrder;
|
|
|
return {
|
|
|
column: column,
|
|
|
order: sortOrder
|
|
|
};
|
|
|
});
|
|
|
return {
|
|
|
sortColumns: sortColumns,
|
|
|
// Legacy
|
|
|
sortColumn: sortColumns[0] && sortColumns[0].column,
|
|
|
sortOrder: sortColumns[0] && sortColumns[0].order
|
|
|
};
|
|
|
}, [mergedSorterStates]);
|
|
|
|
|
|
function triggerSorter(sortState) {
|
|
|
var newSorterStates;
|
|
|
|
|
|
if (sortState.multiplePriority === false || !mergedSorterStates.length || mergedSorterStates[0].multiplePriority === false) {
|
|
|
newSorterStates = [sortState];
|
|
|
} else {
|
|
|
newSorterStates = [].concat((0, _toConsumableArray2["default"])(mergedSorterStates.filter(function (_ref7) {
|
|
|
var key = _ref7.key;
|
|
|
return key !== sortState.key;
|
|
|
})), [sortState]);
|
|
|
}
|
|
|
|
|
|
setSortStates(newSorterStates);
|
|
|
onSorterChange(generateSorterInfo(newSorterStates), newSorterStates);
|
|
|
}
|
|
|
|
|
|
var transformColumns = function transformColumns(innerColumns) {
|
|
|
return injectSorter(prefixCls, innerColumns, mergedSorterStates, triggerSorter, sortDirections, tableLocale, showSorterTooltip);
|
|
|
};
|
|
|
|
|
|
var getSorters = function getSorters() {
|
|
|
return generateSorterInfo(mergedSorterStates);
|
|
|
};
|
|
|
|
|
|
return [transformColumns, mergedSorterStates, columnTitleSorterProps, getSorters];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/hooks/useTitleColumns.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/hooks/useTitleColumns.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = useTitleColumns;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _util = __webpack_require__(/*! ../util */ "./node_modules/antd/lib/table/util.js");
|
|
|
|
|
|
function fillTitle(columns, columnTitleProps) {
|
|
|
return columns.map(function (column) {
|
|
|
var cloneColumn = (0, _extends2["default"])({}, column);
|
|
|
cloneColumn.title = (0, _util.renderColumnTitle)(column.title, columnTitleProps);
|
|
|
|
|
|
if ('children' in cloneColumn) {
|
|
|
cloneColumn.children = fillTitle(cloneColumn.children, columnTitleProps);
|
|
|
}
|
|
|
|
|
|
return cloneColumn;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function useTitleColumns(columnTitleProps) {
|
|
|
var filledColumns = React.useCallback(function (columns) {
|
|
|
return fillTitle(columns, columnTitleProps);
|
|
|
}, [columnTitleProps]);
|
|
|
return [filledColumns];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _Table = _interopRequireDefault(__webpack_require__(/*! ./Table */ "./node_modules/antd/lib/table/Table.js"));
|
|
|
|
|
|
var _default = _Table["default"];
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/table/util.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/table/util.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getColumnKey = getColumnKey;
|
|
|
exports.getColumnPos = getColumnPos;
|
|
|
exports.renderColumnTitle = renderColumnTitle;
|
|
|
|
|
|
function getColumnKey(column, defaultKey) {
|
|
|
if ('key' in column && column.key !== undefined && column.key !== null) {
|
|
|
return column.key;
|
|
|
}
|
|
|
|
|
|
if (column.dataIndex) {
|
|
|
return Array.isArray(column.dataIndex) ? column.dataIndex.join('.') : column.dataIndex;
|
|
|
}
|
|
|
|
|
|
return defaultKey;
|
|
|
}
|
|
|
|
|
|
function getColumnPos(index, pos) {
|
|
|
return pos ? "".concat(pos, "-").concat(index) : "".concat(index);
|
|
|
}
|
|
|
|
|
|
function renderColumnTitle(title, props) {
|
|
|
if (typeof title === 'function') {
|
|
|
return title(props);
|
|
|
}
|
|
|
|
|
|
return title;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/tag/CheckableTag.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/tag/CheckableTag.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var CheckableTag = function CheckableTag(_a) {
|
|
|
var _classNames;
|
|
|
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
checked = _a.checked,
|
|
|
onChange = _a.onChange,
|
|
|
onClick = _a.onClick,
|
|
|
restProps = __rest(_a, ["prefixCls", "className", "checked", "onChange", "onClick"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
|
|
|
|
var handleClick = function handleClick(e) {
|
|
|
onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
|
|
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
|
};
|
|
|
|
|
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
|
var cls = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checkable"), true), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
|
|
|
return /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({}, restProps, {
|
|
|
className: cls,
|
|
|
onClick: handleClick
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var _default = CheckableTag;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/tag/index.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/antd/lib/tag/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _omit = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/omit */ "./node_modules/rc-util/lib/omit.js"));
|
|
|
|
|
|
var _CloseOutlined = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/CloseOutlined */ "./node_modules/@ant-design/icons/CloseOutlined.js"));
|
|
|
|
|
|
var _CheckableTag = _interopRequireDefault(__webpack_require__(/*! ./CheckableTag */ "./node_modules/antd/lib/tag/CheckableTag.js"));
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _colors = __webpack_require__(/*! ../_util/colors */ "./node_modules/antd/lib/_util/colors.js");
|
|
|
|
|
|
var _wave = _interopRequireDefault(__webpack_require__(/*! ../_util/wave */ "./node_modules/antd/lib/_util/wave.js"));
|
|
|
|
|
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
var t = {};
|
|
|
|
|
|
for (var p in s) {
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
}
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
|
|
|
var PresetColorRegex = new RegExp("^(".concat(_colors.PresetColorTypes.join('|'), ")(-inverse)?$"));
|
|
|
var PresetStatusColorRegex = new RegExp("^(".concat(_colors.PresetStatusColorTypes.join('|'), ")$"));
|
|
|
|
|
|
var InternalTag = function InternalTag(_a, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var customizePrefixCls = _a.prefixCls,
|
|
|
className = _a.className,
|
|
|
style = _a.style,
|
|
|
children = _a.children,
|
|
|
icon = _a.icon,
|
|
|
color = _a.color,
|
|
|
onClose = _a.onClose,
|
|
|
closeIcon = _a.closeIcon,
|
|
|
_a$closable = _a.closable,
|
|
|
closable = _a$closable === void 0 ? false : _a$closable,
|
|
|
props = __rest(_a, ["prefixCls", "className", "style", "children", "icon", "color", "onClose", "closeIcon", "closable"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var _React$useState = React.useState(true),
|
|
|
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
|
|
|
visible = _React$useState2[0],
|
|
|
setVisible = _React$useState2[1];
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
if ('visible' in props) {
|
|
|
setVisible(props.visible);
|
|
|
}
|
|
|
}, [props.visible]);
|
|
|
|
|
|
var isPresetColor = function isPresetColor() {
|
|
|
if (!color) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return PresetColorRegex.test(color) || PresetStatusColorRegex.test(color);
|
|
|
};
|
|
|
|
|
|
var tagStyle = (0, _extends2["default"])({
|
|
|
backgroundColor: color && !isPresetColor() ? color : undefined
|
|
|
}, style);
|
|
|
var presetColor = isPresetColor();
|
|
|
var prefixCls = getPrefixCls('tag', customizePrefixCls);
|
|
|
var tagClassName = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-").concat(color), presetColor), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-has-color"), color && !presetColor), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-hidden"), !visible), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
|
|
|
|
|
|
var handleCloseClick = function handleCloseClick(e) {
|
|
|
e.stopPropagation();
|
|
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
|
|
|
|
if (e.defaultPrevented) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!('visible' in props)) {
|
|
|
setVisible(false);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var renderCloseIcon = function renderCloseIcon() {
|
|
|
if (closable) {
|
|
|
return closeIcon ? /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-close-icon"),
|
|
|
onClick: handleCloseClick
|
|
|
}, closeIcon) : /*#__PURE__*/React.createElement(_CloseOutlined["default"], {
|
|
|
className: "".concat(prefixCls, "-close-icon"),
|
|
|
onClick: handleCloseClick
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
var isNeedWave = 'onClick' in props || children && children.type === 'a';
|
|
|
var tagProps = (0, _omit["default"])(props, ['visible']);
|
|
|
var iconNode = icon || null;
|
|
|
var kids = iconNode ? /*#__PURE__*/React.createElement(React.Fragment, null, iconNode, /*#__PURE__*/React.createElement("span", null, children)) : children;
|
|
|
var tagNode = /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({}, tagProps, {
|
|
|
ref: ref,
|
|
|
className: tagClassName,
|
|
|
style: tagStyle
|
|
|
}), kids, renderCloseIcon());
|
|
|
return isNeedWave ? /*#__PURE__*/React.createElement(_wave["default"], null, tagNode) : tagNode;
|
|
|
};
|
|
|
|
|
|
var Tag = /*#__PURE__*/React.forwardRef(InternalTag);
|
|
|
Tag.displayName = 'Tag';
|
|
|
Tag.CheckableTag = _CheckableTag["default"];
|
|
|
var _default = Tag;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/time-picker/locale/en_US.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/time-picker/locale/en_US.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
var locale = {
|
|
|
placeholder: 'Select time',
|
|
|
rangePlaceholder: ['Start time', 'End time']
|
|
|
};
|
|
|
var _default = locale;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/tooltip/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/tooltip/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcTooltip = _interopRequireDefault(__webpack_require__(/*! rc-tooltip */ "./node_modules/rc-tooltip/es/index.js"));
|
|
|
|
|
|
var _useMergedState3 = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/hooks/useMergedState */ "./node_modules/rc-util/lib/hooks/useMergedState.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _placements = _interopRequireDefault(__webpack_require__(/*! ./placements */ "./node_modules/antd/lib/tooltip/placements.js"));
|
|
|
|
|
|
var _reactNode = __webpack_require__(/*! ../_util/reactNode */ "./node_modules/antd/lib/_util/reactNode.js");
|
|
|
|
|
|
var _configProvider = __webpack_require__(/*! ../config-provider */ "./node_modules/antd/lib/config-provider/index.js");
|
|
|
|
|
|
var _colors = __webpack_require__(/*! ../_util/colors */ "./node_modules/antd/lib/_util/colors.js");
|
|
|
|
|
|
var _motion = __webpack_require__(/*! ../_util/motion */ "./node_modules/antd/lib/_util/motion.js");
|
|
|
|
|
|
var splitObject = function splitObject(obj, keys) {
|
|
|
var picked = {};
|
|
|
var omitted = (0, _extends2["default"])({}, obj);
|
|
|
keys.forEach(function (key) {
|
|
|
if (obj && key in obj) {
|
|
|
picked[key] = obj[key];
|
|
|
delete omitted[key];
|
|
|
}
|
|
|
});
|
|
|
return {
|
|
|
picked: picked,
|
|
|
omitted: omitted
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var PresetColorRegex = new RegExp("^(".concat(_colors.PresetColorTypes.join('|'), ")(-inverse)?$")); // Fix Tooltip won't hide at disabled button
|
|
|
// mouse events don't trigger at disabled button in Chrome
|
|
|
// https://github.com/react-component/tooltip/issues/18
|
|
|
|
|
|
function getDisabledCompatibleChildren(element, prefixCls) {
|
|
|
var elementType = element.type;
|
|
|
|
|
|
if ((elementType.__ANT_BUTTON === true || elementType.__ANT_SWITCH === true || elementType.__ANT_CHECKBOX === true || element.type === 'button') && element.props.disabled) {
|
|
|
// Pick some layout related style properties up to span
|
|
|
// Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
|
|
|
var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
|
|
|
picked = _splitObject.picked,
|
|
|
omitted = _splitObject.omitted;
|
|
|
|
|
|
var spanStyle = (0, _extends2["default"])((0, _extends2["default"])({
|
|
|
display: 'inline-block'
|
|
|
}, picked), {
|
|
|
cursor: 'not-allowed',
|
|
|
width: element.props.block ? '100%' : null
|
|
|
});
|
|
|
var buttonStyle = (0, _extends2["default"])((0, _extends2["default"])({}, omitted), {
|
|
|
pointerEvents: 'none'
|
|
|
});
|
|
|
var child = (0, _reactNode.cloneElement)(element, {
|
|
|
style: buttonStyle,
|
|
|
className: null
|
|
|
});
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
style: spanStyle,
|
|
|
className: (0, _classnames["default"])(element.props.className, "".concat(prefixCls, "-disabled-compatible-wrapper"))
|
|
|
}, child);
|
|
|
}
|
|
|
|
|
|
return element;
|
|
|
}
|
|
|
|
|
|
var Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
var _classNames2;
|
|
|
|
|
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
|
getContextPopupContainer = _React$useContext.getPopupContainer,
|
|
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var _useMergedState = (0, _useMergedState3["default"])(false, {
|
|
|
value: props.visible,
|
|
|
defaultValue: props.defaultVisible
|
|
|
}),
|
|
|
_useMergedState2 = (0, _slicedToArray2["default"])(_useMergedState, 2),
|
|
|
visible = _useMergedState2[0],
|
|
|
setVisible = _useMergedState2[1];
|
|
|
|
|
|
var isNoTitle = function isNoTitle() {
|
|
|
var title = props.title,
|
|
|
overlay = props.overlay;
|
|
|
return !title && !overlay && title !== 0; // overlay for old version compatibility
|
|
|
};
|
|
|
|
|
|
var onVisibleChange = function onVisibleChange(vis) {
|
|
|
var _a;
|
|
|
|
|
|
setVisible(isNoTitle() ? false : vis);
|
|
|
|
|
|
if (!isNoTitle()) {
|
|
|
(_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var getTooltipPlacements = function getTooltipPlacements() {
|
|
|
var builtinPlacements = props.builtinPlacements,
|
|
|
arrowPointAtCenter = props.arrowPointAtCenter,
|
|
|
autoAdjustOverflow = props.autoAdjustOverflow;
|
|
|
return builtinPlacements || (0, _placements["default"])({
|
|
|
arrowPointAtCenter: arrowPointAtCenter,
|
|
|
autoAdjustOverflow: autoAdjustOverflow
|
|
|
});
|
|
|
}; // 动态设置动画点
|
|
|
|
|
|
|
|
|
var onPopupAlign = function onPopupAlign(domNode, align) {
|
|
|
var placements = getTooltipPlacements(); // 当前返回的位置
|
|
|
|
|
|
var placement = Object.keys(placements).filter(function (key) {
|
|
|
return placements[key].points[0] === align.points[0] && placements[key].points[1] === align.points[1];
|
|
|
})[0];
|
|
|
|
|
|
if (!placement) {
|
|
|
return;
|
|
|
} // 根据当前坐标设置动画点
|
|
|
|
|
|
|
|
|
var rect = domNode.getBoundingClientRect();
|
|
|
var transformOrigin = {
|
|
|
top: '50%',
|
|
|
left: '50%'
|
|
|
};
|
|
|
|
|
|
if (placement.indexOf('top') >= 0 || placement.indexOf('Bottom') >= 0) {
|
|
|
transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
|
|
|
} else if (placement.indexOf('Top') >= 0 || placement.indexOf('bottom') >= 0) {
|
|
|
transformOrigin.top = "".concat(-align.offset[1], "px");
|
|
|
}
|
|
|
|
|
|
if (placement.indexOf('left') >= 0 || placement.indexOf('Right') >= 0) {
|
|
|
transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
|
|
|
} else if (placement.indexOf('right') >= 0 || placement.indexOf('Left') >= 0) {
|
|
|
transformOrigin.left = "".concat(-align.offset[0], "px");
|
|
|
}
|
|
|
|
|
|
domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
|
|
|
};
|
|
|
|
|
|
var getOverlay = function getOverlay() {
|
|
|
var title = props.title,
|
|
|
overlay = props.overlay;
|
|
|
|
|
|
if (title === 0) {
|
|
|
return title;
|
|
|
}
|
|
|
|
|
|
return overlay || title || '';
|
|
|
};
|
|
|
|
|
|
var customizePrefixCls = props.prefixCls,
|
|
|
openClassName = props.openClassName,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
getTooltipContainer = props.getTooltipContainer,
|
|
|
overlayClassName = props.overlayClassName,
|
|
|
color = props.color,
|
|
|
overlayInnerStyle = props.overlayInnerStyle,
|
|
|
children = props.children;
|
|
|
var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
|
|
|
var rootPrefixCls = getPrefixCls();
|
|
|
var tempVisible = visible; // Hide tooltip when there is no title
|
|
|
|
|
|
if (!('visible' in props) && isNoTitle()) {
|
|
|
tempVisible = false;
|
|
|
}
|
|
|
|
|
|
var child = getDisabledCompatibleChildren((0, _reactNode.isValidElement)(children) ? children : /*#__PURE__*/React.createElement("span", null, children), prefixCls);
|
|
|
var childProps = child.props;
|
|
|
var childCls = (0, _classnames["default"])(childProps.className, (0, _defineProperty2["default"])({}, openClassName || "".concat(prefixCls, "-open"), true));
|
|
|
var customOverlayClassName = (0, _classnames["default"])(overlayClassName, (_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames2, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)), _classNames2));
|
|
|
var formattedOverlayInnerStyle = overlayInnerStyle;
|
|
|
var arrowContentStyle;
|
|
|
|
|
|
if (color && !PresetColorRegex.test(color)) {
|
|
|
formattedOverlayInnerStyle = (0, _extends2["default"])((0, _extends2["default"])({}, overlayInnerStyle), {
|
|
|
background: color
|
|
|
});
|
|
|
arrowContentStyle = {
|
|
|
background: color
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_rcTooltip["default"], (0, _extends2["default"])({}, props, {
|
|
|
prefixCls: prefixCls,
|
|
|
overlayClassName: customOverlayClassName,
|
|
|
getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,
|
|
|
ref: ref,
|
|
|
builtinPlacements: getTooltipPlacements(),
|
|
|
overlay: getOverlay(),
|
|
|
visible: tempVisible,
|
|
|
onVisibleChange: onVisibleChange,
|
|
|
onPopupAlign: onPopupAlign,
|
|
|
overlayInnerStyle: formattedOverlayInnerStyle,
|
|
|
arrowContent: /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-arrow-content"),
|
|
|
style: arrowContentStyle
|
|
|
}),
|
|
|
motion: {
|
|
|
motionName: (0, _motion.getTransitionName)(rootPrefixCls, 'zoom-big-fast', props.transitionName),
|
|
|
motionDeadline: 1000
|
|
|
}
|
|
|
}), tempVisible ? (0, _reactNode.cloneElement)(child, {
|
|
|
className: childCls
|
|
|
}) : child);
|
|
|
});
|
|
|
Tooltip.displayName = 'Tooltip';
|
|
|
Tooltip.defaultProps = {
|
|
|
placement: 'top',
|
|
|
mouseEnterDelay: 0.1,
|
|
|
mouseLeaveDelay: 0.1,
|
|
|
arrowPointAtCenter: false,
|
|
|
autoAdjustOverflow: true
|
|
|
};
|
|
|
var _default = Tooltip;
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/antd/lib/tooltip/placements.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/antd/lib/tooltip/placements.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getOverflowOptions = getOverflowOptions;
|
|
|
exports["default"] = getPlacements;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _placements = __webpack_require__(/*! rc-tooltip/lib/placements */ "./node_modules/rc-tooltip/lib/placements.js");
|
|
|
|
|
|
var autoAdjustOverflowEnabled = {
|
|
|
adjustX: 1,
|
|
|
adjustY: 1
|
|
|
};
|
|
|
var autoAdjustOverflowDisabled = {
|
|
|
adjustX: 0,
|
|
|
adjustY: 0
|
|
|
};
|
|
|
var targetOffset = [0, 0];
|
|
|
|
|
|
function getOverflowOptions(autoAdjustOverflow) {
|
|
|
if (typeof autoAdjustOverflow === 'boolean') {
|
|
|
return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
|
|
|
}
|
|
|
|
|
|
return (0, _extends2["default"])((0, _extends2["default"])({}, autoAdjustOverflowDisabled), autoAdjustOverflow);
|
|
|
}
|
|
|
|
|
|
function getPlacements(config) {
|
|
|
var _config$arrowWidth = config.arrowWidth,
|
|
|
arrowWidth = _config$arrowWidth === void 0 ? 5 : _config$arrowWidth,
|
|
|
_config$horizontalArr = config.horizontalArrowShift,
|
|
|
horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,
|
|
|
_config$verticalArrow = config.verticalArrowShift,
|
|
|
verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,
|
|
|
autoAdjustOverflow = config.autoAdjustOverflow;
|
|
|
var placementMap = {
|
|
|
left: {
|
|
|
points: ['cr', 'cl'],
|
|
|
offset: [-4, 0]
|
|
|
},
|
|
|
right: {
|
|
|
points: ['cl', 'cr'],
|
|
|
offset: [4, 0]
|
|
|
},
|
|
|
top: {
|
|
|
points: ['bc', 'tc'],
|
|
|
offset: [0, -4]
|
|
|
},
|
|
|
bottom: {
|
|
|
points: ['tc', 'bc'],
|
|
|
offset: [0, 4]
|
|
|
},
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tc'],
|
|
|
offset: [-(horizontalArrowShift + arrowWidth), -4]
|
|
|
},
|
|
|
leftTop: {
|
|
|
points: ['tr', 'cl'],
|
|
|
offset: [-4, -(verticalArrowShift + arrowWidth)]
|
|
|
},
|
|
|
topRight: {
|
|
|
points: ['br', 'tc'],
|
|
|
offset: [horizontalArrowShift + arrowWidth, -4]
|
|
|
},
|
|
|
rightTop: {
|
|
|
points: ['tl', 'cr'],
|
|
|
offset: [4, -(verticalArrowShift + arrowWidth)]
|
|
|
},
|
|
|
bottomRight: {
|
|
|
points: ['tr', 'bc'],
|
|
|
offset: [horizontalArrowShift + arrowWidth, 4]
|
|
|
},
|
|
|
rightBottom: {
|
|
|
points: ['bl', 'cr'],
|
|
|
offset: [4, verticalArrowShift + arrowWidth]
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bc'],
|
|
|
offset: [-(horizontalArrowShift + arrowWidth), 4]
|
|
|
},
|
|
|
leftBottom: {
|
|
|
points: ['br', 'cl'],
|
|
|
offset: [-4, verticalArrowShift + arrowWidth]
|
|
|
}
|
|
|
};
|
|
|
Object.keys(placementMap).forEach(function (key) {
|
|
|
placementMap[key] = config.arrowPointAtCenter ? (0, _extends2["default"])((0, _extends2["default"])({}, placementMap[key]), {
|
|
|
overflow: getOverflowOptions(autoAdjustOverflow),
|
|
|
targetOffset: targetOffset
|
|
|
}) : (0, _extends2["default"])((0, _extends2["default"])({}, _placements.placements[key]), {
|
|
|
overflow: getOverflowOptions(autoAdjustOverflow)
|
|
|
});
|
|
|
placementMap[key].ignoreShake = true;
|
|
|
});
|
|
|
return placementMap;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/async-validator/dist-web/index.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/async-validator/dist-web/index.js ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* WEBPACK VAR INJECTION */(function(process) {function _extends() {
|
|
|
_extends = Object.assign || function (target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i];
|
|
|
|
|
|
for (var key in source) {
|
|
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
};
|
|
|
|
|
|
return _extends.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function _inheritsLoose(subClass, superClass) {
|
|
|
subClass.prototype = Object.create(superClass.prototype);
|
|
|
subClass.prototype.constructor = subClass;
|
|
|
subClass.__proto__ = superClass;
|
|
|
}
|
|
|
|
|
|
function _getPrototypeOf(o) {
|
|
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
|
};
|
|
|
return _getPrototypeOf(o);
|
|
|
}
|
|
|
|
|
|
function _setPrototypeOf(o, p) {
|
|
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
|
o.__proto__ = p;
|
|
|
return o;
|
|
|
};
|
|
|
|
|
|
return _setPrototypeOf(o, p);
|
|
|
}
|
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
|
if (Reflect.construct.sham) return false;
|
|
|
if (typeof Proxy === "function") return true;
|
|
|
|
|
|
try {
|
|
|
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
|
|
return true;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _construct(Parent, args, Class) {
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
_construct = Reflect.construct;
|
|
|
} else {
|
|
|
_construct = function _construct(Parent, args, Class) {
|
|
|
var a = [null];
|
|
|
a.push.apply(a, args);
|
|
|
var Constructor = Function.bind.apply(Parent, a);
|
|
|
var instance = new Constructor();
|
|
|
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
|
return instance;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return _construct.apply(null, arguments);
|
|
|
}
|
|
|
|
|
|
function _isNativeFunction(fn) {
|
|
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
|
}
|
|
|
|
|
|
function _wrapNativeSuper(Class) {
|
|
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
|
|
|
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
|
|
|
|
if (typeof Class !== "function") {
|
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
|
}
|
|
|
|
|
|
if (typeof _cache !== "undefined") {
|
|
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
|
|
|
|
_cache.set(Class, Wrapper);
|
|
|
}
|
|
|
|
|
|
function Wrapper() {
|
|
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
|
}
|
|
|
|
|
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
|
constructor: {
|
|
|
value: Wrapper,
|
|
|
enumerable: false,
|
|
|
writable: true,
|
|
|
configurable: true
|
|
|
}
|
|
|
});
|
|
|
return _setPrototypeOf(Wrapper, Class);
|
|
|
};
|
|
|
|
|
|
return _wrapNativeSuper(Class);
|
|
|
}
|
|
|
|
|
|
/* eslint no-console:0 */
|
|
|
var formatRegExp = /%[sdj%]/g;
|
|
|
var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
|
|
|
|
|
if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
|
|
warning = function warning(type, errors) {
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
|
if (errors.every(function (e) {
|
|
|
return typeof e === 'string';
|
|
|
})) {
|
|
|
console.warn(type, errors);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function convertFieldsError(errors) {
|
|
|
if (!errors || !errors.length) return null;
|
|
|
var fields = {};
|
|
|
errors.forEach(function (error) {
|
|
|
var field = error.field;
|
|
|
fields[field] = fields[field] || [];
|
|
|
fields[field].push(error);
|
|
|
});
|
|
|
return fields;
|
|
|
}
|
|
|
function format() {
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
var i = 1;
|
|
|
var f = args[0];
|
|
|
var len = args.length;
|
|
|
|
|
|
if (typeof f === 'function') {
|
|
|
return f.apply(null, args.slice(1));
|
|
|
}
|
|
|
|
|
|
if (typeof f === 'string') {
|
|
|
var str = String(f).replace(formatRegExp, function (x) {
|
|
|
if (x === '%%') {
|
|
|
return '%';
|
|
|
}
|
|
|
|
|
|
if (i >= len) {
|
|
|
return x;
|
|
|
}
|
|
|
|
|
|
switch (x) {
|
|
|
case '%s':
|
|
|
return String(args[i++]);
|
|
|
|
|
|
case '%d':
|
|
|
return Number(args[i++]);
|
|
|
|
|
|
case '%j':
|
|
|
try {
|
|
|
return JSON.stringify(args[i++]);
|
|
|
} catch (_) {
|
|
|
return '[Circular]';
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
return x;
|
|
|
}
|
|
|
});
|
|
|
return str;
|
|
|
}
|
|
|
|
|
|
return f;
|
|
|
}
|
|
|
|
|
|
function isNativeStringType(type) {
|
|
|
return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
|
|
|
}
|
|
|
|
|
|
function isEmptyValue(value, type) {
|
|
|
if (value === undefined || value === null) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (type === 'array' && Array.isArray(value) && !value.length) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (isNativeStringType(type) && typeof value === 'string' && !value) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function asyncParallelArray(arr, func, callback) {
|
|
|
var results = [];
|
|
|
var total = 0;
|
|
|
var arrLength = arr.length;
|
|
|
|
|
|
function count(errors) {
|
|
|
results.push.apply(results, errors);
|
|
|
total++;
|
|
|
|
|
|
if (total === arrLength) {
|
|
|
callback(results);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
arr.forEach(function (a) {
|
|
|
func(a, count);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function asyncSerialArray(arr, func, callback) {
|
|
|
var index = 0;
|
|
|
var arrLength = arr.length;
|
|
|
|
|
|
function next(errors) {
|
|
|
if (errors && errors.length) {
|
|
|
callback(errors);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var original = index;
|
|
|
index = index + 1;
|
|
|
|
|
|
if (original < arrLength) {
|
|
|
func(arr[original], next);
|
|
|
} else {
|
|
|
callback([]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
next([]);
|
|
|
}
|
|
|
|
|
|
function flattenObjArr(objArr) {
|
|
|
var ret = [];
|
|
|
Object.keys(objArr).forEach(function (k) {
|
|
|
ret.push.apply(ret, objArr[k]);
|
|
|
});
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
var AsyncValidationError = /*#__PURE__*/function (_Error) {
|
|
|
_inheritsLoose(AsyncValidationError, _Error);
|
|
|
|
|
|
function AsyncValidationError(errors, fields) {
|
|
|
var _this;
|
|
|
|
|
|
_this = _Error.call(this, 'Async Validation Error') || this;
|
|
|
_this.errors = errors;
|
|
|
_this.fields = fields;
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
return AsyncValidationError;
|
|
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
|
function asyncMap(objArr, option, func, callback) {
|
|
|
if (option.first) {
|
|
|
var _pending = new Promise(function (resolve, reject) {
|
|
|
var next = function next(errors) {
|
|
|
callback(errors);
|
|
|
return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve();
|
|
|
};
|
|
|
|
|
|
var flattenArr = flattenObjArr(objArr);
|
|
|
asyncSerialArray(flattenArr, func, next);
|
|
|
});
|
|
|
|
|
|
_pending["catch"](function (e) {
|
|
|
return e;
|
|
|
});
|
|
|
|
|
|
return _pending;
|
|
|
}
|
|
|
|
|
|
var firstFields = option.firstFields || [];
|
|
|
|
|
|
if (firstFields === true) {
|
|
|
firstFields = Object.keys(objArr);
|
|
|
}
|
|
|
|
|
|
var objArrKeys = Object.keys(objArr);
|
|
|
var objArrLength = objArrKeys.length;
|
|
|
var total = 0;
|
|
|
var results = [];
|
|
|
var pending = new Promise(function (resolve, reject) {
|
|
|
var next = function next(errors) {
|
|
|
results.push.apply(results, errors);
|
|
|
total++;
|
|
|
|
|
|
if (total === objArrLength) {
|
|
|
callback(results);
|
|
|
return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
if (!objArrKeys.length) {
|
|
|
callback(results);
|
|
|
resolve();
|
|
|
}
|
|
|
|
|
|
objArrKeys.forEach(function (key) {
|
|
|
var arr = objArr[key];
|
|
|
|
|
|
if (firstFields.indexOf(key) !== -1) {
|
|
|
asyncSerialArray(arr, func, next);
|
|
|
} else {
|
|
|
asyncParallelArray(arr, func, next);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
pending["catch"](function (e) {
|
|
|
return e;
|
|
|
});
|
|
|
return pending;
|
|
|
}
|
|
|
function complementError(rule) {
|
|
|
return function (oe) {
|
|
|
if (oe && oe.message) {
|
|
|
oe.field = oe.field || rule.fullField;
|
|
|
return oe;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
message: typeof oe === 'function' ? oe() : oe,
|
|
|
field: oe.field || rule.fullField
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
function deepMerge(target, source) {
|
|
|
if (source) {
|
|
|
for (var s in source) {
|
|
|
if (source.hasOwnProperty(s)) {
|
|
|
var value = source[s];
|
|
|
|
|
|
if (typeof value === 'object' && typeof target[s] === 'object') {
|
|
|
target[s] = _extends(_extends({}, target[s]), value);
|
|
|
} else {
|
|
|
target[s] = value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Rule for validating required fields.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function required(rule, value, source, errors, options, type) {
|
|
|
if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
|
|
|
errors.push(format(options.messages.required, rule.fullField));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Rule for validating whitespace.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function whitespace(rule, value, source, errors, options) {
|
|
|
if (/^\s+$/.test(value) || value === '') {
|
|
|
errors.push(format(options.messages.whitespace, rule.fullField));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* eslint max-len:0 */
|
|
|
|
|
|
var pattern = {
|
|
|
// http://emailregex.com/
|
|
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
|
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
|
|
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
|
};
|
|
|
var types = {
|
|
|
integer: function integer(value) {
|
|
|
return types.number(value) && parseInt(value, 10) === value;
|
|
|
},
|
|
|
"float": function float(value) {
|
|
|
return types.number(value) && !types.integer(value);
|
|
|
},
|
|
|
array: function array(value) {
|
|
|
return Array.isArray(value);
|
|
|
},
|
|
|
regexp: function regexp(value) {
|
|
|
if (value instanceof RegExp) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
return !!new RegExp(value);
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
date: function date(value) {
|
|
|
return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
|
|
|
},
|
|
|
number: function number(value) {
|
|
|
if (isNaN(value)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return typeof value === 'number';
|
|
|
},
|
|
|
object: function object(value) {
|
|
|
return typeof value === 'object' && !types.array(value);
|
|
|
},
|
|
|
method: function method(value) {
|
|
|
return typeof value === 'function';
|
|
|
},
|
|
|
email: function email(value) {
|
|
|
return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
|
|
|
},
|
|
|
url: function url(value) {
|
|
|
return typeof value === 'string' && !!value.match(pattern.url);
|
|
|
},
|
|
|
hex: function hex(value) {
|
|
|
return typeof value === 'string' && !!value.match(pattern.hex);
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Rule for validating the type of a value.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function type(rule, value, source, errors, options) {
|
|
|
if (rule.required && value === undefined) {
|
|
|
required(rule, value, source, errors, options);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
|
|
|
var ruleType = rule.type;
|
|
|
|
|
|
if (custom.indexOf(ruleType) > -1) {
|
|
|
if (!types[ruleType](value)) {
|
|
|
errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
|
} // straight typeof check
|
|
|
|
|
|
} else if (ruleType && typeof value !== rule.type) {
|
|
|
errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Rule for validating minimum and maximum allowed values.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function range(rule, value, source, errors, options) {
|
|
|
var len = typeof rule.len === 'number';
|
|
|
var min = typeof rule.min === 'number';
|
|
|
var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
|
|
|
|
|
|
var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
|
var val = value;
|
|
|
var key = null;
|
|
|
var num = typeof value === 'number';
|
|
|
var str = typeof value === 'string';
|
|
|
var arr = Array.isArray(value);
|
|
|
|
|
|
if (num) {
|
|
|
key = 'number';
|
|
|
} else if (str) {
|
|
|
key = 'string';
|
|
|
} else if (arr) {
|
|
|
key = 'array';
|
|
|
} // if the value is not of a supported type for range validation
|
|
|
// the validation rule rule should use the
|
|
|
// type property to also test for a particular type
|
|
|
|
|
|
|
|
|
if (!key) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (arr) {
|
|
|
val = value.length;
|
|
|
}
|
|
|
|
|
|
if (str) {
|
|
|
// 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
|
|
|
val = value.replace(spRegexp, '_').length;
|
|
|
}
|
|
|
|
|
|
if (len) {
|
|
|
if (val !== rule.len) {
|
|
|
errors.push(format(options.messages[key].len, rule.fullField, rule.len));
|
|
|
}
|
|
|
} else if (min && !max && val < rule.min) {
|
|
|
errors.push(format(options.messages[key].min, rule.fullField, rule.min));
|
|
|
} else if (max && !min && val > rule.max) {
|
|
|
errors.push(format(options.messages[key].max, rule.fullField, rule.max));
|
|
|
} else if (min && max && (val < rule.min || val > rule.max)) {
|
|
|
errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var ENUM = 'enum';
|
|
|
/**
|
|
|
* Rule for validating a value exists in an enumerable list.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function enumerable(rule, value, source, errors, options) {
|
|
|
rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
|
|
|
|
|
|
if (rule[ENUM].indexOf(value) === -1) {
|
|
|
errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Rule for validating a regular expression pattern.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param source The source object being validated.
|
|
|
* @param errors An array of errors that this rule may add
|
|
|
* validation errors to.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function pattern$1(rule, value, source, errors, options) {
|
|
|
if (rule.pattern) {
|
|
|
if (rule.pattern instanceof RegExp) {
|
|
|
// if a RegExp instance is passed, reset `lastIndex` in case its `global`
|
|
|
// flag is accidentally set to `true`, which in a validation scenario
|
|
|
// is not necessary and the result might be misleading
|
|
|
rule.pattern.lastIndex = 0;
|
|
|
|
|
|
if (!rule.pattern.test(value)) {
|
|
|
errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
|
}
|
|
|
} else if (typeof rule.pattern === 'string') {
|
|
|
var _pattern = new RegExp(rule.pattern);
|
|
|
|
|
|
if (!_pattern.test(value)) {
|
|
|
errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var rules = {
|
|
|
required: required,
|
|
|
whitespace: whitespace,
|
|
|
type: type,
|
|
|
range: range,
|
|
|
"enum": enumerable,
|
|
|
pattern: pattern$1
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Performs validation for string types.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function string(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value, 'string') && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options, 'string');
|
|
|
|
|
|
if (!isEmptyValue(value, 'string')) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
rules.range(rule, value, source, errors, options);
|
|
|
rules.pattern(rule, value, source, errors, options);
|
|
|
|
|
|
if (rule.whitespace === true) {
|
|
|
rules.whitespace(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a function.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function method(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a number.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function number(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (value === '') {
|
|
|
value = undefined;
|
|
|
}
|
|
|
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
rules.range(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a boolean.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function _boolean(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates the regular expression type.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function regexp(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (!isEmptyValue(value)) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a number is an integer.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function integer(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
rules.range(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a number is a floating point number.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function floatFn(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
rules.range(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates an array.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function array(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if ((value === undefined || value === null) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options, 'array');
|
|
|
|
|
|
if (value !== undefined && value !== null) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
rules.range(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates an object.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function object(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
var ENUM$1 = 'enum';
|
|
|
/**
|
|
|
* Validates an enumerable list.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function enumerable$1(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
rules[ENUM$1](rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Validates a regular expression pattern.
|
|
|
*
|
|
|
* Performs validation when a rule only contains
|
|
|
* a pattern property but is not declared as a string type.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function pattern$2(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value, 'string') && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (!isEmptyValue(value, 'string')) {
|
|
|
rules.pattern(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
function date(rule, value, callback, source, options) {
|
|
|
// console.log('integer rule called %j', rule);
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value, 'date') && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
|
|
|
if (!isEmptyValue(value, 'date')) {
|
|
|
var dateObject;
|
|
|
|
|
|
if (value instanceof Date) {
|
|
|
dateObject = value;
|
|
|
} else {
|
|
|
dateObject = new Date(value);
|
|
|
}
|
|
|
|
|
|
rules.type(rule, dateObject, source, errors, options);
|
|
|
|
|
|
if (dateObject) {
|
|
|
rules.range(rule, dateObject.getTime(), source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
function required$1(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var type = Array.isArray(value) ? 'array' : typeof value;
|
|
|
rules.required(rule, value, source, errors, options, type);
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
function type$1(rule, value, callback, source, options) {
|
|
|
var ruleType = rule.type;
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value, ruleType) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options, ruleType);
|
|
|
|
|
|
if (!isEmptyValue(value, ruleType)) {
|
|
|
rules.type(rule, value, source, errors, options);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Performs validation for any type.
|
|
|
*
|
|
|
* @param rule The validation rule.
|
|
|
* @param value The value of the field on the source object.
|
|
|
* @param callback The callback function.
|
|
|
* @param source The source object being validated.
|
|
|
* @param options The validation options.
|
|
|
* @param options.messages The validation messages.
|
|
|
*/
|
|
|
|
|
|
function any(rule, value, callback, source, options) {
|
|
|
var errors = [];
|
|
|
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
|
|
|
|
|
if (validate) {
|
|
|
if (isEmptyValue(value) && !rule.required) {
|
|
|
return callback();
|
|
|
}
|
|
|
|
|
|
rules.required(rule, value, source, errors, options);
|
|
|
}
|
|
|
|
|
|
callback(errors);
|
|
|
}
|
|
|
|
|
|
var validators = {
|
|
|
string: string,
|
|
|
method: method,
|
|
|
number: number,
|
|
|
"boolean": _boolean,
|
|
|
regexp: regexp,
|
|
|
integer: integer,
|
|
|
"float": floatFn,
|
|
|
array: array,
|
|
|
object: object,
|
|
|
"enum": enumerable$1,
|
|
|
pattern: pattern$2,
|
|
|
date: date,
|
|
|
url: type$1,
|
|
|
hex: type$1,
|
|
|
email: type$1,
|
|
|
required: required$1,
|
|
|
any: any
|
|
|
};
|
|
|
|
|
|
function newMessages() {
|
|
|
return {
|
|
|
"default": 'Validation error on field %s',
|
|
|
required: '%s is required',
|
|
|
"enum": '%s must be one of %s',
|
|
|
whitespace: '%s cannot be empty',
|
|
|
date: {
|
|
|
format: '%s date %s is invalid for format %s',
|
|
|
parse: '%s date could not be parsed, %s is invalid ',
|
|
|
invalid: '%s date %s is invalid'
|
|
|
},
|
|
|
types: {
|
|
|
string: '%s is not a %s',
|
|
|
method: '%s is not a %s (function)',
|
|
|
array: '%s is not an %s',
|
|
|
object: '%s is not an %s',
|
|
|
number: '%s is not a %s',
|
|
|
date: '%s is not a %s',
|
|
|
"boolean": '%s is not a %s',
|
|
|
integer: '%s is not an %s',
|
|
|
"float": '%s is not a %s',
|
|
|
regexp: '%s is not a valid %s',
|
|
|
email: '%s is not a valid %s',
|
|
|
url: '%s is not a valid %s',
|
|
|
hex: '%s is not a valid %s'
|
|
|
},
|
|
|
string: {
|
|
|
len: '%s must be exactly %s characters',
|
|
|
min: '%s must be at least %s characters',
|
|
|
max: '%s cannot be longer than %s characters',
|
|
|
range: '%s must be between %s and %s characters'
|
|
|
},
|
|
|
number: {
|
|
|
len: '%s must equal %s',
|
|
|
min: '%s cannot be less than %s',
|
|
|
max: '%s cannot be greater than %s',
|
|
|
range: '%s must be between %s and %s'
|
|
|
},
|
|
|
array: {
|
|
|
len: '%s must be exactly %s in length',
|
|
|
min: '%s cannot be less than %s in length',
|
|
|
max: '%s cannot be greater than %s in length',
|
|
|
range: '%s must be between %s and %s in length'
|
|
|
},
|
|
|
pattern: {
|
|
|
mismatch: '%s value %s does not match pattern %s'
|
|
|
},
|
|
|
clone: function clone() {
|
|
|
var cloned = JSON.parse(JSON.stringify(this));
|
|
|
cloned.clone = this.clone;
|
|
|
return cloned;
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
var messages = newMessages();
|
|
|
|
|
|
/**
|
|
|
* Encapsulates a validation schema.
|
|
|
*
|
|
|
* @param descriptor An object declaring validation rules
|
|
|
* for this schema.
|
|
|
*/
|
|
|
|
|
|
function Schema(descriptor) {
|
|
|
this.rules = null;
|
|
|
this._messages = messages;
|
|
|
this.define(descriptor);
|
|
|
}
|
|
|
|
|
|
Schema.prototype = {
|
|
|
messages: function messages(_messages) {
|
|
|
if (_messages) {
|
|
|
this._messages = deepMerge(newMessages(), _messages);
|
|
|
}
|
|
|
|
|
|
return this._messages;
|
|
|
},
|
|
|
define: function define(rules) {
|
|
|
if (!rules) {
|
|
|
throw new Error('Cannot configure a schema with no rules');
|
|
|
}
|
|
|
|
|
|
if (typeof rules !== 'object' || Array.isArray(rules)) {
|
|
|
throw new Error('Rules must be an object');
|
|
|
}
|
|
|
|
|
|
this.rules = {};
|
|
|
var z;
|
|
|
var item;
|
|
|
|
|
|
for (z in rules) {
|
|
|
if (rules.hasOwnProperty(z)) {
|
|
|
item = rules[z];
|
|
|
this.rules[z] = Array.isArray(item) ? item : [item];
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
validate: function validate(source_, o, oc) {
|
|
|
var _this = this;
|
|
|
|
|
|
if (o === void 0) {
|
|
|
o = {};
|
|
|
}
|
|
|
|
|
|
if (oc === void 0) {
|
|
|
oc = function oc() {};
|
|
|
}
|
|
|
|
|
|
var source = source_;
|
|
|
var options = o;
|
|
|
var callback = oc;
|
|
|
|
|
|
if (typeof options === 'function') {
|
|
|
callback = options;
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
if (!this.rules || Object.keys(this.rules).length === 0) {
|
|
|
if (callback) {
|
|
|
callback();
|
|
|
}
|
|
|
|
|
|
return Promise.resolve();
|
|
|
}
|
|
|
|
|
|
function complete(results) {
|
|
|
var i;
|
|
|
var errors = [];
|
|
|
var fields = {};
|
|
|
|
|
|
function add(e) {
|
|
|
if (Array.isArray(e)) {
|
|
|
var _errors;
|
|
|
|
|
|
errors = (_errors = errors).concat.apply(_errors, e);
|
|
|
} else {
|
|
|
errors.push(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < results.length; i++) {
|
|
|
add(results[i]);
|
|
|
}
|
|
|
|
|
|
if (!errors.length) {
|
|
|
errors = null;
|
|
|
fields = null;
|
|
|
} else {
|
|
|
fields = convertFieldsError(errors);
|
|
|
}
|
|
|
|
|
|
callback(errors, fields);
|
|
|
}
|
|
|
|
|
|
if (options.messages) {
|
|
|
var messages$1 = this.messages();
|
|
|
|
|
|
if (messages$1 === messages) {
|
|
|
messages$1 = newMessages();
|
|
|
}
|
|
|
|
|
|
deepMerge(messages$1, options.messages);
|
|
|
options.messages = messages$1;
|
|
|
} else {
|
|
|
options.messages = this.messages();
|
|
|
}
|
|
|
|
|
|
var arr;
|
|
|
var value;
|
|
|
var series = {};
|
|
|
var keys = options.keys || Object.keys(this.rules);
|
|
|
keys.forEach(function (z) {
|
|
|
arr = _this.rules[z];
|
|
|
value = source[z];
|
|
|
arr.forEach(function (r) {
|
|
|
var rule = r;
|
|
|
|
|
|
if (typeof rule.transform === 'function') {
|
|
|
if (source === source_) {
|
|
|
source = _extends({}, source);
|
|
|
}
|
|
|
|
|
|
value = source[z] = rule.transform(value);
|
|
|
}
|
|
|
|
|
|
if (typeof rule === 'function') {
|
|
|
rule = {
|
|
|
validator: rule
|
|
|
};
|
|
|
} else {
|
|
|
rule = _extends({}, rule);
|
|
|
}
|
|
|
|
|
|
rule.validator = _this.getValidationMethod(rule);
|
|
|
rule.field = z;
|
|
|
rule.fullField = rule.fullField || z;
|
|
|
rule.type = _this.getType(rule);
|
|
|
|
|
|
if (!rule.validator) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
series[z] = series[z] || [];
|
|
|
series[z].push({
|
|
|
rule: rule,
|
|
|
value: value,
|
|
|
source: source,
|
|
|
field: z
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
var errorFields = {};
|
|
|
return asyncMap(series, options, function (data, doIt) {
|
|
|
var rule = data.rule;
|
|
|
var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');
|
|
|
deep = deep && (rule.required || !rule.required && data.value);
|
|
|
rule.field = data.field;
|
|
|
|
|
|
function addFullfield(key, schema) {
|
|
|
return _extends(_extends({}, schema), {}, {
|
|
|
fullField: rule.fullField + "." + key
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function cb(e) {
|
|
|
if (e === void 0) {
|
|
|
e = [];
|
|
|
}
|
|
|
|
|
|
var errors = e;
|
|
|
|
|
|
if (!Array.isArray(errors)) {
|
|
|
errors = [errors];
|
|
|
}
|
|
|
|
|
|
if (!options.suppressWarning && errors.length) {
|
|
|
Schema.warning('async-validator:', errors);
|
|
|
}
|
|
|
|
|
|
if (errors.length && rule.message !== undefined) {
|
|
|
errors = [].concat(rule.message);
|
|
|
}
|
|
|
|
|
|
errors = errors.map(complementError(rule));
|
|
|
|
|
|
if (options.first && errors.length) {
|
|
|
errorFields[rule.field] = 1;
|
|
|
return doIt(errors);
|
|
|
}
|
|
|
|
|
|
if (!deep) {
|
|
|
doIt(errors);
|
|
|
} else {
|
|
|
// if rule is required but the target object
|
|
|
// does not exist fail at the rule level and don't
|
|
|
// go deeper
|
|
|
if (rule.required && !data.value) {
|
|
|
if (rule.message !== undefined) {
|
|
|
errors = [].concat(rule.message).map(complementError(rule));
|
|
|
} else if (options.error) {
|
|
|
errors = [options.error(rule, format(options.messages.required, rule.field))];
|
|
|
}
|
|
|
|
|
|
return doIt(errors);
|
|
|
}
|
|
|
|
|
|
var fieldsSchema = {};
|
|
|
|
|
|
if (rule.defaultField) {
|
|
|
for (var k in data.value) {
|
|
|
if (data.value.hasOwnProperty(k)) {
|
|
|
fieldsSchema[k] = rule.defaultField;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields);
|
|
|
|
|
|
for (var f in fieldsSchema) {
|
|
|
if (fieldsSchema.hasOwnProperty(f)) {
|
|
|
var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
|
|
|
fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var schema = new Schema(fieldsSchema);
|
|
|
schema.messages(options.messages);
|
|
|
|
|
|
if (data.rule.options) {
|
|
|
data.rule.options.messages = options.messages;
|
|
|
data.rule.options.error = options.error;
|
|
|
}
|
|
|
|
|
|
schema.validate(data.value, data.rule.options || options, function (errs) {
|
|
|
var finalErrors = [];
|
|
|
|
|
|
if (errors && errors.length) {
|
|
|
finalErrors.push.apply(finalErrors, errors);
|
|
|
}
|
|
|
|
|
|
if (errs && errs.length) {
|
|
|
finalErrors.push.apply(finalErrors, errs);
|
|
|
}
|
|
|
|
|
|
doIt(finalErrors.length ? finalErrors : null);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var res;
|
|
|
|
|
|
if (rule.asyncValidator) {
|
|
|
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
|
} else if (rule.validator) {
|
|
|
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
|
|
|
|
if (res === true) {
|
|
|
cb();
|
|
|
} else if (res === false) {
|
|
|
cb(rule.message || rule.field + " fails");
|
|
|
} else if (res instanceof Array) {
|
|
|
cb(res);
|
|
|
} else if (res instanceof Error) {
|
|
|
cb(res.message);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (res && res.then) {
|
|
|
res.then(function () {
|
|
|
return cb();
|
|
|
}, function (e) {
|
|
|
return cb(e);
|
|
|
});
|
|
|
}
|
|
|
}, function (results) {
|
|
|
complete(results);
|
|
|
});
|
|
|
},
|
|
|
getType: function getType(rule) {
|
|
|
if (rule.type === undefined && rule.pattern instanceof RegExp) {
|
|
|
rule.type = 'pattern';
|
|
|
}
|
|
|
|
|
|
if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
|
|
|
throw new Error(format('Unknown rule type %s', rule.type));
|
|
|
}
|
|
|
|
|
|
return rule.type || 'string';
|
|
|
},
|
|
|
getValidationMethod: function getValidationMethod(rule) {
|
|
|
if (typeof rule.validator === 'function') {
|
|
|
return rule.validator;
|
|
|
}
|
|
|
|
|
|
var keys = Object.keys(rule);
|
|
|
var messageIndex = keys.indexOf('message');
|
|
|
|
|
|
if (messageIndex !== -1) {
|
|
|
keys.splice(messageIndex, 1);
|
|
|
}
|
|
|
|
|
|
if (keys.length === 1 && keys[0] === 'required') {
|
|
|
return validators.required;
|
|
|
}
|
|
|
|
|
|
return validators[this.getType(rule)] || false;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
Schema.register = function register(type, validator) {
|
|
|
if (typeof validator !== 'function') {
|
|
|
throw new Error('Cannot register a validator by type, validator is not a function');
|
|
|
}
|
|
|
|
|
|
validators[type] = validator;
|
|
|
};
|
|
|
|
|
|
Schema.warning = warning;
|
|
|
Schema.messages = messages;
|
|
|
Schema.validators = validators;
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Schema);
|
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/classnames/index.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/classnames/index.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
Copyright (c) 2018 Jed Watson.
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
http://jedwatson.github.io/classnames
|
|
|
*/
|
|
|
/* global define */
|
|
|
|
|
|
(function () {
|
|
|
'use strict';
|
|
|
|
|
|
var hasOwn = {}.hasOwnProperty;
|
|
|
|
|
|
function classNames() {
|
|
|
var classes = [];
|
|
|
|
|
|
for (var i = 0; i < arguments.length; i++) {
|
|
|
var arg = arguments[i];
|
|
|
if (!arg) continue;
|
|
|
|
|
|
var argType = typeof arg;
|
|
|
|
|
|
if (argType === 'string' || argType === 'number') {
|
|
|
classes.push(arg);
|
|
|
} else if (Array.isArray(arg)) {
|
|
|
if (arg.length) {
|
|
|
var inner = classNames.apply(null, arg);
|
|
|
if (inner) {
|
|
|
classes.push(inner);
|
|
|
}
|
|
|
}
|
|
|
} else if (argType === 'object') {
|
|
|
if (arg.toString === Object.prototype.toString) {
|
|
|
for (var key in arg) {
|
|
|
if (hasOwn.call(arg, key) && arg[key]) {
|
|
|
classes.push(key);
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
classes.push(arg.toString());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return classes.join(' ');
|
|
|
}
|
|
|
|
|
|
if ( true && module.exports) {
|
|
|
classNames.default = classNames;
|
|
|
module.exports = classNames;
|
|
|
} else if (true) {
|
|
|
// register as 'classnames', consistent with npm package name
|
|
|
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
|
return classNames;
|
|
|
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
|
} else {}
|
|
|
}());
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/less-loader/dist/cjs.js?!./src/containers/DashboardContainer/index.less":
|
|
|
/*!*******************************************************************************************************************************************************!*\
|
|
|
!*** ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/less-loader/dist/cjs.js??ref--6-2!./src/containers/DashboardContainer/index.less ***!
|
|
|
\*******************************************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
// Imports
|
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
|
|
|
exports = ___CSS_LOADER_API_IMPORT___(true);
|
|
|
// Module
|
|
|
exports.push([module.i, ".my-dashboard {\n width: 100%;\n}\n.my-dashboard__button {\n padding: 80px;\n text-align: center;\n}\n", "",{"version":3,"sources":["index.less"],"names":[],"mappings":"AAAA;EACE,WAAW;AACb;AACA;EACE,aAAa;EACb,kBAAkB;AACpB","file":"index.less","sourcesContent":[".my-dashboard {\n width: 100%;\n}\n.my-dashboard__button {\n padding: 80px;\n text-align: center;\n}\n"]}]);
|
|
|
// Exports
|
|
|
module.exports = exports;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/less-loader/dist/cjs.js?!./src/styles/main.less":
|
|
|
/*!*******************************************************************************************************************************!*\
|
|
|
!*** ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/less-loader/dist/cjs.js??ref--6-2!./src/styles/main.less ***!
|
|
|
\*******************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
// Imports
|
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
|
|
|
exports = ___CSS_LOADER_API_IMPORT___(true);
|
|
|
// Module
|
|
|
exports.push([module.i, "/*** GLOBAL CSS ***/\n/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n[class^=ant-]::-ms-clear,\n[class*= ant-]::-ms-clear,\n[class^=ant-] input::-ms-clear,\n[class*= ant-] input::-ms-clear,\n[class^=ant-] input::-ms-reveal,\n[class*= ant-] input::-ms-reveal {\n display: none;\n}\n[class^=ant-],\n[class*= ant-],\n[class^=ant-] *,\n[class*= ant-] *,\n[class^=ant-] *::before,\n[class*= ant-] *::before,\n[class^=ant-] *::after,\n[class*= ant-] *::after {\n box-sizing: border-box;\n}\n/* stylelint-disable at-rule-no-unknown */\nhtml,\nbody {\n width: 100%;\n height: 100%;\n}\ninput::-ms-clear,\ninput::-ms-reveal {\n display: none;\n}\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n@-ms-viewport {\n width: device-width;\n}\nbody {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n font-variant: tabular-nums;\n line-height: 1.5715;\n background-color: #fff;\n font-feature-settings: 'tnum';\n}\n[tabindex='-1']:focus {\n outline: none !important;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-top: 0;\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\np {\n margin-top: 0;\n margin-bottom: 1em;\n}\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n border-bottom: 0;\n cursor: help;\n}\naddress {\n margin-bottom: 1em;\n font-style: normal;\n line-height: inherit;\n}\ninput[type='text'],\ninput[type='password'],\ninput[type='number'],\ntextarea {\n -webkit-appearance: none;\n}\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1em;\n}\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\ndt {\n font-weight: 500;\n}\ndd {\n margin-bottom: 0.5em;\n margin-left: 0;\n}\nblockquote {\n margin: 0 0 1em;\n}\ndfn {\n font-style: italic;\n}\nb,\nstrong {\n font-weight: bolder;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\na {\n color: #5b5ce1;\n text-decoration: none;\n background-color: transparent;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n -webkit-text-decoration-skip: objects;\n}\na:hover {\n color: #8588ed;\n}\na:active {\n color: #4541ba;\n}\na:active,\na:hover {\n text-decoration: none;\n outline: 0;\n}\na:focus {\n text-decoration: none;\n outline: 0;\n}\na[disabled] {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\npre,\ncode,\nkbd,\nsamp {\n font-size: 1em;\n font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n}\npre {\n margin-top: 0;\n margin-bottom: 1em;\n overflow: auto;\n}\nfigure {\n margin: 0 0 1em;\n}\nimg {\n vertical-align: middle;\n border-style: none;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\na,\narea,\nbutton,\n[role='button'],\ninput:not([type='range']),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\ntable {\n border-collapse: collapse;\n}\ncaption {\n padding-top: 0.75em;\n padding-bottom: 0.3em;\n color: rgba(0, 0, 0, 0.45);\n text-align: left;\n caption-side: bottom;\n}\nth {\n text-align: inherit;\n}\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\nbutton,\ninput {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\ninput[type='radio'],\ninput[type='checkbox'] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type='date'],\ninput[type='time'],\ninput[type='datetime-local'],\ninput[type='month'] {\n -webkit-appearance: listbox;\n}\ntextarea {\n overflow: auto;\n resize: vertical;\n}\nfieldset {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n margin-bottom: 0.5em;\n padding: 0;\n color: inherit;\n font-size: 1.5em;\n line-height: inherit;\n white-space: normal;\n}\nprogress {\n vertical-align: baseline;\n}\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n[type='search'] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\noutput {\n display: inline-block;\n}\nsummary {\n display: list-item;\n}\ntemplate {\n display: none;\n}\n[hidden] {\n display: none !important;\n}\nmark {\n padding: 0.2em;\n background-color: #feffe6;\n}\n::selection {\n color: #fff;\n background: #5b5ce1;\n}\n.clearfix::before {\n display: table;\n content: '';\n}\n.clearfix::after {\n display: table;\n clear: both;\n content: '';\n}\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.anticon > * {\n line-height: 1;\n}\n.anticon svg {\n display: inline-block;\n}\n.anticon::before {\n display: none;\n}\n.anticon .anticon-icon {\n display: block;\n}\n.anticon[tabindex] {\n cursor: pointer;\n}\n.anticon-spin::before {\n display: inline-block;\n animation: loadingCircle 1s infinite linear;\n}\n.anticon-spin {\n display: inline-block;\n animation: loadingCircle 1s infinite linear;\n}\n.ant-fade-enter,\n.ant-fade-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-fade-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-fade-enter.ant-fade-enter-active,\n.ant-fade-appear.ant-fade-appear-active {\n animation-name: antFadeIn;\n animation-play-state: running;\n}\n.ant-fade-leave.ant-fade-leave-active {\n animation-name: antFadeOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-fade-enter,\n.ant-fade-appear {\n opacity: 0;\n animation-timing-function: linear;\n}\n.ant-fade-leave {\n animation-timing-function: linear;\n}\n@keyframes antFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes antFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n.ant-move-up-enter,\n.ant-move-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-up-enter.ant-move-up-enter-active,\n.ant-move-up-appear.ant-move-up-appear-active {\n animation-name: antMoveUpIn;\n animation-play-state: running;\n}\n.ant-move-up-leave.ant-move-up-leave-active {\n animation-name: antMoveUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-up-enter,\n.ant-move-up-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-up-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-down-enter,\n.ant-move-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-down-enter.ant-move-down-enter-active,\n.ant-move-down-appear.ant-move-down-appear-active {\n animation-name: antMoveDownIn;\n animation-play-state: running;\n}\n.ant-move-down-leave.ant-move-down-leave-active {\n animation-name: antMoveDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-down-enter,\n.ant-move-down-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-down-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-left-enter,\n.ant-move-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-left-enter.ant-move-left-enter-active,\n.ant-move-left-appear.ant-move-left-appear-active {\n animation-name: antMoveLeftIn;\n animation-play-state: running;\n}\n.ant-move-left-leave.ant-move-left-leave-active {\n animation-name: antMoveLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-left-enter,\n.ant-move-left-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-left-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-right-enter,\n.ant-move-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-right-enter.ant-move-right-enter-active,\n.ant-move-right-appear.ant-move-right-appear-active {\n animation-name: antMoveRightIn;\n animation-play-state: running;\n}\n.ant-move-right-leave.ant-move-right-leave-active {\n animation-name: antMoveRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-right-enter,\n.ant-move-right-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-right-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n@keyframes antMoveDownIn {\n 0% {\n transform: translateY(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveDownOut {\n 0% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateY(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveLeftIn {\n 0% {\n transform: translateX(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveLeftOut {\n 0% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateX(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveRightIn {\n 0% {\n transform: translateX(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveRightOut {\n 0% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateX(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveUpIn {\n 0% {\n transform: translateY(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveUpOut {\n 0% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateY(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes loadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n[ant-click-animating='true'],\n[ant-click-animating-without-extra-node='true'] {\n position: relative;\n}\nhtml {\n --antd-wave-shadow-color: #5b5ce1;\n --scroll-bar: 0;\n}\n[ant-click-animating-without-extra-node='true']::after,\n.ant-click-animating-node {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n border-radius: inherit;\n box-shadow: 0 0 0 0 #5b5ce1;\n box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);\n opacity: 0.2;\n animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-fill-mode: forwards;\n content: '';\n pointer-events: none;\n}\n@keyframes waveEffect {\n 100% {\n box-shadow: 0 0 0 #5b5ce1;\n box-shadow: 0 0 0 6px var(--antd-wave-shadow-color);\n }\n}\n@keyframes fadeEffect {\n 100% {\n opacity: 0;\n }\n}\n.ant-slide-up-enter,\n.ant-slide-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-up-enter.ant-slide-up-enter-active,\n.ant-slide-up-appear.ant-slide-up-appear-active {\n animation-name: antSlideUpIn;\n animation-play-state: running;\n}\n.ant-slide-up-leave.ant-slide-up-leave-active {\n animation-name: antSlideUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-up-enter,\n.ant-slide-up-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-up-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-down-enter,\n.ant-slide-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-down-enter.ant-slide-down-enter-active,\n.ant-slide-down-appear.ant-slide-down-appear-active {\n animation-name: antSlideDownIn;\n animation-play-state: running;\n}\n.ant-slide-down-leave.ant-slide-down-leave-active {\n animation-name: antSlideDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-down-enter,\n.ant-slide-down-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-left-enter,\n.ant-slide-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-left-enter.ant-slide-left-enter-active,\n.ant-slide-left-appear.ant-slide-left-appear-active {\n animation-name: antSlideLeftIn;\n animation-play-state: running;\n}\n.ant-slide-left-leave.ant-slide-left-leave-active {\n animation-name: antSlideLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-left-enter,\n.ant-slide-left-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-left-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-right-enter,\n.ant-slide-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-right-enter.ant-slide-right-enter-active,\n.ant-slide-right-appear.ant-slide-right-appear-active {\n animation-name: antSlideRightIn;\n animation-play-state: running;\n}\n.ant-slide-right-leave.ant-slide-right-leave-active {\n animation-name: antSlideRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-right-enter,\n.ant-slide-right-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-right-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n@keyframes antSlideUpIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideUpOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n}\n@keyframes antSlideDownIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 100% 100%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 100% 100%;\n opacity: 1;\n }\n}\n@keyframes antSlideDownOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 100% 100%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.8);\n transform-origin: 100% 100%;\n opacity: 0;\n }\n}\n@keyframes antSlideLeftIn {\n 0% {\n transform: scaleX(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleX(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideLeftOut {\n 0% {\n transform: scaleX(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleX(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n}\n@keyframes antSlideRightIn {\n 0% {\n transform: scaleX(0.8);\n transform-origin: 100% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleX(1);\n transform-origin: 100% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideRightOut {\n 0% {\n transform: scaleX(1);\n transform-origin: 100% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleX(0.8);\n transform-origin: 100% 0%;\n opacity: 0;\n }\n}\n.ant-zoom-enter,\n.ant-zoom-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-enter.ant-zoom-enter-active,\n.ant-zoom-appear.ant-zoom-appear-active {\n animation-name: antZoomIn;\n animation-play-state: running;\n}\n.ant-zoom-leave.ant-zoom-leave-active {\n animation-name: antZoomOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-enter,\n.ant-zoom-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-enter-prepare,\n.ant-zoom-appear-prepare {\n transform: none;\n}\n.ant-zoom-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-big-enter,\n.ant-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-enter.ant-zoom-big-enter-active,\n.ant-zoom-big-appear.ant-zoom-big-appear-active {\n animation-name: antZoomBigIn;\n animation-play-state: running;\n}\n.ant-zoom-big-leave.ant-zoom-big-leave-active {\n animation-name: antZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-big-enter,\n.ant-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-big-enter-prepare,\n.ant-zoom-big-appear-prepare {\n transform: none;\n}\n.ant-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-big-fast-enter,\n.ant-zoom-big-fast-appear {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-fast-leave {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-fast-enter.ant-zoom-big-fast-enter-active,\n.ant-zoom-big-fast-appear.ant-zoom-big-fast-appear-active {\n animation-name: antZoomBigIn;\n animation-play-state: running;\n}\n.ant-zoom-big-fast-leave.ant-zoom-big-fast-leave-active {\n animation-name: antZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-big-fast-enter,\n.ant-zoom-big-fast-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-big-fast-enter-prepare,\n.ant-zoom-big-fast-appear-prepare {\n transform: none;\n}\n.ant-zoom-big-fast-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-up-enter,\n.ant-zoom-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-up-enter.ant-zoom-up-enter-active,\n.ant-zoom-up-appear.ant-zoom-up-appear-active {\n animation-name: antZoomUpIn;\n animation-play-state: running;\n}\n.ant-zoom-up-leave.ant-zoom-up-leave-active {\n animation-name: antZoomUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-up-enter,\n.ant-zoom-up-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-up-enter-prepare,\n.ant-zoom-up-appear-prepare {\n transform: none;\n}\n.ant-zoom-up-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-down-enter,\n.ant-zoom-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-down-enter.ant-zoom-down-enter-active,\n.ant-zoom-down-appear.ant-zoom-down-appear-active {\n animation-name: antZoomDownIn;\n animation-play-state: running;\n}\n.ant-zoom-down-leave.ant-zoom-down-leave-active {\n animation-name: antZoomDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-down-enter,\n.ant-zoom-down-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-down-enter-prepare,\n.ant-zoom-down-appear-prepare {\n transform: none;\n}\n.ant-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-left-enter,\n.ant-zoom-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-left-enter.ant-zoom-left-enter-active,\n.ant-zoom-left-appear.ant-zoom-left-appear-active {\n animation-name: antZoomLeftIn;\n animation-play-state: running;\n}\n.ant-zoom-left-leave.ant-zoom-left-leave-active {\n animation-name: antZoomLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-left-enter,\n.ant-zoom-left-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-left-enter-prepare,\n.ant-zoom-left-appear-prepare {\n transform: none;\n}\n.ant-zoom-left-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-right-enter,\n.ant-zoom-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-right-enter.ant-zoom-right-enter-active,\n.ant-zoom-right-appear.ant-zoom-right-appear-active {\n animation-name: antZoomRightIn;\n animation-play-state: running;\n}\n.ant-zoom-right-leave.ant-zoom-right-leave-active {\n animation-name: antZoomRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-right-enter,\n.ant-zoom-right-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-right-enter-prepare,\n.ant-zoom-right-appear-prepare {\n transform: none;\n}\n.ant-zoom-right-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n@keyframes antZoomIn {\n 0% {\n transform: scale(0.2);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes antZoomOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.2);\n opacity: 0;\n }\n}\n@keyframes antZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes antZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}\n@keyframes antZoomUpIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 50% 0%;\n }\n}\n@keyframes antZoomUpOut {\n 0% {\n transform: scale(1);\n transform-origin: 50% 0%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n}\n@keyframes antZoomLeftIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 0% 50%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 0% 50%;\n }\n}\n@keyframes antZoomLeftOut {\n 0% {\n transform: scale(1);\n transform-origin: 0% 50%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 0% 50%;\n opacity: 0;\n }\n}\n@keyframes antZoomRightIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 100% 50%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 100% 50%;\n }\n}\n@keyframes antZoomRightOut {\n 0% {\n transform: scale(1);\n transform-origin: 100% 50%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 100% 50%;\n opacity: 0;\n }\n}\n@keyframes antZoomDownIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 50% 100%;\n }\n}\n@keyframes antZoomDownOut {\n 0% {\n transform: scale(1);\n transform-origin: 50% 100%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n.ant-motion-collapse-legacy {\n overflow: hidden;\n}\n.ant-motion-collapse-legacy-active {\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}\n.ant-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}\n.ant-affix {\n position: fixed;\n z-index: 10;\n}\n.ant-alert {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: flex;\n align-items: center;\n padding: 8px 15px;\n word-wrap: break-word;\n border-radius: 5px;\n}\n.ant-alert-content {\n flex: 1;\n min-width: 0;\n}\n.ant-alert-icon {\n margin-right: 8px;\n}\n.ant-alert-description {\n display: none;\n font-size: 14px;\n line-height: 22px;\n}\n.ant-alert-success {\n background-color: #f6ffed;\n border: 1px solid #b7eb8f;\n}\n.ant-alert-success .ant-alert-icon {\n color: #52c41a;\n}\n.ant-alert-info {\n background-color: #f0f2ff;\n border: 1px solid #e0e3ff;\n}\n.ant-alert-info .ant-alert-icon {\n color: #5b5ce1;\n}\n.ant-alert-warning {\n background-color: #fffbe6;\n border: 1px solid #ffe58f;\n}\n.ant-alert-warning .ant-alert-icon {\n color: #faad14;\n}\n.ant-alert-error {\n background-color: #fff2f0;\n border: 1px solid #ffccc7;\n}\n.ant-alert-error .ant-alert-icon {\n color: #ff4d4f;\n}\n.ant-alert-error .ant-alert-description > pre {\n margin: 0;\n padding: 0;\n}\n.ant-alert-action {\n margin-left: 8px;\n}\n.ant-alert-close-icon {\n margin-left: 8px;\n padding: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 12px;\n background-color: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n}\n.ant-alert-close-icon .anticon-close {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-icon .anticon-close:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-close-text {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-text:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-with-description {\n align-items: flex-start;\n padding: 15px 15px 15px 24px;\n}\n.ant-alert-with-description.ant-alert-no-icon {\n padding: 15px 15px;\n}\n.ant-alert-with-description .ant-alert-icon {\n margin-right: 15px;\n font-size: 24px;\n}\n.ant-alert-with-description .ant-alert-message {\n display: block;\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-alert-message {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-alert-with-description .ant-alert-description {\n display: block;\n}\n.ant-alert.ant-alert-motion-leave {\n overflow: hidden;\n opacity: 1;\n transition: max-height 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-top 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), margin-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-alert.ant-alert-motion-leave-active {\n max-height: 0;\n margin-bottom: 0 !important;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n}\n.ant-alert-banner {\n margin-bottom: 0;\n border: 0;\n border-radius: 0;\n}\n.ant-alert.ant-alert-rtl {\n direction: rtl;\n}\n.ant-alert-rtl.ant-alert.ant-alert-no-icon {\n padding: 8px 15px;\n}\n.ant-alert-rtl .ant-alert-icon {\n margin-right: auto;\n margin-left: 8px;\n}\n.ant-alert-rtl .ant-alert-action {\n margin-right: 8px;\n margin-left: auto;\n}\n.ant-alert-rtl .ant-alert-close-icon {\n margin-right: 8px;\n margin-left: auto;\n}\n.ant-alert-rtl.ant-alert-with-description .ant-alert-icon {\n margin-right: auto;\n margin-left: 15px;\n}\n.ant-anchor {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding-left: 2px;\n}\n.ant-anchor-wrapper {\n margin-left: -4px;\n padding-left: 4px;\n overflow: auto;\n background-color: #fff;\n}\n.ant-anchor-ink {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n}\n.ant-anchor-ink::before {\n position: relative;\n display: block;\n width: 2px;\n height: 100%;\n margin: 0 auto;\n background-color: #f0f0f0;\n content: ' ';\n}\n.ant-anchor-ink-ball {\n position: absolute;\n left: 50%;\n display: none;\n width: 8px;\n height: 8px;\n background-color: #fff;\n border: 2px solid #5b5ce1;\n border-radius: 8px;\n transform: translateX(-50%);\n transition: top 0.3s ease-in-out;\n}\n.ant-anchor-ink-ball.visible {\n display: inline-block;\n}\n.ant-anchor.fixed .ant-anchor-ink .ant-anchor-ink-ball {\n display: none;\n}\n.ant-anchor-link {\n padding: 7px 0 7px 16px;\n line-height: 1.143;\n}\n.ant-anchor-link-title {\n position: relative;\n display: block;\n margin-bottom: 6px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-anchor-link-title:only-child {\n margin-bottom: 0;\n}\n.ant-anchor-link-active > .ant-anchor-link-title {\n color: #5b5ce1;\n}\n.ant-anchor-link .ant-anchor-link {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.ant-anchor-rtl {\n direction: rtl;\n}\n.ant-anchor-rtl.ant-anchor-wrapper {\n margin-right: -4px;\n margin-left: 0;\n padding-right: 4px;\n padding-left: 0;\n}\n.ant-anchor-rtl .ant-anchor-ink {\n right: 0;\n left: auto;\n}\n.ant-anchor-rtl .ant-anchor-ink-ball {\n right: 50%;\n left: 0;\n transform: translateX(50%);\n}\n.ant-anchor-rtl .ant-anchor-link {\n padding: 7px 16px 7px 0;\n}\n.ant-select-auto-complete {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-select-auto-complete .ant-select-clear {\n right: 13px;\n}\n.ant-avatar {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n overflow: hidden;\n color: #fff;\n white-space: nowrap;\n text-align: center;\n vertical-align: middle;\n background: #ccc;\n width: 32px;\n height: 32px;\n line-height: 32px;\n border-radius: 50%;\n}\n.ant-avatar-image {\n background: transparent;\n}\n.ant-avatar .ant-image-img {\n display: block;\n}\n.ant-avatar-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar.ant-avatar-icon {\n font-size: 18px;\n}\n.ant-avatar.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n border-radius: 50%;\n}\n.ant-avatar-lg-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-lg.ant-avatar-icon {\n font-size: 24px;\n}\n.ant-avatar-lg.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 50%;\n}\n.ant-avatar-sm-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-sm.ant-avatar-icon {\n font-size: 14px;\n}\n.ant-avatar-sm.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-square {\n border-radius: 5px;\n}\n.ant-avatar > img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.ant-avatar-group {\n display: inline-flex;\n}\n.ant-avatar-group .ant-avatar {\n border: 1px solid #fff;\n}\n.ant-avatar-group .ant-avatar:not(:first-child) {\n margin-left: -8px;\n}\n.ant-avatar-group-popover .ant-avatar + .ant-avatar {\n margin-left: 3px;\n}\n.ant-avatar-group-rtl .ant-avatar:not(:first-child) {\n margin-right: -8px;\n margin-left: 0;\n}\n.ant-avatar-group-popover.ant-popover-rtl .ant-avatar + .ant-avatar {\n margin-right: 3px;\n margin-left: 0;\n}\n.ant-back-top {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n right: 100px;\n bottom: 50px;\n z-index: 10;\n width: 40px;\n height: 40px;\n cursor: pointer;\n}\n.ant-back-top:empty {\n display: none;\n}\n.ant-back-top-rtl {\n right: auto;\n left: 100px;\n direction: rtl;\n}\n.ant-back-top-content {\n width: 40px;\n height: 40px;\n overflow: hidden;\n color: #fff;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.45);\n border-radius: 20px;\n transition: all 0.3s;\n}\n.ant-back-top-content:hover {\n background-color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-back-top-icon {\n font-size: 24px;\n line-height: 40px;\n}\n@media screen and (max-width: 768px) {\n .ant-back-top {\n right: 60px;\n }\n}\n@media screen and (max-width: 480px) {\n .ant-back-top {\n right: 20px;\n }\n}\n.ant-badge {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n line-height: 1;\n}\n.ant-badge-count {\n z-index: auto;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n color: #fff;\n font-weight: normal;\n font-size: 12px;\n line-height: 20px;\n white-space: nowrap;\n text-align: center;\n background: #ff4d4f;\n border-radius: 10px;\n box-shadow: 0 0 0 1px #fff;\n}\n.ant-badge-count a,\n.ant-badge-count a:hover {\n color: #fff;\n}\n.ant-badge-count-sm {\n min-width: 14px;\n height: 14px;\n padding: 0;\n font-size: 12px;\n line-height: 14px;\n border-radius: 7px;\n}\n.ant-badge-multiple-words {\n padding: 0 8px;\n}\n.ant-badge-dot {\n z-index: auto;\n width: 6px;\n min-width: 6px;\n height: 6px;\n background: #ff4d4f;\n border-radius: 100%;\n box-shadow: 0 0 0 1px #fff;\n}\n.ant-badge-count,\n.ant-badge-dot,\n.ant-badge .ant-scroll-number-custom-component {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n transform-origin: 100% 0%;\n}\n.ant-badge-count.anticon-spin,\n.ant-badge-dot.anticon-spin,\n.ant-badge .ant-scroll-number-custom-component.anticon-spin {\n animation: antBadgeLoadingCircle 1s infinite linear;\n}\n.ant-badge-status {\n line-height: inherit;\n vertical-align: baseline;\n}\n.ant-badge-status-dot {\n position: relative;\n top: -1px;\n display: inline-block;\n width: 6px;\n height: 6px;\n vertical-align: middle;\n border-radius: 50%;\n}\n.ant-badge-status-success {\n background-color: #52c41a;\n}\n.ant-badge-status-processing {\n position: relative;\n background-color: #1890ff;\n}\n.ant-badge-status-processing::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #1890ff;\n border-radius: 50%;\n animation: antStatusProcessing 1.2s infinite ease-in-out;\n content: '';\n}\n.ant-badge-status-default {\n background-color: #d9d9d9;\n}\n.ant-badge-status-error {\n background-color: #ff4d4f;\n}\n.ant-badge-status-warning {\n background-color: #faad14;\n}\n.ant-badge-status-pink {\n background: #eb2f96;\n}\n.ant-badge-status-magenta {\n background: #eb2f96;\n}\n.ant-badge-status-red {\n background: #f5222d;\n}\n.ant-badge-status-volcano {\n background: #fa541c;\n}\n.ant-badge-status-orange {\n background: #fa8c16;\n}\n.ant-badge-status-yellow {\n background: #fadb14;\n}\n.ant-badge-status-gold {\n background: #faad14;\n}\n.ant-badge-status-cyan {\n background: #13c2c2;\n}\n.ant-badge-status-lime {\n background: #a0d911;\n}\n.ant-badge-status-green {\n background: #52c41a;\n}\n.ant-badge-status-blue {\n background: #1890ff;\n}\n.ant-badge-status-geekblue {\n background: #2f54eb;\n}\n.ant-badge-status-purple {\n background: #722ed1;\n}\n.ant-badge-status-text {\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-badge-zoom-appear,\n.ant-badge-zoom-enter {\n animation: antZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n animation-fill-mode: both;\n}\n.ant-badge-zoom-leave {\n animation: antZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);\n animation-fill-mode: both;\n}\n.ant-badge-not-a-wrapper .ant-badge-zoom-appear,\n.ant-badge-not-a-wrapper .ant-badge-zoom-enter {\n animation: antNoWrapperZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n}\n.ant-badge-not-a-wrapper .ant-badge-zoom-leave {\n animation: antNoWrapperZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);\n}\n.ant-badge-not-a-wrapper:not(.ant-badge-status) {\n vertical-align: middle;\n}\n.ant-badge-not-a-wrapper .ant-scroll-number-custom-component {\n transform: none;\n}\n.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,\n.ant-badge-not-a-wrapper .ant-scroll-number {\n position: relative;\n top: auto;\n display: block;\n transform-origin: 50% 50%;\n}\n.ant-badge-not-a-wrapper .ant-badge-count {\n transform: none;\n}\n@keyframes antStatusProcessing {\n 0% {\n transform: scale(0.8);\n opacity: 0.5;\n }\n 100% {\n transform: scale(2.4);\n opacity: 0;\n }\n}\n.ant-scroll-number {\n overflow: hidden;\n}\n.ant-scroll-number-only {\n position: relative;\n display: inline-block;\n height: 20px;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-transform-style: preserve-3d;\n -webkit-backface-visibility: hidden;\n}\n.ant-scroll-number-only > p.ant-scroll-number-only-unit {\n height: 20px;\n margin: 0;\n -webkit-transform-style: preserve-3d;\n -webkit-backface-visibility: hidden;\n}\n.ant-scroll-number-symbol {\n vertical-align: top;\n}\n@keyframes antZoomBadgeIn {\n 0% {\n transform: scale(0) translate(50%, -50%);\n opacity: 0;\n }\n 100% {\n transform: scale(1) translate(50%, -50%);\n }\n}\n@keyframes antZoomBadgeOut {\n 0% {\n transform: scale(1) translate(50%, -50%);\n }\n 100% {\n transform: scale(0) translate(50%, -50%);\n opacity: 0;\n }\n}\n@keyframes antNoWrapperZoomBadgeIn {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes antNoWrapperZoomBadgeOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n}\n@keyframes antBadgeLoadingCircle {\n 0% {\n transform-origin: 50%;\n }\n 100% {\n transform: translate(50%, -50%) rotate(360deg);\n transform-origin: 50%;\n }\n}\n.ant-ribbon-wrapper {\n position: relative;\n}\n.ant-ribbon {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 8px;\n height: 22px;\n padding: 0 8px;\n color: #fff;\n line-height: 22px;\n white-space: nowrap;\n background-color: #5b5ce1;\n border-radius: 5px;\n}\n.ant-ribbon-text {\n color: #fff;\n}\n.ant-ribbon-corner {\n position: absolute;\n top: 100%;\n width: 8px;\n height: 8px;\n color: currentColor;\n border: 4px solid;\n transform: scaleY(0.75);\n transform-origin: top;\n}\n.ant-ribbon-corner::after {\n position: absolute;\n top: -4px;\n left: -4px;\n width: inherit;\n height: inherit;\n color: rgba(0, 0, 0, 0.25);\n border: inherit;\n content: '';\n}\n.ant-ribbon-color-pink {\n color: #eb2f96;\n background: #eb2f96;\n}\n.ant-ribbon-color-magenta {\n color: #eb2f96;\n background: #eb2f96;\n}\n.ant-ribbon-color-red {\n color: #f5222d;\n background: #f5222d;\n}\n.ant-ribbon-color-volcano {\n color: #fa541c;\n background: #fa541c;\n}\n.ant-ribbon-color-orange {\n color: #fa8c16;\n background: #fa8c16;\n}\n.ant-ribbon-color-yellow {\n color: #fadb14;\n background: #fadb14;\n}\n.ant-ribbon-color-gold {\n color: #faad14;\n background: #faad14;\n}\n.ant-ribbon-color-cyan {\n color: #13c2c2;\n background: #13c2c2;\n}\n.ant-ribbon-color-lime {\n color: #a0d911;\n background: #a0d911;\n}\n.ant-ribbon-color-green {\n color: #52c41a;\n background: #52c41a;\n}\n.ant-ribbon-color-blue {\n color: #1890ff;\n background: #1890ff;\n}\n.ant-ribbon-color-geekblue {\n color: #2f54eb;\n background: #2f54eb;\n}\n.ant-ribbon-color-purple {\n color: #722ed1;\n background: #722ed1;\n}\n.ant-ribbon.ant-ribbon-placement-end {\n right: -8px;\n border-bottom-right-radius: 0;\n}\n.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner {\n right: 0;\n border-color: currentColor transparent transparent currentColor;\n}\n.ant-ribbon.ant-ribbon-placement-start {\n left: -8px;\n border-bottom-left-radius: 0;\n}\n.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner {\n left: 0;\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-badge-rtl {\n direction: rtl;\n}\n.ant-badge-rtl .ant-badge-count,\n.ant-badge-rtl .ant-badge-dot,\n.ant-badge-rtl .ant-badge .ant-scroll-number-custom-component {\n right: auto;\n left: 0;\n direction: ltr;\n transform: translate(-50%, -50%);\n transform-origin: 0% 0%;\n}\n.ant-badge-rtl.ant-badge .ant-scroll-number-custom-component {\n right: auto;\n left: 0;\n transform: translate(-50%, -50%);\n transform-origin: 0% 0%;\n}\n.ant-badge-rtl .ant-badge-status-text {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-badge-rtl .ant-badge-zoom-appear,\n.ant-badge-rtl .ant-badge-zoom-enter {\n animation-name: antZoomBadgeInRtl;\n}\n.ant-badge-rtl .ant-badge-zoom-leave {\n animation-name: antZoomBadgeOutRtl;\n}\n.ant-badge-not-a-wrapper .ant-badge-count {\n transform: none;\n}\n.ant-ribbon-rtl {\n direction: rtl;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end {\n right: unset;\n left: -8px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner {\n right: unset;\n left: 0;\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner::after {\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start {\n right: -8px;\n left: unset;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner {\n right: 0;\n left: unset;\n border-color: currentColor transparent transparent currentColor;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner::after {\n border-color: currentColor transparent transparent currentColor;\n}\n@keyframes antZoomBadgeInRtl {\n 0% {\n transform: scale(0) translate(-50%, -50%);\n opacity: 0;\n }\n 100% {\n transform: scale(1) translate(-50%, -50%);\n }\n}\n@keyframes antZoomBadgeOutRtl {\n 0% {\n transform: scale(1) translate(-50%, -50%);\n }\n 100% {\n transform: scale(0) translate(-50%, -50%);\n opacity: 0;\n }\n}\n.ant-breadcrumb {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-breadcrumb .anticon {\n font-size: 14px;\n}\n.ant-breadcrumb a {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-breadcrumb a:hover {\n color: #8588ed;\n}\n.ant-breadcrumb > span:last-child {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-breadcrumb > span:last-child a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-breadcrumb > span:last-child .ant-breadcrumb-separator {\n display: none;\n}\n.ant-breadcrumb-separator {\n margin: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-breadcrumb-link > .anticon + span,\n.ant-breadcrumb-link > .anticon + a {\n margin-left: 4px;\n}\n.ant-breadcrumb-overlay-link > .anticon {\n margin-left: 4px;\n}\n.ant-breadcrumb-rtl {\n direction: rtl;\n}\n.ant-breadcrumb-rtl::before {\n display: table;\n content: '';\n}\n.ant-breadcrumb-rtl::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-breadcrumb-rtl::before {\n display: table;\n content: '';\n}\n.ant-breadcrumb-rtl::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-breadcrumb-rtl > span {\n float: right;\n}\n.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + span,\n.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + a {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link > .anticon {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-btn {\n line-height: 1.5715;\n position: relative;\n display: inline-block;\n font-weight: 400;\n white-space: nowrap;\n text-align: center;\n background-image: none;\n border: 1px solid transparent;\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n user-select: none;\n touch-action: manipulation;\n height: 32px;\n padding: 4px 15px;\n font-size: 14px;\n border-radius: 5px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-color: #d9d9d9;\n}\n.ant-btn > .anticon {\n line-height: 1;\n}\n.ant-btn,\n.ant-btn:active,\n.ant-btn:focus {\n outline: 0;\n}\n.ant-btn:not([disabled]):hover {\n text-decoration: none;\n}\n.ant-btn:not([disabled]):active {\n outline: 0;\n box-shadow: none;\n}\n.ant-btn[disabled] {\n cursor: not-allowed;\n}\n.ant-btn[disabled] > * {\n pointer-events: none;\n}\n.ant-btn-lg {\n height: 40px;\n padding: 6.4px 15px;\n font-size: 16px;\n border-radius: 5px;\n}\n.ant-btn-sm {\n height: 24px;\n padding: 0px 7px;\n font-size: 14px;\n border-radius: 5px;\n}\n.ant-btn > a:only-child {\n color: currentColor;\n}\n.ant-btn > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:hover,\n.ant-btn:focus {\n color: #8588ed;\n background: #fff;\n border-color: #8588ed;\n}\n.ant-btn:hover > a:only-child,\n.ant-btn:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn:hover > a:only-child::after,\n.ant-btn:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:active {\n color: #4541ba;\n background: #fff;\n border-color: #4541ba;\n}\n.ant-btn:active > a:only-child {\n color: currentColor;\n}\n.ant-btn:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn[disabled],\n.ant-btn[disabled]:hover,\n.ant-btn[disabled]:focus,\n.ant-btn[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn[disabled] > a:only-child,\n.ant-btn[disabled]:hover > a:only-child,\n.ant-btn[disabled]:focus > a:only-child,\n.ant-btn[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn[disabled] > a:only-child::after,\n.ant-btn[disabled]:hover > a:only-child::after,\n.ant-btn[disabled]:focus > a:only-child::after,\n.ant-btn[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:hover,\n.ant-btn:focus,\n.ant-btn:active {\n text-decoration: none;\n background: #fff;\n}\n.ant-btn > span {\n display: inline-block;\n}\n.ant-btn-primary {\n color: #fff;\n background: #5b5ce1;\n border-color: #5b5ce1;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary:hover,\n.ant-btn-primary:focus {\n color: #fff;\n background: #8588ed;\n border-color: #8588ed;\n}\n.ant-btn-primary:hover > a:only-child,\n.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary:active {\n color: #fff;\n background: #4541ba;\n border-color: #4541ba;\n}\n.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary[disabled],\n.ant-btn-primary[disabled]:hover,\n.ant-btn-primary[disabled]:focus,\n.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child) {\n border-right-color: #8588ed;\n border-left-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child):disabled {\n border-color: #d9d9d9;\n}\n.ant-btn-group .ant-btn-primary:first-child:not(:last-child) {\n border-right-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:first-child:not(:last-child)[disabled] {\n border-right-color: #d9d9d9;\n}\n.ant-btn-group .ant-btn-primary:last-child:not(:first-child),\n.ant-btn-group .ant-btn-primary + .ant-btn-primary {\n border-left-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled],\n.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {\n border-left-color: #d9d9d9;\n}\n.ant-btn-ghost {\n color: rgba(0, 0, 0, 0.85);\n background: transparent;\n border-color: #d9d9d9;\n}\n.ant-btn-ghost > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost:hover,\n.ant-btn-ghost:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-ghost:hover > a:only-child,\n.ant-btn-ghost:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost:hover > a:only-child::after,\n.ant-btn-ghost:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-ghost:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost[disabled],\n.ant-btn-ghost[disabled]:hover,\n.ant-btn-ghost[disabled]:focus,\n.ant-btn-ghost[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-ghost[disabled] > a:only-child,\n.ant-btn-ghost[disabled]:hover > a:only-child,\n.ant-btn-ghost[disabled]:focus > a:only-child,\n.ant-btn-ghost[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost[disabled] > a:only-child::after,\n.ant-btn-ghost[disabled]:hover > a:only-child::after,\n.ant-btn-ghost[disabled]:focus > a:only-child::after,\n.ant-btn-ghost[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-color: #d9d9d9;\n border-style: dashed;\n}\n.ant-btn-dashed > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed:hover,\n.ant-btn-dashed:focus {\n color: #8588ed;\n background: #fff;\n border-color: #8588ed;\n}\n.ant-btn-dashed:hover > a:only-child,\n.ant-btn-dashed:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed:hover > a:only-child::after,\n.ant-btn-dashed:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed:active {\n color: #4541ba;\n background: #fff;\n border-color: #4541ba;\n}\n.ant-btn-dashed:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed[disabled],\n.ant-btn-dashed[disabled]:hover,\n.ant-btn-dashed[disabled]:focus,\n.ant-btn-dashed[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dashed[disabled] > a:only-child,\n.ant-btn-dashed[disabled]:hover > a:only-child,\n.ant-btn-dashed[disabled]:focus > a:only-child,\n.ant-btn-dashed[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed[disabled] > a:only-child::after,\n.ant-btn-dashed[disabled]:hover > a:only-child::after,\n.ant-btn-dashed[disabled]:focus > a:only-child::after,\n.ant-btn-dashed[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger {\n color: #fff;\n background: #ff4d4f;\n border-color: #ff4d4f;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-danger > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger:hover,\n.ant-btn-danger:focus {\n color: #fff;\n background: #ff7875;\n border-color: #ff7875;\n}\n.ant-btn-danger:hover > a:only-child,\n.ant-btn-danger:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger:hover > a:only-child::after,\n.ant-btn-danger:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger:active {\n color: #fff;\n background: #d9363e;\n border-color: #d9363e;\n}\n.ant-btn-danger:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger[disabled],\n.ant-btn-danger[disabled]:hover,\n.ant-btn-danger[disabled]:focus,\n.ant-btn-danger[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-danger[disabled] > a:only-child,\n.ant-btn-danger[disabled]:hover > a:only-child,\n.ant-btn-danger[disabled]:focus > a:only-child,\n.ant-btn-danger[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger[disabled] > a:only-child::after,\n.ant-btn-danger[disabled]:hover > a:only-child::after,\n.ant-btn-danger[disabled]:focus > a:only-child::after,\n.ant-btn-danger[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link {\n color: #5b5ce1;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:hover,\n.ant-btn-link:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-link:hover > a:only-child,\n.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-link:hover > a:only-child::after,\n.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link[disabled],\n.ant-btn-link[disabled]:hover,\n.ant-btn-link[disabled]:focus,\n.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-link[disabled] > a:only-child,\n.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:hover {\n background: transparent;\n}\n.ant-btn-link:hover,\n.ant-btn-link:focus,\n.ant-btn-link:active {\n border-color: transparent;\n}\n.ant-btn-link[disabled],\n.ant-btn-link[disabled]:hover,\n.ant-btn-link[disabled]:focus,\n.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-link[disabled] > a:only-child,\n.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text {\n color: rgba(0, 0, 0, 0.85);\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-text > a:only-child {\n color: currentColor;\n}\n.ant-btn-text > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:hover,\n.ant-btn-text:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-text:hover > a:only-child,\n.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-text:hover > a:only-child::after,\n.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text[disabled],\n.ant-btn-text[disabled]:hover,\n.ant-btn-text[disabled]:focus,\n.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-text[disabled] > a:only-child,\n.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:hover,\n.ant-btn-text:focus {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.018);\n border-color: transparent;\n}\n.ant-btn-text:active {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.028);\n border-color: transparent;\n}\n.ant-btn-text[disabled],\n.ant-btn-text[disabled]:hover,\n.ant-btn-text[disabled]:focus,\n.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-text[disabled] > a:only-child,\n.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous {\n color: #ff4d4f;\n background: #fff;\n border-color: #ff4d4f;\n}\n.ant-btn-dangerous > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous:hover,\n.ant-btn-dangerous:focus {\n color: #ff7875;\n background: #fff;\n border-color: #ff7875;\n}\n.ant-btn-dangerous:hover > a:only-child,\n.ant-btn-dangerous:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous:hover > a:only-child::after,\n.ant-btn-dangerous:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous:active {\n color: #d9363e;\n background: #fff;\n border-color: #d9363e;\n}\n.ant-btn-dangerous:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous[disabled],\n.ant-btn-dangerous[disabled]:hover,\n.ant-btn-dangerous[disabled]:focus,\n.ant-btn-dangerous[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous[disabled] > a:only-child,\n.ant-btn-dangerous[disabled]:hover > a:only-child,\n.ant-btn-dangerous[disabled]:focus > a:only-child,\n.ant-btn-dangerous[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous[disabled] > a:only-child::after,\n.ant-btn-dangerous[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary {\n color: #fff;\n background: #ff4d4f;\n border-color: #ff4d4f;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-dangerous.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary:hover,\n.ant-btn-dangerous.ant-btn-primary:focus {\n color: #fff;\n background: #ff7875;\n border-color: #ff7875;\n}\n.ant-btn-dangerous.ant-btn-primary:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary:active {\n color: #fff;\n background: #d9363e;\n border-color: #d9363e;\n}\n.ant-btn-dangerous.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary[disabled],\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-dangerous.ant-btn-link:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-dangerous.ant-btn-link:focus {\n color: #ff7875;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:active {\n color: #d9363e;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:hover,\n.ant-btn-dangerous.ant-btn-text:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text[disabled],\n.ant-btn-dangerous.ant-btn-text[disabled]:hover,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus,\n.ant-btn-dangerous.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:hover,\n.ant-btn-dangerous.ant-btn-text:focus {\n color: #ff7875;\n background: rgba(0, 0, 0, 0.018);\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:active {\n color: #d9363e;\n background: rgba(0, 0, 0, 0.028);\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text[disabled],\n.ant-btn-dangerous.ant-btn-text[disabled]:hover,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus,\n.ant-btn-dangerous.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-icon-only {\n width: 32px;\n height: 32px;\n padding: 2.4px 0;\n font-size: 16px;\n border-radius: 5px;\n vertical-align: -1px;\n}\n.ant-btn-icon-only > * {\n font-size: 16px;\n}\n.ant-btn-icon-only.ant-btn-lg {\n width: 40px;\n height: 40px;\n padding: 4.9px 0;\n font-size: 18px;\n border-radius: 5px;\n}\n.ant-btn-icon-only.ant-btn-lg > * {\n font-size: 18px;\n}\n.ant-btn-icon-only.ant-btn-sm {\n width: 24px;\n height: 24px;\n padding: 0px 0;\n font-size: 14px;\n border-radius: 5px;\n}\n.ant-btn-icon-only.ant-btn-sm > * {\n font-size: 14px;\n}\n.ant-btn-round {\n height: 32px;\n padding: 4px 16px;\n font-size: 14px;\n border-radius: 32px;\n}\n.ant-btn-round.ant-btn-lg {\n height: 40px;\n padding: 6.4px 20px;\n font-size: 16px;\n border-radius: 40px;\n}\n.ant-btn-round.ant-btn-sm {\n height: 24px;\n padding: 0px 12px;\n font-size: 14px;\n border-radius: 24px;\n}\n.ant-btn-round.ant-btn-icon-only {\n width: auto;\n}\n.ant-btn-circle {\n min-width: 32px;\n padding-right: 0;\n padding-left: 0;\n text-align: center;\n border-radius: 50%;\n}\n.ant-btn-circle.ant-btn-lg {\n min-width: 40px;\n border-radius: 50%;\n}\n.ant-btn-circle.ant-btn-sm {\n min-width: 24px;\n border-radius: 50%;\n}\n.ant-btn::before {\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n z-index: 1;\n display: none;\n background: #fff;\n border-radius: inherit;\n opacity: 0.35;\n transition: opacity 0.2s;\n content: '';\n pointer-events: none;\n}\n.ant-btn .anticon {\n transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-btn .anticon.anticon-plus > svg,\n.ant-btn .anticon.anticon-minus > svg {\n shape-rendering: optimizeSpeed;\n}\n.ant-btn.ant-btn-loading {\n position: relative;\n}\n.ant-btn.ant-btn-loading:not([disabled]) {\n pointer-events: none;\n}\n.ant-btn.ant-btn-loading::before {\n display: block;\n}\n.ant-btn > .ant-btn-loading-icon {\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-btn > .ant-btn-loading-icon .anticon {\n padding-right: 8px;\n animation: none;\n}\n.ant-btn > .ant-btn-loading-icon .anticon svg {\n animation: loadingCircle 1s infinite linear;\n}\n.ant-btn > .ant-btn-loading-icon:only-child .anticon {\n padding-right: 0;\n}\n.ant-btn-group {\n position: relative;\n display: inline-flex;\n}\n.ant-btn-group > .ant-btn,\n.ant-btn-group > span > .ant-btn {\n position: relative;\n}\n.ant-btn-group > .ant-btn:hover,\n.ant-btn-group > span > .ant-btn:hover,\n.ant-btn-group > .ant-btn:focus,\n.ant-btn-group > span > .ant-btn:focus,\n.ant-btn-group > .ant-btn:active,\n.ant-btn-group > span > .ant-btn:active {\n z-index: 2;\n}\n.ant-btn-group > .ant-btn[disabled],\n.ant-btn-group > span > .ant-btn[disabled] {\n z-index: 0;\n}\n.ant-btn-group .ant-btn-icon-only {\n font-size: 14px;\n}\n.ant-btn-group-lg > .ant-btn,\n.ant-btn-group-lg > span > .ant-btn {\n height: 40px;\n padding: 6.4px 15px;\n font-size: 16px;\n border-radius: 0;\n}\n.ant-btn-group-lg .ant-btn.ant-btn-icon-only {\n width: 40px;\n height: 40px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-group-sm > .ant-btn,\n.ant-btn-group-sm > span > .ant-btn {\n height: 24px;\n padding: 0px 7px;\n font-size: 14px;\n border-radius: 0;\n}\n.ant-btn-group-sm > .ant-btn > .anticon,\n.ant-btn-group-sm > span > .ant-btn > .anticon {\n font-size: 14px;\n}\n.ant-btn-group-sm .ant-btn.ant-btn-icon-only {\n width: 24px;\n height: 24px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn + .ant-btn-group,\n.ant-btn-group span + .ant-btn,\n.ant-btn-group .ant-btn + span,\n.ant-btn-group > span + span,\n.ant-btn-group + .ant-btn,\n.ant-btn-group + .ant-btn-group {\n margin-left: -1px;\n}\n.ant-btn-group .ant-btn-primary + .ant-btn:not(.ant-btn-primary):not([disabled]) {\n border-left-color: transparent;\n}\n.ant-btn-group .ant-btn {\n border-radius: 0;\n}\n.ant-btn-group > .ant-btn:first-child,\n.ant-btn-group > span:first-child > .ant-btn {\n margin-left: 0;\n}\n.ant-btn-group > .ant-btn:only-child {\n border-radius: 5px;\n}\n.ant-btn-group > span:only-child > .ant-btn {\n border-radius: 5px;\n}\n.ant-btn-group > .ant-btn:first-child:not(:last-child),\n.ant-btn-group > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group > .ant-btn:last-child:not(:first-child),\n.ant-btn-group > span:last-child:not(:first-child) > .ant-btn {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:only-child {\n border-radius: 5px;\n}\n.ant-btn-group-sm > span:only-child > .ant-btn {\n border-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-btn-group > .ant-btn-group {\n float: left;\n}\n.ant-btn-group > .ant-btn-group:not(:first-child):not(:last-child) > .ant-btn {\n border-radius: 0;\n}\n.ant-btn-group > .ant-btn-group:first-child:not(:last-child) > .ant-btn:last-child {\n padding-right: 8px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-btn-group > .ant-btn-group:last-child:not(:first-child) > .ant-btn:first-child {\n padding-left: 8px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-btn-rtl.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn-rtl.ant-btn + .ant-btn-group,\n.ant-btn-rtl.ant-btn-group span + .ant-btn,\n.ant-btn-rtl.ant-btn-group .ant-btn + span,\n.ant-btn-rtl.ant-btn-group > span + span,\n.ant-btn-rtl.ant-btn-group + .ant-btn,\n.ant-btn-rtl.ant-btn-group + .ant-btn-group,\n.ant-btn-group-rtl.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn-group-rtl.ant-btn + .ant-btn-group,\n.ant-btn-group-rtl.ant-btn-group span + .ant-btn,\n.ant-btn-group-rtl.ant-btn-group .ant-btn + span,\n.ant-btn-group-rtl.ant-btn-group > span + span,\n.ant-btn-group-rtl.ant-btn-group + .ant-btn,\n.ant-btn-group-rtl.ant-btn-group + .ant-btn-group {\n margin-right: -1px;\n margin-left: auto;\n}\n.ant-btn-group.ant-btn-group-rtl {\n direction: rtl;\n}\n.ant-btn-group-rtl.ant-btn-group > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-rtl.ant-btn-group > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-btn-group-rtl.ant-btn-group > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group > span:last-child:not(:first-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-rtl.ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-btn:focus > span,\n.ant-btn:active > span {\n position: relative;\n}\n.ant-btn > .anticon + span,\n.ant-btn > span + .anticon {\n margin-left: 8px;\n}\n.ant-btn-background-ghost {\n color: #fff;\n background: transparent !important;\n border-color: #fff;\n}\n.ant-btn-background-ghost.ant-btn-primary {\n color: #5b5ce1;\n background: transparent;\n border-color: #5b5ce1;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary:hover,\n.ant-btn-background-ghost.ant-btn-primary:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-background-ghost.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled],\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger {\n color: #ff4d4f;\n background: transparent;\n border-color: #ff4d4f;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-danger > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger:hover,\n.ant-btn-background-ghost.ant-btn-danger:focus {\n color: #ff7875;\n background: transparent;\n border-color: #ff7875;\n}\n.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger:active {\n color: #d9363e;\n background: transparent;\n border-color: #d9363e;\n}\n.ant-btn-background-ghost.ant-btn-danger:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled],\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous {\n color: #ff4d4f;\n background: transparent;\n border-color: #ff4d4f;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover,\n.ant-btn-background-ghost.ant-btn-dangerous:focus {\n color: #ff7875;\n background: transparent;\n border-color: #ff7875;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active {\n color: #d9363e;\n background: transparent;\n border-color: #d9363e;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled],\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus {\n color: #ff7875;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active {\n color: #d9363e;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-two-chinese-chars::first-letter {\n letter-spacing: 0.34em;\n}\n.ant-btn-two-chinese-chars > *:not(.anticon) {\n margin-right: -0.34em;\n letter-spacing: 0.34em;\n}\n.ant-btn-block {\n width: 100%;\n}\n.ant-btn:empty {\n display: inline-block;\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\na.ant-btn {\n padding-top: 0.01px !important;\n line-height: 30px;\n}\na.ant-btn-lg {\n line-height: 38px;\n}\na.ant-btn-sm {\n line-height: 22px;\n}\n.ant-btn-rtl {\n direction: rtl;\n}\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary {\n border-right-color: #8588ed;\n border-left-color: #d9d9d9;\n}\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled],\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {\n border-right-color: #d9d9d9;\n border-left-color: #8588ed;\n}\n.ant-btn-rtl.ant-btn > .ant-btn-loading-icon .anticon {\n padding-right: 0;\n padding-left: 8px;\n}\n.ant-btn > .ant-btn-loading-icon:only-child .anticon {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-rtl.ant-btn > .anticon + span,\n.ant-btn-rtl.ant-btn > span + .anticon {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n}\n.ant-picker-calendar-header {\n display: flex;\n justify-content: flex-end;\n padding: 12px 0;\n}\n.ant-picker-calendar-header .ant-picker-calendar-year-select {\n min-width: 80px;\n}\n.ant-picker-calendar-header .ant-picker-calendar-month-select {\n min-width: 70px;\n margin-left: 8px;\n}\n.ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n margin-left: 8px;\n}\n.ant-picker-calendar .ant-picker-panel {\n background: #fff;\n border: 0;\n border-top: 1px solid #f0f0f0;\n border-radius: 0;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-month-panel,\n.ant-picker-calendar .ant-picker-panel .ant-picker-date-panel {\n width: auto;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-body {\n padding: 8px 0;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-content {\n width: 100%;\n}\n.ant-picker-calendar-mini {\n border-radius: 5px;\n}\n.ant-picker-calendar-mini .ant-picker-calendar-header {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-picker-calendar-mini .ant-picker-panel {\n border-radius: 0 0 5px 5px;\n}\n.ant-picker-calendar-mini .ant-picker-content {\n height: 256px;\n}\n.ant-picker-calendar-mini .ant-picker-content th {\n height: auto;\n padding: 0;\n line-height: 18px;\n}\n.ant-picker-calendar-full .ant-picker-panel {\n display: block;\n width: 100%;\n text-align: right;\n background: #fff;\n border: 0;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body td {\n padding: 0;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th {\n height: auto;\n padding: 0 12px 5px 0;\n line-height: 18px;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell::before {\n display: none;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell:hover .ant-picker-calendar-date {\n background: #f5f5f5;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell .ant-picker-calendar-date-today::before {\n display: none;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today {\n background: #f0f2ff;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today .ant-picker-calendar-date-value {\n color: #5b5ce1;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date {\n display: block;\n width: auto;\n height: auto;\n margin: 0 4px;\n padding: 4px 8px 0;\n border: 0;\n border-top: 2px solid #f0f0f0;\n border-radius: 0;\n transition: background 0.3s;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-value {\n line-height: 24px;\n transition: color 0.3s;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content {\n position: static;\n width: auto;\n height: 86px;\n overflow-y: auto;\n color: rgba(0, 0, 0, 0.85);\n line-height: 1.5715;\n text-align: left;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today {\n border-color: #5b5ce1;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today .ant-picker-calendar-date-value {\n color: rgba(0, 0, 0, 0.85);\n}\n@media only screen and (max-width: 480px) {\n .ant-picker-calendar-header {\n display: block;\n }\n .ant-picker-calendar-header .ant-picker-calendar-year-select {\n width: 50%;\n }\n .ant-picker-calendar-header .ant-picker-calendar-month-select {\n width: calc(50% - 8px);\n }\n .ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n width: 100%;\n margin-top: 8px;\n margin-left: 0;\n }\n .ant-picker-calendar-header .ant-picker-calendar-mode-switch > label {\n width: 50%;\n text-align: center;\n }\n}\n.ant-picker-calendar-rtl {\n direction: rtl;\n}\n.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-month-select {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel {\n text-align: left;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th {\n padding: 0 0 5px 12px;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content {\n text-align: right;\n}\n.ant-card {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n background: #fff;\n border-radius: 5px;\n}\n.ant-card-rtl {\n direction: rtl;\n}\n.ant-card-hoverable {\n cursor: pointer;\n transition: box-shadow 0.3s, border-color 0.3s;\n}\n.ant-card-hoverable:hover {\n border-color: transparent;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.ant-card-bordered {\n border: 1px solid #f0f0f0;\n}\n.ant-card-head {\n min-height: 48px;\n margin-bottom: -1px;\n padding: 0 24px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n background: transparent;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-card-head::before {\n display: table;\n content: '';\n}\n.ant-card-head::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-head::before {\n display: table;\n content: '';\n}\n.ant-card-head::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-head-wrapper {\n display: flex;\n align-items: center;\n}\n.ant-card-head-title {\n display: inline-block;\n flex: 1;\n padding: 16px 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-card-head-title > .ant-typography,\n.ant-card-head-title > .ant-typography-edit-content {\n left: 0;\n margin-top: 0;\n margin-bottom: 0;\n}\n.ant-card-head .ant-tabs {\n clear: both;\n margin-bottom: -17px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-card-head .ant-tabs-bar {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-card-extra {\n float: right;\n margin-left: auto;\n padding: 16px 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-card-rtl .ant-card-extra {\n margin-right: auto;\n margin-left: 0;\n}\n.ant-card-body {\n padding: 24px;\n}\n.ant-card-body::before {\n display: table;\n content: '';\n}\n.ant-card-body::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-body::before {\n display: table;\n content: '';\n}\n.ant-card-body::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body {\n margin: -1px 0 0 -1px;\n padding: 0;\n}\n.ant-card-grid {\n float: left;\n width: 33.33%;\n padding: 24px;\n border: 0;\n border-radius: 0;\n box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;\n transition: all 0.3s;\n}\n.ant-card-rtl .ant-card-grid {\n float: right;\n}\n.ant-card-grid-hoverable:hover {\n position: relative;\n z-index: 1;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.ant-card-contain-tabs > .ant-card-head .ant-card-head-title {\n min-height: 32px;\n padding-bottom: 0;\n}\n.ant-card-contain-tabs > .ant-card-head .ant-card-extra {\n padding-bottom: 0;\n}\n.ant-card-bordered .ant-card-cover {\n margin-top: -1px;\n margin-right: -1px;\n margin-left: -1px;\n}\n.ant-card-cover > * {\n display: block;\n width: 100%;\n}\n.ant-card-cover img {\n border-radius: 5px 5px 0 0;\n}\n.ant-card-actions {\n margin: 0;\n padding: 0;\n list-style: none;\n background: #fff;\n border-top: 1px solid #f0f0f0;\n}\n.ant-card-actions::before {\n display: table;\n content: '';\n}\n.ant-card-actions::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-actions::before {\n display: table;\n content: '';\n}\n.ant-card-actions::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-actions > li {\n float: left;\n margin: 12px 0;\n color: rgba(0, 0, 0, 0.45);\n text-align: center;\n}\n.ant-card-rtl .ant-card-actions > li {\n float: right;\n}\n.ant-card-actions > li > span {\n position: relative;\n display: block;\n min-width: 32px;\n font-size: 14px;\n line-height: 1.5715;\n cursor: pointer;\n}\n.ant-card-actions > li > span:hover {\n color: #5b5ce1;\n transition: color 0.3s;\n}\n.ant-card-actions > li > span a:not(.ant-btn),\n.ant-card-actions > li > span > .anticon {\n display: inline-block;\n width: 100%;\n color: rgba(0, 0, 0, 0.45);\n line-height: 22px;\n transition: color 0.3s;\n}\n.ant-card-actions > li > span a:not(.ant-btn):hover,\n.ant-card-actions > li > span > .anticon:hover {\n color: #5b5ce1;\n}\n.ant-card-actions > li > span > .anticon {\n font-size: 16px;\n line-height: 22px;\n}\n.ant-card-actions > li:not(:last-child) {\n border-right: 1px solid #f0f0f0;\n}\n.ant-card-rtl .ant-card-actions > li:not(:last-child) {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-card-type-inner .ant-card-head {\n padding: 0 24px;\n background: #fafafa;\n}\n.ant-card-type-inner .ant-card-head-title {\n padding: 12px 0;\n font-size: 14px;\n}\n.ant-card-type-inner .ant-card-body {\n padding: 16px 24px;\n}\n.ant-card-type-inner .ant-card-extra {\n padding: 13.5px 0;\n}\n.ant-card-meta {\n margin: -4px 0;\n}\n.ant-card-meta::before {\n display: table;\n content: '';\n}\n.ant-card-meta::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-meta::before {\n display: table;\n content: '';\n}\n.ant-card-meta::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-meta-avatar {\n float: left;\n padding-right: 16px;\n}\n.ant-card-rtl .ant-card-meta-avatar {\n float: right;\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-card-meta-detail {\n overflow: hidden;\n}\n.ant-card-meta-detail > div:not(:last-child) {\n margin-bottom: 8px;\n}\n.ant-card-meta-title {\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-card-meta-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-card-loading {\n overflow: hidden;\n}\n.ant-card-loading .ant-card-body {\n user-select: none;\n}\n.ant-card-loading-content p {\n margin: 0;\n}\n.ant-card-loading-block {\n height: 14px;\n margin: 4px 0;\n background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));\n background-size: 600% 600%;\n border-radius: 5px;\n animation: card-loading 1.4s ease infinite;\n}\n@keyframes card-loading {\n 0%,\n 100% {\n background-position: 0 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n}\n.ant-card-small > .ant-card-head {\n min-height: 36px;\n padding: 0 12px;\n font-size: 14px;\n}\n.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title {\n padding: 8px 0;\n}\n.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra {\n padding: 8px 0;\n font-size: 14px;\n}\n.ant-card-small > .ant-card-body {\n padding: 12px;\n}\n.ant-carousel {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-carousel .slick-slider {\n position: relative;\n display: block;\n box-sizing: border-box;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: transparent;\n}\n.ant-carousel .slick-list {\n position: relative;\n display: block;\n margin: 0;\n padding: 0;\n overflow: hidden;\n}\n.ant-carousel .slick-list:focus {\n outline: none;\n}\n.ant-carousel .slick-list.dragging {\n cursor: pointer;\n}\n.ant-carousel .slick-list .slick-slide {\n pointer-events: none;\n}\n.ant-carousel .slick-list .slick-slide input.ant-radio-input,\n.ant-carousel .slick-list .slick-slide input.ant-checkbox-input {\n visibility: hidden;\n}\n.ant-carousel .slick-list .slick-slide.slick-active {\n pointer-events: auto;\n}\n.ant-carousel .slick-list .slick-slide.slick-active input.ant-radio-input,\n.ant-carousel .slick-list .slick-slide.slick-active input.ant-checkbox-input {\n visibility: visible;\n}\n.ant-carousel .slick-list .slick-slide > div > div {\n vertical-align: bottom;\n}\n.ant-carousel .slick-slider .slick-track,\n.ant-carousel .slick-slider .slick-list {\n transform: translate3d(0, 0, 0);\n touch-action: pan-y;\n}\n.ant-carousel .slick-track {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n}\n.ant-carousel .slick-track::before,\n.ant-carousel .slick-track::after {\n display: table;\n content: '';\n}\n.ant-carousel .slick-track::after {\n clear: both;\n}\n.slick-loading .ant-carousel .slick-track {\n visibility: hidden;\n}\n.ant-carousel .slick-slide {\n display: none;\n float: left;\n height: 100%;\n min-height: 1px;\n}\n.ant-carousel .slick-slide img {\n display: block;\n}\n.ant-carousel .slick-slide.slick-loading img {\n display: none;\n}\n.ant-carousel .slick-slide.dragging img {\n pointer-events: none;\n}\n.ant-carousel .slick-initialized .slick-slide {\n display: block;\n}\n.ant-carousel .slick-loading .slick-slide {\n visibility: hidden;\n}\n.ant-carousel .slick-vertical .slick-slide {\n display: block;\n height: auto;\n}\n.ant-carousel .slick-arrow.slick-hidden {\n display: none;\n}\n.ant-carousel .slick-prev,\n.ant-carousel .slick-next {\n position: absolute;\n top: 50%;\n display: block;\n width: 20px;\n height: 20px;\n margin-top: -10px;\n padding: 0;\n color: transparent;\n font-size: 0;\n line-height: 0;\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n}\n.ant-carousel .slick-prev:hover,\n.ant-carousel .slick-next:hover,\n.ant-carousel .slick-prev:focus,\n.ant-carousel .slick-next:focus {\n color: transparent;\n background: transparent;\n outline: none;\n}\n.ant-carousel .slick-prev:hover::before,\n.ant-carousel .slick-next:hover::before,\n.ant-carousel .slick-prev:focus::before,\n.ant-carousel .slick-next:focus::before {\n opacity: 1;\n}\n.ant-carousel .slick-prev.slick-disabled::before,\n.ant-carousel .slick-next.slick-disabled::before {\n opacity: 0.25;\n}\n.ant-carousel .slick-prev {\n left: -25px;\n}\n.ant-carousel .slick-prev::before {\n content: '←';\n}\n.ant-carousel .slick-next {\n right: -25px;\n}\n.ant-carousel .slick-next::before {\n content: '→';\n}\n.ant-carousel .slick-dots {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 15;\n display: flex !important;\n justify-content: center;\n margin-right: 15%;\n margin-left: 15%;\n padding-left: 0;\n list-style: none;\n}\n.ant-carousel .slick-dots-bottom {\n bottom: 12px;\n}\n.ant-carousel .slick-dots-top {\n top: 12px;\n bottom: auto;\n}\n.ant-carousel .slick-dots li {\n position: relative;\n display: inline-block;\n flex: 0 1 auto;\n box-sizing: content-box;\n width: 16px;\n height: 3px;\n margin: 0 2px;\n margin-right: 3px;\n margin-left: 3px;\n padding: 0;\n text-align: center;\n text-indent: -999px;\n vertical-align: top;\n transition: all 0.5s;\n}\n.ant-carousel .slick-dots li button {\n display: block;\n width: 100%;\n height: 3px;\n padding: 0;\n color: transparent;\n font-size: 0;\n background: #fff;\n border: 0;\n border-radius: 1px;\n outline: none;\n cursor: pointer;\n opacity: 0.3;\n transition: all 0.5s;\n}\n.ant-carousel .slick-dots li button:hover,\n.ant-carousel .slick-dots li button:focus {\n opacity: 0.75;\n}\n.ant-carousel .slick-dots li.slick-active {\n width: 24px;\n}\n.ant-carousel .slick-dots li.slick-active button {\n background: #fff;\n opacity: 1;\n}\n.ant-carousel .slick-dots li.slick-active:hover,\n.ant-carousel .slick-dots li.slick-active:focus {\n opacity: 1;\n}\n.ant-carousel-vertical .slick-dots {\n top: 50%;\n bottom: auto;\n flex-direction: column;\n width: 3px;\n height: auto;\n margin: 0;\n transform: translateY(-50%);\n}\n.ant-carousel-vertical .slick-dots-left {\n right: auto;\n left: 12px;\n}\n.ant-carousel-vertical .slick-dots-right {\n right: 12px;\n left: auto;\n}\n.ant-carousel-vertical .slick-dots li {\n width: 3px;\n height: 16px;\n margin: 4px 2px;\n vertical-align: baseline;\n}\n.ant-carousel-vertical .slick-dots li button {\n width: 3px;\n height: 16px;\n}\n.ant-carousel-vertical .slick-dots li.slick-active {\n width: 3px;\n height: 24px;\n}\n.ant-carousel-vertical .slick-dots li.slick-active button {\n width: 3px;\n height: 24px;\n}\n.ant-carousel-rtl {\n direction: rtl;\n}\n.ant-carousel-rtl .ant-carousel .slick-track {\n right: 0;\n left: auto;\n}\n.ant-carousel-rtl .ant-carousel .slick-prev {\n right: -25px;\n left: auto;\n}\n.ant-carousel-rtl .ant-carousel .slick-prev::before {\n content: '→';\n}\n.ant-carousel-rtl .ant-carousel .slick-next {\n right: auto;\n left: -25px;\n}\n.ant-carousel-rtl .ant-carousel .slick-next::before {\n content: '←';\n}\n.ant-carousel-rtl.ant-carousel .slick-dots {\n flex-direction: row-reverse;\n}\n.ant-carousel-rtl.ant-carousel-vertical .slick-dots {\n flex-direction: column;\n}\n.ant-cascader {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-cascader-input.ant-input {\n position: static;\n width: 100%;\n padding-right: 24px;\n background-color: transparent !important;\n cursor: pointer;\n}\n.ant-cascader-picker-show-search .ant-cascader-input.ant-input {\n position: relative;\n}\n.ant-cascader-picker {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n background-color: #fff;\n border-radius: 5px;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-cascader-picker-with-value .ant-cascader-picker-label {\n color: transparent;\n}\n.ant-cascader-picker-disabled {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-cascader-picker-disabled .ant-cascader-input {\n cursor: not-allowed;\n}\n.ant-cascader-picker:focus .ant-cascader-input {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-cascader-picker:focus .ant-cascader-input {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-cascader-picker-borderless .ant-cascader-input {\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-cascader-picker-show-search.ant-cascader-picker-focused {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-cascader-picker-label {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n height: 20px;\n margin-top: -10px;\n padding: 0 20px 0 12px;\n overflow: hidden;\n line-height: 20px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-cascader-picker-clear {\n position: absolute;\n top: 50%;\n right: 12px;\n z-index: 2;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 12px;\n background: #fff;\n cursor: pointer;\n opacity: 0;\n transition: color 0.3s ease, opacity 0.15s ease;\n}\n.ant-cascader-picker-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-cascader-picker:hover .ant-cascader-picker-clear {\n opacity: 1;\n}\n.ant-cascader-picker-arrow {\n position: absolute;\n top: 50%;\n right: 12px;\n z-index: 1;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 12px;\n}\n.ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-cascader-picker-small .ant-cascader-picker-clear,\n.ant-cascader-picker-small .ant-cascader-picker-arrow {\n right: 8px;\n}\n.ant-cascader-menus {\n position: absolute;\n z-index: 1050;\n font-size: 14px;\n white-space: nowrap;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-cascader-menus ul,\n.ant-cascader-menus ol {\n margin: 0;\n list-style: none;\n}\n.ant-cascader-menus-empty,\n.ant-cascader-menus-hidden {\n display: none;\n}\n.ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-bottomLeft,\n.ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-bottomLeft {\n animation-name: antSlideUpIn;\n}\n.ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-topLeft,\n.ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-topLeft {\n animation-name: antSlideDownIn;\n}\n.ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-bottomLeft {\n animation-name: antSlideUpOut;\n}\n.ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-topLeft {\n animation-name: antSlideDownOut;\n}\n.ant-cascader-menu {\n display: inline-block;\n min-width: 111px;\n height: 180px;\n margin: 0;\n padding: 4px 0;\n overflow: auto;\n vertical-align: top;\n list-style: none;\n border-right: 1px solid #f0f0f0;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n.ant-cascader-menu:first-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-cascader-menu:last-child {\n margin-right: -1px;\n border-right-color: transparent;\n border-radius: 0 5px 5px 0;\n}\n.ant-cascader-menu:only-child {\n border-radius: 5px;\n}\n.ant-cascader-menu-item {\n padding: 5px 12px;\n overflow: hidden;\n line-height: 22px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-cascader-menu-item:hover {\n background: #f5f5f5;\n}\n.ant-cascader-menu-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-cascader-menu-item-disabled:hover {\n background: transparent;\n}\n.ant-cascader-menu-empty .ant-cascader-menu-item {\n color: rgba(0, 0, 0, 0.25);\n cursor: default;\n pointer-events: none;\n}\n.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),\n.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {\n font-weight: 600;\n background-color: #f0f2ff;\n}\n.ant-cascader-menu-item-expand {\n position: relative;\n padding-right: 24px;\n}\n.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-item-loading-icon {\n position: absolute;\n right: 12px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n}\n.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-cascader-menu-item .ant-cascader-menu-item-keyword {\n color: #ff4d4f;\n}\n.ant-cascader-picker-rtl .ant-cascader-input.ant-input {\n padding-right: 11px;\n padding-left: 24px;\n text-align: right;\n}\n.ant-cascader-picker-rtl {\n direction: rtl;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-label {\n padding: 0 12px 0 20px;\n text-align: right;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-clear {\n right: auto;\n left: 12px;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-arrow {\n right: auto;\n left: 12px;\n}\n.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-clear,\n.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-arrow {\n right: auto;\n left: 8px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu {\n direction: rtl;\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:first-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:last-child {\n margin-right: 0;\n margin-left: -1px;\n border-left-color: transparent;\n border-radius: 5px 0 0 5px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:only-child {\n border-radius: 5px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-expand {\n padding-right: 12px;\n padding-left: 24px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {\n right: auto;\n left: 12px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {\n transform: scaleY(-1);\n}\n@keyframes antCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.ant-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-checkbox-wrapper:hover .ant-checkbox-inner,\n.ant-checkbox:hover .ant-checkbox-inner,\n.ant-checkbox-input:focus + .ant-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-checkbox:hover::after,\n.ant-checkbox-wrapper:hover .ant-checkbox::after {\n visibility: visible;\n}\n.ant-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-checkbox-checked .ant-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-checkbox-checked .ant-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-checkbox-disabled .ant-checkbox-input {\n cursor: not-allowed;\n}\n.ant-checkbox-disabled .ant-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-checkbox-disabled .ant-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-checkbox-disabled:hover::after,\n.ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-checkbox-group-item + .ant-checkbox-group-item {\n margin-left: 0;\n}\n.ant-checkbox-indeterminate .ant-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-checkbox-rtl {\n direction: rtl;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-collapse {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-bottom: 0;\n border-radius: 5px;\n}\n.ant-collapse > .ant-collapse-item {\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-collapse > .ant-collapse-item:last-child,\n.ant-collapse > .ant-collapse-item:last-child > .ant-collapse-header {\n border-radius: 0 0 5px 5px;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header {\n position: relative;\n padding: 12px 16px;\n padding-left: 40px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 1.5715;\n cursor: pointer;\n transition: all 0.3s, visibility 0s;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::before {\n display: table;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::before {\n display: table;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n top: 5.0005px;\n left: 16px;\n display: inline-block;\n padding: 12px 16px;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n font-size: 12px;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow > * {\n line-height: 1;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n display: inline-block;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow::before {\n display: none;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow-icon {\n display: block;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n transition: transform 0.24s;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {\n float: right;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header:focus {\n outline: none;\n}\n.ant-collapse > .ant-collapse-item .ant-collapse-header-collapsible-only {\n cursor: default;\n}\n.ant-collapse > .ant-collapse-item .ant-collapse-header-collapsible-only .ant-collapse-header-text {\n cursor: pointer;\n}\n.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {\n padding-left: 12px;\n}\n.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header {\n padding: 12px 16px;\n padding-right: 40px;\n}\n.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {\n right: 16px;\n left: auto;\n}\n.ant-collapse-content {\n color: rgba(0, 0, 0, 0.85);\n background-color: #fff;\n border-top: 1px solid #d9d9d9;\n}\n.ant-collapse-content > .ant-collapse-content-box {\n padding: 16px;\n}\n.ant-collapse-content-hidden {\n display: none;\n}\n.ant-collapse-item:last-child > .ant-collapse-content {\n border-radius: 0 0 5px 5px;\n}\n.ant-collapse-borderless {\n background-color: #fafafa;\n border: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item {\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-collapse-borderless > .ant-collapse-item:last-child,\n.ant-collapse-borderless > .ant-collapse-item:last-child .ant-collapse-header {\n border-radius: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item > .ant-collapse-content {\n background-color: transparent;\n border-top: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 4px;\n}\n.ant-collapse-ghost {\n background-color: transparent;\n border: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item {\n border-bottom: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content {\n background-color: transparent;\n border-top: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.ant-collapse .ant-collapse-item-disabled > .ant-collapse-header,\n.ant-collapse .ant-collapse-item-disabled > .ant-collapse-header > .arrow {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-collapse-rtl {\n direction: rtl;\n}\n.ant-collapse-rtl .ant-collapse > .ant-collapse-item > .ant-collapse-header {\n padding: 12px 16px;\n padding-right: 40px;\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n transform: rotate(180deg);\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {\n float: left;\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {\n padding-right: 12px;\n padding-left: 0;\n}\n.ant-comment {\n position: relative;\n background-color: inherit;\n}\n.ant-comment-inner {\n display: flex;\n padding: 16px 0;\n}\n.ant-comment-avatar {\n position: relative;\n flex-shrink: 0;\n margin-right: 12px;\n cursor: pointer;\n}\n.ant-comment-avatar img {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n}\n.ant-comment-content {\n position: relative;\n flex: 1 1 auto;\n min-width: 1px;\n font-size: 14px;\n word-wrap: break-word;\n}\n.ant-comment-content-author {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-bottom: 4px;\n font-size: 14px;\n}\n.ant-comment-content-author > a,\n.ant-comment-content-author > span {\n padding-right: 8px;\n font-size: 12px;\n line-height: 18px;\n}\n.ant-comment-content-author-name {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n transition: color 0.3s;\n}\n.ant-comment-content-author-name > * {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-content-author-name > *:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-content-author-time {\n color: #ccc;\n white-space: nowrap;\n cursor: auto;\n}\n.ant-comment-content-detail p {\n margin-bottom: inherit;\n white-space: pre-wrap;\n}\n.ant-comment-actions {\n margin-top: 12px;\n margin-bottom: inherit;\n padding-left: 0;\n}\n.ant-comment-actions > li {\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-actions > li > span {\n margin-right: 10px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n cursor: pointer;\n transition: color 0.3s;\n user-select: none;\n}\n.ant-comment-actions > li > span:hover {\n color: #595959;\n}\n.ant-comment-nested {\n margin-left: 44px;\n}\n.ant-comment-rtl {\n direction: rtl;\n}\n.ant-comment-rtl .ant-comment-avatar {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-comment-rtl .ant-comment-content-author > a,\n.ant-comment-rtl .ant-comment-content-author > span {\n padding-right: 0;\n padding-left: 8px;\n}\n.ant-comment-rtl .ant-comment-actions {\n padding-right: 0;\n}\n.ant-comment-rtl .ant-comment-actions > li > span {\n margin-right: 0;\n margin-left: 10px;\n}\n.ant-comment-rtl .ant-comment-nested {\n margin-right: 44px;\n margin-left: 0;\n}\n.ant-picker {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n padding: 4px 11px 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: border 0.3s, box-shadow 0.3s;\n}\n.ant-picker:hover,\n.ant-picker-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-picker:hover,\n.ant-input-rtl .ant-picker-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-picker-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker.ant-picker-disabled {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-picker.ant-picker-disabled .ant-picker-suffix {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-picker.ant-picker-borderless {\n background-color: transparent !important;\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-picker-input {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n}\n.ant-picker-input > input {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n flex: auto;\n min-width: 1px;\n height: auto;\n padding: 0;\n background: transparent;\n border: 0;\n}\n.ant-picker-input > input::-moz-placeholder {\n opacity: 1;\n}\n.ant-picker-input > input::placeholder {\n color: #bfbfbf;\n}\n.ant-picker-input > input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-picker-input > input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-picker-input > input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-input > input:focus,\n.ant-picker-input > input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-picker-input > input:focus,\n.ant-input-rtl .ant-picker-input > input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-input > input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-picker-input > input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-picker-input > input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-picker-input > input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-picker-input > input-borderless,\n.ant-picker-input > input-borderless:hover,\n.ant-picker-input > input-borderless:focus,\n.ant-picker-input > input-borderless-focused,\n.ant-picker-input > input-borderless-disabled,\n.ant-picker-input > input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-picker-input > input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-picker-input > input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-picker-input > input-sm {\n padding: 0px 7px;\n}\n.ant-picker-input > input-rtl {\n direction: rtl;\n}\n.ant-picker-input > input:focus {\n box-shadow: none;\n}\n.ant-picker-input > input[disabled] {\n background: transparent;\n}\n.ant-picker-input:hover .ant-picker-clear {\n opacity: 1;\n}\n.ant-picker-input-placeholder > input {\n color: #bfbfbf;\n}\n.ant-picker-large {\n padding: 6.5px 11px 6.5px;\n}\n.ant-picker-large .ant-picker-input > input {\n font-size: 16px;\n}\n.ant-picker-small {\n padding: 0px 7px 0px;\n}\n.ant-picker-suffix {\n align-self: center;\n margin-left: 4px;\n color: rgba(0, 0, 0, 0.25);\n line-height: 1;\n pointer-events: none;\n}\n.ant-picker-suffix > * {\n vertical-align: top;\n}\n.ant-picker-clear {\n position: absolute;\n top: 50%;\n right: 0;\n color: rgba(0, 0, 0, 0.25);\n line-height: 1;\n background: #fff;\n transform: translateY(-50%);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.3s, color 0.3s;\n}\n.ant-picker-clear > * {\n vertical-align: top;\n}\n.ant-picker-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-picker-separator {\n position: relative;\n display: inline-block;\n width: 1em;\n height: 16px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 16px;\n vertical-align: top;\n cursor: default;\n}\n.ant-picker-focused .ant-picker-separator {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator {\n cursor: not-allowed;\n}\n.ant-picker-range {\n position: relative;\n display: inline-flex;\n}\n.ant-picker-range .ant-picker-clear {\n right: 11px;\n}\n.ant-picker-range:hover .ant-picker-clear {\n opacity: 1;\n}\n.ant-picker-range .ant-picker-active-bar {\n bottom: -1px;\n height: 2px;\n margin-left: 11px;\n background: #5b5ce1;\n opacity: 0;\n transition: all 0.3s ease-out;\n pointer-events: none;\n}\n.ant-picker-range.ant-picker-focused .ant-picker-active-bar {\n opacity: 1;\n}\n.ant-picker-range-separator {\n align-items: center;\n padding: 0 8px;\n line-height: 1;\n}\n.ant-picker-range.ant-picker-small .ant-picker-clear {\n right: 7px;\n}\n.ant-picker-range.ant-picker-small .ant-picker-active-bar {\n margin-left: 7px;\n}\n.ant-picker-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n z-index: 1050;\n}\n.ant-picker-dropdown-hidden {\n display: none;\n}\n.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow {\n top: 1.66666667px;\n display: block;\n transform: rotate(-45deg);\n}\n.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow {\n bottom: 1.66666667px;\n display: block;\n transform: rotate(135deg);\n}\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-topRight,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-topRight {\n animation-name: antSlideDownIn;\n}\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-bottomRight,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-bottomRight {\n animation-name: antSlideUpIn;\n}\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-topRight {\n animation-name: antSlideDownOut;\n}\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-bottomRight {\n animation-name: antSlideUpOut;\n}\n.ant-picker-dropdown-range {\n padding: 6.66666667px 0;\n}\n.ant-picker-dropdown-range-hidden {\n display: none;\n}\n.ant-picker-dropdown .ant-picker-panel > .ant-picker-time-panel {\n padding-top: 4px;\n}\n.ant-picker-ranges {\n margin-bottom: 0;\n padding: 4px 12px;\n overflow: hidden;\n line-height: 34px;\n text-align: left;\n list-style: none;\n}\n.ant-picker-ranges > li {\n display: inline-block;\n}\n.ant-picker-ranges .ant-picker-preset > .ant-tag-blue {\n color: #5b5ce1;\n background: #f0f2ff;\n border-color: #e0e3ff;\n cursor: pointer;\n}\n.ant-picker-ranges .ant-picker-ok {\n float: right;\n margin-left: 8px;\n}\n.ant-picker-range-wrapper {\n display: flex;\n}\n.ant-picker-range-arrow {\n position: absolute;\n z-index: 1;\n display: none;\n width: 10px;\n height: 10px;\n margin-left: 16.5px;\n box-shadow: 2px -2px 6px rgba(0, 0, 0, 0.06);\n transition: left 0.3s ease-out;\n}\n.ant-picker-range-arrow::after {\n position: absolute;\n top: 1px;\n right: 1px;\n width: 10px;\n height: 10px;\n border: 5px solid #f0f0f0;\n border-color: #fff #fff transparent transparent;\n content: '';\n}\n.ant-picker-panel-container {\n overflow: hidden;\n vertical-align: top;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n transition: margin 0.3s;\n}\n.ant-picker-panel-container .ant-picker-panels {\n display: inline-flex;\n flex-wrap: nowrap;\n direction: ltr;\n}\n.ant-picker-panel-container .ant-picker-panel {\n vertical-align: top;\n background: transparent;\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.ant-picker-panel-container .ant-picker-panel-focused {\n border-color: #f0f0f0;\n}\n.ant-picker-panel {\n display: inline-flex;\n flex-direction: column;\n text-align: center;\n background: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n outline: none;\n}\n.ant-picker-panel-focused {\n border-color: #5b5ce1;\n}\n.ant-picker-decade-panel,\n.ant-picker-year-panel,\n.ant-picker-quarter-panel,\n.ant-picker-month-panel,\n.ant-picker-week-panel,\n.ant-picker-date-panel,\n.ant-picker-time-panel {\n display: flex;\n flex-direction: column;\n width: 280px;\n}\n.ant-picker-header {\n display: flex;\n padding: 0 8px;\n color: rgba(0, 0, 0, 0.85);\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-picker-header > * {\n flex: none;\n}\n.ant-picker-header button {\n padding: 0;\n color: rgba(0, 0, 0, 0.25);\n line-height: 40px;\n background: transparent;\n border: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-picker-header > button {\n min-width: 1.6em;\n font-size: 14px;\n}\n.ant-picker-header > button:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-picker-header-view {\n flex: auto;\n font-weight: 500;\n line-height: 40px;\n}\n.ant-picker-header-view button {\n color: inherit;\n font-weight: inherit;\n}\n.ant-picker-header-view button:not(:first-child) {\n margin-left: 8px;\n}\n.ant-picker-header-view button:hover {\n color: #5b5ce1;\n}\n.ant-picker-prev-icon,\n.ant-picker-next-icon,\n.ant-picker-super-prev-icon,\n.ant-picker-super-next-icon {\n position: relative;\n display: inline-block;\n width: 7px;\n height: 7px;\n}\n.ant-picker-prev-icon::before,\n.ant-picker-next-icon::before,\n.ant-picker-super-prev-icon::before,\n.ant-picker-super-next-icon::before {\n position: absolute;\n top: 0;\n left: 0;\n display: inline-block;\n width: 7px;\n height: 7px;\n border: 0 solid currentColor;\n border-width: 1.5px 0 0 1.5px;\n content: '';\n}\n.ant-picker-super-prev-icon::after,\n.ant-picker-super-next-icon::after {\n position: absolute;\n top: 4px;\n left: 4px;\n display: inline-block;\n width: 7px;\n height: 7px;\n border: 0 solid currentColor;\n border-width: 1.5px 0 0 1.5px;\n content: '';\n}\n.ant-picker-prev-icon,\n.ant-picker-super-prev-icon {\n transform: rotate(-45deg);\n}\n.ant-picker-next-icon,\n.ant-picker-super-next-icon {\n transform: rotate(135deg);\n}\n.ant-picker-content {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n}\n.ant-picker-content th,\n.ant-picker-content td {\n position: relative;\n min-width: 24px;\n font-weight: 400;\n}\n.ant-picker-content th {\n height: 30px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 30px;\n}\n.ant-picker-cell {\n padding: 3px 0;\n color: rgba(0, 0, 0, 0.25);\n cursor: pointer;\n}\n.ant-picker-cell-in-view {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-picker-cell-disabled {\n cursor: not-allowed;\n}\n.ant-picker-cell::before {\n position: absolute;\n top: 50%;\n right: 0;\n left: 0;\n z-index: 1;\n height: 24px;\n transform: translateY(-50%);\n content: '';\n}\n.ant-picker-cell .ant-picker-cell-inner {\n position: relative;\n z-index: 2;\n display: inline-block;\n min-width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 5px;\n transition: background 0.3s, border 0.3s;\n}\n.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,\n.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner {\n background: #f5f5f5;\n}\n.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n content: '';\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range {\n position: relative;\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range::before {\n background: #f0f2ff;\n}\n.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,\n.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,\n.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {\n color: #fff;\n background: #5b5ce1;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single)::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single)::before {\n background: #f0f2ff;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start::before {\n left: 50%;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-end::before {\n right: 50%;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range)::after {\n position: absolute;\n top: 50%;\n z-index: 0;\n height: 24px;\n border-top: 1px dashed #b1b2f1;\n border-bottom: 1px dashed #b1b2f1;\n transform: translateY(-50%);\n content: '';\n}\n.ant-picker-cell-range-hover-start::after,\n.ant-picker-cell-range-hover-end::after,\n.ant-picker-cell-range-hover::after {\n right: 0;\n left: 2px;\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end::before,\n.ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start::before,\n.ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {\n background: #f2f2fd;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after,\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: #f2f2fd;\n content: '';\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after {\n right: -6px;\n left: 0;\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n right: 0;\n left: -6px;\n}\n.ant-picker-cell-range-hover.ant-picker-cell-range-start::after {\n right: 50%;\n}\n.ant-picker-cell-range-hover.ant-picker-cell-range-end::after {\n left: 50%;\n}\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child::after,\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,\n.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {\n left: 6px;\n border-left: 1px dashed #b1b2f1;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child::after,\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after,\n.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {\n right: 6px;\n border-right: 1px dashed #b1b2f1;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-picker-cell-disabled {\n pointer-events: none;\n}\n.ant-picker-cell-disabled .ant-picker-cell-inner {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n}\n.ant-picker-cell-disabled::before {\n background: #f5f5f5;\n}\n.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner::before {\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-picker-decade-panel .ant-picker-content,\n.ant-picker-year-panel .ant-picker-content,\n.ant-picker-quarter-panel .ant-picker-content,\n.ant-picker-month-panel .ant-picker-content {\n height: 264px;\n}\n.ant-picker-decade-panel .ant-picker-cell-inner,\n.ant-picker-year-panel .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-inner {\n padding: 0 8px;\n}\n.ant-picker-decade-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-year-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-disabled .ant-picker-cell-inner {\n background: #f5f5f5;\n}\n.ant-picker-quarter-panel .ant-picker-content {\n height: 56px;\n}\n.ant-picker-footer {\n width: min-content;\n min-width: 100%;\n line-height: 38px;\n text-align: center;\n border-bottom: 1px solid transparent;\n}\n.ant-picker-panel .ant-picker-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-picker-footer-extra {\n padding: 0 12px;\n line-height: 38px;\n text-align: left;\n}\n.ant-picker-footer-extra:not(:last-child) {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-picker-now {\n text-align: left;\n}\n.ant-picker-today-btn {\n color: #5b5ce1;\n}\n.ant-picker-today-btn:hover {\n color: #8588ed;\n}\n.ant-picker-today-btn:active {\n color: #4541ba;\n}\n.ant-picker-today-btn.ant-picker-today-btn-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-picker-decade-panel .ant-picker-cell-inner {\n padding: 0 4px;\n}\n.ant-picker-decade-panel .ant-picker-cell::before {\n display: none;\n}\n.ant-picker-year-panel .ant-picker-body,\n.ant-picker-quarter-panel .ant-picker-body,\n.ant-picker-month-panel .ant-picker-body {\n padding: 0 8px;\n}\n.ant-picker-year-panel .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-inner {\n width: 60px;\n}\n.ant-picker-year-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-month-panel .ant-picker-cell-range-hover-start::after {\n left: 14px;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start::after {\n right: 14px;\n border-right: 1px dashed #b1b2f1;\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-year-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-month-panel .ant-picker-cell-range-hover-end::after {\n right: 14px;\n border-right: 1px dashed #b1b2f1;\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end::after {\n left: 14px;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-week-panel .ant-picker-body {\n padding: 8px 12px;\n}\n.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner,\n.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,\n.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner {\n background: transparent !important;\n}\n.ant-picker-week-panel-row td {\n transition: background 0.3s;\n}\n.ant-picker-week-panel-row:hover td {\n background: #f5f5f5;\n}\n.ant-picker-week-panel-row-selected td,\n.ant-picker-week-panel-row-selected:hover td {\n background: #5b5ce1;\n}\n.ant-picker-week-panel-row-selected td.ant-picker-cell-week,\n.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week {\n color: rgba(255, 255, 255, 0.5);\n}\n.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner::before,\n.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner::before {\n border-color: #fff;\n}\n.ant-picker-week-panel-row-selected td .ant-picker-cell-inner,\n.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner {\n color: #fff;\n}\n.ant-picker-date-panel .ant-picker-body {\n padding: 8px 12px;\n}\n.ant-picker-date-panel .ant-picker-content {\n width: 252px;\n}\n.ant-picker-date-panel .ant-picker-content th {\n width: 36px;\n}\n.ant-picker-datetime-panel {\n display: flex;\n}\n.ant-picker-datetime-panel .ant-picker-time-panel {\n border-left: 1px solid #f0f0f0;\n}\n.ant-picker-datetime-panel .ant-picker-date-panel,\n.ant-picker-datetime-panel .ant-picker-time-panel {\n transition: opacity 0.3s;\n}\n.ant-picker-datetime-panel-active .ant-picker-date-panel,\n.ant-picker-datetime-panel-active .ant-picker-time-panel {\n opacity: 0.3;\n}\n.ant-picker-datetime-panel-active .ant-picker-date-panel-active,\n.ant-picker-datetime-panel-active .ant-picker-time-panel-active {\n opacity: 1;\n}\n.ant-picker-time-panel {\n width: auto;\n min-width: auto;\n}\n.ant-picker-time-panel .ant-picker-content {\n display: flex;\n flex: auto;\n height: 224px;\n}\n.ant-picker-time-panel-column {\n flex: 1 0 auto;\n width: 56px;\n margin: 0;\n padding: 0;\n overflow-y: hidden;\n text-align: left;\n list-style: none;\n transition: background 0.3s;\n}\n.ant-picker-time-panel-column::after {\n display: block;\n height: 196px;\n content: '';\n}\n.ant-picker-datetime-panel .ant-picker-time-panel-column::after {\n height: 198px;\n}\n.ant-picker-time-panel-column:not(:first-child) {\n border-left: 1px solid #f0f0f0;\n}\n.ant-picker-time-panel-column-active {\n background: rgba(240, 242, 255, 0.2);\n}\n.ant-picker-time-panel-column:hover {\n overflow-y: auto;\n}\n.ant-picker-time-panel-column > li {\n margin: 0;\n padding: 0;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner {\n display: block;\n width: 100%;\n height: 28px;\n margin: 0;\n padding: 0 0 0 14px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 28px;\n border-radius: 0;\n cursor: pointer;\n transition: background 0.3s;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover {\n background: #f5f5f5;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {\n background: #f0f2ff;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n cursor: not-allowed;\n}\n/* stylelint-disable-next-line */\n_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,\n:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,\n_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,\n:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell {\n padding: 21px 0;\n}\n.ant-picker-rtl {\n direction: rtl;\n}\n.ant-picker-rtl .ant-picker-suffix {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-picker-rtl .ant-picker-clear {\n right: auto;\n left: 0;\n}\n.ant-picker-rtl .ant-picker-separator {\n transform: rotate(180deg);\n}\n.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child) {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-rtl.ant-picker-range .ant-picker-clear {\n right: auto;\n left: 11px;\n}\n.ant-picker-rtl.ant-picker-range .ant-picker-active-bar {\n margin-right: 11px;\n margin-left: 0;\n}\n.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar {\n margin-right: 7px;\n}\n.ant-picker-dropdown-rtl .ant-picker-ranges {\n text-align: right;\n}\n.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok {\n float: left;\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-panel-rtl {\n direction: rtl;\n}\n.ant-picker-panel-rtl .ant-picker-prev-icon,\n.ant-picker-panel-rtl .ant-picker-super-prev-icon {\n transform: rotate(135deg);\n}\n.ant-picker-panel-rtl .ant-picker-next-icon,\n.ant-picker-panel-rtl .ant-picker-super-next-icon {\n transform: rotate(-45deg);\n}\n.ant-picker-cell .ant-picker-cell-inner {\n position: relative;\n z-index: 2;\n display: inline-block;\n min-width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 5px;\n transition: background 0.3s, border 0.3s;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start::before {\n right: 50%;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end::before {\n right: 0;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end::before {\n right: 50%;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after {\n right: 0;\n left: -6px;\n}\n.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n right: -6px;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start::after {\n right: 0;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end::after {\n right: 50%;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {\n right: 6px;\n left: 0;\n border-right: 1px dashed #b1b2f1;\n border-left: none;\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {\n right: 0;\n left: 6px;\n border-right: none;\n border-left: 1px dashed #b1b2f1;\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child::after {\n right: 6px;\n left: 6px;\n border-right: 1px dashed #b1b2f1;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px;\n}\n.ant-picker-dropdown-rtl .ant-picker-footer-extra {\n direction: rtl;\n text-align: right;\n}\n.ant-picker-panel-rtl .ant-picker-time-panel {\n direction: ltr;\n}\n.ant-descriptions-header {\n display: flex;\n align-items: center;\n margin-bottom: 20px;\n}\n.ant-descriptions-title {\n flex: auto;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: bold;\n font-size: 16px;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-descriptions-extra {\n margin-left: auto;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-descriptions-view {\n width: 100%;\n overflow: hidden;\n border-radius: 5px;\n}\n.ant-descriptions-view table {\n width: 100%;\n table-layout: fixed;\n}\n.ant-descriptions-row > th,\n.ant-descriptions-row > td {\n padding-bottom: 16px;\n}\n.ant-descriptions-row:last-child {\n border-bottom: none;\n}\n.ant-descriptions-item-label {\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 1.5715;\n text-align: start;\n}\n.ant-descriptions-item-label::after {\n content: ':';\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n}\n.ant-descriptions-item-label.ant-descriptions-item-no-colon::after {\n content: ' ';\n}\n.ant-descriptions-item-no-label::after {\n margin: 0;\n content: '';\n}\n.ant-descriptions-item-content {\n display: table-cell;\n flex: 1;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n word-break: break-word;\n overflow-wrap: break-word;\n}\n.ant-descriptions-item {\n padding-bottom: 0;\n vertical-align: top;\n}\n.ant-descriptions-item-container {\n display: flex;\n}\n.ant-descriptions-item-container .ant-descriptions-item-label,\n.ant-descriptions-item-container .ant-descriptions-item-content {\n display: inline-flex;\n align-items: baseline;\n}\n.ant-descriptions-middle .ant-descriptions-row > th,\n.ant-descriptions-middle .ant-descriptions-row > td {\n padding-bottom: 12px;\n}\n.ant-descriptions-small .ant-descriptions-row > th,\n.ant-descriptions-small .ant-descriptions-row > td {\n padding-bottom: 8px;\n}\n.ant-descriptions-bordered .ant-descriptions-view {\n border: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-view > table {\n table-layout: auto;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label,\n.ant-descriptions-bordered .ant-descriptions-item-content {\n padding: 16px 24px;\n border-right: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label:last-child,\n.ant-descriptions-bordered .ant-descriptions-item-content:last-child {\n border-right: none;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label {\n background-color: #fafafa;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label::after {\n display: none;\n}\n.ant-descriptions-bordered .ant-descriptions-row {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-row:last-child {\n border-bottom: none;\n}\n.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-label,\n.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-content {\n padding: 12px 24px;\n}\n.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label,\n.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-content {\n padding: 8px 16px;\n}\n.ant-descriptions-rtl {\n direction: rtl;\n}\n.ant-descriptions-rtl .ant-descriptions-item-label::after {\n margin: 0 2px 0 8px;\n}\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label,\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label:last-child,\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content:last-child {\n border-left: none;\n}\n.ant-divider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n border-top: 1px solid rgba(0, 0, 0, 0.06);\n}\n.ant-divider-vertical {\n position: relative;\n top: -0.06em;\n display: inline-block;\n height: 0.9em;\n margin: 0 8px;\n vertical-align: middle;\n border-top: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.06);\n}\n.ant-divider-horizontal {\n display: flex;\n clear: both;\n width: 100%;\n min-width: 100%;\n margin: 24px 0;\n}\n.ant-divider-horizontal.ant-divider-with-text {\n display: flex;\n margin: 16px 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n white-space: nowrap;\n text-align: center;\n border-top: 0;\n border-top-color: rgba(0, 0, 0, 0.06);\n}\n.ant-divider-horizontal.ant-divider-with-text::before,\n.ant-divider-horizontal.ant-divider-with-text::after {\n position: relative;\n top: 50%;\n width: 50%;\n border-top: 1px solid transparent;\n border-top-color: inherit;\n border-bottom: 0;\n transform: translateY(50%);\n content: '';\n}\n.ant-divider-horizontal.ant-divider-with-text-left::before {\n top: 50%;\n width: 5%;\n}\n.ant-divider-horizontal.ant-divider-with-text-left::after {\n top: 50%;\n width: 95%;\n}\n.ant-divider-horizontal.ant-divider-with-text-right::before {\n top: 50%;\n width: 95%;\n}\n.ant-divider-horizontal.ant-divider-with-text-right::after {\n top: 50%;\n width: 5%;\n}\n.ant-divider-inner-text {\n display: inline-block;\n padding: 0 1em;\n}\n.ant-divider-dashed {\n background: none;\n border-color: rgba(0, 0, 0, 0.06);\n border-style: dashed;\n border-width: 1px 0 0;\n}\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed {\n border-top: 0;\n}\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before,\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after {\n border-style: dashed none none;\n}\n.ant-divider-vertical.ant-divider-dashed {\n border-width: 0 0 0 1px;\n}\n.ant-divider-plain.ant-divider-with-text {\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-divider-rtl {\n direction: rtl;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before {\n width: 95%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after {\n width: 5%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before {\n width: 5%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after {\n width: 95%;\n}\n.ant-drawer {\n position: fixed;\n z-index: 1000;\n width: 0%;\n height: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;\n}\n.ant-drawer > * {\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-content-wrapper {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.ant-drawer .ant-drawer-content {\n width: 100%;\n height: 100%;\n}\n.ant-drawer-left,\n.ant-drawer-right {\n top: 0;\n width: 0%;\n height: 100%;\n}\n.ant-drawer-left .ant-drawer-content-wrapper,\n.ant-drawer-right .ant-drawer-content-wrapper {\n height: 100%;\n}\n.ant-drawer-left.ant-drawer-open,\n.ant-drawer-right.ant-drawer-open {\n width: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-left {\n left: 0;\n}\n.ant-drawer-left .ant-drawer-content-wrapper {\n left: 0;\n}\n.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-right {\n right: 0;\n}\n.ant-drawer-right .ant-drawer-content-wrapper {\n right: 0;\n}\n.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-right.ant-drawer-open.no-mask {\n right: 1px;\n transform: translateX(1px);\n}\n.ant-drawer-top,\n.ant-drawer-bottom {\n left: 0;\n width: 100%;\n height: 0%;\n}\n.ant-drawer-top .ant-drawer-content-wrapper,\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n width: 100%;\n}\n.ant-drawer-top.ant-drawer-open,\n.ant-drawer-bottom.ant-drawer-open {\n height: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-top {\n top: 0;\n}\n.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-bottom {\n bottom: 0;\n}\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n bottom: 0;\n}\n.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-bottom.ant-drawer-open.no-mask {\n bottom: 1px;\n transform: translateY(1px);\n}\n.ant-drawer.ant-drawer-open .ant-drawer-mask {\n height: 100%;\n opacity: 1;\n transition: none;\n animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n pointer-events: auto;\n}\n.ant-drawer-title {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n}\n.ant-drawer-content {\n position: relative;\n z-index: 1;\n overflow: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n}\n.ant-drawer-close {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n display: block;\n padding: 20px;\n color: rgba(0, 0, 0, 0.45);\n font-weight: 700;\n font-size: 16px;\n font-style: normal;\n line-height: 1;\n text-align: center;\n text-transform: none;\n text-decoration: none;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n text-rendering: auto;\n}\n.ant-drawer-close:focus,\n.ant-drawer-close:hover {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}\n.ant-drawer-header-no-title .ant-drawer-close {\n margin-right: var(--scroll-bar);\n /* stylelint-disable-next-line function-calc-no-invalid */\n padding-right: calc(20px - var(--scroll-bar));\n}\n.ant-drawer-header {\n position: relative;\n padding: 16px 24px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-drawer-header-no-title {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-drawer-wrapper-body {\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n}\n.ant-drawer-body {\n flex-grow: 1;\n padding: 24px;\n overflow: auto;\n font-size: 14px;\n line-height: 1.5715;\n word-wrap: break-word;\n}\n.ant-drawer-footer {\n flex-shrink: 0;\n padding: 10px 16px;\n border-top: 1px solid #f0f0f0;\n}\n.ant-drawer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 0;\n background-color: rgba(0, 0, 0, 0.45);\n opacity: 0;\n filter: alpha(opacity=45);\n transition: opacity 0.3s linear, height 0s ease 0.3s;\n pointer-events: none;\n}\n.ant-drawer-open-content {\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-drawer .ant-picker-clear {\n background: #fff;\n}\n@keyframes antdDrawerFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ant-drawer-rtl {\n direction: rtl;\n}\n.ant-drawer-rtl .ant-drawer-close {\n right: auto;\n left: 0;\n}\n.ant-dropdown-menu-item.ant-dropdown-menu-item-danger {\n color: #ff4d4f;\n}\n.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {\n color: #fff;\n background-color: #ff4d4f;\n}\n.ant-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n display: block;\n}\n.ant-dropdown::before {\n position: absolute;\n top: -4px;\n right: 0;\n bottom: -4px;\n left: -7px;\n z-index: -9999;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-dropdown-wrap {\n position: relative;\n}\n.ant-dropdown-wrap .ant-btn > .anticon-down {\n font-size: 10px;\n}\n.ant-dropdown-wrap .anticon-down::before {\n transition: transform 0.2s;\n}\n.ant-dropdown-wrap-open .anticon-down::before {\n transform: rotate(180deg);\n}\n.ant-dropdown-hidden,\n.ant-dropdown-menu-hidden {\n display: none;\n}\n.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,\n.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,\n.ant-dropdown-show-arrow.ant-dropdown-placement-topRight {\n padding-bottom: 10px;\n}\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight {\n padding-top: 10px;\n}\n.ant-dropdown-arrow {\n position: absolute;\n z-index: 1;\n display: block;\n width: 8.48528137px;\n height: 8.48528137px;\n background: transparent;\n border-style: solid;\n border-width: 4.24264069px;\n transform: rotate(45deg);\n}\n.ant-dropdown-placement-topCenter > .ant-dropdown-arrow,\n.ant-dropdown-placement-topLeft > .ant-dropdown-arrow,\n.ant-dropdown-placement-topRight > .ant-dropdown-arrow {\n bottom: 6.2px;\n border-top-color: transparent;\n border-right-color: #fff;\n border-bottom-color: #fff;\n border-left-color: transparent;\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-dropdown-placement-topCenter > .ant-dropdown-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-dropdown-placement-topLeft > .ant-dropdown-arrow {\n left: 16px;\n}\n.ant-dropdown-placement-topRight > .ant-dropdown-arrow {\n right: 16px;\n}\n.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow,\n.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow,\n.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {\n top: 6px;\n border-top-color: #fff;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: #fff;\n box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n}\n.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow {\n left: 16px;\n}\n.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {\n right: 16px;\n}\n.ant-dropdown-menu {\n position: relative;\n margin: 0;\n padding: 4px 0;\n text-align: left;\n list-style-type: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-dropdown-menu-item-group-title {\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.45);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n background: transparent;\n box-shadow: none;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu-popup ul,\n.ant-dropdown-menu-submenu-popup li {\n list-style: none;\n}\n.ant-dropdown-menu-submenu-popup ul {\n margin-right: 0.3em;\n margin-left: 0.3em;\n}\n.ant-dropdown-menu-item,\n.ant-dropdown-menu-submenu-title {\n clear: both;\n margin: 0;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > .anticon:first-child,\n.ant-dropdown-menu-item > a > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > a > .anticon:first-child,\n.ant-dropdown-menu-item > span > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > span > .anticon:first-child {\n min-width: 12px;\n margin-right: 8px;\n font-size: 12px;\n vertical-align: -0.1em;\n}\n.ant-dropdown-menu-item > a,\n.ant-dropdown-menu-submenu-title > a {\n display: block;\n margin: -5px -12px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > a:hover,\n.ant-dropdown-menu-submenu-title > a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-dropdown-menu-item > .anticon + span > a,\n.ant-dropdown-menu-submenu-title > .anticon + span > a {\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > .anticon + span > a:hover,\n.ant-dropdown-menu-submenu-title > .anticon + span > a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-submenu-title-selected,\n.ant-dropdown-menu-item-selected > a,\n.ant-dropdown-menu-submenu-title-selected > a {\n color: #5b5ce1;\n background-color: #f0f2ff;\n}\n.ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-submenu-title:hover {\n background-color: #f5f5f5;\n}\n.ant-dropdown-menu-item-disabled,\n.ant-dropdown-menu-submenu-title-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-disabled:hover,\n.ant-dropdown-menu-submenu-title-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-disabled > .anticon + span > a,\n.ant-dropdown-menu-submenu-title-disabled > .anticon + span > a,\n.ant-dropdown-menu-item-disabled > a,\n.ant-dropdown-menu-submenu-title-disabled > a {\n position: relative;\n color: rgba(0, 0, 0, 0.25);\n pointer-events: none;\n}\n.ant-dropdown-menu-item-disabled > .anticon + span > a::after,\n.ant-dropdown-menu-submenu-title-disabled > .anticon + span > a::after,\n.ant-dropdown-menu-item-disabled > a::after,\n.ant-dropdown-menu-submenu-title-disabled > a::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: not-allowed;\n content: '';\n}\n.ant-dropdown-menu-item-divider,\n.ant-dropdown-menu-submenu-title-divider {\n height: 1px;\n margin: 4px 0;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon {\n position: absolute;\n right: 8px;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {\n margin-right: 0 !important;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n font-style: normal;\n}\n.ant-dropdown-menu-item-group-list {\n margin: 0 8px;\n padding: 0;\n list-style: none;\n}\n.ant-dropdown-menu-submenu-title {\n padding-right: 24px;\n}\n.ant-dropdown-menu-submenu-vertical {\n position: relative;\n}\n.ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {\n position: absolute;\n top: 0;\n left: 100%;\n min-width: 100%;\n margin-left: 4px;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {\n color: #5b5ce1;\n}\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomRight,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomRight {\n animation-name: antSlideUpIn;\n}\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topRight,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topRight {\n animation-name: antSlideDownIn;\n}\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomRight {\n animation-name: antSlideUpOut;\n}\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topRight {\n animation-name: antSlideDownOut;\n}\n.ant-dropdown-trigger > .anticon.anticon-down,\n.ant-dropdown-link > .anticon.anticon-down,\n.ant-dropdown-button > .anticon.anticon-down {\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-dropdown-button {\n white-space: nowrap;\n}\n.ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only) {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-dropdown-menu-dark,\n.ant-dropdown-menu-dark .ant-dropdown-menu {\n background: #001529;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a .ant-dropdown-menu-submenu-arrow::after {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a:hover {\n color: #fff;\n background: transparent;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {\n color: #fff;\n background: #5b5ce1;\n}\n.ant-dropdown-rtl {\n direction: rtl;\n}\n.ant-dropdown-rtl.ant-dropdown::before {\n right: -7px;\n left: 0;\n}\n.ant-dropdown-menu.ant-dropdown-menu-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item-group-title {\n direction: rtl;\n text-align: right;\n}\n.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl {\n transform-origin: 100% 0;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li {\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-item > span > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > span > .anticon:first-child {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {\n right: auto;\n left: 8px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n margin-left: 0 !important;\n transform: scaleX(-1);\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {\n padding-right: 12px;\n padding-left: 24px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {\n right: 100%;\n left: 0;\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-empty {\n margin: 0 8px;\n font-size: 14px;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-empty-image {\n height: 100px;\n margin-bottom: 8px;\n}\n.ant-empty-image img {\n height: 100%;\n}\n.ant-empty-image svg {\n height: 100%;\n margin: auto;\n}\n.ant-empty-footer {\n margin-top: 16px;\n}\n.ant-empty-normal {\n margin: 32px 0;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-empty-normal .ant-empty-image {\n height: 40px;\n}\n.ant-empty-small {\n margin: 8px 0;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-empty-small .ant-empty-image {\n height: 35px;\n}\n.ant-empty-img-default-ellipse {\n fill: #f5f5f5;\n fill-opacity: 0.8;\n}\n.ant-empty-img-default-path-1 {\n fill: #aeb8c2;\n}\n.ant-empty-img-default-path-2 {\n fill: url(#linearGradient-1);\n}\n.ant-empty-img-default-path-3 {\n fill: #f5f5f7;\n}\n.ant-empty-img-default-path-4 {\n fill: #dce0e6;\n}\n.ant-empty-img-default-path-5 {\n fill: #dce0e6;\n}\n.ant-empty-img-default-g {\n fill: #fff;\n}\n.ant-empty-img-simple-ellipse {\n fill: #f5f5f5;\n}\n.ant-empty-img-simple-g {\n stroke: #d9d9d9;\n}\n.ant-empty-img-simple-path {\n fill: #fafafa;\n}\n.ant-empty-rtl {\n direction: rtl;\n}\n.ant-form-item .ant-mentions,\n.ant-form-item textarea.ant-input {\n height: auto;\n}\n.ant-form-item .ant-upload {\n background: transparent;\n}\n.ant-form-item .ant-upload.ant-upload-drag {\n background: #fafafa;\n}\n.ant-form-item input[type='radio'],\n.ant-form-item input[type='checkbox'] {\n width: 14px;\n height: 14px;\n}\n.ant-form-item .ant-radio-inline,\n.ant-form-item .ant-checkbox-inline {\n display: inline-block;\n margin-left: 8px;\n font-weight: normal;\n vertical-align: middle;\n cursor: pointer;\n}\n.ant-form-item .ant-radio-inline:first-child,\n.ant-form-item .ant-checkbox-inline:first-child {\n margin-left: 0;\n}\n.ant-form-item .ant-checkbox-vertical,\n.ant-form-item .ant-radio-vertical {\n display: block;\n}\n.ant-form-item .ant-checkbox-vertical + .ant-checkbox-vertical,\n.ant-form-item .ant-radio-vertical + .ant-radio-vertical {\n margin-left: 0;\n}\n.ant-form-item .ant-input-number + .ant-form-text {\n margin-left: 8px;\n}\n.ant-form-item .ant-input-number-handler-wrap {\n z-index: 2;\n}\n.ant-form-item .ant-select,\n.ant-form-item .ant-cascader-picker {\n width: 100%;\n}\n.ant-form-item .ant-input-group .ant-select,\n.ant-form-item .ant-input-group .ant-cascader-picker {\n width: auto;\n}\n.ant-form-inline {\n display: flex;\n flex-wrap: wrap;\n}\n.ant-form-inline .ant-form-item {\n flex: none;\n flex-wrap: nowrap;\n margin-right: 16px;\n margin-bottom: 0;\n}\n.ant-form-inline .ant-form-item-with-help {\n margin-bottom: 24px;\n}\n.ant-form-inline .ant-form-item > .ant-form-item-label,\n.ant-form-inline .ant-form-item > .ant-form-item-control {\n display: inline-block;\n vertical-align: top;\n}\n.ant-form-inline .ant-form-item > .ant-form-item-label {\n flex: none;\n}\n.ant-form-inline .ant-form-item .ant-form-text {\n display: inline-block;\n}\n.ant-form-inline .ant-form-item .ant-form-item-has-feedback {\n display: inline-block;\n}\n.ant-form-horizontal .ant-form-item-label {\n flex-grow: 0;\n}\n.ant-form-horizontal .ant-form-item-control {\n flex: 1 1 0;\n}\n.ant-form-vertical .ant-form-item {\n flex-direction: column;\n}\n.ant-form-vertical .ant-form-item-label > label {\n height: auto;\n}\n.ant-form-vertical .ant-form-item-label,\n.ant-col-24.ant-form-item-label,\n.ant-col-xl-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n}\n.ant-form-vertical .ant-form-item-label > label,\n.ant-col-24.ant-form-item-label > label,\n.ant-col-xl-24.ant-form-item-label > label {\n margin: 0;\n}\n.ant-form-vertical .ant-form-item-label > label::after,\n.ant-col-24.ant-form-item-label > label::after,\n.ant-col-xl-24.ant-form-item-label > label::after {\n display: none;\n}\n.ant-form-rtl.ant-form-vertical .ant-form-item-label,\n.ant-form-rtl.ant-col-24.ant-form-item-label,\n.ant-form-rtl.ant-col-xl-24.ant-form-item-label {\n text-align: right;\n}\n@media (max-width: 575px) {\n .ant-form-item .ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-form-item .ant-form-item-label > label {\n margin: 0;\n }\n .ant-form-item .ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-form-item .ant-form-item-label {\n text-align: right;\n }\n .ant-form .ant-form-item {\n flex-wrap: wrap;\n }\n .ant-form .ant-form-item .ant-form-item-label,\n .ant-form .ant-form-item .ant-form-item-control {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xs-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-xs-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-xs-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-xs-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 767px) {\n .ant-col-sm-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-sm-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-sm-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-sm-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 991px) {\n .ant-col-md-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-md-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-md-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-md-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 1199px) {\n .ant-col-lg-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-lg-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-lg-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-lg-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 1599px) {\n .ant-col-xl-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-xl-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-xl-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-xl-24.ant-form-item-label {\n text-align: right;\n }\n}\n.ant-form-item {\n /* Some non-status related component style is in `components.less` */\n /* To support leave along ErrorList. We add additional className to handle explain style */\n}\n.ant-form-item-explain.ant-form-item-explain-error {\n color: #ff4d4f;\n}\n.ant-form-item-explain.ant-form-item-explain-warning {\n color: #faad14;\n}\n.ant-form-item-has-feedback .ant-input {\n padding-right: 24px;\n}\n.ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {\n padding-right: 18px;\n}\n.ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {\n right: 28px;\n}\n.ant-form-item-has-feedback .ant-switch {\n margin: 2px 0 4px;\n}\n.ant-form-item-has-feedback > .ant-select .ant-select-arrow,\n.ant-form-item-has-feedback > .ant-select .ant-select-clear,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-clear {\n right: 32px;\n}\n.ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {\n padding-right: 42px;\n}\n.ant-form-item-has-feedback .ant-cascader-picker-arrow {\n margin-right: 19px;\n}\n.ant-form-item-has-feedback .ant-cascader-picker-clear {\n right: 32px;\n}\n.ant-form-item-has-feedback .ant-picker {\n padding-right: 29.2px;\n}\n.ant-form-item-has-feedback .ant-picker-large {\n padding-right: 29.2px;\n}\n.ant-form-item-has-feedback .ant-picker-small {\n padding-right: 25.2px;\n}\n.ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {\n position: absolute;\n top: 50%;\n right: 0;\n z-index: 1;\n width: 32px;\n height: 20px;\n margin-top: -10px;\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n visibility: visible;\n animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n pointer-events: none;\n}\n.ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #52c41a;\n animation-name: diffZoomIn1 !important;\n}\n.ant-form-item-has-warning .ant-form-item-split {\n color: #faad14;\n}\n.ant-form-item-has-warning .ant-input,\n.ant-form-item-has-warning .ant-input-affix-wrapper,\n.ant-form-item-has-warning .ant-input:hover,\n.ant-form-item-has-warning .ant-input-affix-wrapper:hover {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-input:focus,\n.ant-form-item-has-warning .ant-input-affix-wrapper:focus,\n.ant-form-item-has-warning .ant-input-focused,\n.ant-form-item-has-warning .ant-input-affix-wrapper-focused {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-disabled,\n.ant-form-item-has-warning .ant-input-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled,\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled input:focus,\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled:hover input:focus {\n box-shadow: none !important;\n}\n.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-prefix {\n color: #faad14;\n}\n.ant-form-item-has-warning .ant-input-group-addon {\n color: #faad14;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .has-feedback {\n color: #faad14;\n}\n.ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #faad14;\n animation-name: diffZoomIn3 !important;\n}\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {\n background-color: #fff;\n border-color: #faad14 !important;\n}\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector,\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-number,\n.ant-form-item-has-warning .ant-picker {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-input-number-focused,\n.ant-form-item-has-warning .ant-picker-focused,\n.ant-form-item-has-warning .ant-input-number:focus,\n.ant-form-item-has-warning .ant-picker:focus {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-number:not([disabled]):hover,\n.ant-form-item-has-warning .ant-picker:not([disabled]):hover {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-error .ant-form-item-split {\n color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input,\n.ant-form-item-has-error .ant-input-affix-wrapper,\n.ant-form-item-has-error .ant-input:hover,\n.ant-form-item-has-error .ant-input-affix-wrapper:hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input:focus,\n.ant-form-item-has-error .ant-input-affix-wrapper:focus,\n.ant-form-item-has-error .ant-input-focused,\n.ant-form-item-has-error .ant-input-affix-wrapper-focused {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-disabled,\n.ant-form-item-has-error .ant-input-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled,\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled input:focus,\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled:hover input:focus {\n box-shadow: none !important;\n}\n.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-prefix {\n color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-group-addon {\n color: #ff4d4f;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .has-feedback {\n color: #ff4d4f;\n}\n.ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #ff4d4f;\n animation-name: diffZoomIn2 !important;\n}\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {\n background-color: #fff;\n border-color: #ff4d4f !important;\n}\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector,\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n border: 0;\n}\n.ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-number,\n.ant-form-item-has-error .ant-picker {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-number-focused,\n.ant-form-item-has-error .ant-picker-focused,\n.ant-form-item-has-error .ant-input-number:focus,\n.ant-form-item-has-error .ant-picker:focus {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-number:not([disabled]):hover,\n.ant-form-item-has-error .ant-picker:not([disabled]):hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor,\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor,\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {\n background-color: #fff;\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-transfer-list {\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-form-item-has-error .ant-radio-button-wrapper {\n border-color: #ff4d4f !important;\n}\n.ant-form-item-has-error .ant-radio-button-wrapper:not(:first-child)::before {\n background-color: #ff4d4f;\n}\n.ant-form-item-is-validating.ant-form-item-has-feedback .ant-form-item-children-icon {\n display: inline-block;\n color: #5b5ce1;\n}\n.ant-form {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-form legend {\n display: block;\n width: 100%;\n margin-bottom: 20px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n font-size: 16px;\n line-height: inherit;\n border: 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-form label {\n font-size: 14px;\n}\n.ant-form input[type='search'] {\n box-sizing: border-box;\n}\n.ant-form input[type='radio'],\n.ant-form input[type='checkbox'] {\n line-height: normal;\n}\n.ant-form input[type='file'] {\n display: block;\n}\n.ant-form input[type='range'] {\n display: block;\n width: 100%;\n}\n.ant-form select[multiple],\n.ant-form select[size] {\n height: auto;\n}\n.ant-form input[type='file']:focus,\n.ant-form input[type='radio']:focus,\n.ant-form input[type='checkbox']:focus {\n outline: thin dotted;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.ant-form output {\n display: block;\n padding-top: 15px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-form .ant-form-text {\n display: inline-block;\n padding-right: 8px;\n}\n.ant-form-small .ant-form-item-label > label {\n height: 24px;\n}\n.ant-form-small .ant-form-item-control-input {\n min-height: 24px;\n}\n.ant-form-large .ant-form-item-label > label {\n height: 40px;\n}\n.ant-form-large .ant-form-item-control-input {\n min-height: 40px;\n}\n.ant-form-item {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n margin-bottom: 24px;\n vertical-align: top;\n}\n.ant-form-item-with-help {\n margin-bottom: 0;\n}\n.ant-form-item-hidden,\n.ant-form-item-hidden.ant-row {\n display: none;\n}\n.ant-form-item-label {\n display: inline-block;\n flex-grow: 0;\n overflow: hidden;\n white-space: nowrap;\n text-align: right;\n vertical-align: middle;\n}\n.ant-form-item-label-left {\n text-align: left;\n}\n.ant-form-item-label > label {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 32px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-form-item-label > label > .anticon {\n font-size: 14px;\n vertical-align: top;\n}\n.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n display: inline-block;\n margin-right: 4px;\n color: #ff4d4f;\n font-size: 14px;\n font-family: SimSun, sans-serif;\n line-height: 1;\n content: '*';\n}\n.ant-form-hide-required-mark .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n display: none;\n}\n.ant-form-item-label > label .ant-form-item-optional {\n display: inline-block;\n margin-left: 4px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-form-hide-required-mark .ant-form-item-label > label .ant-form-item-optional {\n display: none;\n}\n.ant-form-item-label > label .ant-form-item-tooltip {\n color: rgba(0, 0, 0, 0.45);\n cursor: help;\n writing-mode: horizontal-tb;\n margin-inline-start: 4px;\n}\n.ant-form-item-label > label::after {\n content: ':';\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n}\n.ant-form-item-label > label.ant-form-item-no-colon::after {\n content: ' ';\n}\n.ant-form-item-control {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n.ant-form-item-control:first-child:not([class^='ant-col-']):not([class*=' ant-col-']) {\n width: 100%;\n}\n.ant-form-item-control-input {\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n}\n.ant-form-item-control-input-content {\n flex: auto;\n max-width: 100%;\n}\n.ant-form-item-explain,\n.ant-form-item-extra {\n clear: both;\n min-height: 24px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);\n padding-top: 0px;\n}\n.ant-form-item .ant-input-textarea-show-count::after {\n margin-bottom: -22px;\n}\n.ant-show-help-enter,\n.ant-show-help-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-show-help-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-show-help-enter.ant-show-help-enter-active,\n.ant-show-help-appear.ant-show-help-appear-active {\n animation-name: antShowHelpIn;\n animation-play-state: running;\n}\n.ant-show-help-leave.ant-show-help-leave-active {\n animation-name: antShowHelpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-show-help-enter,\n.ant-show-help-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-show-help-leave {\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n@keyframes antShowHelpIn {\n 0% {\n transform: translateY(-5px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@keyframes antShowHelpOut {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n@keyframes diffZoomIn1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes diffZoomIn2 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes diffZoomIn3 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n.ant-form-rtl {\n direction: rtl;\n}\n.ant-form-rtl .ant-form-item-label {\n text-align: left;\n}\n.ant-form-rtl .ant-form-item-label > label.ant-form-item-required::before {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-form-rtl .ant-form-item-label > label::after {\n margin: 0 2px 0 8px;\n}\n.ant-form-rtl .ant-form-item-label > label .ant-form-item-optional {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-col-rtl .ant-form-item-control:first-child {\n width: 100%;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input {\n padding-right: 11px;\n padding-left: 24px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {\n padding-right: 11px;\n padding-left: 18px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input {\n padding: 0;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {\n right: auto;\n left: 28px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-number {\n padding-left: 18px;\n}\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-arrow,\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-clear,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-clear {\n right: auto;\n left: 32px;\n}\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {\n padding-right: 0;\n padding-left: 42px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow {\n margin-right: 0;\n margin-left: 19px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear {\n right: auto;\n left: 32px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker {\n padding-right: 11px;\n padding-left: 29.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large {\n padding-right: 11px;\n padding-left: 29.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small {\n padding-right: 7px;\n padding-left: 25.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {\n right: auto;\n left: 0;\n}\n.ant-form-rtl.ant-form-inline .ant-form-item {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-row {\n display: flex;\n flex-flow: row wrap;\n}\n.ant-row::before,\n.ant-row::after {\n display: flex;\n}\n.ant-row-no-wrap {\n flex-wrap: nowrap;\n}\n.ant-row-start {\n justify-content: flex-start;\n}\n.ant-row-center {\n justify-content: center;\n}\n.ant-row-end {\n justify-content: flex-end;\n}\n.ant-row-space-between {\n justify-content: space-between;\n}\n.ant-row-space-around {\n justify-content: space-around;\n}\n.ant-row-top {\n align-items: flex-start;\n}\n.ant-row-middle {\n align-items: center;\n}\n.ant-row-bottom {\n align-items: flex-end;\n}\n.ant-col {\n position: relative;\n max-width: 100%;\n min-height: 1px;\n}\n.ant-col-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ant-col-push-24 {\n left: 100%;\n}\n.ant-col-pull-24 {\n right: 100%;\n}\n.ant-col-offset-24 {\n margin-left: 100%;\n}\n.ant-col-order-24 {\n order: 24;\n}\n.ant-col-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n}\n.ant-col-push-23 {\n left: 95.83333333%;\n}\n.ant-col-pull-23 {\n right: 95.83333333%;\n}\n.ant-col-offset-23 {\n margin-left: 95.83333333%;\n}\n.ant-col-order-23 {\n order: 23;\n}\n.ant-col-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n}\n.ant-col-push-22 {\n left: 91.66666667%;\n}\n.ant-col-pull-22 {\n right: 91.66666667%;\n}\n.ant-col-offset-22 {\n margin-left: 91.66666667%;\n}\n.ant-col-order-22 {\n order: 22;\n}\n.ant-col-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n}\n.ant-col-push-21 {\n left: 87.5%;\n}\n.ant-col-pull-21 {\n right: 87.5%;\n}\n.ant-col-offset-21 {\n margin-left: 87.5%;\n}\n.ant-col-order-21 {\n order: 21;\n}\n.ant-col-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n}\n.ant-col-push-20 {\n left: 83.33333333%;\n}\n.ant-col-pull-20 {\n right: 83.33333333%;\n}\n.ant-col-offset-20 {\n margin-left: 83.33333333%;\n}\n.ant-col-order-20 {\n order: 20;\n}\n.ant-col-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n}\n.ant-col-push-19 {\n left: 79.16666667%;\n}\n.ant-col-pull-19 {\n right: 79.16666667%;\n}\n.ant-col-offset-19 {\n margin-left: 79.16666667%;\n}\n.ant-col-order-19 {\n order: 19;\n}\n.ant-col-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n}\n.ant-col-push-18 {\n left: 75%;\n}\n.ant-col-pull-18 {\n right: 75%;\n}\n.ant-col-offset-18 {\n margin-left: 75%;\n}\n.ant-col-order-18 {\n order: 18;\n}\n.ant-col-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n}\n.ant-col-push-17 {\n left: 70.83333333%;\n}\n.ant-col-pull-17 {\n right: 70.83333333%;\n}\n.ant-col-offset-17 {\n margin-left: 70.83333333%;\n}\n.ant-col-order-17 {\n order: 17;\n}\n.ant-col-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n}\n.ant-col-push-16 {\n left: 66.66666667%;\n}\n.ant-col-pull-16 {\n right: 66.66666667%;\n}\n.ant-col-offset-16 {\n margin-left: 66.66666667%;\n}\n.ant-col-order-16 {\n order: 16;\n}\n.ant-col-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n}\n.ant-col-push-15 {\n left: 62.5%;\n}\n.ant-col-pull-15 {\n right: 62.5%;\n}\n.ant-col-offset-15 {\n margin-left: 62.5%;\n}\n.ant-col-order-15 {\n order: 15;\n}\n.ant-col-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n}\n.ant-col-push-14 {\n left: 58.33333333%;\n}\n.ant-col-pull-14 {\n right: 58.33333333%;\n}\n.ant-col-offset-14 {\n margin-left: 58.33333333%;\n}\n.ant-col-order-14 {\n order: 14;\n}\n.ant-col-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n}\n.ant-col-push-13 {\n left: 54.16666667%;\n}\n.ant-col-pull-13 {\n right: 54.16666667%;\n}\n.ant-col-offset-13 {\n margin-left: 54.16666667%;\n}\n.ant-col-order-13 {\n order: 13;\n}\n.ant-col-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n}\n.ant-col-push-12 {\n left: 50%;\n}\n.ant-col-pull-12 {\n right: 50%;\n}\n.ant-col-offset-12 {\n margin-left: 50%;\n}\n.ant-col-order-12 {\n order: 12;\n}\n.ant-col-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n}\n.ant-col-push-11 {\n left: 45.83333333%;\n}\n.ant-col-pull-11 {\n right: 45.83333333%;\n}\n.ant-col-offset-11 {\n margin-left: 45.83333333%;\n}\n.ant-col-order-11 {\n order: 11;\n}\n.ant-col-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n}\n.ant-col-push-10 {\n left: 41.66666667%;\n}\n.ant-col-pull-10 {\n right: 41.66666667%;\n}\n.ant-col-offset-10 {\n margin-left: 41.66666667%;\n}\n.ant-col-order-10 {\n order: 10;\n}\n.ant-col-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n}\n.ant-col-push-9 {\n left: 37.5%;\n}\n.ant-col-pull-9 {\n right: 37.5%;\n}\n.ant-col-offset-9 {\n margin-left: 37.5%;\n}\n.ant-col-order-9 {\n order: 9;\n}\n.ant-col-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n}\n.ant-col-push-8 {\n left: 33.33333333%;\n}\n.ant-col-pull-8 {\n right: 33.33333333%;\n}\n.ant-col-offset-8 {\n margin-left: 33.33333333%;\n}\n.ant-col-order-8 {\n order: 8;\n}\n.ant-col-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n}\n.ant-col-push-7 {\n left: 29.16666667%;\n}\n.ant-col-pull-7 {\n right: 29.16666667%;\n}\n.ant-col-offset-7 {\n margin-left: 29.16666667%;\n}\n.ant-col-order-7 {\n order: 7;\n}\n.ant-col-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n}\n.ant-col-push-6 {\n left: 25%;\n}\n.ant-col-pull-6 {\n right: 25%;\n}\n.ant-col-offset-6 {\n margin-left: 25%;\n}\n.ant-col-order-6 {\n order: 6;\n}\n.ant-col-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n}\n.ant-col-push-5 {\n left: 20.83333333%;\n}\n.ant-col-pull-5 {\n right: 20.83333333%;\n}\n.ant-col-offset-5 {\n margin-left: 20.83333333%;\n}\n.ant-col-order-5 {\n order: 5;\n}\n.ant-col-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n}\n.ant-col-push-4 {\n left: 16.66666667%;\n}\n.ant-col-pull-4 {\n right: 16.66666667%;\n}\n.ant-col-offset-4 {\n margin-left: 16.66666667%;\n}\n.ant-col-order-4 {\n order: 4;\n}\n.ant-col-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n}\n.ant-col-push-3 {\n left: 12.5%;\n}\n.ant-col-pull-3 {\n right: 12.5%;\n}\n.ant-col-offset-3 {\n margin-left: 12.5%;\n}\n.ant-col-order-3 {\n order: 3;\n}\n.ant-col-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n}\n.ant-col-push-2 {\n left: 8.33333333%;\n}\n.ant-col-pull-2 {\n right: 8.33333333%;\n}\n.ant-col-offset-2 {\n margin-left: 8.33333333%;\n}\n.ant-col-order-2 {\n order: 2;\n}\n.ant-col-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n}\n.ant-col-push-1 {\n left: 4.16666667%;\n}\n.ant-col-pull-1 {\n right: 4.16666667%;\n}\n.ant-col-offset-1 {\n margin-left: 4.16666667%;\n}\n.ant-col-order-1 {\n order: 1;\n}\n.ant-col-0 {\n display: none;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-offset-0 {\n margin-left: 0;\n}\n.ant-col-order-0 {\n order: 0;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-offset-0.ant-col-rtl {\n margin-right: 0;\n}\n.ant-col-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n}\n.ant-col-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n}\n.ant-col-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n}\n.ant-col-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n}\n.ant-col-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n}\n.ant-col-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n}\n.ant-col-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n}\n.ant-col-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n}\n.ant-col-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n}\n.ant-col-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n}\n.ant-col-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n}\n.ant-col-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n}\n.ant-col-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n}\n.ant-col-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n}\n.ant-col-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n}\n.ant-col-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n}\n.ant-col-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n}\n.ant-col-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n}\n.ant-col-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n}\n.ant-col-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n}\n.ant-col-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n}\n.ant-col-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n}\n.ant-col-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n}\n.ant-col-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n}\n.ant-col-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n}\n.ant-col-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n}\n.ant-col-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n}\n.ant-col-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n}\n.ant-col-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n}\n.ant-col-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n}\n.ant-col-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n}\n.ant-col-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n}\n.ant-col-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n}\n.ant-col-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n}\n.ant-col-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n}\n.ant-col-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n}\n.ant-col-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n}\n.ant-col-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n}\n.ant-col-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n}\n.ant-col-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n}\n.ant-col-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n}\n.ant-col-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n}\n.ant-col-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n}\n.ant-col-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n}\n.ant-col-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n}\n.ant-col-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n}\n.ant-col-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n}\n.ant-col-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n}\n.ant-col-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n}\n.ant-col-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n}\n.ant-col-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n}\n.ant-col-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n}\n.ant-col-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n}\n.ant-col-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n}\n.ant-col-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n}\n.ant-col-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n}\n.ant-col-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n}\n.ant-col-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n}\n.ant-col-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n}\n.ant-col-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n}\n.ant-col-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n}\n.ant-col-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n}\n.ant-col-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n}\n.ant-col-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n}\n.ant-col-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n}\n.ant-col-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n}\n.ant-col-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n}\n.ant-col-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n}\n.ant-col-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n}\n.ant-col-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n}\n.ant-col-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n}\n.ant-col-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n}\n.ant-col-xs-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ant-col-xs-push-24 {\n left: 100%;\n}\n.ant-col-xs-pull-24 {\n right: 100%;\n}\n.ant-col-xs-offset-24 {\n margin-left: 100%;\n}\n.ant-col-xs-order-24 {\n order: 24;\n}\n.ant-col-xs-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n}\n.ant-col-xs-push-23 {\n left: 95.83333333%;\n}\n.ant-col-xs-pull-23 {\n right: 95.83333333%;\n}\n.ant-col-xs-offset-23 {\n margin-left: 95.83333333%;\n}\n.ant-col-xs-order-23 {\n order: 23;\n}\n.ant-col-xs-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n}\n.ant-col-xs-push-22 {\n left: 91.66666667%;\n}\n.ant-col-xs-pull-22 {\n right: 91.66666667%;\n}\n.ant-col-xs-offset-22 {\n margin-left: 91.66666667%;\n}\n.ant-col-xs-order-22 {\n order: 22;\n}\n.ant-col-xs-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n}\n.ant-col-xs-push-21 {\n left: 87.5%;\n}\n.ant-col-xs-pull-21 {\n right: 87.5%;\n}\n.ant-col-xs-offset-21 {\n margin-left: 87.5%;\n}\n.ant-col-xs-order-21 {\n order: 21;\n}\n.ant-col-xs-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n}\n.ant-col-xs-push-20 {\n left: 83.33333333%;\n}\n.ant-col-xs-pull-20 {\n right: 83.33333333%;\n}\n.ant-col-xs-offset-20 {\n margin-left: 83.33333333%;\n}\n.ant-col-xs-order-20 {\n order: 20;\n}\n.ant-col-xs-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n}\n.ant-col-xs-push-19 {\n left: 79.16666667%;\n}\n.ant-col-xs-pull-19 {\n right: 79.16666667%;\n}\n.ant-col-xs-offset-19 {\n margin-left: 79.16666667%;\n}\n.ant-col-xs-order-19 {\n order: 19;\n}\n.ant-col-xs-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n}\n.ant-col-xs-push-18 {\n left: 75%;\n}\n.ant-col-xs-pull-18 {\n right: 75%;\n}\n.ant-col-xs-offset-18 {\n margin-left: 75%;\n}\n.ant-col-xs-order-18 {\n order: 18;\n}\n.ant-col-xs-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n}\n.ant-col-xs-push-17 {\n left: 70.83333333%;\n}\n.ant-col-xs-pull-17 {\n right: 70.83333333%;\n}\n.ant-col-xs-offset-17 {\n margin-left: 70.83333333%;\n}\n.ant-col-xs-order-17 {\n order: 17;\n}\n.ant-col-xs-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n}\n.ant-col-xs-push-16 {\n left: 66.66666667%;\n}\n.ant-col-xs-pull-16 {\n right: 66.66666667%;\n}\n.ant-col-xs-offset-16 {\n margin-left: 66.66666667%;\n}\n.ant-col-xs-order-16 {\n order: 16;\n}\n.ant-col-xs-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n}\n.ant-col-xs-push-15 {\n left: 62.5%;\n}\n.ant-col-xs-pull-15 {\n right: 62.5%;\n}\n.ant-col-xs-offset-15 {\n margin-left: 62.5%;\n}\n.ant-col-xs-order-15 {\n order: 15;\n}\n.ant-col-xs-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n}\n.ant-col-xs-push-14 {\n left: 58.33333333%;\n}\n.ant-col-xs-pull-14 {\n right: 58.33333333%;\n}\n.ant-col-xs-offset-14 {\n margin-left: 58.33333333%;\n}\n.ant-col-xs-order-14 {\n order: 14;\n}\n.ant-col-xs-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n}\n.ant-col-xs-push-13 {\n left: 54.16666667%;\n}\n.ant-col-xs-pull-13 {\n right: 54.16666667%;\n}\n.ant-col-xs-offset-13 {\n margin-left: 54.16666667%;\n}\n.ant-col-xs-order-13 {\n order: 13;\n}\n.ant-col-xs-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n}\n.ant-col-xs-push-12 {\n left: 50%;\n}\n.ant-col-xs-pull-12 {\n right: 50%;\n}\n.ant-col-xs-offset-12 {\n margin-left: 50%;\n}\n.ant-col-xs-order-12 {\n order: 12;\n}\n.ant-col-xs-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n}\n.ant-col-xs-push-11 {\n left: 45.83333333%;\n}\n.ant-col-xs-pull-11 {\n right: 45.83333333%;\n}\n.ant-col-xs-offset-11 {\n margin-left: 45.83333333%;\n}\n.ant-col-xs-order-11 {\n order: 11;\n}\n.ant-col-xs-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n}\n.ant-col-xs-push-10 {\n left: 41.66666667%;\n}\n.ant-col-xs-pull-10 {\n right: 41.66666667%;\n}\n.ant-col-xs-offset-10 {\n margin-left: 41.66666667%;\n}\n.ant-col-xs-order-10 {\n order: 10;\n}\n.ant-col-xs-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n}\n.ant-col-xs-push-9 {\n left: 37.5%;\n}\n.ant-col-xs-pull-9 {\n right: 37.5%;\n}\n.ant-col-xs-offset-9 {\n margin-left: 37.5%;\n}\n.ant-col-xs-order-9 {\n order: 9;\n}\n.ant-col-xs-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n}\n.ant-col-xs-push-8 {\n left: 33.33333333%;\n}\n.ant-col-xs-pull-8 {\n right: 33.33333333%;\n}\n.ant-col-xs-offset-8 {\n margin-left: 33.33333333%;\n}\n.ant-col-xs-order-8 {\n order: 8;\n}\n.ant-col-xs-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n}\n.ant-col-xs-push-7 {\n left: 29.16666667%;\n}\n.ant-col-xs-pull-7 {\n right: 29.16666667%;\n}\n.ant-col-xs-offset-7 {\n margin-left: 29.16666667%;\n}\n.ant-col-xs-order-7 {\n order: 7;\n}\n.ant-col-xs-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n}\n.ant-col-xs-push-6 {\n left: 25%;\n}\n.ant-col-xs-pull-6 {\n right: 25%;\n}\n.ant-col-xs-offset-6 {\n margin-left: 25%;\n}\n.ant-col-xs-order-6 {\n order: 6;\n}\n.ant-col-xs-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n}\n.ant-col-xs-push-5 {\n left: 20.83333333%;\n}\n.ant-col-xs-pull-5 {\n right: 20.83333333%;\n}\n.ant-col-xs-offset-5 {\n margin-left: 20.83333333%;\n}\n.ant-col-xs-order-5 {\n order: 5;\n}\n.ant-col-xs-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n}\n.ant-col-xs-push-4 {\n left: 16.66666667%;\n}\n.ant-col-xs-pull-4 {\n right: 16.66666667%;\n}\n.ant-col-xs-offset-4 {\n margin-left: 16.66666667%;\n}\n.ant-col-xs-order-4 {\n order: 4;\n}\n.ant-col-xs-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n}\n.ant-col-xs-push-3 {\n left: 12.5%;\n}\n.ant-col-xs-pull-3 {\n right: 12.5%;\n}\n.ant-col-xs-offset-3 {\n margin-left: 12.5%;\n}\n.ant-col-xs-order-3 {\n order: 3;\n}\n.ant-col-xs-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n}\n.ant-col-xs-push-2 {\n left: 8.33333333%;\n}\n.ant-col-xs-pull-2 {\n right: 8.33333333%;\n}\n.ant-col-xs-offset-2 {\n margin-left: 8.33333333%;\n}\n.ant-col-xs-order-2 {\n order: 2;\n}\n.ant-col-xs-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n}\n.ant-col-xs-push-1 {\n left: 4.16666667%;\n}\n.ant-col-xs-pull-1 {\n right: 4.16666667%;\n}\n.ant-col-xs-offset-1 {\n margin-left: 4.16666667%;\n}\n.ant-col-xs-order-1 {\n order: 1;\n}\n.ant-col-xs-0 {\n display: none;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-xs-push-0 {\n left: auto;\n}\n.ant-col-xs-pull-0 {\n right: auto;\n}\n.ant-col-xs-offset-0 {\n margin-left: 0;\n}\n.ant-col-xs-order-0 {\n order: 0;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-xs-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-xs-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-xs-offset-0.ant-col-rtl {\n margin-right: 0;\n}\n.ant-col-xs-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n}\n.ant-col-xs-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n}\n.ant-col-xs-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n}\n.ant-col-xs-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n}\n.ant-col-xs-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n}\n.ant-col-xs-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n}\n.ant-col-xs-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n}\n.ant-col-xs-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n}\n.ant-col-xs-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n}\n.ant-col-xs-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n}\n.ant-col-xs-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n}\n.ant-col-xs-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n}\n.ant-col-xs-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n}\n.ant-col-xs-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n}\n.ant-col-xs-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n}\n.ant-col-xs-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n}\n.ant-col-xs-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n}\n.ant-col-xs-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n}\n.ant-col-xs-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n}\n.ant-col-xs-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n}\n.ant-col-xs-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n}\n.ant-col-xs-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n}\n.ant-col-xs-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n}\n.ant-col-xs-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n}\n.ant-col-xs-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n}\n.ant-col-xs-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n}\n.ant-col-xs-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n}\n.ant-col-xs-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n}\n.ant-col-xs-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n}\n.ant-col-xs-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n}\n.ant-col-xs-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n}\n.ant-col-xs-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n}\n.ant-col-xs-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n}\n.ant-col-xs-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n}\n.ant-col-xs-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n}\n.ant-col-xs-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n}\n@media (min-width: 576px) {\n .ant-col-sm-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-sm-push-24 {\n left: 100%;\n }\n .ant-col-sm-pull-24 {\n right: 100%;\n }\n .ant-col-sm-offset-24 {\n margin-left: 100%;\n }\n .ant-col-sm-order-24 {\n order: 24;\n }\n .ant-col-sm-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-sm-push-23 {\n left: 95.83333333%;\n }\n .ant-col-sm-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-sm-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-sm-order-23 {\n order: 23;\n }\n .ant-col-sm-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-sm-push-22 {\n left: 91.66666667%;\n }\n .ant-col-sm-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-sm-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-sm-order-22 {\n order: 22;\n }\n .ant-col-sm-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-sm-push-21 {\n left: 87.5%;\n }\n .ant-col-sm-pull-21 {\n right: 87.5%;\n }\n .ant-col-sm-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-sm-order-21 {\n order: 21;\n }\n .ant-col-sm-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-sm-push-20 {\n left: 83.33333333%;\n }\n .ant-col-sm-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-sm-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-sm-order-20 {\n order: 20;\n }\n .ant-col-sm-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-sm-push-19 {\n left: 79.16666667%;\n }\n .ant-col-sm-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-sm-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-sm-order-19 {\n order: 19;\n }\n .ant-col-sm-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-sm-push-18 {\n left: 75%;\n }\n .ant-col-sm-pull-18 {\n right: 75%;\n }\n .ant-col-sm-offset-18 {\n margin-left: 75%;\n }\n .ant-col-sm-order-18 {\n order: 18;\n }\n .ant-col-sm-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-sm-push-17 {\n left: 70.83333333%;\n }\n .ant-col-sm-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-sm-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-sm-order-17 {\n order: 17;\n }\n .ant-col-sm-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-sm-push-16 {\n left: 66.66666667%;\n }\n .ant-col-sm-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-sm-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-sm-order-16 {\n order: 16;\n }\n .ant-col-sm-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-sm-push-15 {\n left: 62.5%;\n }\n .ant-col-sm-pull-15 {\n right: 62.5%;\n }\n .ant-col-sm-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-sm-order-15 {\n order: 15;\n }\n .ant-col-sm-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-sm-push-14 {\n left: 58.33333333%;\n }\n .ant-col-sm-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-sm-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-sm-order-14 {\n order: 14;\n }\n .ant-col-sm-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-sm-push-13 {\n left: 54.16666667%;\n }\n .ant-col-sm-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-sm-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-sm-order-13 {\n order: 13;\n }\n .ant-col-sm-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-sm-push-12 {\n left: 50%;\n }\n .ant-col-sm-pull-12 {\n right: 50%;\n }\n .ant-col-sm-offset-12 {\n margin-left: 50%;\n }\n .ant-col-sm-order-12 {\n order: 12;\n }\n .ant-col-sm-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-sm-push-11 {\n left: 45.83333333%;\n }\n .ant-col-sm-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-sm-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-sm-order-11 {\n order: 11;\n }\n .ant-col-sm-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-sm-push-10 {\n left: 41.66666667%;\n }\n .ant-col-sm-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-sm-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-sm-order-10 {\n order: 10;\n }\n .ant-col-sm-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-sm-push-9 {\n left: 37.5%;\n }\n .ant-col-sm-pull-9 {\n right: 37.5%;\n }\n .ant-col-sm-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-sm-order-9 {\n order: 9;\n }\n .ant-col-sm-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-sm-push-8 {\n left: 33.33333333%;\n }\n .ant-col-sm-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-sm-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-sm-order-8 {\n order: 8;\n }\n .ant-col-sm-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-sm-push-7 {\n left: 29.16666667%;\n }\n .ant-col-sm-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-sm-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-sm-order-7 {\n order: 7;\n }\n .ant-col-sm-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-sm-push-6 {\n left: 25%;\n }\n .ant-col-sm-pull-6 {\n right: 25%;\n }\n .ant-col-sm-offset-6 {\n margin-left: 25%;\n }\n .ant-col-sm-order-6 {\n order: 6;\n }\n .ant-col-sm-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-sm-push-5 {\n left: 20.83333333%;\n }\n .ant-col-sm-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-sm-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-sm-order-5 {\n order: 5;\n }\n .ant-col-sm-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-sm-push-4 {\n left: 16.66666667%;\n }\n .ant-col-sm-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-sm-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-sm-order-4 {\n order: 4;\n }\n .ant-col-sm-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-sm-push-3 {\n left: 12.5%;\n }\n .ant-col-sm-pull-3 {\n right: 12.5%;\n }\n .ant-col-sm-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-sm-order-3 {\n order: 3;\n }\n .ant-col-sm-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-sm-push-2 {\n left: 8.33333333%;\n }\n .ant-col-sm-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-sm-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-sm-order-2 {\n order: 2;\n }\n .ant-col-sm-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-sm-push-1 {\n left: 4.16666667%;\n }\n .ant-col-sm-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-sm-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-sm-order-1 {\n order: 1;\n }\n .ant-col-sm-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-sm-push-0 {\n left: auto;\n }\n .ant-col-sm-pull-0 {\n right: auto;\n }\n .ant-col-sm-offset-0 {\n margin-left: 0;\n }\n .ant-col-sm-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-sm-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-sm-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-sm-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-sm-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-sm-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-sm-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-sm-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-sm-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-sm-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-sm-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-sm-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-sm-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-sm-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-sm-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-sm-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-sm-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-sm-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-sm-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-sm-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-sm-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-sm-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-sm-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-sm-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-sm-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-sm-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-sm-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-sm-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-sm-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-sm-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-sm-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-sm-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-sm-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-sm-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-sm-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-sm-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-sm-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-sm-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-sm-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-sm-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 768px) {\n .ant-col-md-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-md-push-24 {\n left: 100%;\n }\n .ant-col-md-pull-24 {\n right: 100%;\n }\n .ant-col-md-offset-24 {\n margin-left: 100%;\n }\n .ant-col-md-order-24 {\n order: 24;\n }\n .ant-col-md-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-md-push-23 {\n left: 95.83333333%;\n }\n .ant-col-md-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-md-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-md-order-23 {\n order: 23;\n }\n .ant-col-md-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-md-push-22 {\n left: 91.66666667%;\n }\n .ant-col-md-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-md-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-md-order-22 {\n order: 22;\n }\n .ant-col-md-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-md-push-21 {\n left: 87.5%;\n }\n .ant-col-md-pull-21 {\n right: 87.5%;\n }\n .ant-col-md-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-md-order-21 {\n order: 21;\n }\n .ant-col-md-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-md-push-20 {\n left: 83.33333333%;\n }\n .ant-col-md-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-md-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-md-order-20 {\n order: 20;\n }\n .ant-col-md-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-md-push-19 {\n left: 79.16666667%;\n }\n .ant-col-md-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-md-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-md-order-19 {\n order: 19;\n }\n .ant-col-md-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-md-push-18 {\n left: 75%;\n }\n .ant-col-md-pull-18 {\n right: 75%;\n }\n .ant-col-md-offset-18 {\n margin-left: 75%;\n }\n .ant-col-md-order-18 {\n order: 18;\n }\n .ant-col-md-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-md-push-17 {\n left: 70.83333333%;\n }\n .ant-col-md-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-md-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-md-order-17 {\n order: 17;\n }\n .ant-col-md-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-md-push-16 {\n left: 66.66666667%;\n }\n .ant-col-md-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-md-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-md-order-16 {\n order: 16;\n }\n .ant-col-md-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-md-push-15 {\n left: 62.5%;\n }\n .ant-col-md-pull-15 {\n right: 62.5%;\n }\n .ant-col-md-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-md-order-15 {\n order: 15;\n }\n .ant-col-md-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-md-push-14 {\n left: 58.33333333%;\n }\n .ant-col-md-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-md-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-md-order-14 {\n order: 14;\n }\n .ant-col-md-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-md-push-13 {\n left: 54.16666667%;\n }\n .ant-col-md-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-md-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-md-order-13 {\n order: 13;\n }\n .ant-col-md-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-md-push-12 {\n left: 50%;\n }\n .ant-col-md-pull-12 {\n right: 50%;\n }\n .ant-col-md-offset-12 {\n margin-left: 50%;\n }\n .ant-col-md-order-12 {\n order: 12;\n }\n .ant-col-md-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-md-push-11 {\n left: 45.83333333%;\n }\n .ant-col-md-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-md-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-md-order-11 {\n order: 11;\n }\n .ant-col-md-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-md-push-10 {\n left: 41.66666667%;\n }\n .ant-col-md-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-md-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-md-order-10 {\n order: 10;\n }\n .ant-col-md-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-md-push-9 {\n left: 37.5%;\n }\n .ant-col-md-pull-9 {\n right: 37.5%;\n }\n .ant-col-md-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-md-order-9 {\n order: 9;\n }\n .ant-col-md-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-md-push-8 {\n left: 33.33333333%;\n }\n .ant-col-md-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-md-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-md-order-8 {\n order: 8;\n }\n .ant-col-md-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-md-push-7 {\n left: 29.16666667%;\n }\n .ant-col-md-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-md-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-md-order-7 {\n order: 7;\n }\n .ant-col-md-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-md-push-6 {\n left: 25%;\n }\n .ant-col-md-pull-6 {\n right: 25%;\n }\n .ant-col-md-offset-6 {\n margin-left: 25%;\n }\n .ant-col-md-order-6 {\n order: 6;\n }\n .ant-col-md-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-md-push-5 {\n left: 20.83333333%;\n }\n .ant-col-md-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-md-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-md-order-5 {\n order: 5;\n }\n .ant-col-md-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-md-push-4 {\n left: 16.66666667%;\n }\n .ant-col-md-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-md-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-md-order-4 {\n order: 4;\n }\n .ant-col-md-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-md-push-3 {\n left: 12.5%;\n }\n .ant-col-md-pull-3 {\n right: 12.5%;\n }\n .ant-col-md-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-md-order-3 {\n order: 3;\n }\n .ant-col-md-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-md-push-2 {\n left: 8.33333333%;\n }\n .ant-col-md-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-md-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-md-order-2 {\n order: 2;\n }\n .ant-col-md-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-md-push-1 {\n left: 4.16666667%;\n }\n .ant-col-md-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-md-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-md-order-1 {\n order: 1;\n }\n .ant-col-md-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-md-push-0 {\n left: auto;\n }\n .ant-col-md-pull-0 {\n right: auto;\n }\n .ant-col-md-offset-0 {\n margin-left: 0;\n }\n .ant-col-md-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-md-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-md-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-md-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-md-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-md-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-md-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-md-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-md-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-md-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-md-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-md-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-md-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-md-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-md-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-md-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-md-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-md-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-md-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-md-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-md-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-md-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-md-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-md-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-md-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-md-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-md-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-md-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-md-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-md-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-md-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-md-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-md-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-md-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-md-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-md-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-md-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-md-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-md-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-md-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-md-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-md-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-md-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-md-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-md-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-md-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-md-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-md-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-md-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-md-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-md-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-md-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-md-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-md-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-md-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-md-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-md-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-md-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-md-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-md-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 992px) {\n .ant-col-lg-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-lg-push-24 {\n left: 100%;\n }\n .ant-col-lg-pull-24 {\n right: 100%;\n }\n .ant-col-lg-offset-24 {\n margin-left: 100%;\n }\n .ant-col-lg-order-24 {\n order: 24;\n }\n .ant-col-lg-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-lg-push-23 {\n left: 95.83333333%;\n }\n .ant-col-lg-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-lg-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-lg-order-23 {\n order: 23;\n }\n .ant-col-lg-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-lg-push-22 {\n left: 91.66666667%;\n }\n .ant-col-lg-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-lg-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-lg-order-22 {\n order: 22;\n }\n .ant-col-lg-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-lg-push-21 {\n left: 87.5%;\n }\n .ant-col-lg-pull-21 {\n right: 87.5%;\n }\n .ant-col-lg-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-lg-order-21 {\n order: 21;\n }\n .ant-col-lg-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-lg-push-20 {\n left: 83.33333333%;\n }\n .ant-col-lg-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-lg-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-lg-order-20 {\n order: 20;\n }\n .ant-col-lg-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-lg-push-19 {\n left: 79.16666667%;\n }\n .ant-col-lg-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-lg-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-lg-order-19 {\n order: 19;\n }\n .ant-col-lg-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-lg-push-18 {\n left: 75%;\n }\n .ant-col-lg-pull-18 {\n right: 75%;\n }\n .ant-col-lg-offset-18 {\n margin-left: 75%;\n }\n .ant-col-lg-order-18 {\n order: 18;\n }\n .ant-col-lg-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-lg-push-17 {\n left: 70.83333333%;\n }\n .ant-col-lg-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-lg-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-lg-order-17 {\n order: 17;\n }\n .ant-col-lg-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-lg-push-16 {\n left: 66.66666667%;\n }\n .ant-col-lg-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-lg-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-lg-order-16 {\n order: 16;\n }\n .ant-col-lg-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-lg-push-15 {\n left: 62.5%;\n }\n .ant-col-lg-pull-15 {\n right: 62.5%;\n }\n .ant-col-lg-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-lg-order-15 {\n order: 15;\n }\n .ant-col-lg-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-lg-push-14 {\n left: 58.33333333%;\n }\n .ant-col-lg-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-lg-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-lg-order-14 {\n order: 14;\n }\n .ant-col-lg-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-lg-push-13 {\n left: 54.16666667%;\n }\n .ant-col-lg-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-lg-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-lg-order-13 {\n order: 13;\n }\n .ant-col-lg-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-lg-push-12 {\n left: 50%;\n }\n .ant-col-lg-pull-12 {\n right: 50%;\n }\n .ant-col-lg-offset-12 {\n margin-left: 50%;\n }\n .ant-col-lg-order-12 {\n order: 12;\n }\n .ant-col-lg-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-lg-push-11 {\n left: 45.83333333%;\n }\n .ant-col-lg-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-lg-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-lg-order-11 {\n order: 11;\n }\n .ant-col-lg-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-lg-push-10 {\n left: 41.66666667%;\n }\n .ant-col-lg-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-lg-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-lg-order-10 {\n order: 10;\n }\n .ant-col-lg-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-lg-push-9 {\n left: 37.5%;\n }\n .ant-col-lg-pull-9 {\n right: 37.5%;\n }\n .ant-col-lg-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-lg-order-9 {\n order: 9;\n }\n .ant-col-lg-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-lg-push-8 {\n left: 33.33333333%;\n }\n .ant-col-lg-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-lg-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-lg-order-8 {\n order: 8;\n }\n .ant-col-lg-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-lg-push-7 {\n left: 29.16666667%;\n }\n .ant-col-lg-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-lg-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-lg-order-7 {\n order: 7;\n }\n .ant-col-lg-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-lg-push-6 {\n left: 25%;\n }\n .ant-col-lg-pull-6 {\n right: 25%;\n }\n .ant-col-lg-offset-6 {\n margin-left: 25%;\n }\n .ant-col-lg-order-6 {\n order: 6;\n }\n .ant-col-lg-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-lg-push-5 {\n left: 20.83333333%;\n }\n .ant-col-lg-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-lg-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-lg-order-5 {\n order: 5;\n }\n .ant-col-lg-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-lg-push-4 {\n left: 16.66666667%;\n }\n .ant-col-lg-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-lg-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-lg-order-4 {\n order: 4;\n }\n .ant-col-lg-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-lg-push-3 {\n left: 12.5%;\n }\n .ant-col-lg-pull-3 {\n right: 12.5%;\n }\n .ant-col-lg-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-lg-order-3 {\n order: 3;\n }\n .ant-col-lg-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-lg-push-2 {\n left: 8.33333333%;\n }\n .ant-col-lg-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-lg-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-lg-order-2 {\n order: 2;\n }\n .ant-col-lg-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-lg-push-1 {\n left: 4.16666667%;\n }\n .ant-col-lg-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-lg-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-lg-order-1 {\n order: 1;\n }\n .ant-col-lg-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-lg-push-0 {\n left: auto;\n }\n .ant-col-lg-pull-0 {\n right: auto;\n }\n .ant-col-lg-offset-0 {\n margin-left: 0;\n }\n .ant-col-lg-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-lg-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-lg-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-lg-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-lg-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-lg-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-lg-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-lg-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-lg-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-lg-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-lg-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-lg-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-lg-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-lg-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-lg-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-lg-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-lg-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-lg-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-lg-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-lg-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-lg-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-lg-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-lg-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-lg-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-lg-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-lg-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-lg-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-lg-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-lg-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-lg-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-lg-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-lg-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-lg-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-lg-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-lg-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-lg-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-lg-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-lg-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-lg-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-lg-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 1200px) {\n .ant-col-xl-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xl-push-24 {\n left: 100%;\n }\n .ant-col-xl-pull-24 {\n right: 100%;\n }\n .ant-col-xl-offset-24 {\n margin-left: 100%;\n }\n .ant-col-xl-order-24 {\n order: 24;\n }\n .ant-col-xl-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-xl-push-23 {\n left: 95.83333333%;\n }\n .ant-col-xl-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-xl-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-xl-order-23 {\n order: 23;\n }\n .ant-col-xl-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-xl-push-22 {\n left: 91.66666667%;\n }\n .ant-col-xl-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-xl-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-xl-order-22 {\n order: 22;\n }\n .ant-col-xl-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-xl-push-21 {\n left: 87.5%;\n }\n .ant-col-xl-pull-21 {\n right: 87.5%;\n }\n .ant-col-xl-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-xl-order-21 {\n order: 21;\n }\n .ant-col-xl-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-xl-push-20 {\n left: 83.33333333%;\n }\n .ant-col-xl-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-xl-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-xl-order-20 {\n order: 20;\n }\n .ant-col-xl-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-xl-push-19 {\n left: 79.16666667%;\n }\n .ant-col-xl-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-xl-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-xl-order-19 {\n order: 19;\n }\n .ant-col-xl-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-xl-push-18 {\n left: 75%;\n }\n .ant-col-xl-pull-18 {\n right: 75%;\n }\n .ant-col-xl-offset-18 {\n margin-left: 75%;\n }\n .ant-col-xl-order-18 {\n order: 18;\n }\n .ant-col-xl-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-xl-push-17 {\n left: 70.83333333%;\n }\n .ant-col-xl-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-xl-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-xl-order-17 {\n order: 17;\n }\n .ant-col-xl-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-xl-push-16 {\n left: 66.66666667%;\n }\n .ant-col-xl-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-xl-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-xl-order-16 {\n order: 16;\n }\n .ant-col-xl-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-xl-push-15 {\n left: 62.5%;\n }\n .ant-col-xl-pull-15 {\n right: 62.5%;\n }\n .ant-col-xl-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-xl-order-15 {\n order: 15;\n }\n .ant-col-xl-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-xl-push-14 {\n left: 58.33333333%;\n }\n .ant-col-xl-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-xl-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-xl-order-14 {\n order: 14;\n }\n .ant-col-xl-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-xl-push-13 {\n left: 54.16666667%;\n }\n .ant-col-xl-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-xl-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-xl-order-13 {\n order: 13;\n }\n .ant-col-xl-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-xl-push-12 {\n left: 50%;\n }\n .ant-col-xl-pull-12 {\n right: 50%;\n }\n .ant-col-xl-offset-12 {\n margin-left: 50%;\n }\n .ant-col-xl-order-12 {\n order: 12;\n }\n .ant-col-xl-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-xl-push-11 {\n left: 45.83333333%;\n }\n .ant-col-xl-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-xl-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-xl-order-11 {\n order: 11;\n }\n .ant-col-xl-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-xl-push-10 {\n left: 41.66666667%;\n }\n .ant-col-xl-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-xl-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-xl-order-10 {\n order: 10;\n }\n .ant-col-xl-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-xl-push-9 {\n left: 37.5%;\n }\n .ant-col-xl-pull-9 {\n right: 37.5%;\n }\n .ant-col-xl-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-xl-order-9 {\n order: 9;\n }\n .ant-col-xl-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-xl-push-8 {\n left: 33.33333333%;\n }\n .ant-col-xl-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-xl-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-xl-order-8 {\n order: 8;\n }\n .ant-col-xl-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-xl-push-7 {\n left: 29.16666667%;\n }\n .ant-col-xl-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-xl-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-xl-order-7 {\n order: 7;\n }\n .ant-col-xl-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-xl-push-6 {\n left: 25%;\n }\n .ant-col-xl-pull-6 {\n right: 25%;\n }\n .ant-col-xl-offset-6 {\n margin-left: 25%;\n }\n .ant-col-xl-order-6 {\n order: 6;\n }\n .ant-col-xl-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-xl-push-5 {\n left: 20.83333333%;\n }\n .ant-col-xl-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-xl-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-xl-order-5 {\n order: 5;\n }\n .ant-col-xl-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-xl-push-4 {\n left: 16.66666667%;\n }\n .ant-col-xl-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-xl-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-xl-order-4 {\n order: 4;\n }\n .ant-col-xl-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-xl-push-3 {\n left: 12.5%;\n }\n .ant-col-xl-pull-3 {\n right: 12.5%;\n }\n .ant-col-xl-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-xl-order-3 {\n order: 3;\n }\n .ant-col-xl-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-xl-push-2 {\n left: 8.33333333%;\n }\n .ant-col-xl-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-xl-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-xl-order-2 {\n order: 2;\n }\n .ant-col-xl-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-xl-push-1 {\n left: 4.16666667%;\n }\n .ant-col-xl-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-xl-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-xl-order-1 {\n order: 1;\n }\n .ant-col-xl-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-xl-push-0 {\n left: auto;\n }\n .ant-col-xl-pull-0 {\n right: auto;\n }\n .ant-col-xl-offset-0 {\n margin-left: 0;\n }\n .ant-col-xl-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xl-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-xl-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xl-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-xl-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-xl-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-xl-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-xl-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-xl-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-xl-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-xl-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-xl-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-xl-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-xl-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-xl-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-xl-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-xl-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-xl-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-xl-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-xl-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-xl-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-xl-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-xl-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-xl-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-xl-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-xl-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-xl-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-xl-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-xl-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-xl-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-xl-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-xl-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-xl-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-xl-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-xl-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-xl-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-xl-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-xl-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-xl-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-xl-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 1600px) {\n .ant-col-xxl-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xxl-push-24 {\n left: 100%;\n }\n .ant-col-xxl-pull-24 {\n right: 100%;\n }\n .ant-col-xxl-offset-24 {\n margin-left: 100%;\n }\n .ant-col-xxl-order-24 {\n order: 24;\n }\n .ant-col-xxl-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-xxl-push-23 {\n left: 95.83333333%;\n }\n .ant-col-xxl-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-xxl-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-xxl-order-23 {\n order: 23;\n }\n .ant-col-xxl-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-xxl-push-22 {\n left: 91.66666667%;\n }\n .ant-col-xxl-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-xxl-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-xxl-order-22 {\n order: 22;\n }\n .ant-col-xxl-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-xxl-push-21 {\n left: 87.5%;\n }\n .ant-col-xxl-pull-21 {\n right: 87.5%;\n }\n .ant-col-xxl-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-xxl-order-21 {\n order: 21;\n }\n .ant-col-xxl-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-xxl-push-20 {\n left: 83.33333333%;\n }\n .ant-col-xxl-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-xxl-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-xxl-order-20 {\n order: 20;\n }\n .ant-col-xxl-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-xxl-push-19 {\n left: 79.16666667%;\n }\n .ant-col-xxl-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-xxl-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-xxl-order-19 {\n order: 19;\n }\n .ant-col-xxl-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-xxl-push-18 {\n left: 75%;\n }\n .ant-col-xxl-pull-18 {\n right: 75%;\n }\n .ant-col-xxl-offset-18 {\n margin-left: 75%;\n }\n .ant-col-xxl-order-18 {\n order: 18;\n }\n .ant-col-xxl-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-xxl-push-17 {\n left: 70.83333333%;\n }\n .ant-col-xxl-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-xxl-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-xxl-order-17 {\n order: 17;\n }\n .ant-col-xxl-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-xxl-push-16 {\n left: 66.66666667%;\n }\n .ant-col-xxl-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-xxl-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-xxl-order-16 {\n order: 16;\n }\n .ant-col-xxl-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-xxl-push-15 {\n left: 62.5%;\n }\n .ant-col-xxl-pull-15 {\n right: 62.5%;\n }\n .ant-col-xxl-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-xxl-order-15 {\n order: 15;\n }\n .ant-col-xxl-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-xxl-push-14 {\n left: 58.33333333%;\n }\n .ant-col-xxl-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-xxl-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-xxl-order-14 {\n order: 14;\n }\n .ant-col-xxl-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-xxl-push-13 {\n left: 54.16666667%;\n }\n .ant-col-xxl-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-xxl-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-xxl-order-13 {\n order: 13;\n }\n .ant-col-xxl-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-xxl-push-12 {\n left: 50%;\n }\n .ant-col-xxl-pull-12 {\n right: 50%;\n }\n .ant-col-xxl-offset-12 {\n margin-left: 50%;\n }\n .ant-col-xxl-order-12 {\n order: 12;\n }\n .ant-col-xxl-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-xxl-push-11 {\n left: 45.83333333%;\n }\n .ant-col-xxl-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-xxl-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-xxl-order-11 {\n order: 11;\n }\n .ant-col-xxl-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-xxl-push-10 {\n left: 41.66666667%;\n }\n .ant-col-xxl-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-xxl-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-xxl-order-10 {\n order: 10;\n }\n .ant-col-xxl-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-xxl-push-9 {\n left: 37.5%;\n }\n .ant-col-xxl-pull-9 {\n right: 37.5%;\n }\n .ant-col-xxl-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-xxl-order-9 {\n order: 9;\n }\n .ant-col-xxl-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-xxl-push-8 {\n left: 33.33333333%;\n }\n .ant-col-xxl-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-xxl-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-xxl-order-8 {\n order: 8;\n }\n .ant-col-xxl-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-xxl-push-7 {\n left: 29.16666667%;\n }\n .ant-col-xxl-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-xxl-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-xxl-order-7 {\n order: 7;\n }\n .ant-col-xxl-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-xxl-push-6 {\n left: 25%;\n }\n .ant-col-xxl-pull-6 {\n right: 25%;\n }\n .ant-col-xxl-offset-6 {\n margin-left: 25%;\n }\n .ant-col-xxl-order-6 {\n order: 6;\n }\n .ant-col-xxl-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-xxl-push-5 {\n left: 20.83333333%;\n }\n .ant-col-xxl-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-xxl-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-xxl-order-5 {\n order: 5;\n }\n .ant-col-xxl-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-xxl-push-4 {\n left: 16.66666667%;\n }\n .ant-col-xxl-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-xxl-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-xxl-order-4 {\n order: 4;\n }\n .ant-col-xxl-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-xxl-push-3 {\n left: 12.5%;\n }\n .ant-col-xxl-pull-3 {\n right: 12.5%;\n }\n .ant-col-xxl-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-xxl-order-3 {\n order: 3;\n }\n .ant-col-xxl-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-xxl-push-2 {\n left: 8.33333333%;\n }\n .ant-col-xxl-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-xxl-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-xxl-order-2 {\n order: 2;\n }\n .ant-col-xxl-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-xxl-push-1 {\n left: 4.16666667%;\n }\n .ant-col-xxl-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-xxl-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-xxl-order-1 {\n order: 1;\n }\n .ant-col-xxl-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-xxl-push-0 {\n left: auto;\n }\n .ant-col-xxl-pull-0 {\n right: auto;\n }\n .ant-col-xxl-offset-0 {\n margin-left: 0;\n }\n .ant-col-xxl-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xxl-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-xxl-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xxl-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-xxl-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-xxl-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-xxl-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-xxl-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-xxl-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-xxl-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-xxl-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-xxl-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-xxl-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-xxl-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-xxl-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-xxl-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-xxl-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-xxl-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-xxl-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-xxl-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-xxl-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-xxl-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-xxl-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-xxl-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-xxl-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-xxl-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-xxl-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-xxl-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-xxl-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-xxl-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-xxl-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-xxl-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-xxl-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-xxl-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-xxl-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-xxl-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-xxl-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-xxl-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-xxl-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-xxl-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n.ant-row-rtl {\n direction: rtl;\n}\n.ant-image {\n position: relative;\n display: inline-block;\n}\n.ant-image-img {\n display: block;\n width: 100%;\n height: auto;\n}\n.ant-image-img-placeholder {\n background-color: #f5f5f5;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=);\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 30%;\n}\n.ant-image-mask {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n background: rgba(0, 0, 0, 0.5);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.ant-image-mask-info .anticon {\n margin-inline-end: 4px;\n}\n.ant-image-mask:hover {\n opacity: 1;\n}\n.ant-image-placeholder {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ant-image-preview {\n pointer-events: none;\n height: 100%;\n text-align: center;\n}\n.ant-image-preview.zoom-enter,\n.ant-image-preview.zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.ant-image-preview-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1000;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.ant-image-preview-mask-hidden {\n display: none;\n}\n.ant-image-preview-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n -webkit-overflow-scrolling: touch;\n}\n.ant-image-preview-body {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n}\n.ant-image-preview-img {\n max-width: 100%;\n max-height: 100%;\n vertical-align: middle;\n transform: scale3d(1, 1, 1);\n cursor: grab;\n transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;\n user-select: none;\n pointer-events: auto;\n}\n.ant-image-preview-img-wrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;\n}\n.ant-image-preview-img-wrapper::before {\n display: inline-block;\n width: 1px;\n height: 50%;\n margin-right: -1px;\n content: '';\n}\n.ant-image-preview-moving .ant-image-preview-img {\n cursor: grabbing;\n}\n.ant-image-preview-moving .ant-image-preview-img-wrapper {\n transition-duration: 0s;\n}\n.ant-image-preview-wrap {\n z-index: 1080;\n}\n.ant-image-preview-operations {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n width: 100%;\n color: rgba(255, 255, 255, 0.85);\n list-style: none;\n background: rgba(0, 0, 0, 0.1);\n pointer-events: auto;\n}\n.ant-image-preview-operations-operation {\n margin-left: 12px;\n padding: 12px;\n cursor: pointer;\n}\n.ant-image-preview-operations-operation-disabled {\n color: rgba(255, 255, 255, 0.25);\n pointer-events: none;\n}\n.ant-image-preview-operations-operation:last-of-type {\n margin-left: 0;\n}\n.ant-image-preview-operations-icon {\n font-size: 18px;\n}\n.ant-image-preview-switch-left,\n.ant-image-preview-switch-right {\n position: absolute;\n top: 50%;\n right: 10px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 44px;\n height: 44px;\n margin-top: -22px;\n color: rgba(255, 255, 255, 0.85);\n background: rgba(0, 0, 0, 0.1);\n border-radius: 50%;\n cursor: pointer;\n pointer-events: auto;\n}\n.ant-image-preview-switch-left-disabled,\n.ant-image-preview-switch-right-disabled {\n color: rgba(255, 255, 255, 0.25);\n cursor: not-allowed;\n}\n.ant-image-preview-switch-left-disabled > .anticon,\n.ant-image-preview-switch-right-disabled > .anticon {\n cursor: not-allowed;\n}\n.ant-image-preview-switch-left > .anticon,\n.ant-image-preview-switch-right > .anticon {\n font-size: 18px;\n}\n.ant-image-preview-switch-left {\n left: 10px;\n}\n.ant-image-preview-switch-right {\n right: 10px;\n}\n.ant-input-affix-wrapper {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n display: inline-flex;\n}\n.ant-input-affix-wrapper::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-affix-wrapper::placeholder {\n color: #bfbfbf;\n}\n.ant-input-affix-wrapper:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-affix-wrapper:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input-affix-wrapper:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-affix-wrapper:focus,\n.ant-input-affix-wrapper-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-affix-wrapper:focus,\n.ant-input-rtl .ant-input-affix-wrapper-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-affix-wrapper-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-affix-wrapper-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-affix-wrapper[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-affix-wrapper[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-affix-wrapper-borderless,\n.ant-input-affix-wrapper-borderless:hover,\n.ant-input-affix-wrapper-borderless:focus,\n.ant-input-affix-wrapper-borderless-focused,\n.ant-input-affix-wrapper-borderless-disabled,\n.ant-input-affix-wrapper-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input-affix-wrapper {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-affix-wrapper-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-affix-wrapper-sm {\n padding: 0px 7px;\n}\n.ant-input-affix-wrapper-rtl {\n direction: rtl;\n}\n.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n z-index: 1;\n}\n.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-search-with-button .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n z-index: 0;\n}\n.ant-input-affix-wrapper-focused,\n.ant-input-affix-wrapper:focus {\n z-index: 1;\n}\n.ant-input-affix-wrapper-disabled .ant-input[disabled] {\n background: transparent;\n}\n.ant-input-affix-wrapper > input.ant-input {\n padding: 0;\n border: none;\n outline: none;\n}\n.ant-input-affix-wrapper > input.ant-input:focus {\n box-shadow: none;\n}\n.ant-input-affix-wrapper::before {\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\n.ant-input-prefix,\n.ant-input-suffix {\n display: flex;\n flex: none;\n align-items: center;\n}\n.ant-input-prefix {\n margin-right: 4px;\n}\n.ant-input-suffix {\n margin-left: 4px;\n}\n.ant-input-clear-icon {\n margin: 0 4px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n vertical-align: -1px;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-input-clear-icon:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-input-clear-icon:active {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-input-clear-icon-hidden {\n visibility: hidden;\n}\n.ant-input-clear-icon:last-child {\n margin-right: 0;\n}\n.ant-input-affix-wrapper-textarea-with-clear-btn {\n padding: 0 !important;\n border: 0 !important;\n}\n.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 1;\n}\n.ant-input {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n}\n.ant-input::-moz-placeholder {\n opacity: 1;\n}\n.ant-input::placeholder {\n color: #bfbfbf;\n}\n.ant-input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input:focus,\n.ant-input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input:focus,\n.ant-input-rtl .ant-input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-borderless,\n.ant-input-borderless:hover,\n.ant-input-borderless:focus,\n.ant-input-borderless-focused,\n.ant-input-borderless-disabled,\n.ant-input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-sm {\n padding: 0px 7px;\n}\n.ant-input-rtl {\n direction: rtl;\n}\n.ant-input-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: table;\n width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n}\n.ant-input-group[class*='col-'] {\n float: none;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-input-group > [class*='col-'] {\n padding-right: 8px;\n}\n.ant-input-group > [class*='col-']:last-child {\n padding-right: 0;\n}\n.ant-input-group-addon,\n.ant-input-group-wrap,\n.ant-input-group > .ant-input {\n display: table-cell;\n}\n.ant-input-group-addon:not(:first-child):not(:last-child),\n.ant-input-group-wrap:not(:first-child):not(:last-child),\n.ant-input-group > .ant-input:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.ant-input-group-addon,\n.ant-input-group-wrap {\n width: 1px;\n white-space: nowrap;\n vertical-align: middle;\n}\n.ant-input-group-wrap > * {\n display: block !important;\n}\n.ant-input-group .ant-input {\n float: left;\n width: 100%;\n margin-bottom: 0;\n text-align: inherit;\n}\n.ant-input-group .ant-input:focus {\n z-index: 1;\n border-right-width: 1px;\n}\n.ant-input-group .ant-input:hover {\n z-index: 1;\n border-right-width: 1px;\n}\n.ant-input-search-with-button .ant-input-group .ant-input:hover {\n z-index: 0;\n}\n.ant-input-group-addon {\n position: relative;\n padding: 0 11px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n text-align: center;\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n}\n.ant-input-group-addon .ant-select {\n margin: -5px -11px;\n}\n.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n background-color: inherit;\n border: 1px solid transparent;\n box-shadow: none;\n}\n.ant-input-group-addon .ant-select-open .ant-select-selector,\n.ant-input-group-addon .ant-select-focused .ant-select-selector {\n color: #5b5ce1;\n}\n.ant-input-group > .ant-input:first-child,\n.ant-input-group-addon:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group > .ant-input:first-child .ant-select .ant-select-selector,\n.ant-input-group-addon:first-child .ant-select .ant-select-selector {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group-addon:first-child {\n border-right: 0;\n}\n.ant-input-group-addon:last-child {\n border-left: 0;\n}\n.ant-input-group > .ant-input:last-child,\n.ant-input-group-addon:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group > .ant-input:last-child .ant-select .ant-select-selector,\n.ant-input-group-addon:last-child .ant-select .ant-select-selector {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group-lg .ant-input,\n.ant-input-group-lg > .ant-input-group-addon {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-group-sm .ant-input,\n.ant-input-group-sm > .ant-input-group-addon {\n padding: 0px 7px;\n}\n.ant-input-group-lg .ant-select-single .ant-select-selector {\n height: 40px;\n}\n.ant-input-group-sm .ant-select-single .ant-select-selector {\n height: 24px;\n}\n.ant-input-group .ant-input-affix-wrapper:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact {\n display: block;\n}\n.ant-input-group.ant-input-group-compact::before {\n display: table;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::before {\n display: table;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child),\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child),\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child) {\n border-right-width: 1px;\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):hover,\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):hover,\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child):hover {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):focus,\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):focus,\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child):focus {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > * {\n display: inline-block;\n float: none;\n vertical-align: top;\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper {\n display: inline-flex;\n}\n.ant-input-group.ant-input-group-compact > .ant-picker-range {\n display: inline-flex;\n}\n.ant-input-group.ant-input-group-compact > *:not(:last-child) {\n margin-right: -1px;\n border-right-width: 1px;\n}\n.ant-input-group.ant-input-group-compact .ant-input {\n float: none;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input {\n border-right-width: 1px;\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector:hover,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input:hover,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input:hover,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input:hover {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector:focus,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input:focus,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input:focus,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input:focus {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select-focused {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-arrow {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > *:first-child,\n.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact > *:last-child,\n.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {\n border-right-width: 1px;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input {\n vertical-align: top;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper + .ant-input-group-wrapper {\n margin-left: -1px;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper + .ant-input-group-wrapper .ant-input-affix-wrapper {\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input-group-addon > .ant-input-search-button {\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group > .ant-input-rtl:first-child,\n.ant-input-group-rtl .ant-input-group-addon:first-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl .ant-input-group-addon:first-child {\n border-right: 1px solid #d9d9d9;\n border-left: 0;\n}\n.ant-input-group-rtl .ant-input-group-addon:last-child {\n border-right: 0;\n border-left: 1px solid #d9d9d9;\n}\n.ant-input-group-rtl.ant-input-group > .ant-input:last-child,\n.ant-input-group-rtl.ant-input-group-addon:last-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child) {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:not(:last-child) {\n margin-right: 0;\n margin-left: -1px;\n border-left-width: 1px;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:first-child,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:last-child,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {\n border-left-width: 1px;\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl + .ant-input-group-wrapper-rtl {\n margin-right: -1px;\n margin-left: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-wrapper {\n display: inline-block;\n width: 100%;\n text-align: start;\n vertical-align: top;\n}\n.ant-input-password-icon {\n color: rgba(0, 0, 0, 0.45);\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-input-password-icon:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-input[type='color'] {\n height: 32px;\n}\n.ant-input[type='color'].ant-input-lg {\n height: 40px;\n}\n.ant-input[type='color'].ant-input-sm {\n height: 24px;\n padding-top: 3px;\n padding-bottom: 3px;\n}\n.ant-input-textarea-show-count::after {\n float: right;\n color: rgba(0, 0, 0, 0.45);\n white-space: nowrap;\n content: attr(data-count);\n pointer-events: none;\n}\n.ant-input-search .ant-input:hover,\n.ant-input-search .ant-input:focus {\n border-color: #8588ed;\n}\n.ant-input-search .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),\n.ant-input-search .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {\n border-left-color: #8588ed;\n}\n.ant-input-search .ant-input-affix-wrapper {\n border-radius: 0;\n}\n.ant-input-search .ant-input-lg {\n line-height: 1.5713;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child {\n left: -1px;\n padding: 0;\n border: 0;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 5px 5px 0;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary) {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary).ant-btn-loading::before {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ant-input-search-button {\n height: 32px;\n}\n.ant-input-search-button:hover,\n.ant-input-search-button:focus {\n z-index: 1;\n}\n.ant-input-search-large .ant-input-search-button {\n height: 40px;\n}\n.ant-input-search-small .ant-input-search-button {\n height: 24px;\n}\n.ant-input-group-wrapper-rtl {\n direction: rtl;\n}\n.ant-input-group-rtl {\n direction: rtl;\n}\n.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl > input.ant-input {\n border: none;\n outline: none;\n}\n.ant-input-affix-wrapper-rtl .ant-input-prefix {\n margin: 0 0 0 4px;\n}\n.ant-input-affix-wrapper-rtl .ant-input-suffix {\n margin: 0 4px 0 0;\n}\n.ant-input-textarea-rtl {\n direction: rtl;\n}\n.ant-input-textarea-rtl.ant-input-textarea-show-count::after {\n text-align: left;\n}\n.ant-input-affix-wrapper-rtl .ant-input-clear-icon:last-child {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-input-affix-wrapper-rtl .ant-input-clear-icon {\n right: auto;\n left: 8px;\n}\n.ant-input-search-rtl {\n direction: rtl;\n}\n.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),\n.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {\n border-right-color: #8588ed;\n border-left-color: #d9d9d9;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,\n.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {\n border-right-color: #8588ed;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {\n right: -1px;\n left: auto;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {\n border-radius: 5px 0 0 5px;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ant-input {\n height: 32px;\n }\n .ant-input-lg {\n height: 40px;\n }\n .ant-input-sm {\n height: 24px;\n }\n .ant-input-affix-wrapper > input.ant-input {\n height: auto;\n }\n}\n.ant-input-number {\n box-sizing: border-box;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n transition: all 0.3s;\n display: inline-block;\n width: 90px;\n margin: 0;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-input-number::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-number::placeholder {\n color: #bfbfbf;\n}\n.ant-input-number:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-number:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input-number:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number:focus,\n.ant-input-number-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-number:focus,\n.ant-input-rtl .ant-input-number-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number-borderless,\n.ant-input-number-borderless:hover,\n.ant-input-number-borderless:focus,\n.ant-input-number-borderless-focused,\n.ant-input-number-borderless-disabled,\n.ant-input-number-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input-number {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-number-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-number-sm {\n padding: 0px 7px;\n}\n.ant-input-number-rtl {\n direction: rtl;\n}\n.ant-input-number-handler {\n position: relative;\n display: block;\n width: 100%;\n height: 50%;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n line-height: 0;\n text-align: center;\n transition: all 0.1s linear;\n}\n.ant-input-number-handler:active {\n background: #f4f4f4;\n}\n.ant-input-number-handler:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler:hover .ant-input-number-handler-down-inner {\n color: #8588ed;\n}\n.ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-inner {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n right: 4px;\n width: 12px;\n height: 12px;\n color: rgba(0, 0, 0, 0.45);\n line-height: 12px;\n transition: all 0.1s linear;\n user-select: none;\n}\n.ant-input-number-handler-up-inner > *,\n.ant-input-number-handler-down-inner > * {\n line-height: 1;\n}\n.ant-input-number-handler-up-inner svg,\n.ant-input-number-handler-down-inner svg {\n display: inline-block;\n}\n.ant-input-number-handler-up-inner::before,\n.ant-input-number-handler-down-inner::before {\n display: none;\n}\n.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon {\n display: block;\n}\n.ant-input-number:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-number:hover + .ant-form-item-children-icon {\n opacity: 0;\n transition: opacity 0.24s linear 0.24s;\n}\n.ant-input-number-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-number-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number-disabled .ant-input-number-input {\n cursor: not-allowed;\n}\n.ant-input-number-disabled .ant-input-number-handler-wrap {\n display: none;\n}\n.ant-input-number-readonly .ant-input-number-handler-wrap {\n display: none;\n}\n.ant-input-number-input {\n width: 100%;\n height: 30px;\n padding: 0 11px;\n text-align: left;\n background-color: transparent;\n border: 0;\n border-radius: 5px;\n outline: 0;\n transition: all 0.3s linear;\n -moz-appearance: textfield !important;\n}\n.ant-input-number-input::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-number-input::placeholder {\n color: #bfbfbf;\n}\n.ant-input-number-input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-number-input[type='number']::-webkit-inner-spin-button,\n.ant-input-number-input[type='number']::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.ant-input-number-lg {\n padding: 0;\n font-size: 16px;\n}\n.ant-input-number-lg input {\n height: 38px;\n}\n.ant-input-number-sm {\n padding: 0;\n}\n.ant-input-number-sm input {\n height: 22px;\n padding: 0 7px;\n}\n.ant-input-number-handler-wrap {\n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 100%;\n background: #fff;\n border-left: 1px solid #d9d9d9;\n border-radius: 0 5px 5px 0;\n opacity: 0;\n transition: opacity 0.24s linear 0.1s;\n}\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner,\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner {\n min-width: auto;\n margin-right: 0;\n font-size: 7px;\n}\n.ant-input-number-borderless .ant-input-number-handler-wrap {\n border-left-width: 0;\n}\n.ant-input-number-handler-wrap:hover .ant-input-number-handler {\n height: 40%;\n}\n.ant-input-number:hover .ant-input-number-handler-wrap {\n opacity: 1;\n}\n.ant-input-number-handler-up {\n border-top-right-radius: 5px;\n cursor: pointer;\n}\n.ant-input-number-handler-up-inner {\n top: 50%;\n margin-top: -5px;\n text-align: center;\n}\n.ant-input-number-handler-up:hover {\n height: 60% !important;\n}\n.ant-input-number-handler-down {\n top: 0;\n border-top: 1px solid #d9d9d9;\n border-bottom-right-radius: 5px;\n cursor: pointer;\n}\n.ant-input-number-handler-down-inner {\n top: 50%;\n text-align: center;\n transform: translateY(-50%);\n}\n.ant-input-number-handler-down:hover {\n height: 60% !important;\n}\n.ant-input-number-borderless .ant-input-number-handler-down {\n border-top-width: 0;\n}\n.ant-input-number-handler-up-disabled,\n.ant-input-number-handler-down-disabled {\n cursor: not-allowed;\n}\n.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-input-number-borderless {\n box-shadow: none;\n}\n.ant-input-number-out-of-range input {\n color: #ff4d4f;\n}\n.ant-input-number-rtl {\n direction: rtl;\n}\n.ant-input-number-rtl .ant-input-number-handler-wrap {\n right: auto;\n left: 0;\n border-right: 1px solid #d9d9d9;\n border-left: 0;\n border-radius: 5px 0 0 5px;\n}\n.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap {\n border-right-width: 0;\n}\n.ant-input-number-rtl .ant-input-number-input {\n direction: ltr;\n text-align: right;\n}\n.ant-layout {\n display: flex;\n flex: auto;\n flex-direction: column;\n /* fix firefox can't set height smaller than content on flex item */\n min-height: 0;\n background: #f0f2f5;\n}\n.ant-layout,\n.ant-layout * {\n box-sizing: border-box;\n}\n.ant-layout.ant-layout-has-sider {\n flex-direction: row;\n}\n.ant-layout.ant-layout-has-sider > .ant-layout,\n.ant-layout.ant-layout-has-sider > .ant-layout-content {\n width: 0;\n}\n.ant-layout-header,\n.ant-layout-footer {\n flex: 0 0 auto;\n}\n.ant-layout-header {\n height: 64px;\n padding: 0 50px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 64px;\n background: #001529;\n}\n.ant-layout-footer {\n padding: 24px 50px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n background: #f0f2f5;\n}\n.ant-layout-content {\n flex: auto;\n /* fix firefox can't set height smaller than content on flex item */\n min-height: 0;\n}\n.ant-layout-sider {\n position: relative;\n /* fix firefox can't set width smaller than content on flex item */\n min-width: 0;\n background: #001529;\n transition: all 0.2s;\n}\n.ant-layout-sider-children {\n height: 100%;\n margin-top: -0.1px;\n padding-top: 0.1px;\n}\n.ant-layout-sider-has-trigger {\n padding-bottom: 48px;\n}\n.ant-layout-sider-right {\n order: 1;\n}\n.ant-layout-sider-trigger {\n position: fixed;\n bottom: 0;\n z-index: 1;\n height: 48px;\n color: #fff;\n line-height: 48px;\n text-align: center;\n background: #002140;\n cursor: pointer;\n transition: all 0.2s;\n}\n.ant-layout-sider-zero-width > * {\n overflow: hidden;\n}\n.ant-layout-sider-zero-width-trigger {\n position: absolute;\n top: 64px;\n right: -36px;\n z-index: 1;\n width: 36px;\n height: 42px;\n color: #fff;\n font-size: 18px;\n line-height: 42px;\n text-align: center;\n background: #001529;\n border-radius: 0 5px 5px 0;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-layout-sider-zero-width-trigger::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n transition: all 0.3s;\n content: '';\n}\n.ant-layout-sider-zero-width-trigger:hover::after {\n background: rgba(255, 255, 255, 0.1);\n}\n.ant-layout-sider-zero-width-trigger-right {\n left: -36px;\n border-radius: 5px 0 0 5px;\n}\n.ant-layout-sider-light {\n background: #fff;\n}\n.ant-layout-sider-light .ant-layout-sider-trigger {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-layout-sider-light .ant-layout-sider-zero-width-trigger {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-layout-rtl {\n direction: rtl;\n}\n.ant-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n}\n.ant-list * {\n outline: none;\n}\n.ant-list-pagination {\n margin-top: 24px;\n text-align: right;\n}\n.ant-list-pagination .ant-pagination-options {\n text-align: left;\n}\n.ant-list-more {\n margin-top: 12px;\n text-align: center;\n}\n.ant-list-more button {\n padding-right: 32px;\n padding-left: 32px;\n}\n.ant-list-spin {\n min-height: 40px;\n text-align: center;\n}\n.ant-list-empty-text {\n padding: 16px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 14px;\n text-align: center;\n}\n.ant-list-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-list-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 0;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-list-item-meta {\n display: flex;\n flex: 1;\n align-items: flex-start;\n max-width: 100%;\n}\n.ant-list-item-meta-avatar {\n margin-right: 16px;\n}\n.ant-list-item-meta-content {\n flex: 1 0;\n width: 0;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-list-item-meta-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-list-item-meta-title > a {\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-list-item-meta-title > a:hover {\n color: #5b5ce1;\n}\n.ant-list-item-meta-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-list-item-action {\n flex: 0 0 auto;\n margin-left: 48px;\n padding: 0;\n font-size: 0;\n list-style: none;\n}\n.ant-list-item-action > li {\n position: relative;\n display: inline-block;\n padding: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-item-action-split {\n position: absolute;\n top: 50%;\n right: 0;\n width: 1px;\n height: 14px;\n margin-top: -7px;\n background-color: #f0f0f0;\n}\n.ant-list-header {\n background: transparent;\n}\n.ant-list-footer {\n background: transparent;\n}\n.ant-list-header,\n.ant-list-footer {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.ant-list-empty {\n padding: 16px 0;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n text-align: center;\n}\n.ant-list-split .ant-list-item {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-split .ant-list-item:last-child {\n border-bottom: none;\n}\n.ant-list-split .ant-list-header {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-split.ant-list-empty .ant-list-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-list-loading .ant-list-spin-nested-loading {\n min-height: 32px;\n}\n.ant-list-split.ant-list-something-after-last-item .ant-spin-container > .ant-list-items > .ant-list-item:last-child {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-lg .ant-list-item {\n padding: 16px 24px;\n}\n.ant-list-sm .ant-list-item {\n padding: 8px 16px;\n}\n.ant-list-vertical .ant-list-item {\n align-items: initial;\n}\n.ant-list-vertical .ant-list-item-main {\n display: block;\n flex: 1;\n}\n.ant-list-vertical .ant-list-item-extra {\n margin-left: 40px;\n}\n.ant-list-vertical .ant-list-item-meta {\n margin-bottom: 16px;\n}\n.ant-list-vertical .ant-list-item-meta-title {\n margin-bottom: 12px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 24px;\n}\n.ant-list-vertical .ant-list-item-action {\n margin-top: 16px;\n margin-left: auto;\n}\n.ant-list-vertical .ant-list-item-action > li {\n padding: 0 16px;\n}\n.ant-list-vertical .ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-grid .ant-col > .ant-list-item {\n display: block;\n max-width: 100%;\n margin-bottom: 16px;\n padding-top: 0;\n padding-bottom: 0;\n border-bottom: none;\n}\n.ant-list-item-no-flex {\n display: block;\n}\n.ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action {\n float: right;\n}\n.ant-list-bordered {\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-list-bordered .ant-list-header {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-footer {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-item {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-pagination {\n margin: 16px 24px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-item {\n padding: 8px 16px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-header,\n.ant-list-bordered.ant-list-sm .ant-list-footer {\n padding: 8px 16px;\n}\n.ant-list-bordered.ant-list-lg .ant-list-item {\n padding: 16px 24px;\n}\n.ant-list-bordered.ant-list-lg .ant-list-header,\n.ant-list-bordered.ant-list-lg .ant-list-footer {\n padding: 16px 24px;\n}\n@media screen and (max-width: 768px) {\n .ant-list-item-action {\n margin-left: 24px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin-left: 24px;\n }\n}\n@media screen and (max-width: 576px) {\n .ant-list-item {\n flex-wrap: wrap;\n }\n .ant-list-item-action {\n margin-left: 12px;\n }\n .ant-list-vertical .ant-list-item {\n flex-wrap: wrap-reverse;\n }\n .ant-list-vertical .ant-list-item-main {\n min-width: 220px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin: auto auto 16px;\n }\n}\n.ant-list-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-list-rtl .ReactVirtualized__List .ant-list-item {\n direction: rtl;\n}\n.ant-list-rtl .ant-list-pagination {\n text-align: left;\n}\n.ant-list-rtl .ant-list-item-meta-avatar {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-list-rtl .ant-list-item-action {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-list.ant-list-rtl .ant-list-item-action > li:first-child {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-list-rtl .ant-list-item-action-split {\n right: auto;\n left: 0;\n}\n.ant-list-rtl.ant-list-vertical .ant-list-item-extra {\n margin-right: 40px;\n margin-left: 0;\n}\n.ant-list-rtl.ant-list-vertical .ant-list-item-action {\n margin-right: auto;\n}\n.ant-list-rtl .ant-list-vertical .ant-list-item-action > li:first-child {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-list-rtl .ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action {\n float: left;\n}\n@media screen and (max-width: 768px) {\n .ant-list-rtl .ant-list-item-action {\n margin-right: 24px;\n margin-left: 0;\n }\n .ant-list-rtl .ant-list-vertical .ant-list-item-extra {\n margin-right: 24px;\n margin-left: 0;\n }\n}\n@media screen and (max-width: 576px) {\n .ant-list-rtl .ant-list-item-action {\n margin-right: 22px;\n margin-left: 0;\n }\n .ant-list-rtl.ant-list-vertical .ant-list-item-extra {\n margin: auto auto 16px;\n }\n}\n.ant-mentions {\n box-sizing: border-box;\n margin: 0;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n position: relative;\n display: inline-block;\n height: auto;\n padding: 0;\n overflow: hidden;\n line-height: 1.5715;\n white-space: pre-wrap;\n vertical-align: bottom;\n}\n.ant-mentions::-moz-placeholder {\n opacity: 1;\n}\n.ant-mentions::placeholder {\n color: #bfbfbf;\n}\n.ant-mentions:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-mentions:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-mentions:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions:focus,\n.ant-mentions-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-mentions:focus,\n.ant-input-rtl .ant-mentions-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions-borderless,\n.ant-mentions-borderless:hover,\n.ant-mentions-borderless:focus,\n.ant-mentions-borderless-focused,\n.ant-mentions-borderless-disabled,\n.ant-mentions-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-mentions {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-mentions-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-mentions-sm {\n padding: 0px 7px;\n}\n.ant-mentions-rtl {\n direction: rtl;\n}\n.ant-mentions-disabled > textarea {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions-disabled > textarea:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-mentions-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions > textarea,\n.ant-mentions-measure {\n min-height: 30px;\n margin: 0;\n padding: 4px 11px;\n overflow: inherit;\n overflow-x: hidden;\n overflow-y: auto;\n font-weight: inherit;\n font-size: inherit;\n font-family: inherit;\n font-style: inherit;\n font-variant: inherit;\n font-size-adjust: inherit;\n font-stretch: inherit;\n line-height: inherit;\n direction: inherit;\n letter-spacing: inherit;\n white-space: inherit;\n text-align: inherit;\n vertical-align: top;\n word-wrap: break-word;\n word-break: inherit;\n tab-size: inherit;\n}\n.ant-mentions > textarea {\n width: 100%;\n border: none;\n outline: none;\n resize: none;\n}\n.ant-mentions > textarea::-moz-placeholder {\n opacity: 1;\n}\n.ant-mentions > textarea::placeholder {\n color: #bfbfbf;\n}\n.ant-mentions > textarea:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-mentions-measure {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n color: transparent;\n pointer-events: none;\n}\n.ant-mentions-measure > span {\n display: inline-block;\n min-height: 1em;\n}\n.ant-mentions-dropdown {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n box-sizing: border-box;\n font-size: 14px;\n font-variant: initial;\n background-color: #fff;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-mentions-dropdown-hidden {\n display: none;\n}\n.ant-mentions-dropdown-menu {\n max-height: 250px;\n margin-bottom: 0;\n padding-left: 0;\n overflow: auto;\n list-style: none;\n outline: none;\n}\n.ant-mentions-dropdown-menu-item {\n position: relative;\n display: block;\n min-width: 100px;\n padding: 5px 12px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-mentions-dropdown-menu-item:hover {\n background-color: #f5f5f5;\n}\n.ant-mentions-dropdown-menu-item:first-child {\n border-radius: 5px 5px 0 0;\n}\n.ant-mentions-dropdown-menu-item:last-child {\n border-radius: 0 0 5px 5px;\n}\n.ant-mentions-dropdown-menu-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-mentions-dropdown-menu-item-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-mentions-dropdown-menu-item-selected {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n background-color: #fafafa;\n}\n.ant-mentions-dropdown-menu-item-active {\n background-color: #f5f5f5;\n}\n.ant-mentions-rtl {\n direction: rtl;\n}\n.ant-menu-item-danger.ant-menu-item {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item:hover,\n.ant-menu-item-danger.ant-menu-item-active {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item:active {\n background: #fff1f0;\n}\n.ant-menu-item-danger.ant-menu-item-selected {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item-selected > a,\n.ant-menu-item-danger.ant-menu-item-selected > a:hover {\n color: #ff4d4f;\n}\n.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {\n background-color: #fff1f0;\n}\n.ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {\n border-right-color: #ff4d4f;\n}\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item,\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {\n color: #ff4d4f;\n}\n.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {\n color: #fff;\n background-color: #ff4d4f;\n}\n.ant-menu {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n margin-bottom: 0;\n padding-left: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 0;\n text-align: left;\n list-style: none;\n background: #fff;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;\n}\n.ant-menu::before {\n display: table;\n content: '';\n}\n.ant-menu::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-menu::before {\n display: table;\n content: '';\n}\n.ant-menu::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-menu ul,\n.ant-menu ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-menu-hidden {\n display: none;\n}\n.ant-menu-item-group-title {\n height: 1.5715;\n padding: 8px 16px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n transition: all 0.3s;\n}\n.ant-menu-horizontal .ant-menu-submenu {\n transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu,\n.ant-menu-submenu-inline {\n transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-selected {\n color: #5b5ce1;\n}\n.ant-menu-item:active,\n.ant-menu-submenu-title:active {\n background: #f0f2ff;\n}\n.ant-menu-submenu .ant-menu-sub {\n cursor: initial;\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-item a:hover {\n color: #5b5ce1;\n}\n.ant-menu-item a::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: transparent;\n content: '';\n}\n.ant-menu-item > .ant-badge a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-item > .ant-badge a:hover {\n color: #5b5ce1;\n}\n.ant-menu-item-divider {\n height: 1px;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-menu-item:hover,\n.ant-menu-item-active,\n.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,\n.ant-menu-submenu-active,\n.ant-menu-submenu-title:hover {\n color: #5b5ce1;\n}\n.ant-menu-horizontal .ant-menu-item,\n.ant-menu-horizontal .ant-menu-submenu {\n margin-top: -1px;\n}\n.ant-menu-horizontal > .ant-menu-item:hover,\n.ant-menu-horizontal > .ant-menu-item-active,\n.ant-menu-horizontal > .ant-menu-submenu .ant-menu-submenu-title:hover {\n background-color: transparent;\n}\n.ant-menu-item-selected {\n color: #5b5ce1;\n}\n.ant-menu-item-selected a,\n.ant-menu-item-selected a:hover {\n color: #5b5ce1;\n}\n.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #f0f2ff;\n}\n.ant-menu-inline,\n.ant-menu-vertical,\n.ant-menu-vertical-left {\n border-right: 1px solid #f0f0f0;\n}\n.ant-menu-vertical-right {\n border-left: 1px solid #f0f0f0;\n}\n.ant-menu-vertical.ant-menu-sub,\n.ant-menu-vertical-left.ant-menu-sub,\n.ant-menu-vertical-right.ant-menu-sub {\n min-width: 160px;\n max-height: calc(100vh - 100px);\n padding: 0;\n overflow: hidden;\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub:not([class*='-active']),\n.ant-menu-vertical-left.ant-menu-sub:not([class*='-active']),\n.ant-menu-vertical-right.ant-menu-sub:not([class*='-active']) {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {\n transform-origin: 0 0;\n}\n.ant-menu-horizontal.ant-menu-sub {\n min-width: 114px;\n}\n.ant-menu-horizontal .ant-menu-item,\n.ant-menu-horizontal .ant-menu-submenu-title {\n transition: border-color 0.3s, background 0.3s;\n}\n.ant-menu-item,\n.ant-menu-submenu-title {\n position: relative;\n display: block;\n margin: 0;\n padding: 0 20px;\n white-space: nowrap;\n cursor: pointer;\n transition: border-color 0.3s, background 0.3s, padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item .ant-menu-item-icon,\n.ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-item .anticon,\n.ant-menu-submenu-title .anticon {\n min-width: 14px;\n margin-right: 10px;\n font-size: 14px;\n transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;\n}\n.ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-item .anticon + span,\n.ant-menu-submenu-title .anticon + span {\n opacity: 1;\n transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;\n}\n.ant-menu-item.ant-menu-item-only-child > .anticon,\n.ant-menu-submenu-title.ant-menu-item-only-child > .anticon,\n.ant-menu-item.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-submenu-title.ant-menu-item-only-child > .ant-menu-item-icon {\n margin-right: 0;\n}\n.ant-menu > .ant-menu-item-divider {\n height: 1px;\n margin: 1px 0;\n padding: 0;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n background: transparent;\n border-radius: 5px;\n box-shadow: none;\n transform-origin: 0 0;\n}\n.ant-menu-submenu-popup::before {\n position: absolute;\n top: -7px;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-menu-submenu-placement-rightTop::before {\n top: 0;\n left: -7px;\n}\n.ant-menu-submenu > .ant-menu {\n background-color: #fff;\n border-radius: 5px;\n}\n.ant-menu-submenu > .ant-menu-submenu-title::after {\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-popup > .ant-menu {\n background-color: #fff;\n}\n.ant-menu-submenu-expand-icon,\n.ant-menu-submenu-arrow {\n position: absolute;\n top: 50%;\n right: 16px;\n width: 10px;\n color: rgba(0, 0, 0, 0.85);\n transform: translateY(-50%);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-arrow::before,\n.ant-menu-submenu-arrow::after {\n position: absolute;\n width: 6px;\n height: 1.5px;\n background-color: currentColor;\n border-radius: 2px;\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n content: '';\n}\n.ant-menu-submenu-arrow::before {\n transform: rotate(45deg) translateY(-2.5px);\n}\n.ant-menu-submenu-arrow::after {\n transform: rotate(-45deg) translateY(2.5px);\n}\n.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-expand-icon,\n.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow {\n color: #5b5ce1;\n}\n.ant-menu-submenu-inline .ant-menu-submenu-arrow::before {\n transform: rotate(-45deg) translateX(2.5px);\n}\n.ant-menu-submenu-inline .ant-menu-submenu-arrow::after {\n transform: rotate(45deg) translateX(-2.5px);\n}\n.ant-menu-submenu-horizontal .ant-menu-submenu-arrow {\n display: none;\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow {\n transform: translateY(-2px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n transform: rotate(-45deg) translateX(-2.5px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before {\n transform: rotate(45deg) translateX(2.5px);\n}\n.ant-menu-vertical .ant-menu-submenu-selected,\n.ant-menu-vertical-left .ant-menu-submenu-selected,\n.ant-menu-vertical-right .ant-menu-submenu-selected {\n color: #5b5ce1;\n}\n.ant-menu-horizontal {\n line-height: 46px;\n border: 0;\n border-bottom: 1px solid #f0f0f0;\n box-shadow: none;\n}\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu {\n margin: 0 20px;\n margin-top: -1px;\n margin-bottom: 0;\n padding: 0 20px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected {\n color: #5b5ce1;\n border-bottom: 2px solid #5b5ce1;\n}\n.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-horizontal > .ant-menu-submenu {\n position: relative;\n top: 1px;\n display: inline-block;\n vertical-align: bottom;\n border-bottom: 2px solid transparent;\n}\n.ant-menu-horizontal > .ant-menu-submenu > .ant-menu-submenu-title {\n padding: 0;\n}\n.ant-menu-horizontal > .ant-menu-item a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-horizontal > .ant-menu-item a:hover {\n color: #5b5ce1;\n}\n.ant-menu-horizontal > .ant-menu-item a::before {\n bottom: -2px;\n}\n.ant-menu-horizontal > .ant-menu-item-selected a {\n color: #5b5ce1;\n}\n.ant-menu-horizontal::after {\n display: block;\n clear: both;\n height: 0;\n content: '\\20';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item {\n position: relative;\n}\n.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-vertical-right .ant-menu-item::after,\n.ant-menu-inline .ant-menu-item::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-right: 3px solid #5b5ce1;\n transform: scaleY(0.0001);\n opacity: 0;\n transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n content: '';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item,\n.ant-menu-vertical .ant-menu-submenu-title,\n.ant-menu-vertical-left .ant-menu-submenu-title,\n.ant-menu-vertical-right .ant-menu-submenu-title,\n.ant-menu-inline .ant-menu-submenu-title {\n height: 40px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 0 16px;\n overflow: hidden;\n line-height: 40px;\n text-overflow: ellipsis;\n}\n.ant-menu-vertical .ant-menu-submenu,\n.ant-menu-vertical-left .ant-menu-submenu,\n.ant-menu-vertical-right .ant-menu-submenu,\n.ant-menu-inline .ant-menu-submenu {\n padding-bottom: 0.02px;\n}\n.ant-menu-vertical .ant-menu-item:not(:last-child),\n.ant-menu-vertical-left .ant-menu-item:not(:last-child),\n.ant-menu-vertical-right .ant-menu-item:not(:last-child),\n.ant-menu-inline .ant-menu-item:not(:last-child) {\n margin-bottom: 8px;\n}\n.ant-menu-vertical > .ant-menu-item,\n.ant-menu-vertical-left > .ant-menu-item,\n.ant-menu-vertical-right > .ant-menu-item,\n.ant-menu-inline > .ant-menu-item,\n.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n}\n.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,\n.ant-menu-vertical .ant-menu-submenu-title {\n padding-right: 34px;\n}\n.ant-menu-inline {\n width: 100%;\n}\n.ant-menu-inline .ant-menu-selected::after,\n.ant-menu-inline .ant-menu-item-selected::after {\n transform: scaleY(1);\n opacity: 1;\n transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-inline .ant-menu-item,\n.ant-menu-inline .ant-menu-submenu-title {\n width: calc(100% + 1px);\n}\n.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,\n.ant-menu-inline .ant-menu-submenu-title {\n padding-right: 34px;\n}\n.ant-menu-inline-collapsed {\n width: 80px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {\n left: 0;\n padding: 0 calc(50% - 16px / 2);\n text-overflow: clip;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n display: none;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon {\n margin: 0;\n font-size: 16px;\n line-height: 40px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span {\n display: inline-block;\n max-width: 0;\n opacity: 0;\n}\n.ant-menu-inline-collapsed .ant-menu-item-icon,\n.ant-menu-inline-collapsed .anticon {\n display: inline-block;\n}\n.ant-menu-inline-collapsed-tooltip {\n pointer-events: none;\n}\n.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,\n.ant-menu-inline-collapsed-tooltip .anticon {\n display: none;\n}\n.ant-menu-inline-collapsed-tooltip a {\n color: rgba(255, 255, 255, 0.85);\n}\n.ant-menu-inline-collapsed .ant-menu-item-group-title {\n padding-right: 4px;\n padding-left: 4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-menu-item-group-list {\n margin: 0;\n padding: 0;\n}\n.ant-menu-item-group-list .ant-menu-item,\n.ant-menu-item-group-list .ant-menu-submenu-title {\n padding: 0 16px 0 28px;\n}\n.ant-menu-root.ant-menu-vertical,\n.ant-menu-root.ant-menu-vertical-left,\n.ant-menu-root.ant-menu-vertical-right,\n.ant-menu-root.ant-menu-inline {\n box-shadow: none;\n}\n.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item > .ant-menu-inline-collapsed-noicon,\n.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title > .ant-menu-inline-collapsed-noicon {\n font-size: 16px;\n text-align: center;\n}\n.ant-menu-sub.ant-menu-inline {\n padding: 0;\n background: #fafafa;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n}\n.ant-menu-sub.ant-menu-inline > .ant-menu-item,\n.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n list-style-position: inside;\n list-style-type: disc;\n}\n.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {\n padding-left: 32px;\n}\n.ant-menu-item-disabled,\n.ant-menu-submenu-disabled {\n color: rgba(0, 0, 0, 0.25) !important;\n background: none;\n border-color: transparent !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled a,\n.ant-menu-submenu-disabled a {\n color: rgba(0, 0, 0, 0.25) !important;\n pointer-events: none;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(0, 0, 0, 0.25) !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-layout-header .ant-menu {\n line-height: inherit;\n}\n.ant-menu.ant-menu-dark,\n.ant-menu-dark .ant-menu-sub,\n.ant-menu.ant-menu-dark .ant-menu-sub {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n}\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow {\n opacity: 0.45;\n transition: all 0.3s;\n}\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark.ant-menu-submenu-popup {\n background: transparent;\n}\n.ant-menu-dark .ant-menu-inline.ant-menu-sub {\n background: #000c17;\n}\n.ant-menu-dark.ant-menu-horizontal {\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {\n top: 0;\n margin-top: 0;\n padding: 0 20px;\n border-color: #001529;\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item:hover {\n background-color: #5b5ce1;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before {\n bottom: 0;\n}\n.ant-menu-dark .ant-menu-item,\n.ant-menu-dark .ant-menu-item-group-title,\n.ant-menu-dark .ant-menu-item > a,\n.ant-menu-dark .ant-menu-item > span > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-menu-dark.ant-menu-inline,\n.ant-menu-dark.ant-menu-vertical,\n.ant-menu-dark.ant-menu-vertical-left,\n.ant-menu-dark.ant-menu-vertical-right {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title {\n width: 100%;\n}\n.ant-menu-dark .ant-menu-item:hover,\n.ant-menu-dark .ant-menu-item-active,\n.ant-menu-dark .ant-menu-submenu-active,\n.ant-menu-dark .ant-menu-submenu-open,\n.ant-menu-dark .ant-menu-submenu-selected,\n.ant-menu-dark .ant-menu-submenu-title:hover {\n color: #fff;\n background-color: transparent;\n}\n.ant-menu-dark .ant-menu-item:hover > a,\n.ant-menu-dark .ant-menu-item-active > a,\n.ant-menu-dark .ant-menu-submenu-active > a,\n.ant-menu-dark .ant-menu-submenu-open > a,\n.ant-menu-dark .ant-menu-submenu-selected > a,\n.ant-menu-dark .ant-menu-submenu-title:hover > a,\n.ant-menu-dark .ant-menu-item:hover > span > a,\n.ant-menu-dark .ant-menu-item-active > span > a,\n.ant-menu-dark .ant-menu-submenu-active > span > a,\n.ant-menu-dark .ant-menu-submenu-open > span > a,\n.ant-menu-dark .ant-menu-submenu-selected > span > a,\n.ant-menu-dark .ant-menu-submenu-title:hover > span > a {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow {\n opacity: 1;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover {\n background-color: transparent;\n}\n.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #5b5ce1;\n}\n.ant-menu-dark .ant-menu-item-selected {\n color: #fff;\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected::after {\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected > a,\n.ant-menu-dark .ant-menu-item-selected > span > a,\n.ant-menu-dark .ant-menu-item-selected > a:hover,\n.ant-menu-dark .ant-menu-item-selected > span > a:hover {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,\n.ant-menu-dark .ant-menu-item-selected .anticon {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon + span,\n.ant-menu-dark .ant-menu-item-selected .anticon + span {\n color: #fff;\n}\n.ant-menu.ant-menu-dark .ant-menu-item-selected,\n.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {\n background-color: #5b5ce1;\n}\n.ant-menu-dark .ant-menu-item-disabled,\n.ant-menu-dark .ant-menu-submenu-disabled,\n.ant-menu-dark .ant-menu-item-disabled > a,\n.ant-menu-dark .ant-menu-submenu-disabled > a,\n.ant-menu-dark .ant-menu-item-disabled > span > a,\n.ant-menu-dark .ant-menu-submenu-disabled > span > a {\n color: rgba(255, 255, 255, 0.35) !important;\n opacity: 0.8;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(255, 255, 255, 0.35) !important;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(255, 255, 255, 0.35) !important;\n}\n.ant-menu.ant-menu-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-menu-rtl .ant-menu-item-group-title {\n text-align: right;\n}\n.ant-menu-rtl.ant-menu-inline,\n.ant-menu-rtl.ant-menu-vertical {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-menu-rtl.ant-menu-dark.ant-menu-inline,\n.ant-menu-rtl.ant-menu-dark.ant-menu-vertical {\n border-left: none;\n}\n.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {\n transform-origin: top right;\n}\n.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-item .anticon,\n.ant-menu-rtl .ant-menu-submenu-title .anticon {\n margin-right: auto;\n margin-left: 10px;\n}\n.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child > .anticon,\n.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child > .anticon {\n margin-left: 0;\n}\n.ant-menu-submenu-rtl.ant-menu-submenu-popup {\n transform-origin: 100% 0;\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n right: auto;\n left: 16px;\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n transform: rotate(-45deg) translateY(-2px);\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n transform: rotate(45deg) translateY(2px);\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-inline .ant-menu-item::after {\n right: auto;\n left: 0;\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-rtl.ant-menu-inline .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {\n text-align: right;\n}\n.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {\n padding-right: 0;\n padding-left: 34px;\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title {\n padding-right: 16px;\n padding-left: 34px;\n}\n.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title {\n padding: 0 calc(50% - 16px / 2);\n}\n.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,\n.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title {\n padding: 0 28px 0 16px;\n}\n.ant-menu-sub.ant-menu-inline {\n border: 0;\n}\n.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {\n padding-right: 32px;\n padding-left: 0;\n}\n.ant-message {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n top: 8px;\n left: 0;\n z-index: 1010;\n width: 100%;\n pointer-events: none;\n}\n.ant-message-notice {\n padding: 8px;\n text-align: center;\n}\n.ant-message-notice-content {\n display: inline-block;\n padding: 10px 16px;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n pointer-events: all;\n}\n.ant-message-success .anticon {\n color: #52c41a;\n}\n.ant-message-error .anticon {\n color: #ff4d4f;\n}\n.ant-message-warning .anticon {\n color: #faad14;\n}\n.ant-message-info .anticon,\n.ant-message-loading .anticon {\n color: #5b5ce1;\n}\n.ant-message .anticon {\n position: relative;\n top: 1px;\n margin-right: 8px;\n font-size: 16px;\n}\n.ant-message-notice.move-up-leave.move-up-leave-active {\n animation-name: MessageMoveOut;\n animation-duration: 0.3s;\n}\n@keyframes MessageMoveOut {\n 0% {\n max-height: 150px;\n padding: 8px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n padding: 0;\n opacity: 0;\n }\n}\n.ant-message-rtl {\n direction: rtl;\n}\n.ant-message-rtl span {\n direction: rtl;\n}\n.ant-message-rtl .anticon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-modal {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n pointer-events: none;\n position: relative;\n top: 100px;\n width: auto;\n max-width: calc(100vw - 32px);\n margin: 0 auto;\n padding-bottom: 24px;\n}\n.ant-modal.zoom-enter,\n.ant-modal.zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.ant-modal-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1000;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.ant-modal-mask-hidden {\n display: none;\n}\n.ant-modal-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n -webkit-overflow-scrolling: touch;\n}\n.ant-modal-wrap {\n z-index: 1000;\n}\n.ant-modal-title {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n word-wrap: break-word;\n}\n.ant-modal-content {\n position: relative;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n pointer-events: auto;\n}\n.ant-modal-close {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n font-weight: 700;\n line-height: 1;\n text-decoration: none;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-modal-close-x {\n display: block;\n width: 56px;\n height: 56px;\n font-size: 16px;\n font-style: normal;\n line-height: 56px;\n text-align: center;\n text-transform: none;\n text-rendering: auto;\n}\n.ant-modal-close:focus,\n.ant-modal-close:hover {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}\n.ant-modal-header {\n padding: 16px 24px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-modal-body {\n padding: 24px;\n font-size: 14px;\n line-height: 1.5715;\n word-wrap: break-word;\n}\n.ant-modal-footer {\n padding: 10px 16px;\n text-align: right;\n background: transparent;\n border-top: 1px solid #f0f0f0;\n border-radius: 0 0 5px 5px;\n}\n.ant-modal-footer .ant-btn + .ant-btn {\n margin-bottom: 0;\n margin-left: 8px;\n}\n.ant-modal-open {\n overflow: hidden;\n}\n.ant-modal-centered {\n text-align: center;\n}\n.ant-modal-centered::before {\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n content: '';\n}\n.ant-modal-centered .ant-modal {\n top: 0;\n display: inline-block;\n text-align: left;\n vertical-align: middle;\n}\n@media (max-width: 767px) {\n .ant-modal {\n max-width: calc(100vw - 16px);\n margin: 8px auto;\n }\n .ant-modal-centered .ant-modal {\n flex: 1;\n }\n}\n.ant-modal-confirm .ant-modal-header {\n display: none;\n}\n.ant-modal-confirm .ant-modal-body {\n padding: 32px 32px 24px;\n}\n.ant-modal-confirm-body-wrapper::before {\n display: table;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::before {\n display: table;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-modal-confirm-body .ant-modal-confirm-title {\n display: block;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 1.4;\n}\n.ant-modal-confirm-body .ant-modal-confirm-content {\n margin-top: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-modal-confirm-body > .anticon {\n float: left;\n margin-right: 16px;\n font-size: 22px;\n}\n.ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {\n margin-left: 38px;\n}\n.ant-modal-confirm .ant-modal-confirm-btns {\n float: right;\n margin-top: 24px;\n}\n.ant-modal-confirm .ant-modal-confirm-btns .ant-btn + .ant-btn {\n margin-bottom: 0;\n margin-left: 8px;\n}\n.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {\n color: #ff4d4f;\n}\n.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,\n.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {\n color: #faad14;\n}\n.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {\n color: #5b5ce1;\n}\n.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {\n color: #52c41a;\n}\n.ant-modal-wrap-rtl {\n direction: rtl;\n}\n.ant-modal-wrap-rtl .ant-modal-close {\n right: initial;\n left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-footer {\n text-align: left;\n}\n.ant-modal-wrap-rtl .ant-modal-footer .ant-btn + .ant-btn {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body {\n direction: rtl;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body > .anticon {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {\n margin-right: 38px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-btns {\n float: left;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn + .ant-btn {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl.ant-modal-centered .ant-modal {\n text-align: right;\n}\n.ant-notification {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n z-index: 1010;\n margin-right: 24px;\n}\n.ant-notification-topLeft,\n.ant-notification-bottomLeft {\n margin-right: 0;\n margin-left: 24px;\n}\n.ant-notification-topLeft .ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-bottomLeft .ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-topLeft .ant-notification-fade-appear.ant-notification-fade-appear-active,\n.ant-notification-bottomLeft .ant-notification-fade-appear.ant-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.ant-notification-close-icon {\n font-size: 14px;\n cursor: pointer;\n}\n.ant-notification-hook-holder,\n.ant-notification-notice {\n position: relative;\n width: 384px;\n max-width: calc(100vw - 24px * 2);\n margin-bottom: 16px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-notification-topLeft .ant-notification-hook-holder,\n.ant-notification-topLeft .ant-notification-notice,\n.ant-notification-bottomLeft .ant-notification-hook-holder,\n.ant-notification-bottomLeft .ant-notification-notice {\n margin-right: auto;\n margin-left: 0;\n}\n.ant-notification-hook-holder > .ant-notification-notice {\n margin-bottom: 0;\n box-shadow: none;\n}\n.ant-notification-notice {\n padding: 16px 24px;\n line-height: 1.5715;\n}\n.ant-notification-notice-message {\n margin-bottom: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 24px;\n}\n.ant-notification-notice-message-single-line-auto-margin {\n display: block;\n width: calc(384px - 24px * 2 - 24px - 48px - 100%);\n max-width: 4px;\n background-color: transparent;\n pointer-events: none;\n}\n.ant-notification-notice-message-single-line-auto-margin::before {\n display: block;\n content: '';\n}\n.ant-notification-notice-description {\n font-size: 14px;\n}\n.ant-notification-notice-closable .ant-notification-notice-message {\n padding-right: 24px;\n}\n.ant-notification-notice-with-icon .ant-notification-notice-message {\n margin-bottom: 4px;\n margin-left: 48px;\n font-size: 16px;\n}\n.ant-notification-notice-with-icon .ant-notification-notice-description {\n margin-left: 48px;\n font-size: 14px;\n}\n.ant-notification-notice-icon {\n position: absolute;\n margin-left: 4px;\n font-size: 24px;\n line-height: 24px;\n}\n.anticon.ant-notification-notice-icon-success {\n color: #52c41a;\n}\n.anticon.ant-notification-notice-icon-info {\n color: #5b5ce1;\n}\n.anticon.ant-notification-notice-icon-warning {\n color: #faad14;\n}\n.anticon.ant-notification-notice-icon-error {\n color: #ff4d4f;\n}\n.ant-notification-notice-close {\n position: absolute;\n top: 16px;\n right: 22px;\n color: rgba(0, 0, 0, 0.45);\n outline: none;\n}\n.ant-notification-notice-close:hover {\n color: rgba(0, 0, 0, 0.67);\n}\n.ant-notification-notice-btn {\n float: right;\n margin-top: 16px;\n}\n.ant-notification .notification-fade-effect {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n}\n.ant-notification-fade-enter,\n.ant-notification-fade-appear {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n opacity: 0;\n animation-play-state: paused;\n}\n.ant-notification-fade-leave {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n animation-duration: 0.2s;\n animation-play-state: paused;\n}\n.ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-fade-appear.ant-notification-fade-appear-active {\n animation-name: NotificationFadeIn;\n animation-play-state: running;\n}\n.ant-notification-fade-leave.ant-notification-fade-leave-active {\n animation-name: NotificationFadeOut;\n animation-play-state: running;\n}\n@keyframes NotificationFadeIn {\n 0% {\n left: 384px;\n opacity: 0;\n }\n 100% {\n left: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationLeftFadeIn {\n 0% {\n right: 384px;\n opacity: 0;\n }\n 100% {\n right: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationFadeOut {\n 0% {\n max-height: 150px;\n margin-bottom: 16px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n margin-bottom: 0;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n }\n}\n.ant-notification-rtl {\n direction: rtl;\n}\n.ant-notification-rtl .ant-notification-notice-closable .ant-notification-notice-message {\n padding-right: 0;\n padding-left: 24px;\n}\n.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-message {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-description {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-icon {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-close {\n right: auto;\n left: 22px;\n}\n.ant-notification-rtl .ant-notification-notice-btn {\n float: left;\n}\n.ant-page-header {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding: 16px 24px;\n background-color: #fff;\n}\n.ant-page-header-ghost {\n background-color: inherit;\n}\n.ant-page-header.has-breadcrumb {\n padding-top: 12px;\n}\n.ant-page-header.has-footer {\n padding-bottom: 0;\n}\n.ant-page-header-back {\n margin-right: 16px;\n font-size: 16px;\n line-height: 1;\n}\n.ant-page-header-back-button {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n transition: color 0.3s;\n color: #000;\n cursor: pointer;\n}\n.ant-page-header-back-button:focus,\n.ant-page-header-back-button:hover {\n color: #8588ed;\n}\n.ant-page-header-back-button:active {\n color: #4541ba;\n}\n.ant-page-header .ant-divider-vertical {\n height: 14px;\n margin: 0 12px;\n vertical-align: middle;\n}\n.ant-breadcrumb + .ant-page-header-heading {\n margin-top: 8px;\n}\n.ant-page-header-heading {\n display: flex;\n justify-content: space-between;\n}\n.ant-page-header-heading-left {\n display: flex;\n align-items: center;\n margin: 4px 0;\n overflow: hidden;\n}\n.ant-page-header-heading-title {\n margin-right: 12px;\n margin-bottom: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 20px;\n line-height: 32px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-page-header-heading .ant-avatar {\n margin-right: 12px;\n}\n.ant-page-header-heading-sub-title {\n margin-right: 12px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-page-header-heading-extra {\n margin: 4px 0;\n white-space: nowrap;\n}\n.ant-page-header-heading-extra > * {\n margin-left: 12px;\n white-space: unset;\n}\n.ant-page-header-heading-extra > *:first-child {\n margin-left: 0;\n}\n.ant-page-header-content {\n padding-top: 12px;\n}\n.ant-page-header-footer {\n margin-top: 16px;\n}\n.ant-page-header-footer .ant-tabs > .ant-tabs-nav {\n margin: 0;\n}\n.ant-page-header-footer .ant-tabs > .ant-tabs-nav::before {\n border: none;\n}\n.ant-page-header-footer .ant-tabs .ant-tabs-tab {\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 16px;\n}\n.ant-page-header-compact .ant-page-header-heading {\n flex-wrap: wrap;\n}\n.ant-page-header-rtl {\n direction: rtl;\n}\n.ant-page-header-rtl .ant-page-header-back {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-page-header-rtl .ant-page-header-heading-title {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading .ant-avatar {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading-sub-title {\n float: right;\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading-tags {\n float: right;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra {\n float: left;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra > * {\n margin-right: 12px;\n margin-left: 0;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra > *:first-child {\n margin-right: 0;\n}\n.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav {\n float: right;\n}\n.ant-pagination {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-pagination ul,\n.ant-pagination ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-pagination::after {\n display: block;\n clear: both;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n content: ' ';\n}\n.ant-pagination-total-text {\n display: inline-block;\n height: 32px;\n margin-right: 8px;\n line-height: 30px;\n vertical-align: middle;\n}\n.ant-pagination-item {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n margin-right: 8px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 30px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: 0;\n cursor: pointer;\n user-select: none;\n}\n.ant-pagination-item a {\n display: block;\n padding: 0 6px;\n color: rgba(0, 0, 0, 0.85);\n transition: none;\n}\n.ant-pagination-item a:hover {\n text-decoration: none;\n}\n.ant-pagination-item:focus-visible,\n.ant-pagination-item:hover {\n border-color: #5b5ce1;\n transition: all 0.3s;\n}\n.ant-pagination-item:focus-visible a,\n.ant-pagination-item:hover a {\n color: #5b5ce1;\n}\n.ant-pagination-item-active {\n font-weight: 500;\n background: #fff;\n border-color: #5b5ce1;\n}\n.ant-pagination-item-active a {\n color: #5b5ce1;\n}\n.ant-pagination-item-active:focus-visible,\n.ant-pagination-item-active:hover {\n border-color: #8588ed;\n}\n.ant-pagination-item-active:focus-visible a,\n.ant-pagination-item-active:hover a {\n color: #8588ed;\n}\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n outline: 0;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container,\n.ant-pagination-jump-next .ant-pagination-item-container {\n position: relative;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n color: #5b5ce1;\n font-size: 12px;\n letter-spacing: -1px;\n opacity: 0;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n margin: auto;\n color: rgba(0, 0, 0, 0.25);\n font-family: Arial, Helvetica, sans-serif;\n letter-spacing: 2px;\n text-align: center;\n text-indent: 0.13em;\n opacity: 1;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev:focus-visible .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:focus-visible .ant-pagination-item-link-icon,\n.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 1;\n}\n.ant-pagination-jump-prev:focus-visible .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:focus-visible .ant-pagination-item-ellipsis,\n.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 0;\n}\n.ant-pagination-prev,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n margin-right: 8px;\n}\n.ant-pagination-prev,\n.ant-pagination-next,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n color: rgba(0, 0, 0, 0.85);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 32px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-pagination-prev,\n.ant-pagination-next {\n font-family: Arial, Helvetica, sans-serif;\n outline: 0;\n}\n.ant-pagination-prev button,\n.ant-pagination-next button {\n color: rgba(0, 0, 0, 0.85);\n cursor: pointer;\n user-select: none;\n}\n.ant-pagination-prev:hover button,\n.ant-pagination-next:hover button {\n border-color: #8588ed;\n}\n.ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-next .ant-pagination-item-link {\n display: block;\n width: 100%;\n height: 100%;\n padding: 0;\n font-size: 12px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: none;\n transition: all 0.3s;\n}\n.ant-pagination-prev:focus-visible .ant-pagination-item-link,\n.ant-pagination-next:focus-visible .ant-pagination-item-link,\n.ant-pagination-prev:hover .ant-pagination-item-link,\n.ant-pagination-next:hover .ant-pagination-item-link {\n color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-pagination-disabled,\n.ant-pagination-disabled:hover,\n.ant-pagination-disabled:focus-visible {\n cursor: not-allowed;\n}\n.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination-disabled:hover .ant-pagination-item-link,\n.ant-pagination-disabled:focus-visible .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-slash {\n margin: 0 10px 0 5px;\n}\n.ant-pagination-options {\n display: inline-block;\n margin-left: 16px;\n vertical-align: middle;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-pagination-options *::-ms-backdrop,\n .ant-pagination-options {\n vertical-align: top;\n }\n}\n.ant-pagination-options-size-changer.ant-select {\n display: inline-block;\n width: auto;\n}\n.ant-pagination-options-quick-jumper {\n display: inline-block;\n height: 32px;\n margin-left: 8px;\n line-height: 32px;\n vertical-align: top;\n}\n.ant-pagination-options-quick-jumper input {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n width: 50px;\n height: 32px;\n margin: 0 8px;\n}\n.ant-pagination-options-quick-jumper input::-moz-placeholder {\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input::placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-pagination-options-quick-jumper input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-pagination-options-quick-jumper input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input:focus,\n.ant-pagination-options-quick-jumper input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-pagination-options-quick-jumper input:focus,\n.ant-input-rtl .ant-pagination-options-quick-jumper input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input-borderless,\n.ant-pagination-options-quick-jumper input-borderless:hover,\n.ant-pagination-options-quick-jumper input-borderless:focus,\n.ant-pagination-options-quick-jumper input-borderless-focused,\n.ant-pagination-options-quick-jumper input-borderless-disabled,\n.ant-pagination-options-quick-jumper input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-pagination-options-quick-jumper input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-pagination-options-quick-jumper input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-pagination-options-quick-jumper input-sm {\n padding: 0px 7px;\n}\n.ant-pagination-options-quick-jumper input-rtl {\n direction: rtl;\n}\n.ant-pagination-simple .ant-pagination-prev,\n.ant-pagination-simple .ant-pagination-next {\n height: 24px;\n line-height: 24px;\n vertical-align: top;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {\n height: 24px;\n background-color: transparent;\n border: 0;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager {\n display: inline-block;\n height: 24px;\n margin-right: 8px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input {\n box-sizing: border-box;\n height: 100%;\n margin-right: 8px;\n padding: 0 6px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: none;\n transition: border-color 0.3s;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input:hover {\n border-color: #5b5ce1;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.mini .ant-pagination-total-text,\n.ant-pagination.mini .ant-pagination-simple-pager {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-item {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 22px;\n}\n.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev,\n.ant-pagination.mini .ant-pagination-next {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-jump-prev,\n.ant-pagination.mini .ant-pagination-jump-next {\n height: 24px;\n margin-right: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options {\n margin-left: 2px;\n}\n.ant-pagination.mini .ant-pagination-options-size-changer {\n top: 0px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper input {\n padding: 0px 7px;\n width: 44px;\n height: 24px;\n}\n.ant-pagination.ant-pagination-disabled {\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item a {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border: none;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {\n background: #dbdbdb;\n border-color: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {\n color: #fff;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {\n background: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link-icon {\n opacity: 0;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-ellipsis {\n opacity: 1;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager {\n color: rgba(0, 0, 0, 0.25);\n}\n@media only screen and (max-width: 992px) {\n .ant-pagination-item-after-jump-prev,\n .ant-pagination-item-before-jump-next {\n display: none;\n }\n}\n@media only screen and (max-width: 576px) {\n .ant-pagination-options {\n display: none;\n }\n}\n.ant-pagination-rtl .ant-pagination-total-text {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-item,\n.ant-pagination-rtl .ant-pagination-prev,\n.ant-pagination-rtl .ant-pagination-jump-prev,\n.ant-pagination-rtl .ant-pagination-jump-next {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-slash {\n margin: 0 5px 0 10px;\n}\n.ant-pagination-rtl .ant-pagination-options {\n margin-right: 16px;\n margin-left: 0;\n}\n.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-size-changer.ant-select {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-quick-jumper {\n margin-left: 0;\n}\n.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options {\n margin-right: 2px;\n margin-left: 0;\n}\n.ant-popconfirm {\n z-index: 1060;\n}\n.ant-popover {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1030;\n font-weight: normal;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.ant-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: '';\n}\n.ant-popover-hidden {\n display: none;\n}\n.ant-popover-placement-top,\n.ant-popover-placement-topLeft,\n.ant-popover-placement-topRight {\n padding-bottom: 10px;\n}\n.ant-popover-placement-right,\n.ant-popover-placement-rightTop,\n.ant-popover-placement-rightBottom {\n padding-left: 10px;\n}\n.ant-popover-placement-bottom,\n.ant-popover-placement-bottomLeft,\n.ant-popover-placement-bottomRight {\n padding-top: 10px;\n}\n.ant-popover-placement-left,\n.ant-popover-placement-leftTop,\n.ant-popover-placement-leftBottom {\n padding-right: 10px;\n}\n.ant-popover-inner {\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \\9;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ant-popover {\n /* IE10+ */\n }\n .ant-popover-inner {\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n }\n}\n.ant-popover-title {\n min-width: 177px;\n min-height: 32px;\n margin: 0;\n padding: 5px 16px 4px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-popover-inner-content {\n padding: 12px 16px;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-popover-message {\n position: relative;\n padding: 4px 0 12px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-popover-message > .anticon {\n position: absolute;\n top: 8.0005px;\n color: #faad14;\n font-size: 14px;\n}\n.ant-popover-message-title {\n padding-left: 22px;\n}\n.ant-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.ant-popover-buttons button {\n margin-left: 8px;\n}\n.ant-popover-arrow {\n position: absolute;\n display: block;\n width: 8.48528137px;\n height: 8.48528137px;\n background: transparent;\n border-style: solid;\n border-width: 4.24264069px;\n transform: rotate(45deg);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n bottom: 6.2px;\n border-top-color: transparent;\n border-right-color: #fff;\n border-bottom-color: #fff;\n border-left-color: transparent;\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n left: 6px;\n border-top-color: transparent;\n border-right-color: transparent;\n border-bottom-color: #fff;\n border-left-color: #fff;\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n top: 6px;\n border-top-color: #fff;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: #fff;\n box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n right: 6px;\n border-top-color: #fff;\n border-right-color: #fff;\n border-bottom-color: transparent;\n border-left-color: transparent;\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n.ant-popover-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-popover-rtl .ant-popover-message-title {\n padding-right: 22px;\n padding-left: 16px;\n}\n.ant-popover-rtl .ant-popover-buttons {\n text-align: left;\n}\n.ant-popover-rtl .ant-popover-buttons button {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-progress {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-progress-line {\n position: relative;\n width: 100%;\n font-size: 14px;\n}\n.ant-progress-steps {\n display: inline-block;\n}\n.ant-progress-steps-outer {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ant-progress-steps-item {\n flex-shrink: 0;\n min-width: 2px;\n margin-right: 2px;\n background: #f3f3f3;\n transition: all 0.3s;\n}\n.ant-progress-steps-item-active {\n background: #1890ff;\n}\n.ant-progress-small.ant-progress-line,\n.ant-progress-small.ant-progress-line .ant-progress-text .anticon {\n font-size: 12px;\n}\n.ant-progress-outer {\n display: inline-block;\n width: 100%;\n margin-right: 0;\n padding-right: 0;\n}\n.ant-progress-show-info .ant-progress-outer {\n margin-right: calc(-2em - 8px);\n padding-right: calc(2em + 8px);\n}\n.ant-progress-inner {\n position: relative;\n display: inline-block;\n width: 100%;\n overflow: hidden;\n vertical-align: middle;\n background-color: #f5f5f5;\n border-radius: 100px;\n}\n.ant-progress-circle-trail {\n stroke: #f5f5f5;\n}\n.ant-progress-circle-path {\n animation: ant-progress-appear 0.3s;\n}\n.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #1890ff;\n}\n.ant-progress-success-bg,\n.ant-progress-bg {\n position: relative;\n background-color: #1890ff;\n border-radius: 100px;\n transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n}\n.ant-progress-success-bg {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #52c41a;\n}\n.ant-progress-text {\n display: inline-block;\n width: 2em;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 1em;\n line-height: 1;\n white-space: nowrap;\n text-align: left;\n vertical-align: middle;\n word-break: normal;\n}\n.ant-progress-text .anticon {\n font-size: 14px;\n}\n.ant-progress-status-active .ant-progress-bg::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #fff;\n border-radius: 10px;\n opacity: 0;\n animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n content: '';\n}\n.ant-progress-status-exception .ant-progress-bg {\n background-color: #ff4d4f;\n}\n.ant-progress-status-exception .ant-progress-text {\n color: #ff4d4f;\n}\n.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #ff4d4f;\n}\n.ant-progress-status-success .ant-progress-bg {\n background-color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #52c41a;\n}\n.ant-progress-circle .ant-progress-inner {\n position: relative;\n line-height: 1;\n background-color: transparent;\n}\n.ant-progress-circle .ant-progress-text {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 1em;\n line-height: 1;\n white-space: normal;\n text-align: center;\n transform: translate(-50%, -50%);\n}\n.ant-progress-circle .ant-progress-text .anticon {\n font-size: 1.16666667em;\n}\n.ant-progress-circle.ant-progress-status-exception .ant-progress-text {\n color: #ff4d4f;\n}\n.ant-progress-circle.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n@keyframes ant-progress-active {\n 0% {\n width: 0;\n opacity: 0.1;\n }\n 20% {\n width: 0;\n opacity: 0.5;\n }\n 100% {\n width: 100%;\n opacity: 0;\n }\n}\n.ant-progress-rtl {\n direction: rtl;\n}\n.ant-progress-rtl.ant-progress-show-info .ant-progress-outer {\n margin-right: 0;\n margin-left: calc(-2em - 8px);\n padding-right: 0;\n padding-left: calc(2em + 8px);\n}\n.ant-progress-rtl .ant-progress-success-bg {\n right: 0;\n left: auto;\n}\n.ant-progress-rtl.ant-progress-line .ant-progress-text,\n.ant-progress-rtl.ant-progress-steps .ant-progress-text {\n margin-right: 8px;\n margin-left: 0;\n text-align: right;\n}\n.ant-radio-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n font-size: 0;\n line-height: unset;\n}\n.ant-radio-group .ant-badge-count {\n z-index: 1;\n}\n.ant-radio-group > .ant-badge:not(:first-child) > .ant-radio-button-wrapper {\n border-left: none;\n}\n.ant-radio-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-flex;\n align-items: baseline;\n margin-right: 8px;\n cursor: pointer;\n}\n.ant-radio-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-radio {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n display: inline-block;\n outline: none;\n cursor: pointer;\n}\n.ant-radio-wrapper:hover .ant-radio,\n.ant-radio:hover .ant-radio-inner,\n.ant-radio-input:focus + .ant-radio-inner {\n border-color: #5b5ce1;\n}\n.ant-radio-input:focus + .ant-radio-inner {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 50%;\n visibility: hidden;\n animation: antRadioEffect 0.36s ease-in-out;\n animation-fill-mode: both;\n content: '';\n}\n.ant-radio:hover::after,\n.ant-radio-wrapper:hover .ant-radio::after {\n visibility: visible;\n}\n.ant-radio-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n background-color: #fff;\n border-color: #d9d9d9;\n border-style: solid;\n border-width: 1px;\n border-radius: 50%;\n transition: all 0.3s;\n}\n.ant-radio-inner::after {\n position: absolute;\n top: 3px;\n left: 3px;\n display: table;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border-top: 0;\n border-left: 0;\n border-radius: 8px;\n transform: scale(0);\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n content: ' ';\n}\n.ant-radio-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n cursor: pointer;\n opacity: 0;\n}\n.ant-radio-checked .ant-radio-inner {\n border-color: #5b5ce1;\n}\n.ant-radio-checked .ant-radio-inner::after {\n transform: scale(1);\n opacity: 1;\n transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-radio-disabled {\n cursor: not-allowed;\n}\n.ant-radio-disabled .ant-radio-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n cursor: not-allowed;\n}\n.ant-radio-disabled .ant-radio-inner::after {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.ant-radio-disabled .ant-radio-input {\n cursor: not-allowed;\n}\n.ant-radio-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\nspan.ant-radio + * {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-radio-button-wrapper {\n position: relative;\n display: inline-block;\n height: 32px;\n margin: 0;\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 30px;\n background: #fff;\n border: 1px solid #d9d9d9;\n border-top-width: 1.02px;\n border-left-width: 0;\n cursor: pointer;\n transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;\n}\n.ant-radio-button-wrapper a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-radio-button-wrapper > .ant-radio-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n}\n.ant-radio-group-large .ant-radio-button-wrapper {\n height: 40px;\n font-size: 16px;\n line-height: 38px;\n}\n.ant-radio-group-small .ant-radio-button-wrapper {\n height: 24px;\n padding: 0 7px;\n line-height: 22px;\n}\n.ant-radio-button-wrapper:not(:first-child)::before {\n position: absolute;\n top: -1px;\n left: -1px;\n display: block;\n box-sizing: content-box;\n width: 1px;\n height: 100%;\n padding: 1px 0;\n background-color: #d9d9d9;\n transition: background-color 0.3s;\n content: '';\n}\n.ant-radio-button-wrapper:first-child {\n border-left: 1px solid #d9d9d9;\n border-radius: 5px 0 0 5px;\n}\n.ant-radio-button-wrapper:last-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px;\n}\n.ant-radio-button-wrapper:hover {\n position: relative;\n color: #5b5ce1;\n}\n.ant-radio-button-wrapper:focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-button-wrapper .ant-radio-inner,\n.ant-radio-button-wrapper input[type='checkbox'],\n.ant-radio-button-wrapper input[type='radio'] {\n width: 0;\n height: 0;\n opacity: 0;\n pointer-events: none;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n z-index: 1;\n color: #5b5ce1;\n background: #fff;\n border-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {\n background-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n color: #8588ed;\n border-color: #8588ed;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {\n background-color: #8588ed;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n color: #4541ba;\n border-color: #4541ba;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {\n background-color: #4541ba;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #fff;\n background: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n color: #fff;\n background: #8588ed;\n border-color: #8588ed;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n color: #fff;\n background: #4541ba;\n border-color: #4541ba;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-button-wrapper-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-radio-button-wrapper-disabled:first-child,\n.ant-radio-button-wrapper-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-radio-button-wrapper-disabled:first-child {\n border-left-color: #d9d9d9;\n}\n.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n color: rgba(0, 0, 0, 0.25);\n background-color: #e6e6e6;\n border-color: #d9d9d9;\n box-shadow: none;\n}\n@keyframes antRadioEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.ant-radio-group.ant-radio-group-rtl {\n direction: rtl;\n}\n.ant-radio-wrapper.ant-radio-wrapper-rtl {\n margin-right: 0;\n margin-left: 8px;\n direction: rtl;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl {\n border-right-width: 0;\n border-left-width: 1px;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child)::before {\n right: -1px;\n left: 0;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child {\n border-right: 1px solid #d9d9d9;\n border-radius: 0 5px 5px 0;\n}\n.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {\n border-right-color: #8588ed;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child {\n border-right-color: #d9d9d9;\n}\n.ant-rate {\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n display: inline-block;\n margin: 0;\n padding: 0;\n color: #fadb14;\n font-size: 20px;\n line-height: unset;\n list-style: none;\n outline: none;\n}\n.ant-rate-disabled .ant-rate-star {\n cursor: default;\n}\n.ant-rate-disabled .ant-rate-star:hover {\n transform: scale(1);\n}\n.ant-rate-star {\n position: relative;\n display: inline-block;\n color: inherit;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-rate-star:not(:last-child) {\n margin-right: 8px;\n}\n.ant-rate-star > div:focus {\n outline: 0;\n}\n.ant-rate-star > div:hover,\n.ant-rate-star > div:focus {\n transform: scale(1.1);\n}\n.ant-rate-star-first,\n.ant-rate-star-second {\n color: #f0f0f0;\n transition: all 0.3s;\n user-select: none;\n}\n.ant-rate-star-first .anticon,\n.ant-rate-star-second .anticon {\n vertical-align: middle;\n}\n.ant-rate-star-first {\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n overflow: hidden;\n opacity: 0;\n}\n.ant-rate-star-half .ant-rate-star-first,\n.ant-rate-star-half .ant-rate-star-second {\n opacity: 1;\n}\n.ant-rate-star-half .ant-rate-star-first,\n.ant-rate-star-full .ant-rate-star-second {\n color: inherit;\n}\n.ant-rate-text {\n display: inline-block;\n margin: 0 8px;\n font-size: 14px;\n}\n.ant-rate-rtl {\n direction: rtl;\n}\n.ant-rate-rtl .ant-rate-star:not(:last-child) {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-rate-rtl .ant-rate-star-first {\n right: 0;\n left: auto;\n}\n.ant-result {\n padding: 48px 32px;\n}\n.ant-result-success .ant-result-icon > .anticon {\n color: #52c41a;\n}\n.ant-result-error .ant-result-icon > .anticon {\n color: #ff4d4f;\n}\n.ant-result-info .ant-result-icon > .anticon {\n color: #5b5ce1;\n}\n.ant-result-warning .ant-result-icon > .anticon {\n color: #faad14;\n}\n.ant-result-image {\n width: 250px;\n height: 295px;\n margin: auto;\n}\n.ant-result-icon {\n margin-bottom: 24px;\n text-align: center;\n}\n.ant-result-icon > .anticon {\n font-size: 72px;\n}\n.ant-result-title {\n color: rgba(0, 0, 0, 0.85);\n font-size: 24px;\n line-height: 1.8;\n text-align: center;\n}\n.ant-result-subtitle {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.6;\n text-align: center;\n}\n.ant-result-extra {\n margin: 24px 0 0 0;\n text-align: center;\n}\n.ant-result-extra > * {\n margin-right: 8px;\n}\n.ant-result-extra > *:last-child {\n margin-right: 0;\n}\n.ant-result-content {\n margin-top: 24px;\n padding: 24px 40px;\n background-color: #fafafa;\n}\n.ant-result-rtl {\n direction: rtl;\n}\n.ant-result-rtl .ant-result-extra > * {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-result-rtl .ant-result-extra > *:last-child {\n margin-left: 0;\n}\n.ant-select-single .ant-select-selector {\n display: flex;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-search {\n position: absolute;\n top: 0;\n right: 11px;\n bottom: 0;\n left: 11px;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-search-input {\n width: 100%;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-item,\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n padding: 0;\n line-height: 30px;\n transition: all 0.3s;\n}\n@supports (-moz-appearance: meterbar) {\n .ant-select-single .ant-select-selector .ant-select-selection-item,\n .ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n line-height: 30px;\n }\n}\n.ant-select-single .ant-select-selector .ant-select-selection-item {\n position: relative;\n user-select: none;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n pointer-events: none;\n}\n.ant-select-single .ant-select-selector::after,\n.ant-select-single .ant-select-selector .ant-select-selection-item::after,\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder::after {\n display: inline-block;\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\n.ant-select-single.ant-select-show-arrow .ant-select-selection-search {\n right: 25px;\n}\n.ant-select-single.ant-select-show-arrow .ant-select-selection-item,\n.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 18px;\n}\n.ant-select-single.ant-select-open .ant-select-selection-item {\n color: #bfbfbf;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n width: 100%;\n height: 32px;\n padding: 0 11px;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n height: 30px;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector::after {\n line-height: 30px;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector::after {\n display: none;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-search {\n position: static;\n width: 100%;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder {\n position: absolute;\n right: 0;\n left: 0;\n padding: 0 11px;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder::after {\n display: none;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {\n height: 40px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector::after,\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder {\n line-height: 38px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input {\n height: 38px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {\n height: 24px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector::after,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder {\n line-height: 22px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input {\n height: 22px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selection-search {\n right: 7px;\n left: 7px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {\n padding: 0 7px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search {\n right: 28px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 21px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {\n padding: 0 11px;\n}\n/**\n * Do not merge `height` & `line-height` under style with `selection` & `search`,\n * since chrome may update to redesign with its align logic.\n */\n.ant-select-selection-overflow {\n position: relative;\n display: flex;\n flex: auto;\n flex-wrap: wrap;\n max-width: 100%;\n}\n.ant-select-selection-overflow-item {\n flex: none;\n align-self: center;\n max-width: 100%;\n}\n.ant-select-multiple .ant-select-selector {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n padding: 1px 4px;\n}\n.ant-select-show-search.ant-select-multiple .ant-select-selector {\n cursor: text;\n}\n.ant-select-disabled.ant-select-multiple .ant-select-selector {\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-select-multiple .ant-select-selector::after {\n display: inline-block;\n width: 0;\n margin: 2px 0;\n line-height: 24px;\n content: '\\a0';\n}\n.ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 24px;\n}\n.ant-select-multiple .ant-select-selection-item {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n max-width: 100%;\n height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n line-height: 22px;\n background: #f5f5f5;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n cursor: default;\n transition: font-size 0.3s, line-height 0.3s, height 0.3s;\n user-select: none;\n margin-inline-end: 4px;\n padding-inline-start: 8px;\n padding-inline-end: 4px;\n}\n.ant-select-disabled.ant-select-multiple .ant-select-selection-item {\n color: #bfbfbf;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-select-multiple .ant-select-selection-item-content {\n display: inline-block;\n margin-right: 4px;\n overflow: hidden;\n white-space: pre;\n text-overflow: ellipsis;\n}\n.ant-select-multiple .ant-select-selection-item-remove {\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n font-size: 10px;\n line-height: inherit;\n cursor: pointer;\n}\n.ant-select-multiple .ant-select-selection-item-remove > * {\n line-height: 1;\n}\n.ant-select-multiple .ant-select-selection-item-remove svg {\n display: inline-block;\n}\n.ant-select-multiple .ant-select-selection-item-remove::before {\n display: none;\n}\n.ant-select-multiple .ant-select-selection-item-remove .ant-select-multiple .ant-select-selection-item-remove-icon {\n display: block;\n}\n.ant-select-multiple .ant-select-selection-item-remove > .anticon {\n vertical-align: -0.2em;\n}\n.ant-select-multiple .ant-select-selection-item-remove:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-select-multiple .ant-select-selection-overflow-item + .ant-select-selection-overflow-item .ant-select-selection-search {\n margin-inline-start: 0;\n}\n.ant-select-multiple .ant-select-selection-search {\n position: relative;\n max-width: 100%;\n margin-top: 2px;\n margin-bottom: 2px;\n margin-inline-start: 7px;\n}\n.ant-select-multiple .ant-select-selection-search-input,\n.ant-select-multiple .ant-select-selection-search-mirror {\n height: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 24px;\n transition: all 0.3s;\n}\n.ant-select-multiple .ant-select-selection-search-input {\n width: 100%;\n min-width: 4.1px;\n}\n.ant-select-multiple .ant-select-selection-search-mirror {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 999;\n white-space: pre;\n visibility: hidden;\n}\n.ant-select-multiple .ant-select-selection-placeholder {\n position: absolute;\n top: 50%;\n right: 11px;\n left: 11px;\n transform: translateY(-50%);\n transition: all 0.3s;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selector::after {\n line-height: 32px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-item {\n height: 32px;\n line-height: 30px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-search {\n height: 32px;\n line-height: 32px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-search-input,\n.ant-select-multiple.ant-select-lg .ant-select-selection-search-mirror {\n height: 32px;\n line-height: 30px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selector::after {\n line-height: 16px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-item {\n height: 16px;\n line-height: 14px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search {\n height: 16px;\n line-height: 16px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search-input,\n.ant-select-multiple.ant-select-sm .ant-select-selection-search-mirror {\n height: 16px;\n line-height: 14px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder {\n left: 7px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search {\n margin-inline-start: 3px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-item {\n height: 32px;\n line-height: 32px;\n}\n.ant-select-disabled .ant-select-selection-item-remove {\n display: none;\n}\n/* Reset search input style */\n.ant-select {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n cursor: pointer;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n position: relative;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: pointer;\n}\n.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n cursor: text;\n}\n.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: auto;\n}\n.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n background: #f5f5f5;\n}\n.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: not-allowed;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n margin: 0;\n padding: 0;\n background: transparent;\n border: none;\n outline: none;\n appearance: none;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input::-webkit-search-cancel-button {\n display: none;\n -webkit-appearance: none;\n}\n.ant-select:not(.ant-select-disabled):hover .ant-select-selector {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-select:not(.ant-select-disabled):hover .ant-select-selector {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-select-selection-item {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-select-selection-item *::-ms-backdrop,\n .ant-select-selection-item {\n flex: auto;\n }\n}\n.ant-select-selection-placeholder {\n flex: 1;\n overflow: hidden;\n color: #bfbfbf;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-select-selection-placeholder *::-ms-backdrop,\n .ant-select-selection-placeholder {\n flex: auto;\n }\n}\n.ant-select-arrow {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n top: 53%;\n right: 11px;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 1;\n text-align: center;\n pointer-events: none;\n}\n.ant-select-arrow > * {\n line-height: 1;\n}\n.ant-select-arrow svg {\n display: inline-block;\n}\n.ant-select-arrow::before {\n display: none;\n}\n.ant-select-arrow .ant-select-arrow-icon {\n display: block;\n}\n.ant-select-arrow .anticon {\n vertical-align: top;\n transition: transform 0.3s;\n}\n.ant-select-arrow .anticon > svg {\n vertical-align: top;\n}\n.ant-select-arrow .anticon:not(.ant-select-suffix) {\n pointer-events: auto;\n}\n.ant-select-disabled .ant-select-arrow {\n cursor: not-allowed;\n}\n.ant-select-clear {\n position: absolute;\n top: 50%;\n right: 11px;\n z-index: 1;\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n font-style: normal;\n line-height: 1;\n text-align: center;\n text-transform: none;\n background: #fff;\n cursor: pointer;\n opacity: 0;\n transition: color 0.3s ease, opacity 0.15s ease;\n text-rendering: auto;\n}\n.ant-select-clear::before {\n display: block;\n}\n.ant-select-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-select:hover .ant-select-clear {\n opacity: 1;\n}\n.ant-select-dropdown {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n box-sizing: border-box;\n padding: 4px 0;\n overflow: hidden;\n font-size: 14px;\n font-variant: initial;\n background-color: #fff;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpIn;\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-topLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownIn;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpOut;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownOut;\n}\n.ant-select-dropdown-hidden {\n display: none;\n}\n.ant-select-dropdown-empty {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-item-empty {\n position: relative;\n display: block;\n min-height: 32px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-item {\n position: relative;\n display: block;\n min-height: 32px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-select-item-group {\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n cursor: default;\n}\n.ant-select-item-option {\n display: flex;\n}\n.ant-select-item-option-content {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-select-item-option-state {\n flex: none;\n}\n.ant-select-item-option-active:not(.ant-select-item-option-disabled) {\n background-color: #f5f5f5;\n}\n.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n background-color: #f0f2ff;\n}\n.ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state {\n color: #5b5ce1;\n}\n.ant-select-item-option-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-item-option-grouped {\n padding-left: 24px;\n}\n.ant-select-lg {\n font-size: 16px;\n}\n.ant-select-borderless .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-select-rtl {\n direction: rtl;\n}\n.ant-select-rtl .ant-select-arrow {\n right: initial;\n left: 11px;\n}\n.ant-select-rtl .ant-select-clear {\n right: initial;\n left: 11px;\n}\n.ant-select-dropdown-rtl {\n direction: rtl;\n}\n.ant-select-dropdown-rtl .ant-select-item-option-grouped {\n padding-right: 24px;\n padding-left: 12px;\n}\n.ant-select-rtl.ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.ant-select-rtl.ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 4px;\n padding-left: 24px;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-item {\n text-align: right;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-item-content {\n margin-right: 0;\n margin-left: 4px;\n text-align: right;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-search-mirror {\n right: 0;\n left: auto;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-placeholder {\n right: 11px;\n left: auto;\n}\n.ant-select-rtl.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder {\n right: 7px;\n}\n.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-item,\n.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n right: 0;\n left: 9px;\n text-align: right;\n}\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-search {\n right: 11px;\n left: 25px;\n}\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-item,\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 0;\n padding-left: 18px;\n}\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search {\n right: 6px;\n}\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 0;\n padding-left: 21px;\n}\n.ant-skeleton {\n display: table;\n width: 100%;\n}\n.ant-skeleton-header {\n display: table-cell;\n padding-right: 16px;\n vertical-align: top;\n}\n.ant-skeleton-header .ant-skeleton-avatar {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-content {\n display: table-cell;\n width: 100%;\n vertical-align: top;\n}\n.ant-skeleton-content .ant-skeleton-title {\n width: 100%;\n height: 16px;\n margin-top: 16px;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 4px;\n}\n.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 24px;\n}\n.ant-skeleton-content .ant-skeleton-paragraph {\n padding: 0;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li {\n width: 100%;\n height: 16px;\n list-style: none;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 4px;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {\n width: 61%;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li + li {\n margin-top: 16px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {\n margin-top: 12px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 28px;\n}\n.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {\n border-radius: 100px;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-button {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-input {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-image {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton-element {\n display: inline-block;\n width: auto;\n}\n.ant-skeleton-element .ant-skeleton-button {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 5px;\n width: 64px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {\n width: 32px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {\n border-radius: 32px;\n}\n.ant-skeleton-element .ant-skeleton-button-lg {\n width: 80px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {\n width: 40px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {\n border-radius: 40px;\n}\n.ant-skeleton-element .ant-skeleton-button-sm {\n width: 48px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {\n width: 24px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {\n border-radius: 24px;\n}\n.ant-skeleton-element .ant-skeleton-avatar {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-input {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 100%;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-input-lg {\n width: 100%;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-input-sm {\n width: 100%;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-image {\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 96px;\n height: 96px;\n line-height: 96px;\n}\n.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-image-path {\n fill: #bfbfbf;\n}\n.ant-skeleton-element .ant-skeleton-image-svg {\n width: 48px;\n height: 48px;\n line-height: 48px;\n max-width: 192px;\n max-height: 192px;\n}\n.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {\n border-radius: 50%;\n}\n@keyframes ant-skeleton-loading {\n 0% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0 50%;\n }\n}\n.ant-skeleton-rtl {\n direction: rtl;\n}\n.ant-skeleton-rtl .ant-skeleton-header {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {\n animation-name: ant-skeleton-loading-rtl;\n}\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {\n animation-name: ant-skeleton-loading-rtl;\n}\n@keyframes ant-skeleton-loading-rtl {\n 0% {\n background-position: 0% 50%;\n }\n 100% {\n background-position: 100% 50%;\n }\n}\n.ant-slider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n height: 12px;\n margin: 10px 6px 10px;\n padding: 4px 0;\n cursor: pointer;\n touch-action: none;\n}\n.ant-slider-vertical {\n width: 12px;\n height: 100%;\n margin: 6px 10px;\n padding: 0 4px;\n}\n.ant-slider-vertical .ant-slider-rail {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-track {\n width: 4px;\n}\n.ant-slider-vertical .ant-slider-handle {\n margin-top: -6px;\n margin-left: -5px;\n}\n.ant-slider-vertical .ant-slider-mark {\n top: 0;\n left: 12px;\n width: 18px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-mark-text {\n left: 4px;\n white-space: nowrap;\n}\n.ant-slider-vertical .ant-slider-step {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-dot {\n top: auto;\n left: 2px;\n margin-bottom: -4px;\n}\n.ant-slider-tooltip .ant-tooltip-inner {\n min-width: unset;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-handle {\n margin-right: -5px;\n margin-left: 0;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-mark {\n right: 12px;\n left: auto;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text {\n right: 4px;\n left: auto;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-dot {\n right: 2px;\n left: auto;\n}\n.ant-slider-with-marks {\n margin-bottom: 28px;\n}\n.ant-slider-rail {\n position: absolute;\n width: 100%;\n height: 4px;\n background-color: #f5f5f5;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-slider-track {\n position: absolute;\n height: 4px;\n background-color: #e0e3ff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n background-color: #fff;\n border: solid 2px #e0e3ff;\n border-radius: 50%;\n box-shadow: 0;\n cursor: pointer;\n transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging {\n border-color: #7c7de7;\n box-shadow: 0 0 0 5px rgba(91, 92, 225, 0.12);\n}\n.ant-slider-handle:focus {\n border-color: #7c7de7;\n outline: none;\n box-shadow: 0 0 0 5px rgba(91, 92, 225, 0.12);\n}\n.ant-slider-handle.ant-tooltip-open {\n border-color: #5b5ce1;\n}\n.ant-slider:hover .ant-slider-rail {\n background-color: #e1e1e1;\n}\n.ant-slider:hover .ant-slider-track {\n background-color: #b4b9fa;\n}\n.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {\n border-color: #b4b9fa;\n}\n.ant-slider-mark {\n position: absolute;\n top: 14px;\n left: 0;\n width: 100%;\n font-size: 14px;\n}\n.ant-slider-mark-text {\n position: absolute;\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n text-align: center;\n word-break: keep-all;\n cursor: pointer;\n user-select: none;\n}\n.ant-slider-mark-text-active {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n}\n.ant-slider-dot {\n position: absolute;\n top: -2px;\n width: 8px;\n height: 8px;\n margin-left: -4px;\n background-color: #fff;\n border: 2px solid #f0f0f0;\n border-radius: 50%;\n cursor: pointer;\n}\n.ant-slider-dot:first-child {\n margin-left: -4px;\n}\n.ant-slider-dot:last-child {\n margin-left: -4px;\n}\n.ant-slider-dot-active {\n border-color: #adaef0;\n}\n.ant-slider-disabled {\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-track {\n background-color: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-slider-disabled .ant-slider-handle,\n.ant-slider-disabled .ant-slider-dot {\n background-color: #fff;\n border-color: rgba(0, 0, 0, 0.25) !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-mark-text,\n.ant-slider-disabled .ant-slider-dot {\n cursor: not-allowed !important;\n}\n.ant-slider-rtl {\n direction: rtl;\n}\n.ant-slider-rtl .ant-slider-mark {\n right: 0;\n left: auto;\n}\n.ant-slider-rtl .ant-slider-dot {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-slider-rtl .ant-slider-dot:first-child {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-slider-rtl .ant-slider-dot:last-child {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-space {\n display: inline-flex;\n}\n.ant-space-vertical {\n flex-direction: column;\n}\n.ant-space-align-center {\n align-items: center;\n}\n.ant-space-align-start {\n align-items: flex-start;\n}\n.ant-space-align-end {\n align-items: flex-end;\n}\n.ant-space-align-baseline {\n align-items: baseline;\n}\n.ant-space-item:empty {\n display: none;\n}\n.ant-space-rtl {\n direction: rtl;\n}\n.ant-spin {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n display: none;\n color: #5b5ce1;\n text-align: center;\n vertical-align: middle;\n opacity: 0;\n transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-spin-spinning {\n position: static;\n display: inline-block;\n opacity: 1;\n}\n.ant-spin-nested-loading {\n position: relative;\n}\n.ant-spin-nested-loading > div > .ant-spin {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 4;\n display: block;\n width: 100%;\n height: 100%;\n max-height: 400px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -10px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-text {\n position: absolute;\n top: 50%;\n width: 100%;\n padding-top: 5px;\n text-shadow: 0 1px 2px #fff;\n}\n.ant-spin-nested-loading > div > .ant-spin.ant-spin-show-text .ant-spin-dot {\n margin-top: -20px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-dot {\n margin: -7px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-text {\n padding-top: 2px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm.ant-spin-show-text .ant-spin-dot {\n margin-top: -17px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-dot {\n margin: -16px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-text {\n padding-top: 11px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg.ant-spin-show-text .ant-spin-dot {\n margin-top: -26px;\n}\n.ant-spin-container {\n position: relative;\n transition: opacity 0.3s;\n}\n.ant-spin-container::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10;\n display: none \\9;\n width: 100%;\n height: 100%;\n background: #fff;\n opacity: 0;\n transition: all 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-spin-blur {\n clear: both;\n overflow: hidden;\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n}\n.ant-spin-blur::after {\n opacity: 0.4;\n pointer-events: auto;\n}\n.ant-spin-tip {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-spin-dot {\n position: relative;\n display: inline-block;\n font-size: 20px;\n width: 1em;\n height: 1em;\n}\n.ant-spin-dot-item {\n position: absolute;\n display: block;\n width: 9px;\n height: 9px;\n background-color: #5b5ce1;\n border-radius: 100%;\n transform: scale(0.75);\n transform-origin: 50% 50%;\n opacity: 0.3;\n animation: antSpinMove 1s infinite linear alternate;\n}\n.ant-spin-dot-item:nth-child(1) {\n top: 0;\n left: 0;\n}\n.ant-spin-dot-item:nth-child(2) {\n top: 0;\n right: 0;\n animation-delay: 0.4s;\n}\n.ant-spin-dot-item:nth-child(3) {\n right: 0;\n bottom: 0;\n animation-delay: 0.8s;\n}\n.ant-spin-dot-item:nth-child(4) {\n bottom: 0;\n left: 0;\n animation-delay: 1.2s;\n}\n.ant-spin-dot-spin {\n transform: rotate(45deg);\n animation: antRotate 1.2s infinite linear;\n}\n.ant-spin-sm .ant-spin-dot {\n font-size: 14px;\n}\n.ant-spin-sm .ant-spin-dot i {\n width: 6px;\n height: 6px;\n}\n.ant-spin-lg .ant-spin-dot {\n font-size: 32px;\n}\n.ant-spin-lg .ant-spin-dot i {\n width: 14px;\n height: 14px;\n}\n.ant-spin.ant-spin-show-text .ant-spin-text {\n display: block;\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /* IE10+ */\n .ant-spin-blur {\n background: #fff;\n opacity: 0.5;\n }\n}\n@keyframes antSpinMove {\n to {\n opacity: 1;\n }\n}\n@keyframes antRotate {\n to {\n transform: rotate(405deg);\n }\n}\n.ant-spin-rtl {\n direction: rtl;\n}\n.ant-spin-rtl .ant-spin-dot-spin {\n transform: rotate(-45deg);\n animation-name: antRotateRtl;\n}\n@keyframes antRotateRtl {\n to {\n transform: rotate(-405deg);\n }\n}\n.ant-statistic {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-statistic-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-statistic-content {\n color: rgba(0, 0, 0, 0.85);\n font-size: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n}\n.ant-statistic-content-value {\n display: inline-block;\n direction: ltr;\n}\n.ant-statistic-content-prefix,\n.ant-statistic-content-suffix {\n display: inline-block;\n}\n.ant-statistic-content-prefix {\n margin-right: 4px;\n}\n.ant-statistic-content-suffix {\n margin-left: 4px;\n}\n.ant-statistic-rtl {\n direction: rtl;\n}\n.ant-statistic-rtl .ant-statistic-content-prefix {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-statistic-rtl .ant-statistic-content-suffix {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-steps {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: flex;\n width: 100%;\n font-size: 0;\n text-align: initial;\n}\n.ant-steps-item {\n position: relative;\n display: inline-block;\n flex: 1;\n overflow: hidden;\n vertical-align: top;\n}\n.ant-steps-item-container {\n outline: none;\n}\n.ant-steps-item:last-child {\n flex: none;\n}\n.ant-steps-item:last-child > .ant-steps-item-container > .ant-steps-item-tail,\n.ant-steps-item:last-child > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-item-icon,\n.ant-steps-item-content {\n display: inline-block;\n vertical-align: top;\n}\n.ant-steps-item-icon {\n width: 32px;\n height: 32px;\n margin: 0 8px 0 0;\n font-size: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 32px;\n text-align: center;\n border: 1px solid rgba(0, 0, 0, 0.25);\n border-radius: 32px;\n transition: background-color 0.3s, border-color 0.3s;\n}\n.ant-steps-item-icon .ant-steps-icon {\n position: relative;\n top: -0.5px;\n color: #5b5ce1;\n line-height: 1;\n}\n.ant-steps-item-tail {\n position: absolute;\n top: 12px;\n left: 0;\n width: 100%;\n padding: 0 10px;\n}\n.ant-steps-item-tail::after {\n display: inline-block;\n width: 100%;\n height: 1px;\n background: #f0f0f0;\n border-radius: 1px;\n transition: background 0.3s;\n content: '';\n}\n.ant-steps-item-title {\n position: relative;\n display: inline-block;\n padding-right: 16px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 32px;\n}\n.ant-steps-item-title::after {\n position: absolute;\n top: 16px;\n left: 100%;\n display: block;\n width: 9999px;\n height: 1px;\n background: #f0f0f0;\n content: '';\n}\n.ant-steps-item-subtitle {\n display: inline;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.45);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-steps-item-wait .ant-steps-item-icon {\n background-color: #fff;\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process .ant-steps-item-icon {\n background-color: #fff;\n border-color: #5b5ce1;\n}\n.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #5b5ce1;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {\n background: #5b5ce1;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon .ant-steps-icon {\n color: #fff;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-title {\n font-weight: 500;\n}\n.ant-steps-item-finish .ant-steps-item-icon {\n background-color: #fff;\n border-color: #5b5ce1;\n}\n.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #5b5ce1;\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #5b5ce1;\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #5b5ce1;\n}\n.ant-steps-item-error .ant-steps-item-icon {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon {\n color: #ff4d4f;\n}\n.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item.ant-steps-next-error .ant-steps-item-title::after {\n background: #ff4d4f;\n}\n.ant-steps-item-disabled {\n cursor: not-allowed;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] {\n cursor: pointer;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-title,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-subtitle,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-description,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-icon .ant-steps-icon {\n transition: color 0.3s;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-title,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-subtitle,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-description {\n color: #5b5ce1;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon {\n border-color: #5b5ce1;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-left: 16px;\n white-space: nowrap;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-left: 0;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title {\n padding-right: 0;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail {\n display: none;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description {\n max-width: 140px;\n white-space: normal;\n}\n.ant-steps-item-custom > .ant-steps-item-container > .ant-steps-item-icon {\n height: auto;\n background: none;\n border: 0;\n}\n.ant-steps-item-custom > .ant-steps-item-container > .ant-steps-item-icon > .ant-steps-icon {\n top: 0px;\n left: 0.5px;\n width: 32px;\n height: 32px;\n font-size: 24px;\n line-height: 32px;\n}\n.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon {\n width: auto;\n background: none;\n}\n.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-left: 12px;\n}\n.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-left: 0;\n}\n.ant-steps-small .ant-steps-item-icon {\n width: 24px;\n height: 24px;\n margin: 0 8px 0 0;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n border-radius: 24px;\n}\n.ant-steps-small .ant-steps-item-title {\n padding-right: 12px;\n font-size: 14px;\n line-height: 24px;\n}\n.ant-steps-small .ant-steps-item-title::after {\n top: 12px;\n}\n.ant-steps-small .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-steps-small .ant-steps-item-tail {\n top: 8px;\n}\n.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon {\n width: inherit;\n height: inherit;\n line-height: inherit;\n background: none;\n border: 0;\n border-radius: 0;\n}\n.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon {\n font-size: 24px;\n line-height: 24px;\n transform: none;\n}\n.ant-steps-vertical {\n display: flex;\n flex-direction: column;\n}\n.ant-steps-vertical > .ant-steps-item {\n display: block;\n flex: 1 0 auto;\n padding-left: 0;\n overflow: visible;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-icon {\n float: left;\n margin-right: 16px;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-content {\n display: block;\n min-height: 48px;\n overflow: hidden;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-title {\n line-height: 32px;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-description {\n padding-bottom: 12px;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n position: absolute;\n top: 0;\n left: 16px;\n width: 1px;\n height: 100%;\n padding: 38px 0 6px;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail::after {\n width: 1px;\n height: 100%;\n}\n.ant-steps-vertical > .ant-steps-item:not(:last-child) > .ant-steps-item-container > .ant-steps-item-tail {\n display: block;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail {\n position: absolute;\n top: 0;\n left: 12px;\n padding: 30px 0 6px;\n}\n.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-title {\n line-height: 24px;\n}\n.ant-steps-label-vertical .ant-steps-item {\n overflow: visible;\n}\n.ant-steps-label-vertical .ant-steps-item-tail {\n margin-left: 58px;\n padding: 3.5px 24px;\n}\n.ant-steps-label-vertical .ant-steps-item-content {\n display: block;\n width: 116px;\n margin-top: 8px;\n text-align: center;\n}\n.ant-steps-label-vertical .ant-steps-item-icon {\n display: inline-block;\n margin-left: 42px;\n}\n.ant-steps-label-vertical .ant-steps-item-title {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-steps-label-vertical .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-label-vertical .ant-steps-item-subtitle {\n display: block;\n margin-bottom: 4px;\n margin-left: 0;\n line-height: 1.5715;\n}\n.ant-steps-label-vertical.ant-steps-small:not(.ant-steps-dot) .ant-steps-item-icon {\n margin-left: 46px;\n}\n.ant-steps-dot .ant-steps-item-title,\n.ant-steps-dot.ant-steps-small .ant-steps-item-title {\n line-height: 1.5715;\n}\n.ant-steps-dot .ant-steps-item-tail,\n.ant-steps-dot.ant-steps-small .ant-steps-item-tail {\n top: 2px;\n width: 100%;\n margin: 0 0 0 70px;\n padding: 0;\n}\n.ant-steps-dot .ant-steps-item-tail::after,\n.ant-steps-dot.ant-steps-small .ant-steps-item-tail::after {\n width: calc(100% - 20px);\n height: 3px;\n margin-left: 12px;\n}\n.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot {\n left: 2px;\n}\n.ant-steps-dot .ant-steps-item-icon,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon {\n width: 8px;\n height: 8px;\n margin-left: 67px;\n padding-right: 0;\n line-height: 8px;\n background: transparent;\n border: 0;\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n position: relative;\n float: left;\n width: 100%;\n height: 100%;\n border-radius: 100px;\n transition: all 0.3s;\n /* expand hover area */\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot::after {\n position: absolute;\n top: -12px;\n left: -26px;\n width: 60px;\n height: 32px;\n background: rgba(0, 0, 0, 0.001);\n content: '';\n}\n.ant-steps-dot .ant-steps-item-content,\n.ant-steps-dot.ant-steps-small .ant-steps-item-content {\n width: 140px;\n}\n.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,\n.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon {\n position: relative;\n top: -1px;\n width: 10px;\n height: 10px;\n line-height: 10px;\n background: none;\n}\n.ant-steps-dot .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot {\n left: 0;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 8px;\n margin-left: 0;\n background: none;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 2px;\n left: -9px;\n margin: 0;\n padding: 22px 0 4px;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot {\n left: 0;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-content {\n width: inherit;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon-dot {\n left: -2px;\n}\n.ant-steps-navigation {\n padding-top: 12px;\n}\n.ant-steps-navigation.ant-steps-small .ant-steps-item-container {\n margin-left: -12px;\n}\n.ant-steps-navigation .ant-steps-item {\n overflow: visible;\n text-align: center;\n}\n.ant-steps-navigation .ant-steps-item-container {\n display: inline-block;\n height: 100%;\n margin-left: -16px;\n padding-bottom: 12px;\n text-align: left;\n transition: opacity 0.3s;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-content {\n max-width: auto;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title {\n max-width: 100%;\n padding-right: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role='button'] {\n cursor: pointer;\n}\n.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role='button']:hover {\n opacity: 0.85;\n}\n.ant-steps-navigation .ant-steps-item:last-child {\n flex: 1;\n}\n.ant-steps-navigation .ant-steps-item:last-child::after {\n display: none;\n}\n.ant-steps-navigation .ant-steps-item::after {\n position: absolute;\n top: 50%;\n left: 100%;\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-top: -14px;\n margin-left: -2px;\n border: 1px solid rgba(0, 0, 0, 0.25);\n border-bottom: none;\n border-left: none;\n transform: rotate(45deg);\n content: '';\n}\n.ant-steps-navigation .ant-steps-item::before {\n position: absolute;\n bottom: 0;\n left: 50%;\n display: inline-block;\n width: 0;\n height: 2px;\n background-color: #5b5ce1;\n transition: width 0.3s, left 0.3s;\n transition-timing-function: ease-out;\n content: '';\n}\n.ant-steps-navigation .ant-steps-item.ant-steps-item-active::before {\n left: 0;\n width: 100%;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item {\n margin-right: 0 !important;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item::before {\n display: none;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item.ant-steps-item-active::before {\n top: 0;\n right: 0;\n left: unset;\n display: block;\n width: 3px;\n height: calc(100% - 24px);\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item::after {\n position: relative;\n top: -2px;\n left: 50%;\n display: block;\n width: 8px;\n height: 8px;\n margin-bottom: 8px;\n text-align: center;\n transform: rotate(135deg);\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n visibility: hidden;\n}\n.ant-steps-rtl {\n direction: rtl;\n}\n.ant-steps.ant-steps-rtl .ant-steps-item-icon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-steps-rtl .ant-steps-item-tail {\n right: 0;\n left: auto;\n}\n.ant-steps-rtl .ant-steps-item-title {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-steps-rtl .ant-steps-item-title::after {\n right: 100%;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-right: 16px;\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-right: 0;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon {\n right: 0.5px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-navigation.ant-steps-small .ant-steps-item-container {\n margin-right: -12px;\n margin-left: 0;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container {\n margin-right: -16px;\n margin-left: 0;\n text-align: right;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item::after {\n right: 100%;\n left: auto;\n margin-right: -2px;\n margin-left: 0;\n transform: rotate(225deg);\n}\n.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-right: 12px;\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-right: 0;\n}\n.ant-steps-rtl.ant-steps-small .ant-steps-item-title {\n padding-right: 0;\n padding-left: 12px;\n}\n.ant-steps-rtl.ant-steps-vertical > .ant-steps-item .ant-steps-item-icon {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-steps-rtl.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n right: 16px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail {\n right: 12px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-label-vertical .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail {\n margin: 0 70px 0 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail::after,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail::after {\n margin-right: 12px;\n margin-left: 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot {\n right: 2px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon {\n margin-right: 67px;\n margin-left: 0;\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n /* expand hover area */\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n float: right;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot::after {\n right: -26px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n right: -9px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot {\n right: 0;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n right: -2px;\n left: auto;\n}\n.ant-steps-with-progress .ant-steps-item {\n padding-top: 4px;\n}\n.ant-steps-with-progress .ant-steps-item .ant-steps-item-tail {\n top: 4px !important;\n}\n.ant-steps-with-progress.ant-steps-horizontal .ant-steps-item:first-child {\n padding-left: 4px;\n}\n.ant-steps-with-progress .ant-steps-item-icon {\n position: relative;\n}\n.ant-steps-with-progress .ant-steps-item-icon .ant-progress {\n position: absolute;\n top: -5px;\n right: -5px;\n bottom: -5px;\n left: -5px;\n}\n.ant-switch {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n min-width: 44px;\n height: 22px;\n line-height: 22px;\n vertical-align: middle;\n background-color: rgba(0, 0, 0, 0.25);\n border: 0;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.ant-switch:focus {\n outline: 0;\n box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);\n}\n.ant-switch-checked:focus {\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-switch:focus:hover {\n box-shadow: none;\n}\n.ant-switch-checked {\n background-color: #5b5ce1;\n}\n.ant-switch-loading,\n.ant-switch-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n}\n.ant-switch-loading *,\n.ant-switch-disabled * {\n box-shadow: none;\n cursor: not-allowed;\n}\n.ant-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n color: #fff;\n font-size: 12px;\n transition: margin 0.2s;\n}\n.ant-switch-checked .ant-switch-inner {\n margin: 0 25px 0 7px;\n}\n.ant-switch-handle {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 18px;\n height: 18px;\n transition: all 0.2s ease-in-out;\n}\n.ant-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #fff;\n border-radius: 9px;\n box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);\n transition: all 0.2s ease-in-out;\n content: '';\n}\n.ant-switch-checked .ant-switch-handle {\n left: calc(100% - 18px - 2px);\n}\n.ant-switch:not(.ant-switch-disabled):active .ant-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.ant-switch:not(.ant-switch-disabled):active.ant-switch-checked .ant-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.ant-switch-loading-icon {\n position: relative;\n top: 2px;\n color: rgba(0, 0, 0, 0.65);\n vertical-align: top;\n}\n.ant-switch-checked .ant-switch-loading-icon {\n color: #5b5ce1;\n}\n.ant-switch-small {\n min-width: 28px;\n height: 16px;\n line-height: 16px;\n}\n.ant-switch-small .ant-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 12px;\n}\n.ant-switch-small .ant-switch-handle {\n width: 12px;\n height: 12px;\n}\n.ant-switch-small .ant-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.ant-switch-small.ant-switch-checked .ant-switch-inner {\n margin: 0 18px 0 5px;\n}\n.ant-switch-small.ant-switch-checked .ant-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n.ant-switch-rtl {\n direction: rtl;\n}\n.ant-switch-rtl .ant-switch-inner {\n margin: 0 25px 0 7px;\n}\n.ant-switch-rtl .ant-switch-handle {\n right: 2px;\n left: auto;\n}\n.ant-switch-rtl:not(.ant-switch-rtl-disabled):active .ant-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.ant-switch-rtl:not(.ant-switch-rtl-disabled):active.ant-switch-checked .ant-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.ant-switch-rtl.ant-switch-checked .ant-switch-inner {\n margin: 0 7px 0 25px;\n}\n.ant-switch-rtl.ant-switch-checked .ant-switch-handle {\n right: calc(100% - 18px - 2px);\n}\n.ant-switch-rtl.ant-switch-small.ant-switch-checked .ant-switch-handle {\n right: calc(100% - 12px - 2px);\n}\n.ant-table.ant-table-middle {\n font-size: 14px;\n}\n.ant-table.ant-table-middle .ant-table-title,\n.ant-table.ant-table-middle .ant-table-footer,\n.ant-table.ant-table-middle .ant-table-thead > tr > th,\n.ant-table.ant-table-middle .ant-table-tbody > tr > td,\n.ant-table.ant-table-middle tfoot > tr > th,\n.ant-table.ant-table-middle tfoot > tr > td {\n padding: 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column {\n margin: -12px -8px;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column-title {\n padding: 12px 2.3em 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-column-sorters {\n padding: 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-expanded-row-fixed {\n margin: -12px -8px;\n}\n.ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table {\n margin: -12px -8px -12px 25px;\n}\n.ant-table.ant-table-small {\n font-size: 14px;\n}\n.ant-table.ant-table-small .ant-table-title,\n.ant-table.ant-table-small .ant-table-footer,\n.ant-table.ant-table-small .ant-table-thead > tr > th,\n.ant-table.ant-table-small .ant-table-tbody > tr > td,\n.ant-table.ant-table-small tfoot > tr > th,\n.ant-table.ant-table-small tfoot > tr > td {\n padding: 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column {\n margin: -8px -8px;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column-title {\n padding: 8px 2.3em 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {\n padding: 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-expanded-row-fixed {\n margin: -8px -8px;\n}\n.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table {\n margin: -8px -8px -8px 25px;\n}\n.ant-table-small .ant-table-thead > tr > th {\n background-color: #fafafa;\n}\n.ant-table-small .ant-table-selection-column {\n width: 46px;\n min-width: 46px;\n}\n.ant-table.ant-table-bordered > .ant-table-title {\n border: 1px solid #f0f0f0;\n border-bottom: 0;\n}\n.ant-table.ant-table-bordered > .ant-table-container {\n border: 1px solid #f0f0f0;\n border-right: 0;\n border-bottom: 0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > td {\n border-right: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr:not(:last-child) > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr:not(:last-child) > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr:not(:last-child) > th {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > .ant-table-cell-fix-right-first::after {\n border-right: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -16px -17px;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td > .ant-table-expanded-row-fixed::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed::after {\n position: absolute;\n top: 0;\n right: 1px;\n bottom: 0;\n border-right: 1px solid #f0f0f0;\n content: '';\n}\n.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td,\n.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {\n border-right: 0;\n}\n.ant-table.ant-table-bordered.ant-table-middle > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered.ant-table-middle > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -12px -9px;\n}\n.ant-table.ant-table-bordered.ant-table-small > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered.ant-table-small > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -8px -9px;\n}\n.ant-table.ant-table-bordered > .ant-table-footer {\n border: 1px solid #f0f0f0;\n border-top: 0;\n}\n.ant-table-cell .ant-table-container:first-child {\n border-top: 0;\n}\n.ant-table-cell-scrollbar {\n box-shadow: 0 1px 0 1px #fafafa;\n}\n.ant-table-wrapper {\n clear: both;\n max-width: 100%;\n}\n.ant-table-wrapper::before {\n display: table;\n content: '';\n}\n.ant-table-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-table-wrapper::before {\n display: table;\n content: '';\n}\n.ant-table-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-table {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n font-size: 14px;\n background: #fff;\n border-radius: 5px;\n}\n.ant-table table {\n width: 100%;\n text-align: left;\n border-radius: 5px 5px 0 0;\n border-collapse: separate;\n border-spacing: 0;\n}\n.ant-table-thead > tr > th,\n.ant-table-tbody > tr > td,\n.ant-table tfoot > tr > th,\n.ant-table tfoot > tr > td {\n position: relative;\n padding: 16px 16px;\n overflow-wrap: break-word;\n}\n.ant-table-cell-ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n word-break: keep-all;\n}\n.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,\n.ant-table-cell-ellipsis.ant-table-cell-fix-right-first {\n overflow: visible;\n}\n.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,\n.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ant-table-title {\n padding: 16px 16px;\n}\n.ant-table-footer {\n padding: 16px 16px;\n color: rgba(0, 0, 0, 0.85);\n background: #fafafa;\n}\n.ant-table-thead > tr > th {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n text-align: left;\n background: #fafafa;\n border-bottom: 1px solid #f0f0f0;\n transition: background 0.3s ease;\n}\n.ant-table-thead > tr > th[colspan]:not([colspan='1']) {\n text-align: center;\n}\n.ant-table-thead > tr:not(:last-child) > th[colspan] {\n border-bottom: 0;\n}\n.ant-table-tbody > tr > td {\n border-bottom: 1px solid #f0f0f0;\n transition: background 0.3s;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table {\n margin: -16px -16px -16px 33px;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td {\n border-bottom: 0;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:first-child,\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child {\n border-radius: 0;\n}\n.ant-table-tbody > tr.ant-table-row:hover > td {\n background: #fafafa;\n}\n.ant-table-tbody > tr.ant-table-row-selected > td {\n background: #f0f2ff;\n border-color: rgba(0, 0, 0, 0.03);\n}\n.ant-table-tbody > tr.ant-table-row-selected:hover > td {\n background: #e6e9ff;\n}\n.ant-table tfoot > tr > th,\n.ant-table tfoot > tr > td {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-table-pagination.ant-pagination {\n margin: 16px 0;\n}\n.ant-table-pagination {\n display: flex;\n flex-wrap: wrap;\n row-gap: 8px;\n}\n.ant-table-pagination > * {\n flex: none;\n}\n.ant-table-pagination-left {\n justify-content: flex-start;\n}\n.ant-table-pagination-center {\n justify-content: center;\n}\n.ant-table-pagination-right {\n justify-content: flex-end;\n}\n.ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-table-thead th.ant-table-column-has-sorters:hover {\n background: #f2f2f2;\n}\n.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container {\n background: #f7f7f7;\n}\n.ant-table-thead th.ant-table-column-sort {\n background: #f5f5f5;\n}\ntd.ant-table-column-sort {\n background: #fafafa;\n}\n.ant-table-column-sorters-with-tooltip {\n display: inline-block;\n width: 100%;\n}\n.ant-table-column-sorters {\n display: inline-flex;\n align-items: center;\n padding: 16px 16px;\n}\n.ant-table-column-sorter {\n margin-top: 0.15em;\n margin-bottom: -0.15em;\n margin-left: 8px;\n color: #bfbfbf;\n}\n.ant-table-column-sorter-full {\n margin-top: -0.2em;\n margin-bottom: 0;\n}\n.ant-table-column-sorter-inner {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.ant-table-column-sorter-up,\n.ant-table-column-sorter-down {\n font-size: 11px;\n}\n.ant-table-column-sorter-up.active,\n.ant-table-column-sorter-down.active {\n color: #5b5ce1;\n}\n.ant-table-column-sorter-up + .ant-table-column-sorter-down {\n margin-top: -0.3em;\n}\n.ant-table-filter-column {\n display: flex;\n align-items: center;\n margin: -16px -16px;\n}\n.ant-table-filter-column-title {\n flex: auto;\n padding: 16px 2.3em 16px 16px;\n}\n.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column {\n margin: 0;\n}\n.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {\n padding: 0 2.3em 0 0;\n}\n.ant-table-filter-trigger-container {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex: none;\n align-items: stretch;\n align-self: stretch;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n.ant-table-filter-trigger-container-open,\n.ant-table-filter-trigger-container:hover,\n.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container:hover {\n background: #e5e5e5;\n}\n.ant-table-filter-trigger {\n display: block;\n width: 2.3em;\n color: #bfbfbf;\n font-size: 12px;\n transition: color 0.3s;\n}\n.ant-table-filter-trigger .anticon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ant-table-filter-trigger-container-open .ant-table-filter-trigger,\n.ant-table-filter-trigger:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-table-filter-trigger.active {\n color: #5b5ce1;\n}\n.ant-table-filter-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n min-width: 120px;\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-table-filter-dropdown .ant-dropdown-menu {\n max-height: 264px;\n overflow-x: hidden;\n border: 0;\n box-shadow: none;\n}\n.ant-table-filter-dropdown-submenu > ul {\n max-height: calc(100vh - 130px);\n overflow-x: hidden;\n overflow-y: auto;\n}\n.ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {\n padding-left: 8px;\n}\n.ant-table-filter-dropdown-btns {\n display: flex;\n justify-content: space-between;\n padding: 7px 8px 7px 3px;\n overflow: hidden;\n background-color: inherit;\n border-top: 1px solid #f0f0f0;\n}\n.ant-table-selection-col {\n width: 32px;\n}\n.ant-table-bordered .ant-table-selection-col {\n width: 50px;\n}\ntable tr th.ant-table-selection-column,\ntable tr td.ant-table-selection-column {\n padding-right: 8px;\n padding-left: 8px;\n text-align: center;\n}\ntable tr th.ant-table-selection-column .ant-radio-wrapper,\ntable tr td.ant-table-selection-column .ant-radio-wrapper {\n margin-right: 0;\n}\n.ant-table-selection {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n}\n.ant-table-selection-extra {\n position: absolute;\n top: 0;\n z-index: 1;\n cursor: pointer;\n transition: all 0.3s;\n margin-inline-start: 100%;\n padding-inline-start: 4px;\n}\n.ant-table-selection-extra .anticon {\n color: #bfbfbf;\n font-size: 10px;\n}\n.ant-table-selection-extra .anticon:hover {\n color: #a6a6a6;\n}\n.ant-table-expand-icon-col {\n width: 48px;\n}\n.ant-table-row-expand-icon-cell {\n text-align: center;\n}\n.ant-table-row-indent {\n float: left;\n height: 1px;\n}\n.ant-table-row-expand-icon {\n color: #5b5ce1;\n text-decoration: none;\n cursor: pointer;\n transition: color 0.3s;\n position: relative;\n display: inline-flex;\n float: left;\n box-sizing: border-box;\n width: 17px;\n height: 17px;\n padding: 0;\n color: inherit;\n line-height: 17px;\n background: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n outline: none;\n transform: scale(0.94117647);\n transform-origin: bottom;\n transition: all 0.3s;\n user-select: none;\n}\n.ant-table-row-expand-icon:focus,\n.ant-table-row-expand-icon:hover {\n color: #8588ed;\n}\n.ant-table-row-expand-icon:active {\n color: #4541ba;\n}\n.ant-table-row-expand-icon:focus,\n.ant-table-row-expand-icon:hover,\n.ant-table-row-expand-icon:active {\n border-color: currentColor;\n}\n.ant-table-row-expand-icon::before,\n.ant-table-row-expand-icon::after {\n position: absolute;\n background: currentColor;\n transition: transform 0.3s ease-out;\n content: '';\n}\n.ant-table-row-expand-icon::before {\n top: 7px;\n right: 3px;\n left: 3px;\n height: 1px;\n}\n.ant-table-row-expand-icon::after {\n top: 3px;\n bottom: 3px;\n left: 7px;\n width: 1px;\n transform: rotate(90deg);\n}\n.ant-table-row-expand-icon-collapsed::before {\n transform: rotate(-180deg);\n}\n.ant-table-row-expand-icon-collapsed::after {\n transform: rotate(0deg);\n}\n.ant-table-row-expand-icon-spaced {\n background: transparent;\n border: 0;\n visibility: hidden;\n}\n.ant-table-row-expand-icon-spaced::before,\n.ant-table-row-expand-icon-spaced::after {\n display: none;\n content: none;\n}\n.ant-table-row-indent + .ant-table-row-expand-icon {\n margin-top: 2.5005px;\n margin-right: 8px;\n}\ntr.ant-table-expanded-row > td,\ntr.ant-table-expanded-row:hover > td {\n background: #fbfbfb;\n}\ntr.ant-table-expanded-row .ant-descriptions-view {\n display: flex;\n}\ntr.ant-table-expanded-row .ant-descriptions-view table {\n flex: auto;\n width: auto;\n}\n.ant-table .ant-table-expanded-row-fixed {\n position: relative;\n margin: -16px -16px;\n padding: 16px 16px;\n}\n.ant-table-tbody > tr.ant-table-placeholder {\n text-align: center;\n}\n.ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-table-tbody > tr.ant-table-placeholder:hover > td {\n background: #fff;\n}\n.ant-table-cell-fix-left,\n.ant-table-cell-fix-right {\n position: -webkit-sticky !important;\n position: sticky !important;\n z-index: 2;\n background: #fff;\n}\n.ant-table-cell-fix-left-first::after,\n.ant-table-cell-fix-left-last::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n transform: translateX(100%);\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table-cell-fix-right-first::after,\n.ant-table-cell-fix-right-last::after {\n position: absolute;\n top: 0;\n bottom: -1px;\n left: 0;\n width: 30px;\n transform: translateX(-100%);\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table .ant-table-container::before,\n.ant-table .ant-table-container::after {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n width: 30px;\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table .ant-table-container::before {\n left: 0;\n}\n.ant-table .ant-table-container::after {\n right: 0;\n}\n.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container {\n position: relative;\n}\n.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container::before {\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-left .ant-table-cell-fix-left-first::after,\n.ant-table-ping-left .ant-table-cell-fix-left-last::after {\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container {\n position: relative;\n}\n.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after {\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-right .ant-table-cell-fix-right-first::after,\n.ant-table-ping-right .ant-table-cell-fix-right-last::after {\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-sticky-header {\n position: sticky;\n z-index: calc(2 + 1);\n}\n.ant-table-sticky-scroll {\n position: sticky;\n bottom: 0;\n z-index: calc(2 + 1);\n display: flex;\n align-items: center;\n background: #ffffff;\n border-top: 1px solid #f0f0f0;\n opacity: 0.6;\n}\n.ant-table-sticky-scroll:hover {\n transform-origin: center bottom;\n}\n.ant-table-sticky-scroll-bar {\n height: 8px;\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 4px;\n}\n.ant-table-sticky-scroll-bar:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.ant-table-sticky-scroll-bar-active {\n background-color: rgba(0, 0, 0, 0.8);\n}\n@media all and (-ms-high-contrast: none) {\n .ant-table-ping-left .ant-table-cell-fix-left-last::after {\n box-shadow: none !important;\n }\n .ant-table-ping-right .ant-table-cell-fix-right-first::after {\n box-shadow: none !important;\n }\n}\n.ant-table {\n /* title + table */\n /* table */\n /* table + footer */\n}\n.ant-table-title {\n border-radius: 5px 5px 0 0;\n}\n.ant-table-title + .ant-table-container {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {\n border-radius: 0;\n}\n.ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {\n border-radius: 0;\n}\n.ant-table-container {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n}\n.ant-table-container table > thead > tr:first-child th:first-child {\n border-top-left-radius: 5px;\n}\n.ant-table-container table > thead > tr:first-child th:last-child {\n border-top-right-radius: 5px;\n}\n.ant-table-footer {\n border-radius: 0 0 5px 5px;\n}\n.ant-table-wrapper-rtl {\n direction: rtl;\n}\n.ant-table-rtl {\n direction: rtl;\n}\n.ant-table-wrapper-rtl .ant-table table {\n text-align: right;\n}\n.ant-table-wrapper-rtl .ant-table-thead > tr > th[colspan]:not([colspan='1']) {\n text-align: center;\n}\n.ant-table-wrapper-rtl .ant-table-thead > tr > th {\n text-align: right;\n}\n.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table.ant-table-rtl {\n margin: -16px 33px -16px -16px;\n}\n.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-left {\n justify-content: flex-end;\n}\n.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-right {\n justify-content: flex-start;\n}\n.ant-table-wrapper-rtl .ant-table-column-sorter {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-table-wrapper-rtl .ant-table-filter-column-title {\n padding: 16px 16px 16px 2.3em;\n}\n.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {\n padding: 0 0 0 2.3em;\n}\n.ant-table-wrapper-rtl .ant-table-filter-trigger-container {\n right: auto;\n left: 0;\n}\n.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span,\n.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {\n padding-right: 8px;\n padding-left: 0;\n}\n.ant-table-wrapper-rtl .ant-table-selection {\n text-align: center;\n}\n.ant-table-wrapper-rtl .ant-table-row-indent {\n float: right;\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon {\n float: right;\n}\n.ant-table-wrapper-rtl .ant-table-row-indent + .ant-table-row-expand-icon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon::after {\n transform: rotate(-90deg);\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed::before {\n transform: rotate(180deg);\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed::after {\n transform: rotate(0deg);\n}\n.ant-tabs-small > .ant-tabs-nav .ant-tabs-tab {\n padding: 8px 0;\n font-size: 14px;\n}\n.ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {\n padding: 16px 0;\n font-size: 16px;\n}\n.ant-tabs-card.ant-tabs-small > .ant-tabs-nav .ant-tabs-tab {\n padding: 6px 16px;\n}\n.ant-tabs-card.ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {\n padding: 7px 16px 6px;\n}\n.ant-tabs-rtl {\n direction: rtl;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab {\n margin: 0 0 0 32px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab:last-of-type {\n margin-left: 0;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .anticon {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove {\n margin-right: 8px;\n margin-left: -4px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove .anticon {\n margin: 0;\n}\n.ant-tabs-rtl.ant-tabs-left > .ant-tabs-nav {\n order: 1;\n}\n.ant-tabs-rtl.ant-tabs-left > .ant-tabs-content-holder {\n order: 0;\n}\n.ant-tabs-rtl.ant-tabs-right > .ant-tabs-nav {\n order: 0;\n}\n.ant-tabs-rtl.ant-tabs-right > .ant-tabs-content-holder {\n order: 1;\n}\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-right: 0;\n margin-left: 2px;\n}\n.ant-tabs-dropdown-rtl {\n direction: rtl;\n}\n.ant-tabs-dropdown-rtl .ant-tabs-dropdown-menu-item {\n text-align: right;\n}\n.ant-tabs-top,\n.ant-tabs-bottom {\n flex-direction: column;\n}\n.ant-tabs-top > .ant-tabs-nav,\n.ant-tabs-bottom > .ant-tabs-nav,\n.ant-tabs-top > div > .ant-tabs-nav,\n.ant-tabs-bottom > div > .ant-tabs-nav {\n margin: 0 0 16px 0;\n}\n.ant-tabs-top > .ant-tabs-nav::before,\n.ant-tabs-bottom > .ant-tabs-nav::before,\n.ant-tabs-top > div > .ant-tabs-nav::before,\n.ant-tabs-bottom > div > .ant-tabs-nav::before {\n position: absolute;\n right: 0;\n left: 0;\n border-bottom: 1px solid #f0f0f0;\n content: '';\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar {\n height: 2px;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar-animated {\n transition: width 0.3s, left 0.3s, right 0.3s;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n top: 0;\n bottom: 0;\n width: 30px;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {\n left: 0;\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n right: 0;\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before {\n opacity: 1;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after {\n opacity: 1;\n}\n.ant-tabs-top > .ant-tabs-nav::before,\n.ant-tabs-top > div > .ant-tabs-nav::before {\n bottom: 0;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar {\n bottom: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav,\n.ant-tabs-bottom > div > .ant-tabs-nav {\n order: 1;\n margin-top: 16px;\n margin-bottom: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav::before,\n.ant-tabs-bottom > div > .ant-tabs-nav::before {\n top: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar {\n top: 0;\n}\n.ant-tabs-bottom > .ant-tabs-content-holder,\n.ant-tabs-bottom > div > .ant-tabs-content-holder {\n order: 0;\n}\n.ant-tabs-left > .ant-tabs-nav,\n.ant-tabs-right > .ant-tabs-nav,\n.ant-tabs-left > div > .ant-tabs-nav,\n.ant-tabs-right > div > .ant-tabs-nav {\n flex-direction: column;\n min-width: 50px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab {\n padding: 8px 24px;\n text-align: center;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin: 16px 0 0 0;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap {\n flex-direction: column;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n right: 0;\n left: 0;\n height: 30px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {\n top: 0;\n box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n bottom: 0;\n box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before {\n opacity: 1;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after {\n opacity: 1;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar {\n width: 2px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar-animated {\n transition: height 0.3s, top 0.3s;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-operations {\n flex: 1 0 auto;\n flex-direction: column;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar {\n right: 0;\n}\n.ant-tabs-left > .ant-tabs-content-holder,\n.ant-tabs-left > div > .ant-tabs-content-holder {\n margin-left: -1px;\n border-left: 1px solid #f0f0f0;\n}\n.ant-tabs-left > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane,\n.ant-tabs-left > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-left: 24px;\n}\n.ant-tabs-right > .ant-tabs-nav,\n.ant-tabs-right > div > .ant-tabs-nav {\n order: 1;\n}\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar {\n left: 0;\n}\n.ant-tabs-right > .ant-tabs-content-holder,\n.ant-tabs-right > div > .ant-tabs-content-holder {\n order: 0;\n margin-right: -1px;\n border-right: 1px solid #f0f0f0;\n}\n.ant-tabs-right > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane,\n.ant-tabs-right > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-right: 24px;\n}\n.ant-tabs-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n display: block;\n}\n.ant-tabs-dropdown-hidden {\n display: none;\n}\n.ant-tabs-dropdown-menu {\n max-height: 200px;\n margin: 0;\n padding: 4px 0;\n overflow-x: hidden;\n overflow-y: auto;\n text-align: left;\n list-style-type: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-tabs-dropdown-menu-item {\n min-width: 120px;\n margin: 0;\n padding: 5px 12px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tabs-dropdown-menu-item:hover {\n background: #f5f5f5;\n}\n.ant-tabs-dropdown-menu-item-disabled,\n.ant-tabs-dropdown-menu-item-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n cursor: not-allowed;\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab {\n margin: 0;\n padding: 8px 16px;\n background: #fafafa;\n border: 1px solid #f0f0f0;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab-active {\n color: #5b5ce1;\n background: #fff;\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-ink-bar {\n visibility: hidden;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-left: 2px;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 5px 5px 0 0;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-bottom-color: #fff;\n}\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 0 0 5px 5px;\n}\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-top-color: #fff;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-top: 2px;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 5px 0 0 5px;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-right-color: #fff;\n}\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 0 5px 5px 0;\n}\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-left-color: #fff;\n}\n.ant-tabs {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: flex;\n overflow: hidden;\n}\n.ant-tabs > .ant-tabs-nav,\n.ant-tabs > div > .ant-tabs-nav {\n position: relative;\n display: flex;\n flex: none;\n align-items: center;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap {\n position: relative;\n display: inline-block;\n display: flex;\n flex: auto;\n align-self: stretch;\n overflow: hidden;\n white-space: nowrap;\n transform: translate(0);\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n position: absolute;\n z-index: 1;\n opacity: 0;\n transition: opacity 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-list {\n position: relative;\n display: flex;\n transition: transform 0.3s;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-operations {\n display: flex;\n align-self: stretch;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-operations-hidden,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-operations-hidden {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-more,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more {\n position: relative;\n padding: 8px 16px;\n background: transparent;\n border: 0;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-more::after,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more::after {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 5px;\n transform: translateY(100%);\n content: '';\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add {\n min-width: 40px;\n padding: 0 8px;\n background: #fafafa;\n border: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n outline: none;\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:hover,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:hover {\n color: #8588ed;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:active,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:active,\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:focus,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:focus {\n color: #4541ba;\n}\n.ant-tabs-extra-content {\n flex: none;\n}\n.ant-tabs-centered > .ant-tabs-nav .ant-tabs-nav-wrap:not([class*='ant-tabs-nav-wrap-ping']),\n.ant-tabs-centered > div > .ant-tabs-nav .ant-tabs-nav-wrap:not([class*='ant-tabs-nav-wrap-ping']) {\n justify-content: center;\n}\n.ant-tabs-ink-bar {\n position: absolute;\n background: #5b5ce1;\n pointer-events: none;\n}\n.ant-tabs-tab {\n position: relative;\n display: inline-flex;\n align-items: center;\n padding: 12px 0;\n font-size: 14px;\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n}\n.ant-tabs-tab-btn:focus,\n.ant-tabs-tab-remove:focus,\n.ant-tabs-tab-btn:active,\n.ant-tabs-tab-remove:active {\n color: #4541ba;\n}\n.ant-tabs-tab-btn {\n outline: none;\n transition: all 0.3s;\n}\n.ant-tabs-tab-remove {\n flex: none;\n margin-right: -4px;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n background: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tabs-tab-remove:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tabs-tab:hover {\n color: #8588ed;\n}\n.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #5b5ce1;\n text-shadow: 0 0 0.25px currentColor;\n}\n.ant-tabs-tab.ant-tabs-tab-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:focus,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:focus,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:active,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:active {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-tabs-tab .ant-tabs-tab-remove .anticon {\n margin: 0;\n}\n.ant-tabs-tab .anticon {\n margin-right: 12px;\n}\n.ant-tabs-tab + .ant-tabs-tab {\n margin: 0 0 0 32px;\n}\n.ant-tabs-content {\n display: flex;\n width: 100%;\n}\n.ant-tabs-content-holder {\n flex: auto;\n min-width: 0;\n min-height: 0;\n}\n.ant-tabs-content-animated {\n transition: margin 0.3s;\n}\n.ant-tabs-tabpane {\n flex: none;\n width: 100%;\n outline: none;\n}\n.ant-tag {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n height: auto;\n margin-right: 8px;\n padding: 0 7px;\n font-size: 12px;\n line-height: 20px;\n white-space: nowrap;\n background: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n opacity: 1;\n transition: all 0.3s;\n}\n.ant-tag,\n.ant-tag a,\n.ant-tag a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tag > a:first-child:last-child {\n display: inline-block;\n margin: 0 -8px;\n padding: 0 8px;\n}\n.ant-tag-close-icon {\n margin-left: 3px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tag-close-icon:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tag-has-color {\n border-color: transparent;\n}\n.ant-tag-has-color,\n.ant-tag-has-color a,\n.ant-tag-has-color a:hover,\n.ant-tag-has-color .anticon-close,\n.ant-tag-has-color .anticon-close:hover {\n color: #fff;\n}\n.ant-tag-checkable {\n background-color: transparent;\n border-color: transparent;\n cursor: pointer;\n}\n.ant-tag-checkable:not(.ant-tag-checkable-checked):hover {\n color: #5b5ce1;\n}\n.ant-tag-checkable:active,\n.ant-tag-checkable-checked {\n color: #fff;\n}\n.ant-tag-checkable-checked {\n background-color: #5b5ce1;\n}\n.ant-tag-checkable:active {\n background-color: #4541ba;\n}\n.ant-tag-hidden {\n display: none;\n}\n.ant-tag-pink {\n color: #c41d7f;\n background: #fff0f6;\n border-color: #ffadd2;\n}\n.ant-tag-pink-inverse {\n color: #fff;\n background: #eb2f96;\n border-color: #eb2f96;\n}\n.ant-tag-magenta {\n color: #c41d7f;\n background: #fff0f6;\n border-color: #ffadd2;\n}\n.ant-tag-magenta-inverse {\n color: #fff;\n background: #eb2f96;\n border-color: #eb2f96;\n}\n.ant-tag-red {\n color: #cf1322;\n background: #fff1f0;\n border-color: #ffa39e;\n}\n.ant-tag-red-inverse {\n color: #fff;\n background: #f5222d;\n border-color: #f5222d;\n}\n.ant-tag-volcano {\n color: #d4380d;\n background: #fff2e8;\n border-color: #ffbb96;\n}\n.ant-tag-volcano-inverse {\n color: #fff;\n background: #fa541c;\n border-color: #fa541c;\n}\n.ant-tag-orange {\n color: #d46b08;\n background: #fff7e6;\n border-color: #ffd591;\n}\n.ant-tag-orange-inverse {\n color: #fff;\n background: #fa8c16;\n border-color: #fa8c16;\n}\n.ant-tag-yellow {\n color: #d4b106;\n background: #feffe6;\n border-color: #fffb8f;\n}\n.ant-tag-yellow-inverse {\n color: #fff;\n background: #fadb14;\n border-color: #fadb14;\n}\n.ant-tag-gold {\n color: #d48806;\n background: #fffbe6;\n border-color: #ffe58f;\n}\n.ant-tag-gold-inverse {\n color: #fff;\n background: #faad14;\n border-color: #faad14;\n}\n.ant-tag-cyan {\n color: #08979c;\n background: #e6fffb;\n border-color: #87e8de;\n}\n.ant-tag-cyan-inverse {\n color: #fff;\n background: #13c2c2;\n border-color: #13c2c2;\n}\n.ant-tag-lime {\n color: #7cb305;\n background: #fcffe6;\n border-color: #eaff8f;\n}\n.ant-tag-lime-inverse {\n color: #fff;\n background: #a0d911;\n border-color: #a0d911;\n}\n.ant-tag-green {\n color: #389e0d;\n background: #f6ffed;\n border-color: #b7eb8f;\n}\n.ant-tag-green-inverse {\n color: #fff;\n background: #52c41a;\n border-color: #52c41a;\n}\n.ant-tag-blue {\n color: #096dd9;\n background: #e6f7ff;\n border-color: #91d5ff;\n}\n.ant-tag-blue-inverse {\n color: #fff;\n background: #1890ff;\n border-color: #1890ff;\n}\n.ant-tag-geekblue {\n color: #1d39c4;\n background: #f0f5ff;\n border-color: #adc6ff;\n}\n.ant-tag-geekblue-inverse {\n color: #fff;\n background: #2f54eb;\n border-color: #2f54eb;\n}\n.ant-tag-purple {\n color: #531dab;\n background: #f9f0ff;\n border-color: #d3adf7;\n}\n.ant-tag-purple-inverse {\n color: #fff;\n background: #722ed1;\n border-color: #722ed1;\n}\n.ant-tag-success {\n color: #52c41a;\n background: #f6ffed;\n border-color: #b7eb8f;\n}\n.ant-tag-processing {\n color: #1890ff;\n background: #e6f7ff;\n border-color: #91d5ff;\n}\n.ant-tag-error {\n color: #f5222d;\n background: #fff1f0;\n border-color: #ffa39e;\n}\n.ant-tag-warning {\n color: #fa8c16;\n background: #fff7e6;\n border-color: #ffd591;\n}\n.ant-tag > .anticon + span,\n.ant-tag > span + .anticon {\n margin-left: 7px;\n}\n.ant-tag.ant-tag-rtl {\n margin-right: 0;\n margin-left: 8px;\n direction: rtl;\n text-align: right;\n}\n.ant-tag-rtl .ant-tag-close-icon {\n margin-right: 3px;\n margin-left: 0;\n}\n.ant-tag-rtl.ant-tag > .anticon + span,\n.ant-tag-rtl.ant-tag > span + .anticon {\n margin-right: 7px;\n margin-left: 0;\n}\n.ant-timeline {\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-timeline-item {\n position: relative;\n margin: 0;\n padding-bottom: 20px;\n font-size: 14px;\n list-style: none;\n}\n.ant-timeline-item-tail {\n position: absolute;\n top: 10px;\n left: 4px;\n height: calc(100% - 10px);\n border-left: 2px solid #f0f0f0;\n}\n.ant-timeline-item-pending .ant-timeline-item-head {\n font-size: 12px;\n background-color: transparent;\n}\n.ant-timeline-item-pending .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline-item-head {\n position: absolute;\n width: 10px;\n height: 10px;\n background-color: #fff;\n border: 2px solid transparent;\n border-radius: 100px;\n}\n.ant-timeline-item-head-blue {\n color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-timeline-item-head-red {\n color: #ff4d4f;\n border-color: #ff4d4f;\n}\n.ant-timeline-item-head-green {\n color: #52c41a;\n border-color: #52c41a;\n}\n.ant-timeline-item-head-gray {\n color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-timeline-item-head-custom {\n position: absolute;\n top: 5.5px;\n left: 5px;\n width: auto;\n height: auto;\n margin-top: 0;\n padding: 3px 1px;\n line-height: 1;\n text-align: center;\n border: 0;\n border-radius: 0;\n transform: translate(-50%, -50%);\n}\n.ant-timeline-item-content {\n position: relative;\n top: -7.001px;\n margin: 0 0 0 26px;\n word-break: break-word;\n}\n.ant-timeline-item-last > .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline-item-last > .ant-timeline-item-content {\n min-height: 48px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-right .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-label .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head,\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n left: 50%;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head {\n margin-left: -4px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n margin-left: 1px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {\n left: calc(50% - 4px);\n width: calc(50% - 14px);\n text-align: left;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content {\n width: calc(50% - 12px);\n margin: 0;\n text-align: right;\n}\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom {\n left: calc(100% - 4px - 2px);\n}\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content {\n width: calc(100% - 18px);\n}\n.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {\n display: block;\n height: calc(100% - 14px);\n border-left: 2px dotted #f0f0f0;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-last .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {\n top: 15px;\n display: block;\n height: calc(100% - 15px);\n border-left: 2px dotted #f0f0f0;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content {\n min-height: 48px;\n}\n.ant-timeline.ant-timeline-label .ant-timeline-item-label {\n position: absolute;\n top: -7.001px;\n width: calc(50% - 12px);\n text-align: right;\n}\n.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label {\n left: calc(50% + 14px);\n width: calc(50% - 14px);\n text-align: left;\n}\n.ant-timeline-rtl {\n direction: rtl;\n}\n.ant-timeline-rtl .ant-timeline-item-tail {\n right: 4px;\n left: auto;\n border-right: 2px solid #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl .ant-timeline-item-head-custom {\n right: 5px;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-timeline-rtl .ant-timeline-item-content {\n margin: 0 18px 0 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n right: 50%;\n left: auto;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n margin-right: 1px;\n margin-left: 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {\n right: calc(50% - 4px);\n left: auto;\n text-align: right;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content {\n text-align: left;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom {\n right: 0;\n left: auto;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content {\n width: 100%;\n margin-right: 18px;\n text-align: right;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {\n border-right: 2px dotted #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {\n border-right: 2px dotted #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-label {\n text-align: left;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label {\n right: calc(50% + 14px);\n text-align: right;\n}\n.ant-tooltip {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n z-index: 1070;\n display: block;\n max-width: 250px;\n visibility: visible;\n}\n.ant-tooltip-hidden {\n display: none;\n}\n.ant-tooltip-placement-top,\n.ant-tooltip-placement-topLeft,\n.ant-tooltip-placement-topRight {\n padding-bottom: 8px;\n}\n.ant-tooltip-placement-right,\n.ant-tooltip-placement-rightTop,\n.ant-tooltip-placement-rightBottom {\n padding-left: 8px;\n}\n.ant-tooltip-placement-bottom,\n.ant-tooltip-placement-bottomLeft,\n.ant-tooltip-placement-bottomRight {\n padding-top: 8px;\n}\n.ant-tooltip-placement-left,\n.ant-tooltip-placement-leftTop,\n.ant-tooltip-placement-leftBottom {\n padding-right: 8px;\n}\n.ant-tooltip-inner {\n min-width: 30px;\n min-height: 32px;\n padding: 6px 8px;\n color: #fff;\n text-align: left;\n text-decoration: none;\n word-wrap: break-word;\n background-color: rgba(0, 0, 0, 0.75);\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-tooltip-arrow {\n position: absolute;\n display: block;\n width: 13.07106781px;\n height: 13.07106781px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.ant-tooltip-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 5px;\n height: 5px;\n margin: auto;\n background-color: rgba(0, 0, 0, 0.75);\n content: '';\n pointer-events: auto;\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow,\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n.ant-tooltip-placement-topRight .ant-tooltip-arrow {\n bottom: -5.07106781px;\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow-content,\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow-content,\n.ant-tooltip-placement-topRight .ant-tooltip-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow {\n left: 13px;\n}\n.ant-tooltip-placement-topRight .ant-tooltip-arrow {\n right: 13px;\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow,\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {\n left: -5.07106781px;\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow-content,\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow-content,\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow {\n top: 5px;\n}\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {\n bottom: 5px;\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow,\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {\n right: -5.07106781px;\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow-content,\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow-content,\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content {\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow {\n top: 5px;\n}\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {\n bottom: 5px;\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow,\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {\n top: -5.07106781px;\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow-content,\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content,\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content {\n box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow {\n left: 13px;\n}\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {\n right: 13px;\n}\n.ant-tooltip-pink .ant-tooltip-inner {\n background-color: #eb2f96;\n}\n.ant-tooltip-pink .ant-tooltip-arrow-content {\n background-color: #eb2f96;\n}\n.ant-tooltip-magenta .ant-tooltip-inner {\n background-color: #eb2f96;\n}\n.ant-tooltip-magenta .ant-tooltip-arrow-content {\n background-color: #eb2f96;\n}\n.ant-tooltip-red .ant-tooltip-inner {\n background-color: #f5222d;\n}\n.ant-tooltip-red .ant-tooltip-arrow-content {\n background-color: #f5222d;\n}\n.ant-tooltip-volcano .ant-tooltip-inner {\n background-color: #fa541c;\n}\n.ant-tooltip-volcano .ant-tooltip-arrow-content {\n background-color: #fa541c;\n}\n.ant-tooltip-orange .ant-tooltip-inner {\n background-color: #fa8c16;\n}\n.ant-tooltip-orange .ant-tooltip-arrow-content {\n background-color: #fa8c16;\n}\n.ant-tooltip-yellow .ant-tooltip-inner {\n background-color: #fadb14;\n}\n.ant-tooltip-yellow .ant-tooltip-arrow-content {\n background-color: #fadb14;\n}\n.ant-tooltip-gold .ant-tooltip-inner {\n background-color: #faad14;\n}\n.ant-tooltip-gold .ant-tooltip-arrow-content {\n background-color: #faad14;\n}\n.ant-tooltip-cyan .ant-tooltip-inner {\n background-color: #13c2c2;\n}\n.ant-tooltip-cyan .ant-tooltip-arrow-content {\n background-color: #13c2c2;\n}\n.ant-tooltip-lime .ant-tooltip-inner {\n background-color: #a0d911;\n}\n.ant-tooltip-lime .ant-tooltip-arrow-content {\n background-color: #a0d911;\n}\n.ant-tooltip-green .ant-tooltip-inner {\n background-color: #52c41a;\n}\n.ant-tooltip-green .ant-tooltip-arrow-content {\n background-color: #52c41a;\n}\n.ant-tooltip-blue .ant-tooltip-inner {\n background-color: #1890ff;\n}\n.ant-tooltip-blue .ant-tooltip-arrow-content {\n background-color: #1890ff;\n}\n.ant-tooltip-geekblue .ant-tooltip-inner {\n background-color: #2f54eb;\n}\n.ant-tooltip-geekblue .ant-tooltip-arrow-content {\n background-color: #2f54eb;\n}\n.ant-tooltip-purple .ant-tooltip-inner {\n background-color: #722ed1;\n}\n.ant-tooltip-purple .ant-tooltip-arrow-content {\n background-color: #722ed1;\n}\n.ant-tooltip-rtl {\n direction: rtl;\n}\n.ant-tooltip-rtl .ant-tooltip-inner {\n text-align: right;\n}\n.ant-transfer-customize-list .ant-transfer-list {\n flex: 1 1 50%;\n width: auto;\n height: auto;\n min-height: 200px;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small {\n border: 0;\n border-radius: 0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content > .ant-table-body > table > .ant-table-thead > tr > th {\n background: #fafafa;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content .ant-table-row:last-child td {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-body {\n margin: 0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-pagination.ant-pagination {\n margin: 16px 0 4px;\n}\n.ant-transfer-customize-list .ant-input[disabled] {\n background-color: transparent;\n}\n.ant-transfer {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: flex;\n align-items: stretch;\n}\n.ant-transfer-disabled .ant-transfer-list {\n background: #f5f5f5;\n}\n.ant-transfer-list {\n display: flex;\n flex-direction: column;\n width: 180px;\n height: 200px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-transfer-list-with-pagination {\n width: 250px;\n height: auto;\n}\n.ant-transfer-list-search {\n padding-right: 24px;\n padding-left: 8px;\n}\n.ant-transfer-list-search-action {\n position: absolute;\n top: 12px;\n right: 12px;\n bottom: 12px;\n width: 28px;\n color: rgba(0, 0, 0, 0.25);\n line-height: 32px;\n text-align: center;\n}\n.ant-transfer-list-search-action .anticon {\n color: rgba(0, 0, 0, 0.25);\n transition: all 0.3s;\n}\n.ant-transfer-list-search-action .anticon:hover {\n color: rgba(0, 0, 0, 0.45);\n}\nspan.ant-transfer-list-search-action {\n pointer-events: none;\n}\n.ant-transfer-list-header {\n display: flex;\n flex: none;\n align-items: center;\n height: 40px;\n padding: 8px 12px 9px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-transfer-list-header > *:not(:last-child) {\n margin-right: 4px;\n}\n.ant-transfer-list-header > * {\n flex: none;\n}\n.ant-transfer-list-header-title {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n}\n.ant-transfer-list-header-dropdown {\n font-size: 10px;\n transform: translateY(10%);\n cursor: pointer;\n}\n.ant-transfer-list-header-dropdown[disabled] {\n cursor: not-allowed;\n}\n.ant-transfer-list-body {\n display: flex;\n flex: auto;\n flex-direction: column;\n overflow: hidden;\n font-size: 14px;\n}\n.ant-transfer-list-body-search-wrapper {\n position: relative;\n flex: none;\n padding: 12px;\n}\n.ant-transfer-list-content {\n flex: auto;\n margin: 0;\n padding: 0;\n overflow: auto;\n list-style: none;\n}\n.ant-transfer-list-content-item {\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 6px 12px;\n line-height: 20px;\n transition: all 0.3s;\n}\n.ant-transfer-list-content-item > *:not(:last-child) {\n margin-right: 8px;\n}\n.ant-transfer-list-content-item > * {\n flex: none;\n}\n.ant-transfer-list-content-item-text {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-transfer-list-content-item-remove {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n position: relative;\n color: #d9d9d9;\n}\n.ant-transfer-list-content-item-remove:focus,\n.ant-transfer-list-content-item-remove:hover {\n color: #8588ed;\n}\n.ant-transfer-list-content-item-remove:active {\n color: #4541ba;\n}\n.ant-transfer-list-content-item-remove::after {\n position: absolute;\n top: -6px;\n right: -50%;\n bottom: -6px;\n left: -50%;\n content: '';\n}\n.ant-transfer-list-content-item-remove:hover {\n color: #8588ed;\n}\n.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {\n background-color: #f5f5f5;\n cursor: pointer;\n}\n.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover {\n background-color: #e6e9ff;\n}\n.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {\n background: transparent;\n cursor: default;\n}\n.ant-transfer-list-content-item-checked {\n background-color: #f0f2ff;\n}\n.ant-transfer-list-content-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-transfer-list-pagination {\n padding: 8px 0;\n text-align: right;\n border-top: 1px solid #f0f0f0;\n}\n.ant-transfer-list-body-not-found {\n flex: none;\n width: 100%;\n margin: auto 0;\n color: rgba(0, 0, 0, 0.25);\n text-align: center;\n}\n.ant-transfer-list-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-transfer-operation {\n display: flex;\n flex: none;\n flex-direction: column;\n align-self: center;\n margin: 0 8px;\n vertical-align: middle;\n}\n.ant-transfer-operation .ant-btn {\n display: block;\n}\n.ant-transfer-operation .ant-btn:first-child {\n margin-bottom: 4px;\n}\n.ant-transfer-operation .ant-btn .anticon {\n font-size: 12px;\n}\n.ant-transfer .ant-empty-image {\n max-height: -2px;\n}\n.ant-transfer-rtl {\n direction: rtl;\n}\n.ant-transfer-rtl .ant-transfer-list-search {\n padding-right: 8px;\n padding-left: 24px;\n}\n.ant-transfer-rtl .ant-transfer-list-search-action {\n right: auto;\n left: 12px;\n}\n.ant-transfer-rtl .ant-transfer-list-header > *:not(:last-child) {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-transfer-rtl .ant-transfer-list-header {\n right: 0;\n left: auto;\n}\n.ant-transfer-rtl .ant-transfer-list-header-title {\n text-align: left;\n}\n.ant-transfer-rtl .ant-transfer-list-content-item > *:not(:last-child) {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-transfer-rtl .ant-transfer-list-pagination {\n text-align: left;\n}\n.ant-transfer-rtl .ant-transfer-list-footer {\n right: 0;\n left: auto;\n}\n.ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode {\n position: relative;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 4px;\n left: 0;\n transition: background-color 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode:hover::before {\n background: #f5f5f5;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode > * {\n z-index: 1;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher {\n transition: color 0.3s;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper {\n border-radius: 0;\n user-select: none;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {\n color: #fff;\n background: transparent;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before,\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected::before {\n background: #5b5ce1;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher {\n color: #fff;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper {\n color: #fff;\n background: transparent;\n}\n.ant-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,\n.ant-tree-checkbox:hover .ant-tree-checkbox-inner,\n.ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-tree-checkbox:hover::after,\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox::after {\n visibility: visible;\n}\n.ant-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-input {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled:hover::after,\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-tree-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item {\n margin-left: 0;\n}\n.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-tree-checkbox-rtl {\n direction: rtl;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-tree-focused:not(:hover):not(.ant-tree-active-focused) {\n background: #f0f2ff;\n}\n.ant-tree-list-holder-inner {\n align-items: flex-start;\n}\n.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-tree .ant-tree-treenode {\n display: flex;\n align-items: flex-start;\n padding: 0 0 4px 0;\n outline: none;\n}\n.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.ant-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.ant-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.ant-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.ant-tree-switcher .ant-tree-switcher-icon,\n.ant-tree-switcher .ant-select-tree-switcher-icon {\n display: inline-block;\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-tree-switcher .ant-tree-switcher-icon svg,\n.ant-tree-switcher .ant-select-tree-switcher-icon svg {\n transition: transform 0.3s;\n}\n.ant-tree-switcher-noop {\n cursor: default;\n}\n.ant-tree-switcher_close .ant-tree-switcher-icon svg {\n transform: rotate(-90deg);\n}\n.ant-tree-switcher-loading-icon {\n color: #5b5ce1;\n}\n.ant-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.ant-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-tree-checkbox {\n top: initial;\n margin: 4px 8px 0 0;\n}\n.ant-tree .ant-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 0;\n padding: 0 4px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.ant-tree .ant-tree-node-content-wrapper:hover {\n background-color: #f5f5f5;\n}\n.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {\n background-color: #f0f2ff;\n}\n.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n line-height: 24px;\n text-align: center;\n vertical-align: top;\n}\n.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty {\n display: none;\n}\n.ant-tree-unselectable .ant-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.ant-tree-node-content-wrapper[draggable='true'] {\n line-height: 24px;\n user-select: none;\n}\n.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: #5b5ce1;\n border-radius: 1px;\n pointer-events: none;\n}\n.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid #5b5ce1;\n border-radius: 50%;\n content: '';\n}\n.ant-tree .ant-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px #5b5ce1;\n}\n.ant-tree-show-line .ant-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.ant-tree-show-line .ant-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: '';\n}\n.ant-tree-show-line .ant-tree-indent-unit-end::before {\n display: none;\n}\n.ant-tree-show-line .ant-tree-switcher {\n background: #fff;\n}\n.ant-tree-show-line .ant-tree-switcher-line-icon {\n vertical-align: -0.225em;\n}\n.ant-tree-rtl {\n direction: rtl;\n}\n.ant-tree-rtl .ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.ant-tree .ant-tree-treenode-rtl {\n direction: rtl;\n}\n.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.ant-tree-rtl.ant-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n.ant-select-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,\n.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner,\n.ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-select-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-select-tree-checkbox:hover::after,\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox::after {\n visibility: visible;\n}\n.ant-select-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-select-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-select-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-select-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-select-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled:hover::after,\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-select-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-select-tree-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-wrapper + .ant-select-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-select-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-select-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-select-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-select-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-select-tree-checkbox-group-item + .ant-select-tree-checkbox-group-item {\n margin-left: 0;\n}\n.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-tree-checkbox-rtl {\n direction: rtl;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item + .ant-select-tree-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-tree-select-dropdown {\n padding: 8px 4px 0;\n}\n.ant-tree-select-dropdown-rtl {\n direction: rtl;\n}\n.ant-tree-select-dropdown .ant-select-tree {\n border-radius: 0;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode {\n padding-bottom: 8px;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-select-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused) {\n background: #f0f2ff;\n}\n.ant-select-tree-list-holder-inner {\n align-items: flex-start;\n}\n.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-select-tree .ant-select-tree-treenode {\n display: flex;\n align-items: flex-start;\n padding: 0 0 4px 0;\n outline: none;\n}\n.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.ant-select-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.ant-select-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.ant-select-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.ant-select-tree-switcher .ant-tree-switcher-icon,\n.ant-select-tree-switcher .ant-select-tree-switcher-icon {\n display: inline-block;\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-select-tree-switcher .ant-tree-switcher-icon svg,\n.ant-select-tree-switcher .ant-select-tree-switcher-icon svg {\n transition: transform 0.3s;\n}\n.ant-select-tree-switcher-noop {\n cursor: default;\n}\n.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg {\n transform: rotate(-90deg);\n}\n.ant-select-tree-switcher-loading-icon {\n color: #5b5ce1;\n}\n.ant-select-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.ant-select-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-select-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-select-tree-checkbox {\n top: initial;\n margin: 4px 8px 0 0;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 0;\n padding: 0 4px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper:hover {\n background-color: #f5f5f5;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {\n background-color: #f0f2ff;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n line-height: 24px;\n text-align: center;\n vertical-align: top;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty {\n display: none;\n}\n.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] {\n line-height: 24px;\n user-select: none;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: #5b5ce1;\n border-radius: 1px;\n pointer-events: none;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid #5b5ce1;\n border-radius: 50%;\n content: '';\n}\n.ant-select-tree .ant-select-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px #5b5ce1;\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: '';\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit-end::before {\n display: none;\n}\n.ant-select-tree-show-line .ant-select-tree-switcher {\n background: #fff;\n}\n.ant-select-tree-show-line .ant-select-tree-switcher-line-icon {\n vertical-align: -0.225em;\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon {\n transform: scaleY(-1);\n}\n.ant-typography {\n color: rgba(0, 0, 0, 0.85);\n overflow-wrap: break-word;\n}\n.ant-typography.ant-typography-secondary {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-typography.ant-typography-success {\n color: #52c41a;\n}\n.ant-typography.ant-typography-warning {\n color: #faad14;\n}\n.ant-typography.ant-typography-danger {\n color: #ff4d4f;\n}\na.ant-typography.ant-typography-danger:active,\na.ant-typography.ant-typography-danger:focus,\na.ant-typography.ant-typography-danger:hover {\n color: #ff7875;\n}\n.ant-typography.ant-typography-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n user-select: none;\n}\ndiv.ant-typography,\n.ant-typography p {\n margin-bottom: 1em;\n}\nh1.ant-typography,\n.ant-typography h1 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 38px;\n line-height: 1.23;\n}\nh2.ant-typography,\n.ant-typography h2 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 30px;\n line-height: 1.35;\n}\nh3.ant-typography,\n.ant-typography h3 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 24px;\n line-height: 1.35;\n}\nh4.ant-typography,\n.ant-typography h4 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 20px;\n line-height: 1.4;\n}\nh5.ant-typography,\n.ant-typography h5 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 16px;\n line-height: 1.5;\n}\n.ant-typography + h1.ant-typography,\n.ant-typography + h2.ant-typography,\n.ant-typography + h3.ant-typography,\n.ant-typography + h4.ant-typography,\n.ant-typography + h5.ant-typography {\n margin-top: 1.2em;\n}\n.ant-typography div + h1,\n.ant-typography ul + h1,\n.ant-typography li + h1,\n.ant-typography p + h1,\n.ant-typography h1 + h1,\n.ant-typography h2 + h1,\n.ant-typography h3 + h1,\n.ant-typography h4 + h1,\n.ant-typography h5 + h1,\n.ant-typography div + h2,\n.ant-typography ul + h2,\n.ant-typography li + h2,\n.ant-typography p + h2,\n.ant-typography h1 + h2,\n.ant-typography h2 + h2,\n.ant-typography h3 + h2,\n.ant-typography h4 + h2,\n.ant-typography h5 + h2,\n.ant-typography div + h3,\n.ant-typography ul + h3,\n.ant-typography li + h3,\n.ant-typography p + h3,\n.ant-typography h1 + h3,\n.ant-typography h2 + h3,\n.ant-typography h3 + h3,\n.ant-typography h4 + h3,\n.ant-typography h5 + h3,\n.ant-typography div + h4,\n.ant-typography ul + h4,\n.ant-typography li + h4,\n.ant-typography p + h4,\n.ant-typography h1 + h4,\n.ant-typography h2 + h4,\n.ant-typography h3 + h4,\n.ant-typography h4 + h4,\n.ant-typography h5 + h4,\n.ant-typography div + h5,\n.ant-typography ul + h5,\n.ant-typography li + h5,\n.ant-typography p + h5,\n.ant-typography h1 + h5,\n.ant-typography h2 + h5,\n.ant-typography h3 + h5,\n.ant-typography h4 + h5,\n.ant-typography h5 + h5 {\n margin-top: 1.2em;\n}\na.ant-typography-ellipsis,\nspan.ant-typography-ellipsis {\n display: inline-block;\n}\na.ant-typography,\n.ant-typography a {\n color: #5b5ce1;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n text-decoration: none;\n}\na.ant-typography:focus,\n.ant-typography a:focus,\na.ant-typography:hover,\n.ant-typography a:hover {\n color: #8588ed;\n}\na.ant-typography:active,\n.ant-typography a:active {\n color: #4541ba;\n}\na.ant-typography:active,\n.ant-typography a:active,\na.ant-typography:hover,\n.ant-typography a:hover {\n text-decoration: none;\n}\na.ant-typography[disabled],\n.ant-typography a[disabled],\na.ant-typography.ant-typography-disabled,\n.ant-typography a.ant-typography-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\na.ant-typography[disabled]:active,\n.ant-typography a[disabled]:active,\na.ant-typography.ant-typography-disabled:active,\n.ant-typography a.ant-typography-disabled:active,\na.ant-typography[disabled]:hover,\n.ant-typography a[disabled]:hover,\na.ant-typography.ant-typography-disabled:hover,\n.ant-typography a.ant-typography-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n}\na.ant-typography[disabled]:active,\n.ant-typography a[disabled]:active,\na.ant-typography.ant-typography-disabled:active,\n.ant-typography a.ant-typography-disabled:active {\n pointer-events: none;\n}\n.ant-typography code {\n margin: 0 0.2em;\n padding: 0.2em 0.4em 0.1em;\n font-size: 85%;\n background: rgba(150, 150, 150, 0.1);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-radius: 3px;\n}\n.ant-typography kbd {\n margin: 0 0.2em;\n padding: 0.15em 0.4em 0.1em;\n font-size: 90%;\n background: rgba(150, 150, 150, 0.06);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-bottom-width: 2px;\n border-radius: 3px;\n}\n.ant-typography mark {\n padding: 0;\n background-color: #ffe58f;\n}\n.ant-typography u,\n.ant-typography ins {\n text-decoration: underline;\n text-decoration-skip-ink: auto;\n}\n.ant-typography s,\n.ant-typography del {\n text-decoration: line-through;\n}\n.ant-typography strong {\n font-weight: 600;\n}\n.ant-typography-expand,\n.ant-typography-edit,\n.ant-typography-copy {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n margin-left: 4px;\n}\n.ant-typography-expand:focus,\n.ant-typography-edit:focus,\n.ant-typography-copy:focus,\n.ant-typography-expand:hover,\n.ant-typography-edit:hover,\n.ant-typography-copy:hover {\n color: #8588ed;\n}\n.ant-typography-expand:active,\n.ant-typography-edit:active,\n.ant-typography-copy:active {\n color: #4541ba;\n}\n.ant-typography-copy-success,\n.ant-typography-copy-success:hover,\n.ant-typography-copy-success:focus {\n color: #52c41a;\n}\n.ant-typography-edit-content {\n position: relative;\n}\ndiv.ant-typography-edit-content {\n left: -12px;\n margin-top: -5px;\n margin-bottom: calc(1em - 4px - 1px);\n}\n.ant-typography-edit-content-confirm {\n position: absolute;\n right: 10px;\n bottom: 8px;\n color: rgba(0, 0, 0, 0.45);\n pointer-events: none;\n}\n.ant-typography-edit-content textarea {\n -moz-transition: none;\n}\n.ant-typography ul,\n.ant-typography ol {\n margin: 0 0 1em 0;\n padding: 0;\n}\n.ant-typography ul li,\n.ant-typography ol li {\n margin: 0 0 0 20px;\n padding: 0 0 0 4px;\n}\n.ant-typography ul {\n list-style-type: circle;\n}\n.ant-typography ul ul {\n list-style-type: disc;\n}\n.ant-typography ol {\n list-style-type: decimal;\n}\n.ant-typography pre,\n.ant-typography blockquote {\n margin: 1em 0;\n}\n.ant-typography pre {\n padding: 0.4em 0.6em;\n white-space: pre-wrap;\n word-wrap: break-word;\n background: rgba(150, 150, 150, 0.1);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-radius: 3px;\n}\n.ant-typography pre code {\n display: inline;\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: inherit;\n background: transparent;\n border: 0;\n}\n.ant-typography blockquote {\n padding: 0 0 0 0.6em;\n border-left: 4px solid rgba(100, 100, 100, 0.2);\n opacity: 0.85;\n}\n.ant-typography-ellipsis-single-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\na.ant-typography-ellipsis-single-line,\nspan.ant-typography-ellipsis-single-line {\n vertical-align: bottom;\n}\n.ant-typography-ellipsis-multiple-line {\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 3;\n /*! autoprefixer: ignore next */\n -webkit-box-orient: vertical;\n}\n.ant-typography-rtl {\n direction: rtl;\n}\n.ant-typography-rtl .ant-typography-expand,\n.ant-typography-rtl .ant-typography-edit,\n.ant-typography-rtl .ant-typography-copy {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-typography-rtl .ant-typography-expand {\n float: left;\n}\ndiv.ant-typography-edit-content.ant-typography-rtl {\n right: -12px;\n left: auto;\n}\n.ant-typography-rtl .ant-typography-edit-content-confirm {\n right: auto;\n left: 10px;\n}\n.ant-typography-rtl.ant-typography ul li,\n.ant-typography-rtl.ant-typography ol li {\n margin: 0 20px 0 0;\n padding: 0 4px 0 0;\n}\n.ant-upload {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n outline: 0;\n}\n.ant-upload p {\n margin: 0;\n}\n.ant-upload-btn {\n display: block;\n width: 100%;\n outline: none;\n}\n.ant-upload input[type='file'] {\n cursor: pointer;\n}\n.ant-upload.ant-upload-select {\n display: inline-block;\n}\n.ant-upload.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-select-picture-card {\n width: 104px;\n height: 104px;\n margin-right: 8px;\n margin-bottom: 8px;\n text-align: center;\n vertical-align: top;\n background-color: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 5px;\n cursor: pointer;\n transition: border-color 0.3s;\n}\n.ant-upload.ant-upload-select-picture-card > .ant-upload {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n text-align: center;\n}\n.ant-upload.ant-upload-select-picture-card:hover {\n border-color: #5b5ce1;\n}\n.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {\n border-color: #d9d9d9;\n}\n.ant-upload.ant-upload-drag {\n position: relative;\n width: 100%;\n height: 100%;\n text-align: center;\n background: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 5px;\n cursor: pointer;\n transition: border-color 0.3s;\n}\n.ant-upload.ant-upload-drag .ant-upload {\n padding: 16px 0;\n}\n.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled) {\n border-color: #4541ba;\n}\n.ant-upload.ant-upload-drag.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-drag .ant-upload-btn {\n display: table;\n height: 100%;\n}\n.ant-upload.ant-upload-drag .ant-upload-drag-container {\n display: table-cell;\n vertical-align: middle;\n}\n.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {\n border-color: #8588ed;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon {\n margin-bottom: 20px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {\n color: #8588ed;\n font-size: 48px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-text {\n margin: 0 0 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-hint {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload.ant-upload-drag .anticon-plus {\n color: rgba(0, 0, 0, 0.25);\n font-size: 30px;\n transition: all 0.3s;\n}\n.ant-upload.ant-upload-drag .anticon-plus:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload.ant-upload-drag:hover .anticon-plus {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-picture-card-wrapper {\n display: inline-block;\n width: 100%;\n}\n.ant-upload-picture-card-wrapper::before {\n display: table;\n content: '';\n}\n.ant-upload-picture-card-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-picture-card-wrapper::before {\n display: table;\n content: '';\n}\n.ant-upload-picture-card-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n line-height: 1.5715;\n}\n.ant-upload-list::before {\n display: table;\n content: '';\n}\n.ant-upload-list::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list::before {\n display: table;\n content: '';\n}\n.ant-upload-list::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list-item {\n position: relative;\n height: 22.001px;\n margin-top: 8px;\n font-size: 14px;\n}\n.ant-upload-list-item-name {\n display: inline-block;\n width: 100%;\n padding-left: 22px;\n overflow: hidden;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-upload-list-item-card-actions {\n position: absolute;\n right: 0;\n}\n.ant-upload-list-item-card-actions-btn {\n opacity: 0;\n}\n.ant-upload-list-item-card-actions-btn.ant-btn-sm {\n height: 20px;\n line-height: 1;\n}\n.ant-upload-list-item-card-actions.picture {\n top: 22px;\n line-height: 0;\n}\n.ant-upload-list-item-card-actions-btn:focus,\n.ant-upload-list-item-card-actions.picture .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-card-actions .anticon {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-list-item-info {\n height: 100%;\n padding: 0 4px;\n transition: background-color 0.3s;\n}\n.ant-upload-list-item-info > span {\n display: block;\n width: 100%;\n height: 100%;\n}\n.ant-upload-list-item-info .anticon-loading .anticon,\n.ant-upload-list-item-info .ant-upload-text-icon .anticon {\n position: absolute;\n top: 5px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload-list-item .anticon-close {\n position: absolute;\n top: 6px;\n right: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n line-height: 0;\n cursor: pointer;\n opacity: 0;\n transition: all 0.3s;\n}\n.ant-upload-list-item .anticon-close:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-upload-list-item:hover .ant-upload-list-item-info {\n background-color: #f5f5f5;\n}\n.ant-upload-list-item:hover .anticon-close {\n opacity: 1;\n}\n.ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-error,\n.ant-upload-list-item-error .ant-upload-text-icon > .anticon,\n.ant-upload-list-item-error .ant-upload-list-item-name {\n color: #ff4d4f;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #ff4d4f;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-progress {\n position: absolute;\n bottom: -12px;\n width: 100%;\n padding-left: 26px;\n font-size: 14px;\n line-height: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item,\n.ant-upload-list-picture-card .ant-upload-list-item {\n position: relative;\n height: 66px;\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover,\n.ant-upload-list-picture-card .ant-upload-list-item:hover {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #ff4d4f;\n}\n.ant-upload-list-picture .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n padding: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading {\n border-style: dashed;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail {\n width: 48px;\n height: 48px;\n line-height: 54px;\n text-align: center;\n opacity: 0.8;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail .anticon,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail .anticon {\n font-size: 26px;\n}\n.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'],\n.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {\n fill: #fff2f0;\n}\n.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'],\n.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {\n fill: #ff4d4f;\n}\n.ant-upload-list-picture .ant-upload-list-item-icon,\n.ant-upload-list-picture-card .ant-upload-list-item-icon {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 26px;\n transform: translate(-50%, -50%);\n}\n.ant-upload-list-picture .ant-upload-list-item-icon .anticon,\n.ant-upload-list-picture-card .ant-upload-list-item-icon .anticon {\n font-size: 26px;\n}\n.ant-upload-list-picture .ant-upload-list-item-image,\n.ant-upload-list-picture-card .ant-upload-list-item-image {\n max-width: 100%;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail img,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n display: block;\n width: 48px;\n height: 48px;\n overflow: hidden;\n}\n.ant-upload-list-picture .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n margin: 0 0 0 8px;\n padding-right: 8px;\n padding-left: 48px;\n overflow: hidden;\n line-height: 44px;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name {\n line-height: 28px;\n}\n.ant-upload-list-picture .ant-upload-list-item-progress,\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 14px;\n width: calc(100% - 24px);\n margin-top: 0;\n padding-left: 56px;\n}\n.ant-upload-list-picture .anticon-close,\n.ant-upload-list-picture-card .anticon-close {\n position: absolute;\n top: 8px;\n right: 8px;\n line-height: 1;\n opacity: 1;\n}\n.ant-upload-list-picture-card-container {\n display: inline-block;\n width: 104px;\n height: 104px;\n margin: 0 8px 8px 0;\n vertical-align: top;\n}\n.ant-upload-list-picture-card.ant-upload-list::after {\n display: none;\n}\n.ant-upload-list-picture-card .ant-upload-list-item {\n height: 100%;\n margin: 0;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info::before {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {\n z-index: 10;\n width: 16px;\n margin: 0 4px;\n color: rgba(255, 255, 255, 0.85);\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {\n color: #fff;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info:hover + .ant-upload-list-item-actions,\n.ant-upload-list-picture-card .ant-upload-list-item-actions:hover {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n position: static;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: none;\n margin: 8px 0 0;\n padding: 0;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-file + .ant-upload-list-item-name {\n position: absolute;\n bottom: 10px;\n display: block;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {\n background-color: #fafafa;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info {\n height: auto;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete {\n display: none;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 32px;\n width: calc(100% - 14px);\n padding-left: 0;\n}\n.ant-upload-list-text-container,\n.ant-upload-list-picture-container {\n transition: opacity 0.3s, height 0.3s;\n}\n.ant-upload-list-text-container::before,\n.ant-upload-list-picture-container::before {\n display: table;\n width: 0;\n height: 0;\n content: '';\n}\n.ant-upload-list-text-container .ant-upload-span,\n.ant-upload-list-picture-container .ant-upload-span {\n display: block;\n flex: auto;\n}\n.ant-upload-list-text .ant-upload-span,\n.ant-upload-list-picture .ant-upload-span {\n display: flex;\n align-items: center;\n}\n.ant-upload-list-text .ant-upload-span > *,\n.ant-upload-list-picture .ant-upload-span > * {\n flex: none;\n}\n.ant-upload-list-text .ant-upload-list-item-name,\n.ant-upload-list-picture .ant-upload-list-item-name {\n flex: auto;\n padding: 0 8px;\n}\n.ant-upload-list-text .ant-upload-list-item-card-actions,\n.ant-upload-list-picture .ant-upload-list-item-card-actions {\n position: static;\n}\n.ant-upload-list-text .ant-upload-text-icon .anticon {\n position: static;\n}\n.ant-upload-list .ant-upload-animate-inline-appear,\n.ant-upload-list .ant-upload-animate-inline-enter,\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-duration: 0.3s;\n animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-upload-list .ant-upload-animate-inline-appear,\n.ant-upload-list .ant-upload-animate-inline-enter {\n animation-name: uploadAnimateInlineIn;\n}\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-name: uploadAnimateInlineOut;\n}\n@keyframes uploadAnimateInlineIn {\n from {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n@keyframes uploadAnimateInlineOut {\n to {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n.ant-upload-rtl {\n direction: rtl;\n}\n.ant-upload-rtl.ant-upload.ant-upload-select-picture-card {\n margin-right: auto;\n margin-left: 8px;\n}\n.ant-upload-list-rtl {\n direction: rtl;\n}\n.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1 {\n padding-right: 22px;\n padding-left: 14px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2 {\n padding-right: 22px;\n padding-left: 28px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-name {\n padding-right: 22px;\n padding-left: 0;\n}\n.ant-upload-list-rtl .ant-upload-list-item-name-icon-count-1 {\n padding-left: 14px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-card-actions {\n right: auto;\n left: 0;\n}\n.ant-upload-list-rtl .ant-upload-list-item-card-actions .anticon {\n padding-right: 0;\n padding-left: 5px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-info {\n padding: 0 4px 0 12px;\n}\n.ant-upload-list-rtl .ant-upload-list-item .anticon-close {\n right: auto;\n left: 4px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n padding-right: 0;\n padding-left: 5px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-progress {\n padding-right: 26px;\n padding-left: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n padding: 0;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-thumbnail,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-thumbnail {\n right: 8px;\n left: auto;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-icon,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-icon {\n right: 50%;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name {\n margin: 0 8px 0 0;\n padding-right: 48px;\n padding-left: 8px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1 {\n padding-right: 48px;\n padding-left: 18px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2 {\n padding-right: 48px;\n padding-left: 36px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-progress,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-progress {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .anticon-close,\n.ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close {\n right: auto;\n left: 8px;\n}\n.ant-upload-list-rtl .ant-upload-list-picture-card-container {\n margin: 0 0 8px 8px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-actions {\n right: 50%;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-file + .ant-upload-list-item-name {\n margin: 8px 0 0;\n padding: 0;\n}\n", "",{"version":3,"sources":["main.less"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,4FAA4F;AAC5F,6CAA6C;AAC7C,sBAAsB;AACtB,6FAA6F;AAC7F;;;;;;EAME,aAAa;AACf;AACA;;;;;;;;EAQE,sBAAsB;AACxB;AACA,yCAAyC;AACzC;;EAEE,WAAW;EACX,YAAY;AACd;AACA;;EAEE,aAAa;AACf;AACA;;;EAGE,sBAAsB;AACxB;AACA;EACE,uBAAuB;EACvB,iBAAiB;EACjB,8BAA8B;EAC9B,0BAA0B;EAC1B,6BAA6B;EAC7B,6CAA6C;AAC/C;AACA;EACE,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,0BAA0B;EAC1B,eAAe;EACf,kMAAkM;EAClM,0BAA0B;EAC1B,mBAAmB;EACnB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,uBAAuB;EACvB,SAAS;EACT,iBAAiB;AACnB;AACA;;;;;;EAME,aAAa;EACb,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,kBAAkB;AACpB;AACA;;EAEE,0BAA0B;EAC1B,iCAAiC;EACjC,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;;;EAIE,wBAAwB;AAC1B;AACA;;;EAGE,aAAa;EACb,kBAAkB;AACpB;AACA;;;;EAIE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,oBAAoB;EACpB,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,kBAAkB;EAClB,cAAc;EACd,cAAc;EACd,wBAAwB;AAC1B;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,6BAA6B;EAC7B,aAAa;EACb,eAAe;EACf,sBAAsB;EACtB,qCAAqC;AACvC;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;;;EAIE,cAAc;EACd,qFAAqF;AACvF;AACA;EACE,aAAa;EACb,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;;;;;;;;;EASE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,mBAAmB;EACnB,qBAAqB;EACrB,0BAA0B;EAC1B,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;;;;;EAKE,SAAS;EACT,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;AACtB;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;AACtB;AACA;;;;EAIE,0BAA0B;AAC5B;AACA;;;;EAIE,UAAU;EACV,kBAAkB;AACpB;AACA;;EAEE,sBAAsB;EACtB,UAAU;AACZ;AACA;;;;EAIE,2BAA2B;AAC7B;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,SAAS;EACT,UAAU;EACV,SAAS;AACX;AACA;EACE,cAAc;EACd,WAAW;EACX,eAAe;EACf,oBAAoB;EACpB,UAAU;EACV,cAAc;EACd,gBAAgB;EAChB,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,wBAAwB;AAC1B;AACA;;EAEE,YAAY;AACd;AACA;EACE,oBAAoB;EACpB,wBAAwB;AAC1B;AACA;;EAEE,wBAAwB;AAC1B;AACA;EACE,aAAa;EACb,0BAA0B;AAC5B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,cAAc;EACd,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,wBAAwB;EACxB,kCAAkC;EAClC,mCAAmC;EACnC,kCAAkC;AACpC;AACA;EACE,cAAc;AAChB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,2CAA2C;AAC7C;AACA;EACE,qBAAqB;EACrB,2CAA2C;AAC7C;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,yBAAyB;EACzB,6BAA6B;AAC/B;AACA;EACE,0BAA0B;EAC1B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,iCAAiC;AACnC;AACA;EACE,iCAAiC;AACnC;AACA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;AACA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,2BAA2B;EAC3B,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,6BAA6B;EAC7B,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,6BAA6B;EAC7B,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;EAC9B,6BAA6B;AAC/B;AACA;EACE,+BAA+B;EAC/B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,4DAA4D;AAC9D;AACA;EACE,8DAA8D;AAChE;AACA;EACE;IACE,2BAA2B;IAC3B,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,2BAA2B;IAC3B,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,4BAA4B;IAC5B,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,4BAA4B;IAC5B,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,2BAA2B;IAC3B,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,2BAA2B;IAC3B,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,4BAA4B;IAC5B,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;IACzB,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,4BAA4B;IAC5B,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;EAC3B;AACF;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,iCAAiC;EACjC,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,cAAc;EACd,sBAAsB;EACtB,2BAA2B;EAC3B,iDAAiD;EACjD,YAAY;EACZ,6GAA6G;EAC7G,6BAA6B;EAC7B,WAAW;EACX,oBAAoB;AACtB;AACA;EACE;IACE,yBAAyB;IACzB,mDAAmD;EACrD;AACF;AACA;EACE;IACE,UAAU;EACZ;AACF;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,4BAA4B;EAC5B,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,yDAAyD;AAC3D;AACA;EACE,iEAAiE;AACnE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;EAC9B,6BAA6B;AAC/B;AACA;EACE,+BAA+B;EAC/B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,yDAAyD;AAC3D;AACA;EACE,iEAAiE;AACnE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;EAC9B,6BAA6B;AAC/B;AACA;EACE,+BAA+B;EAC/B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,yDAAyD;AAC3D;AACA;EACE,iEAAiE;AACnE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,+BAA+B;EAC/B,6BAA6B;AAC/B;AACA;EACE,gCAAgC;EAChC,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,yDAAyD;AAC3D;AACA;EACE,iEAAiE;AACnE;AACA;EACE;IACE,sBAAsB;IACtB,uBAAuB;IACvB,UAAU;EACZ;EACA;IACE,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;EACZ;AACF;AACA;EACE;IACE,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;EACZ;EACA;IACE,sBAAsB;IACtB,uBAAuB;IACvB,UAAU;EACZ;AACF;AACA;EACE;IACE,sBAAsB;IACtB,2BAA2B;IAC3B,UAAU;EACZ;EACA;IACE,oBAAoB;IACpB,2BAA2B;IAC3B,UAAU;EACZ;AACF;AACA;EACE;IACE,oBAAoB;IACpB,2BAA2B;IAC3B,UAAU;EACZ;EACA;IACE,sBAAsB;IACtB,2BAA2B;IAC3B,UAAU;EACZ;AACF;AACA;EACE;IACE,sBAAsB;IACtB,uBAAuB;IACvB,UAAU;EACZ;EACA;IACE,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;EACZ;AACF;AACA;EACE;IACE,oBAAoB;IACpB,uBAAuB;IACvB,UAAU;EACZ;EACA;IACE,sBAAsB;IACtB,uBAAuB;IACvB,UAAU;EACZ;AACF;AACA;EACE;IACE,sBAAsB;IACtB,yBAAyB;IACzB,UAAU;EACZ;EACA;IACE,oBAAoB;IACpB,yBAAyB;IACzB,UAAU;EACZ;AACF;AACA;EACE;IACE,oBAAoB;IACpB,yBAAyB;IACzB,UAAU;EACZ;EACA;IACE,sBAAsB;IACtB,yBAAyB;IACzB,UAAU;EACZ;AACF;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,yBAAyB;EACzB,6BAA6B;AAC/B;AACA;EACE,0BAA0B;EAC1B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,4BAA4B;EAC5B,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,4BAA4B;EAC5B,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,2BAA2B;EAC3B,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,6BAA6B;EAC7B,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,6BAA6B;EAC7B,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;EAC9B,6BAA6B;AAC/B;AACA;EACE,+BAA+B;EAC/B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;EACnB,UAAU;EACV,4DAA4D;AAC9D;AACA;;EAEE,eAAe;AACjB;AACA;EACE,+DAA+D;AACjE;AACA;EACE;IACE,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;IACrB,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;IACrB,wBAAwB;IACxB,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,wBAAwB;EAC1B;AACF;AACA;EACE;IACE,mBAAmB;IACnB,wBAAwB;EAC1B;EACA;IACE,qBAAqB;IACrB,wBAAwB;IACxB,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;IACrB,wBAAwB;IACxB,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,wBAAwB;EAC1B;AACF;AACA;EACE;IACE,mBAAmB;IACnB,wBAAwB;EAC1B;EACA;IACE,qBAAqB;IACrB,wBAAwB;IACxB,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;IACrB,0BAA0B;IAC1B,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,0BAA0B;EAC5B;AACF;AACA;EACE;IACE,mBAAmB;IACnB,0BAA0B;EAC5B;EACA;IACE,qBAAqB;IACrB,0BAA0B;IAC1B,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;IACrB,0BAA0B;IAC1B,UAAU;EACZ;EACA;IACE,mBAAmB;IACnB,0BAA0B;EAC5B;AACF;AACA;EACE;IACE,mBAAmB;IACnB,0BAA0B;EAC5B;EACA;IACE,qBAAqB;IACrB,0BAA0B;IAC1B,UAAU;EACZ;AACF;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0HAA0H;AAC5H;AACA;EACE,gBAAgB;EAChB,0HAA0H;AAC5H;AACA;EACE,eAAe;EACf,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,iBAAiB;EACjB,qBAAqB;EACrB,kBAAkB;AACpB;AACA;EACE,OAAO;EACP,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,UAAU;EACV,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,6BAA6B;EAC7B,YAAY;EACZ,aAAa;EACb,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,sBAAsB;AACxB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;EAC1B,sBAAsB;AACxB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,uBAAuB;EACvB,4BAA4B;AAC9B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,UAAU;EACV,6RAA6R;AAC/R;AACA;EACE,aAAa;EACb,2BAA2B;EAC3B,cAAc;EACd,iBAAiB;EACjB,UAAU;AACZ;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,UAAU;EACV,YAAY;EACZ,cAAc;EACd,yBAAyB;EACzB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,aAAa;EACb,UAAU;EACV,WAAW;EACX,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,2BAA2B;EAC3B,gCAAgC;AAClC;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,uBAAuB;EACvB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,gBAAgB;EAChB,0BAA0B;EAC1B,mBAAmB;EACnB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,UAAU;EACV,OAAO;EACP,0BAA0B;AAC5B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,mBAAmB;EACnB,kBAAkB;EAClB,sBAAsB;EACtB,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,0BAA0B;AAC5B;AACA;EACE,eAAe;AACjB;AACA;EACE,SAAS;AACX;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,0BAA0B;AAC5B;AACA;EACE,eAAe;AACjB;AACA;EACE,SAAS;AACX;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,0BAA0B;AAC5B;AACA;EACE,eAAe;AACjB;AACA;EACE,SAAS;AACX;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,eAAe;EACf,YAAY;EACZ,YAAY;EACZ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,WAAW;EACX,cAAc;AAChB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,WAAW;EACX,kBAAkB;EAClB,qCAAqC;EACrC,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,qCAAqC;EACrC,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE;IACE,WAAW;EACb;AACF;AACA;EACE;IACE,WAAW;EACb;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,aAAa;EACb,eAAe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;EACX,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,0BAA0B;AAC5B;AACA;;EAEE,WAAW;AACb;AACA;EACE,eAAe;EACf,YAAY;EACZ,UAAU;EACV,eAAe;EACf,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;EACb,UAAU;EACV,cAAc;EACd,WAAW;EACX,mBAAmB;EACnB,mBAAmB;EACnB,0BAA0B;AAC5B;AACA;;;EAGE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,+BAA+B;EAC/B,yBAAyB;AAC3B;AACA;;;EAGE,mDAAmD;AACrD;AACA;EACE,oBAAoB;EACpB,wBAAwB;AAC1B;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,wDAAwD;EACxD,WAAW;AACb;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;AACjB;AACA;;EAEE,kEAAkE;EAClE,yBAAyB;AAC3B;AACA;EACE,oEAAoE;EACpE,yBAAyB;AAC3B;AACA;;EAEE,2EAA2E;AAC7E;AACA;EACE,6EAA6E;AAC/E;AACA;EACE,sBAAsB;AACxB;AACA;EACE,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,SAAS;EACT,cAAc;EACd,yBAAyB;AAC3B;AACA;EACE,eAAe;AACjB;AACA;EACE;IACE,qBAAqB;IACrB,YAAY;EACd;EACA;IACE,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,YAAY;EACZ,yDAAyD;EACzD,oCAAoC;EACpC,mCAAmC;AACrC;AACA;EACE,YAAY;EACZ,SAAS;EACT,oCAAoC;EACpC,mCAAmC;AACrC;AACA;EACE,mBAAmB;AACrB;AACA;EACE;IACE,wCAAwC;IACxC,UAAU;EACZ;EACA;IACE,wCAAwC;EAC1C;AACF;AACA;EACE;IACE,wCAAwC;EAC1C;EACA;IACE,wCAAwC;IACxC,UAAU;EACZ;AACF;AACA;EACE;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;AACF;AACA;EACE;IACE,qBAAqB;EACvB;EACA;IACE,8CAA8C;IAC9C,qBAAqB;EACvB;AACF;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,cAAc;EACd,WAAW;EACX,iBAAiB;EACjB,mBAAmB;EACnB,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,WAAW;EACX,mBAAmB;EACnB,iBAAiB;EACjB,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,cAAc;EACd,eAAe;EACf,0BAA0B;EAC1B,eAAe;EACf,WAAW;AACb;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,6BAA6B;AAC/B;AACA;EACE,QAAQ;EACR,+DAA+D;AACjE;AACA;EACE,UAAU;EACV,4BAA4B;AAC9B;AACA;EACE,OAAO;EACP,+DAA+D;AACjE;AACA;EACE,cAAc;AAChB;AACA;;;EAGE,WAAW;EACX,OAAO;EACP,cAAc;EACd,gCAAgC;EAChC,uBAAuB;AACzB;AACA;EACE,WAAW;EACX,OAAO;EACP,gCAAgC;EAChC,uBAAuB;AACzB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;;EAEE,iCAAiC;AACnC;AACA;EACE,kCAAkC;AACpC;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;EACV,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;EACE,YAAY;EACZ,OAAO;EACP,+DAA+D;AACjE;AACA;EACE,+DAA+D;AACjE;AACA;EACE,WAAW;EACX,WAAW;EACX,6BAA6B;EAC7B,8BAA8B;AAChC;AACA;EACE,QAAQ;EACR,WAAW;EACX,+DAA+D;AACjE;AACA;EACE,+DAA+D;AACjE;AACA;EACE;IACE,yCAAyC;IACzC,UAAU;EACZ;EACA;IACE,yCAAyC;EAC3C;AACF;AACA;EACE;IACE,yCAAyC;EAC3C;EACA;IACE,yCAAyC;IACzC,UAAU;EACZ;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,sBAAsB;AACxB;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;EACb,0BAA0B;AAC5B;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;;EAEE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;EAChB,mBAAmB;EACnB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;EAC7B,wCAAwC;EACxC,eAAe;EACf,yDAAyD;EACzD,iBAAiB;EACjB,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,kBAAkB;EAClB,0BAA0B;EAC1B,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;;;EAGE,UAAU;AACZ;AACA;EACE,qBAAqB;AACvB;AACA;EACE,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;EAGE,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;EACrB,yCAAyC;EACzC,wCAAwC;AAC1C;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,2BAA2B;EAC3B,0BAA0B;AAC5B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,2BAA2B;AAC7B;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,qBAAqB;EACrB,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;EACrB,yCAAyC;EACzC,wCAAwC;AAC1C;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,uBAAuB;AACzB;AACA;;;EAGE,yBAAyB;AAC3B;AACA;;;;EAIE,0BAA0B;EAC1B,uBAAuB;EACvB,yBAAyB;EACzB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,0BAA0B;EAC1B,gCAAgC;EAChC,yBAAyB;AAC3B;AACA;EACE,0BAA0B;EAC1B,gCAAgC;EAChC,yBAAyB;AAC3B;AACA;;;;EAIE,0BAA0B;EAC1B,uBAAuB;EACvB,yBAAyB;EACzB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;EACrB,yCAAyC;EACzC,wCAAwC;AAC1C;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,uBAAuB;EACvB,yBAAyB;EACzB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,gCAAgC;EAChC,yBAAyB;AAC3B;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,gCAAgC;EAChC,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,uBAAuB;EACvB,yBAAyB;EACzB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;EACd,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,mBAAmB;EACnB,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,YAAY;EACZ,UAAU;EACV,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,sBAAsB;EACtB,aAAa;EACb,wBAAwB;EACxB,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,iEAAiE;AACnE;AACA;;EAEE,8BAA8B;AAChC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,yDAAyD;AAC3D;AACA;EACE,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;AACpB;AACA;;;;;;EAME,UAAU;AACZ;AACA;;EAEE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;;EAEE,YAAY;EACZ,mBAAmB;EACnB,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,eAAe;AACjB;AACA;;EAEE,YAAY;EACZ,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,eAAe;AACjB;AACA;;;;;;;EAOE,iBAAiB;AACnB;AACA;EACE,8BAA8B;AAChC;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,2BAA2B;EAC3B,8BAA8B;AAChC;AACA;;EAEE,4BAA4B;EAC5B,+BAA+B;AACjC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,2BAA2B;EAC3B,8BAA8B;AAChC;AACA;;EAEE,4BAA4B;EAC5B,+BAA+B;AACjC;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,6BAA6B;AAC/B;AACA;EACE,iBAAiB;EACjB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;;;;;;;;;;;;;EAcE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;;EAEE,2BAA2B;EAC3B,0BAA0B;EAC1B,6BAA6B;EAC7B,8BAA8B;AAChC;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;EAC5B,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;;EAEE,2BAA2B;EAC3B,0BAA0B;EAC1B,6BAA6B;EAC7B,8BAA8B;AAChC;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,kCAAkC;EAClC,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;EAEE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,cAAc;EACd,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,WAAW;AACb;AACA;EACE,sBAAsB;AACxB;AACA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,8BAA8B;EAC9B,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,2BAA2B;EAC3B,0BAA0B;AAC5B;AACA;;EAEE,2BAA2B;EAC3B,0BAA0B;AAC5B;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;;EAEE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;;EAEE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;EACZ,UAAU;EACV,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,SAAS;AACX;AACA;;EAEE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;;;;EAIE,mBAAmB;AACrB;AACA;;;;EAIE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,SAAS;EACT,6BAA6B;EAC7B,gBAAgB;EAChB,2BAA2B;AAC7B;AACA;EACE,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE;IACE,cAAc;EAChB;EACA;IACE,UAAU;EACZ;EACA;IACE,sBAAsB;EACxB;EACA;IACE,WAAW;IACX,eAAe;IACf,cAAc;EAChB;EACA;IACE,UAAU;IACV,kBAAkB;EACpB;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,8CAA8C;AAChD;AACA;EACE,yBAAyB;EACzB,mHAAmH;AACrH;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,eAAe;EACf,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,uBAAuB;EACvB,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,OAAO;EACP,eAAe;EACf,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;;EAEE,OAAO;EACP,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,oBAAoB;EACpB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,WAAW;EACX,aAAa;EACb,aAAa;EACb,SAAS;EACT,gBAAgB;EAChB,uHAAuH;EACvH,oBAAoB;AACtB;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,mHAAmH;AACrH;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,SAAS;EACT,UAAU;EACV,gBAAgB;EAChB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,WAAW;EACX,cAAc;EACd,0BAA0B;EAC1B,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,eAAe;EACf,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,cAAc;EACd,sBAAsB;AACxB;AACA;;EAEE,qBAAqB;EACrB,WAAW;EACX,0BAA0B;EAC1B,iBAAiB;EACjB,sBAAsB;AACxB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,YAAY;EACZ,aAAa;EACb,gHAAgH;EAChH,0BAA0B;EAC1B,kBAAkB;EAClB,0CAA0C;AAC5C;AACA;EACE;;IAEE,0BAA0B;EAC5B;EACA;IACE,6BAA6B;EAC/B;AACF;AACA;EACE,gBAAgB;EAChB,eAAe;EACf,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;EACtB,uBAAuB;EACvB,mBAAmB;EACnB,2BAA2B;EAC3B,wCAAwC;AAC1C;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,sBAAsB;AACxB;AACA;;EAEE,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,cAAc;AAChB;AACA;;EAEE,cAAc;EACd,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,cAAc;EACd,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,UAAU;EACV,kBAAkB;EAClB,YAAY;EACZ,cAAc;EACd,uBAAuB;EACvB,SAAS;EACT,aAAa;EACb,eAAe;AACjB;AACA;;;;EAIE,kBAAkB;EAClB,uBAAuB;EACvB,aAAa;AACf;AACA;;;;EAIE,UAAU;AACZ;AACA;;EAEE,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,OAAO;EACP,WAAW;EACX,wBAAwB;EACxB,uBAAuB;EACvB,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,SAAS;EACT,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;EACd,uBAAuB;EACvB,WAAW;EACX,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,gBAAgB;EAChB,UAAU;EACV,kBAAkB;EAClB,mBAAmB;EACnB,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,SAAS;EACT,kBAAkB;EAClB,aAAa;EACb,eAAe;EACf,YAAY;EACZ,oBAAoB;AACtB;AACA;;EAEE,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,UAAU;AACZ;AACA;;EAEE,UAAU;AACZ;AACA;EACE,QAAQ;EACR,YAAY;EACZ,sBAAsB;EACtB,UAAU;EACV,YAAY;EACZ,SAAS;EACT,2BAA2B;AAC7B;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,UAAU;EACV,YAAY;EACZ,eAAe;EACf,wBAAwB;AAC1B;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,mBAAmB;EACnB,wCAAwC;EACxC,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,oCAAoC;EACpC,2BAA2B;AAC7B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,gBAAgB;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,UAAU;EACV,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,UAAU;EACV,+CAA+C;AACjD;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,UAAU;EACV,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;EACf,mBAAmB;EACnB,gBAAgB;EAChB,kBAAkB;EAClB,oHAAoH;AACtH;AACA;;EAEE,SAAS;EACT,gBAAgB;AAClB;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;AAChC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,aAAa;EACb,SAAS;EACT,cAAc;EACd,cAAc;EACd,mBAAmB;EACnB,gBAAgB;EAChB,+BAA+B;EAC/B,4CAA4C;AAC9C;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,+BAA+B;EAC/B,0BAA0B;AAC5B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,gBAAgB;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,oBAAoB;AACtB;AACA;;EAEE,gBAAgB;EAChB,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,WAAW;EACX,0BAA0B;EAC1B,eAAe;AACjB;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;;EAEE,WAAW;EACX,SAAS;AACX;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,8BAA8B;EAC9B,0BAA0B;AAC5B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,UAAU;AACZ;AACA;EACE,qBAAqB;AACvB;AACA;EACE;IACE,mBAAmB;IACnB,YAAY;EACd;EACA;IACE,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,mBAAmB;EACnB,aAAa;EACb,eAAe;AACjB;AACA;;;EAGE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,kBAAkB;EAClB,8CAA8C;EAC9C,8BAA8B;EAC9B,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,cAAc;EACd,WAAW;EACX,YAAY;EACZ,cAAc;EACd,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,uEAAuE;EACvE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,UAAU;EACV,WAAW;EACX,YAAY;EACZ,eAAe;EACf,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,6DAA6D;EAC7D,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iCAAiC;EACjC,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,gCAAgC;AAClC;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,oBAAoB;EACpB,qBAAqB;EACrB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,QAAQ;EACR,SAAS;EACT,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,SAAS;EACT,yCAAyC;EACzC,UAAU;EACV,YAAY;AACd;AACA;EACE,qCAAqC;EACrC,iCAAiC;AACnC;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,yBAAyB;EACzB,yBAAyB;EACzB,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,gCAAgC;AAClC;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,mCAAmC;AACrC;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,wBAAwB;EACxB,kCAAkC;EAClC,mCAAmC;EACnC,kCAAkC;EAClC,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,qBAAqB;EACrB,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,0BAA0B;EAC1B,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;EACzB,SAAS;AACX;AACA;EACE,gCAAgC;AAClC;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,SAAS;AACX;AACA;EACE,gBAAgB;AAClB;AACA;EACE,6BAA6B;EAC7B,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,oBAAoB;AACtB;AACA;;EAEE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,aAAa;EACb,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;EACd,eAAe;EACf,qBAAqB;AACvB;AACA;EACE,aAAa;EACb,eAAe;EACf,2BAA2B;EAC3B,kBAAkB;EAClB,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,gBAAgB;EAChB,sBAAsB;EACtB,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;EACf,eAAe;EACf,sBAAsB;EACtB,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;EACrB,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,gBAAgB;EAChB,yBAAyB;EACzB,kBAAkB;EAClB,wCAAwC;AAC1C;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,mBAAmB;EACnB,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,wCAAwC;EACxC,oCAAoC;EACpC,2BAA2B;AAC7B;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;EACpB,UAAU;EACV,cAAc;EACd,YAAY;EACZ,UAAU;EACV,uBAAuB;EACvB,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,eAAe;AACjB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,0BAA0B;EAC1B,cAAc;EACd,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,0BAA0B;EAC1B,cAAc;EACd,gBAAgB;EAChB,2BAA2B;EAC3B,eAAe;EACf,UAAU;EACV,oCAAoC;AACtC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,UAAU;EACV,YAAY;EACZ,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,WAAW;EACX,iBAAiB;EACjB,mBAAmB;EACnB,UAAU;EACV,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;EACE,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,cAAc;EACd,yBAAyB;AAC3B;AACA;EACE,oBAAoB;EACpB,cAAc;EACd,yBAAyB;AAC3B;AACA;;;;EAIE,8BAA8B;AAChC;AACA;;;;EAIE,4BAA4B;AAC9B;AACA;;EAEE,+BAA+B;AACjC;AACA;;EAEE,6BAA6B;AAC/B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,gBAAgB;EAChB,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;EACrB,eAAe;AACjB;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,aAAa;EACb,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,4CAA4C;EAC5C,8BAA8B;AAChC;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,+CAA+C;EAC/C,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,gBAAgB;EAChB,kBAAkB;EAClB,oHAAoH;EACpH,uBAAuB;AACzB;AACA;EACE,oBAAoB;EACpB,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,uBAAuB;EACvB,uBAAuB;EACvB,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,oBAAoB;EACpB,sBAAsB;EACtB,kBAAkB;EAClB,gBAAgB;EAChB,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,qBAAqB;AACvB;AACA;;;;;;;EAOE,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;AACA;EACE,aAAa;EACb,cAAc;EACd,0BAA0B;EAC1B,gCAAgC;AAClC;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;EACV,0BAA0B;EAC1B,iBAAiB;EACjB,uBAAuB;EACvB,SAAS;EACT,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,UAAU;EACV,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;;;;EAIE,kBAAkB;EAClB,qBAAqB;EACrB,UAAU;EACV,WAAW;AACb;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,4BAA4B;EAC5B,6BAA6B;EAC7B,WAAW;AACb;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,4BAA4B;EAC5B,6BAA6B;EAC7B,WAAW;AACb;AACA;;EAEE,yBAAyB;AAC3B;AACA;;EAEE,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,yBAAyB;AAC3B;AACA;;EAEE,kBAAkB;EAClB,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,0BAA0B;EAC1B,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,UAAU;EACV,YAAY;EACZ,2BAA2B;EAC3B,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,wCAAwC;AAC1C;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,UAAU;EACV,yBAAyB;EACzB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;;;EAGE,WAAW;EACX,mBAAmB;AACrB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;;;;;;;EAOE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,YAAY;EACZ,8BAA8B;EAC9B,iCAAiC;EACjC,2BAA2B;EAC3B,WAAW;AACb;AACA;;;EAGE,QAAQ;EACR,SAAS;AACX;AACA;;;;;;;EAOE,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,WAAW;EACX,mBAAmB;EACnB,WAAW;AACb;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;;;;;EAKE,SAAS;EACT,+BAA+B;EAC/B,2BAA2B;EAC3B,8BAA8B;AAChC;AACA;;;;;EAKE,UAAU;EACV,gCAAgC;EAChC,4BAA4B;EAC5B,+BAA+B;AACjC;AACA;EACE,oBAAoB;AACtB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iCAAiC;AACnC;AACA;;;;EAIE,aAAa;AACf;AACA;;;;EAIE,cAAc;AAChB;AACA;;;;EAIE,mBAAmB;AACrB;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,oCAAoC;AACtC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,gBAAgB;AAClB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;;;EAGE,cAAc;AAChB;AACA;;;EAGE,WAAW;AACb;AACA;;;EAGE,UAAU;EACV,+BAA+B;EAC/B,0BAA0B;AAC5B;AACA;;;EAGE,WAAW;EACX,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;;;EAGE,WAAW;EACX,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;;;EAGE,UAAU;EACV,+BAA+B;EAC/B,0BAA0B;AAC5B;AACA;EACE,iBAAiB;AACnB;AACA;;;EAGE,kCAAkC;AACpC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,+BAA+B;AACjC;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,8BAA8B;AAChC;AACA;;EAEE,wBAAwB;AAC1B;AACA;;EAEE,YAAY;AACd;AACA;;EAEE,UAAU;AACZ;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,UAAU;EACV,aAAa;AACf;AACA;EACE,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;EAChB,2BAA2B;AAC7B;AACA;EACE,cAAc;EACd,aAAa;EACb,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,8BAA8B;AAChC;AACA;EACE,oCAAoC;AACtC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,SAAS;EACT,mBAAmB;EACnB,0BAA0B;EAC1B,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,2BAA2B;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,mBAAmB;AACrB;AACA,gCAAgC;AAChC;;;;EAIE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,yBAAyB;AAC3B;AACA;;EAEE,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,wCAAwC;AAC1C;AACA;EACE,UAAU;EACV,OAAO;AACT;AACA;EACE,QAAQ;EACR,SAAS;AACX;AACA;EACE,UAAU;EACV,SAAS;AACX;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,QAAQ;EACR,SAAS;AACX;AACA;EACE,UAAU;EACV,OAAO;AACT;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;;;;EAIE,UAAU;EACV,OAAO;EACP,gCAAgC;EAChC,iBAAiB;EACjB,yBAAyB;EACzB,4BAA4B;EAC5B,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;;;;EAIE,QAAQ;EACR,SAAS;EACT,kBAAkB;EAClB,+BAA+B;EAC/B,2BAA2B;EAC3B,0BAA0B;EAC1B,6BAA6B;EAC7B,8BAA8B;AAChC;AACA;;;;;;;EAOE,UAAU;EACV,SAAS;EACT,gCAAgC;EAChC,+BAA+B;EAC/B,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,gBAAgB;EAChB,0BAA0B;EAC1B,iBAAiB;EACjB,eAAe;EACf,mBAAmB;EACnB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,mBAAmB;AACrB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,YAAY;AACd;AACA;EACE,SAAS;EACT,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,OAAO;EACP,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,yBAAyB;AAC3B;AACA;EACE,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;;EAEE,oBAAoB;EACpB,qBAAqB;AACvB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;EAClB,+BAA+B;AACjC;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,aAAa;AACf;AACA;EACE,gCAAgC;AAClC;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,8BAA8B;AAChC;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,yCAAyC;AAC3C;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,qBAAqB;EACrB,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,aAAa;EACb,0CAA0C;AAC5C;AACA;EACE,aAAa;EACb,WAAW;EACX,WAAW;EACX,eAAe;EACf,cAAc;AAChB;AACA;EACE,aAAa;EACb,cAAc;EACd,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,mBAAmB;EACnB,kBAAkB;EAClB,aAAa;EACb,qCAAqC;AACvC;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,iCAAiC;EACjC,yBAAyB;EACzB,gBAAgB;EAChB,0BAA0B;EAC1B,WAAW;AACb;AACA;EACE,QAAQ;EACR,SAAS;AACX;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,QAAQ;EACR,SAAS;AACX;AACA;EACE,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,iCAAiC;EACjC,oBAAoB;EACpB,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;;EAEE,8BAA8B;AAChC;AACA;EACE,uBAAuB;AACzB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;EACf,aAAa;EACb,SAAS;EACT,YAAY;EACZ,kGAAkG;AACpG;AACA;EACE,yGAAyG;AAC3G;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;;EAEE,MAAM;EACN,SAAS;EACT,YAAY;AACd;AACA;;EAEE,YAAY;AACd;AACA;;EAEE,WAAW;EACX,yDAAyD;AAC3D;AACA;EACE,OAAO;AACT;AACA;EACE,OAAO;AACT;AACA;EACE,uHAAuH;AACzH;AACA;EACE,QAAQ;AACV;AACA;EACE,QAAQ;AACV;AACA;EACE,0HAA0H;AAC5H;AACA;EACE,UAAU;EACV,0BAA0B;AAC5B;AACA;;EAEE,OAAO;EACP,WAAW;EACX,UAAU;AACZ;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,YAAY;EACZ,yDAAyD;AAC3D;AACA;EACE,MAAM;AACR;AACA;EACE,uHAAuH;AACzH;AACA;EACE,SAAS;AACX;AACA;EACE,SAAS;AACX;AACA;EACE,0HAA0H;AAC5H;AACA;EACE,WAAW;EACX,0BAA0B;AAC5B;AACA;EACE,YAAY;EACZ,UAAU;EACV,gBAAgB;EAChB,+DAA+D;EAC/D,oBAAoB;AACtB;AACA;EACE,SAAS;EACT,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,sBAAsB;EACtB,4BAA4B;EAC5B,SAAS;AACX;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,WAAW;EACX,cAAc;EACd,aAAa;EACb,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,qBAAqB;EACrB,uBAAuB;EACvB,SAAS;EACT,UAAU;EACV,eAAe;EACf,sBAAsB;EACtB,oBAAoB;AACtB;AACA;;EAEE,0BAA0B;EAC1B,qBAAqB;AACvB;AACA;EACE,+BAA+B;EAC/B,yDAAyD;EACzD,6CAA6C;AAC/C;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,0BAA0B;EAC1B,gBAAgB;EAChB,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;EACE,0BAA0B;EAC1B,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,iBAAiB;EACjB,WAAW;EACX,YAAY;AACd;AACA;EACE,YAAY;EACZ,aAAa;EACb,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,SAAS;EACT,qCAAqC;EACrC,UAAU;EACV,yBAAyB;EACzB,oDAAoD;EACpD,oBAAoB;AACtB;AACA;EACE,oHAAoH;AACtH;AACA;EACE,gBAAgB;AAClB;AACA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,yBAAyB;AAC3B;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,YAAY;EACZ,aAAa;EACb,aAAa;EACb,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,YAAY;EACZ,UAAU;EACV,cAAc;EACd,eAAe;EACf,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;;EAEE,aAAa;AACf;AACA;;;EAGE,oBAAoB;AACtB;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;EACnB,0BAA0B;EAC1B,wBAAwB;AAC1B;AACA;;;EAGE,aAAa;EACb,6BAA6B;EAC7B,wBAAwB;EACxB,yBAAyB;EACzB,8BAA8B;EAC9B,2CAA2C;AAC7C;AACA;EACE,SAAS;EACT,yCAAyC;AAC3C;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;;;EAGE,QAAQ;EACR,sBAAsB;EACtB,+BAA+B;EAC/B,gCAAgC;EAChC,uBAAuB;EACvB,6CAA6C;AAC/C;AACA;EACE,SAAS;EACT,yCAAyC;AAC3C;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,cAAc;EACd,gBAAgB;EAChB,qBAAqB;EACrB,sBAAsB;EACtB,4BAA4B;EAC5B,kBAAkB;EAClB,aAAa;EACb,oHAAoH;AACtH;AACA;EACE,iBAAiB;EACjB,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,uBAAuB;EACvB,gBAAgB;EAChB,qBAAqB;AACvB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,SAAS;EACT,iBAAiB;EACjB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,eAAe;EACf,oBAAoB;AACtB;AACA;;;;;;EAME,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,sBAAsB;AACxB;AACA;;EAEE,cAAc;EACd,kBAAkB;EAClB,iBAAiB;EACjB,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;;EAEE,0BAA0B;AAC5B;AACA;;;;EAIE,cAAc;EACd,yBAAyB;AAC3B;AACA;;EAEE,yBAAyB;AAC3B;AACA;;EAEE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,0BAA0B;EAC1B,sBAAsB;EACtB,mBAAmB;AACrB;AACA;;;;EAIE,kBAAkB;EAClB,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,WAAW;AACb;AACA;;EAEE,WAAW;EACX,aAAa;EACb,gBAAgB;EAChB,cAAc;EACd,yBAAyB;AAC3B;AACA;;EAEE,kBAAkB;EAClB,UAAU;AACZ;AACA;;EAEE,0BAA0B;EAC1B,0BAA0B;EAC1B,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,eAAe;EACf,gBAAgB;EAChB,qBAAqB;AACvB;AACA;;EAEE,0BAA0B;EAC1B,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;;;;;;EAME,4BAA4B;AAC9B;AACA;;;;;;EAME,8BAA8B;AAChC;AACA;;;EAGE,6BAA6B;AAC/B;AACA;;;EAGE,+BAA+B;AACjC;AACA;;;EAGE,eAAe;EACf,wBAAwB;AAC1B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;;EAEE,mBAAmB;AACrB;AACA;;;;EAIE,gCAAgC;AAClC;AACA;;;;EAIE,gCAAgC;AAClC;AACA;;;;EAIE,WAAW;EACX,uBAAuB;AACzB;AACA;;;EAGE,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,wBAAwB;AAC1B;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,iBAAiB;AACnB;AACA;;;;EAIE,eAAe;EACf,gBAAgB;AAClB;AACA;;EAEE,WAAW;EACX,SAAS;AACX;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,OAAO;EACP,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,aAAa;EACb,eAAe;EACf,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,0BAA0B;AAC5B;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;EACb,0BAA0B;AAC5B;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;EACb,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;;EAEE,YAAY;AACd;AACA;EACE,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,WAAW;EACX,YAAY;AACd;AACA;;EAEE,qBAAqB;EACrB,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,eAAe;AACjB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,WAAW;AACb;AACA;EACE,aAAa;EACb,eAAe;AACjB;AACA;EACE,UAAU;EACV,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,sBAAsB;AACxB;AACA;EACE,YAAY;AACd;AACA;;;EAGE,gBAAgB;EAChB,mBAAmB;EACnB,oBAAoB;EACpB,gBAAgB;AAClB;AACA;;;EAGE,SAAS;AACX;AACA;;;EAGE,aAAa;AACf;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;EACA;IACE,eAAe;EACjB;EACA;;IAEE,cAAc;IACd,eAAe;EACjB;EACA;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE;IACE,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,aAAa;EACf;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE,oEAAoE;EACpE,0FAA0F;AAC5F;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;;;;EAIE,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;AACb;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;;;;EAIE,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,0DAA0D;EAC1D,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,sCAAsC;AACxC;AACA;EACE,cAAc;AAChB;AACA;;;;EAIE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;;;EAIE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,6CAA6C;AAC/C;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,6CAA6C;AAC/C;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,sCAAsC;AACxC;AACA;EACE,sBAAsB;EACtB,gCAAgC;AAClC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,6CAA6C;AAC/C;AACA;;EAEE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;;;EAIE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,6CAA6C;AAC/C;AACA;;EAEE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,6CAA6C;AAC/C;AACA;EACE,cAAc;AAChB;AACA;;;;EAIE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;;;EAIE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;;EAEE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,sCAAsC;AACxC;AACA;EACE,sBAAsB;EACtB,gCAAgC;AAClC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,SAAS;AACX;AACA;EACE,qBAAqB;AACvB;AACA;;EAEE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;;;EAIE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;EAEE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,sBAAsB;EACtB,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,gCAAgC;AAClC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,qBAAqB;EACrB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,cAAc;EACd,WAAW;EACX,mBAAmB;EACnB,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,oBAAoB;EACpB,SAAS;EACT,gCAAgC;AAClC;AACA;EACE,eAAe;AACjB;AACA;EACE,sBAAsB;AACxB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;;EAEE,YAAY;AACd;AACA;;;EAGE,oBAAoB;EACpB,0CAA0C;EAC1C,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,YAAY;EACZ,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,cAAc;EACd,eAAe;EACf,+BAA+B;EAC/B,cAAc;EACd,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,qBAAqB;EACrB,gBAAgB;EAChB,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,0BAA0B;EAC1B,YAAY;EACZ,2BAA2B;EAC3B,wBAAwB;AAC1B;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,YAAY;AACd;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,UAAU;EACV,eAAe;AACjB;AACA;;EAEE,WAAW;EACX,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,0DAA0D;EAC1D,gBAAgB;AAClB;AACA;EACE,oBAAoB;AACtB;AACA;;EAEE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,6BAA6B;EAC7B,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,+DAA+D;AACjE;AACA;EACE,+DAA+D;AACjE;AACA;EACE;IACE,2BAA2B;IAC3B,UAAU;EACZ;EACA;IACE,wBAAwB;IACxB,UAAU;EACZ;AACF;AACA;EACE;IACE,2BAA2B;IAC3B,UAAU;EACZ;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE;IACE,mBAAmB;EACrB;EACA;IACE,mBAAmB;EACrB;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;;;;EAIE,WAAW;EACX,UAAU;AACZ;AACA;;EAEE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;;;EAIE,WAAW;EACX,OAAO;AACT;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;;EAEE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,8BAA8B;AAChC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,eAAe;AACjB;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;AACjB;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,QAAQ;AACV;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,QAAQ;AACV;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;AACjB;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,aAAa;EACb,cAAc;AAChB;AACA;EACE,SAAS;AACX;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,sBAAsB;EACtB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,kBAAkB;AACpB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,QAAQ;AACV;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,QAAQ;AACV;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,WAAW;EACX,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,cAAc;AAChB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE;IACE,cAAc;IACd,cAAc;IACd,eAAe;EACjB;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,iBAAiB;EACnB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,aAAa;EACf;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,cAAc;EAChB;EACA;IACE,QAAQ;EACV;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,eAAe;EACjB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE;IACE,cAAc;IACd,cAAc;IACd,eAAe;EACjB;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,iBAAiB;EACnB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,aAAa;EACf;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,cAAc;EAChB;EACA;IACE,QAAQ;EACV;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,eAAe;EACjB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE;IACE,cAAc;IACd,cAAc;IACd,eAAe;EACjB;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,iBAAiB;EACnB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,aAAa;EACf;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,cAAc;EAChB;EACA;IACE,QAAQ;EACV;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,eAAe;EACjB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE;IACE,cAAc;IACd,cAAc;IACd,eAAe;EACjB;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,iBAAiB;EACnB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,aAAa;EACf;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,cAAc;EAChB;EACA;IACE,QAAQ;EACV;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,eAAe;EACjB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE;IACE,cAAc;IACd,cAAc;IACd,eAAe;EACjB;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,iBAAiB;EACnB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,SAAS;EACX;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,aAAa;IACb,cAAc;EAChB;EACA;IACE,SAAS;EACX;EACA;IACE,UAAU;EACZ;EACA;IACE,gBAAgB;EAClB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,sBAAsB;IACtB,uBAAuB;EACzB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,mBAAmB;EACrB;EACA;IACE,yBAAyB;EAC3B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,eAAe;IACf,gBAAgB;EAClB;EACA;IACE,WAAW;EACb;EACA;IACE,YAAY;EACd;EACA;IACE,kBAAkB;EACpB;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,cAAc;IACd,qBAAqB;IACrB,sBAAsB;EACxB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,kBAAkB;EACpB;EACA;IACE,wBAAwB;EAC1B;EACA;IACE,QAAQ;EACV;EACA;IACE,aAAa;EACf;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,cAAc;EAChB;EACA;IACE,QAAQ;EACV;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,eAAe;EACjB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,UAAU;EACZ;EACA;IACE,WAAW;IACX,iBAAiB;EACnB;EACA;IACE,yBAAyB;IACzB,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,UAAU;IACV,UAAU;EACZ;EACA;IACE,WAAW;IACX,SAAS;EACX;EACA;IACE,iBAAiB;IACjB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,WAAW;IACX,WAAW;EACb;EACA;IACE,mBAAmB;IACnB,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,WAAW;IACX,kBAAkB;EACpB;EACA;IACE,0BAA0B;IAC1B,cAAc;EAChB;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,6pBAA6pB;EAC7pB,4BAA4B;EAC5B,kCAAkC;EAClC,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,8BAA8B;EAC9B,eAAe;EACf,UAAU;EACV,wBAAwB;AAC1B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;AACT;AACA;EACE,oBAAoB;EACpB,YAAY;EACZ,kBAAkB;AACpB;AACA;;EAEE,eAAe;EACf,UAAU;EACV,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,aAAa;EACb,YAAY;EACZ,qCAAqC;AACvC;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,cAAc;EACd,UAAU;EACV,iCAAiC;AACnC;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,sBAAsB;EACtB,2BAA2B;EAC3B,YAAY;EACZ,iEAAiE;EACjE,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,iEAAiE;AACnE;AACA;EACE,qBAAqB;EACrB,UAAU;EACV,WAAW;EACX,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,6BAA6B;EAC7B,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,UAAU;EACV,aAAa;EACb,2BAA2B;EAC3B,mBAAmB;EACnB,WAAW;EACX,gCAAgC;EAChC,gBAAgB;EAChB,8BAA8B;EAC9B,oBAAoB;AACtB;AACA;EACE,iBAAiB;EACjB,aAAa;EACb,eAAe;AACjB;AACA;EACE,gCAAgC;EAChC,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,UAAU;EACV,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gCAAgC;EAChC,8BAA8B;EAC9B,kBAAkB;EAClB,eAAe;EACf,oBAAoB;AACtB;AACA;;EAEE,gCAAgC;EAChC,mBAAmB;AACrB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;AACtB;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,UAAU;AACZ;AACA;;EAEE,UAAU;AACZ;AACA;EACE,uBAAuB;AACzB;AACA;EACE,UAAU;EACV,YAAY;EACZ,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,kBAAkB;EAClB,cAAc;AAChB;AACA;;EAEE,aAAa;EACb,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,0BAA0B;EAC1B,eAAe;EACf,oBAAoB;EACpB,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,cAAc;EACd,WAAW;EACX,yBAAyB;EACzB,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;EAGE,gBAAgB;AAClB;AACA;;EAEE,UAAU;EACV,mBAAmB;EACnB,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,WAAW;EACX,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,uBAAuB;AACzB;AACA;EACE,UAAU;EACV,uBAAuB;AACzB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,kBAAkB;EAClB,yBAAyB;EACzB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,yBAAyB;EACzB,6BAA6B;EAC7B,gBAAgB;AAClB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,0BAA0B;EAC1B,6BAA6B;AAC/B;AACA;;EAEE,0BAA0B;EAC1B,6BAA6B;AAC/B;AACA;EACE,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,0BAA0B;EAC1B,6BAA6B;AAC/B;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;;EAEE,mBAAmB;EACnB,eAAe;AACjB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE,0BAA0B;EAC1B,6BAA6B;AAC/B;AACA;EACE,2BAA2B;EAC3B,8BAA8B;AAChC;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;;;EAGE,uBAAuB;AACzB;AACA;;;EAGE,UAAU;AACZ;AACA;;;EAGE,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,uBAAuB;AACzB;AACA;EACE,WAAW;AACb;AACA;;;;EAIE,uBAAuB;EACvB,gBAAgB;AAClB;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;;;;EAIE,2BAA2B;EAC3B,8BAA8B;AAChC;AACA;;;;EAIE,uBAAuB;EACvB,4BAA4B;EAC5B,+BAA+B;AACjC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0BAA0B;AAC5B;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,+BAA+B;EAC/B,cAAc;AAChB;AACA;EACE,eAAe;EACf,8BAA8B;AAChC;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,sBAAsB;AACxB;AACA;;;;EAIE,0BAA0B;AAC5B;AACA;;;;;EAKE,sBAAsB;EACtB,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,0BAA0B;EAC1B,mBAAmB;EACnB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,UAAU;EACV,SAAS;AACX;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;AACT;AACA;EACE,YAAY;AACd;AACA;;EAEE,UAAU;AACZ;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,cAAc;AAChB;AACA;;EAEE,2BAA2B;EAC3B,0BAA0B;AAC5B;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,0BAA0B;AAC5B;AACA;EACE;IACE,YAAY;EACd;EACA;IACE,YAAY;EACd;EACA;IACE,YAAY;EACd;EACA;IACE,YAAY;EACd;AACF;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,sBAAsB;EACtB,oBAAoB;EACpB,qBAAqB;EACrB,WAAW;EACX,SAAS;EACT,UAAU;EACV,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,WAAW;EACX,WAAW;EACX,gBAAgB;EAChB,0BAA0B;EAC1B,iBAAiB;EACjB,cAAc;EACd,kBAAkB;EAClB,2BAA2B;AAC7B;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,qBAAqB;EACrB,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,wBAAwB;EACxB,kCAAkC;EAClC,mCAAmC;EACnC,kCAAkC;EAClC,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,0BAA0B;EAC1B,iBAAiB;EACjB,2BAA2B;EAC3B,iBAAiB;AACnB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,aAAa;AACf;AACA;;;;EAIE,cAAc;AAChB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,UAAU;EACV,sCAAsC;AACxC;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,6BAA6B;EAC7B,SAAS;EACT,kBAAkB;EAClB,UAAU;EACV,2BAA2B;EAC3B,qCAAqC;AACvC;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;;EAEE,SAAS;EACT,wBAAwB;AAC1B;AACA;EACE,UAAU;EACV,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,8BAA8B;EAC9B,0BAA0B;EAC1B,UAAU;EACV,qCAAqC;AACvC;AACA;;EAEE,eAAe;EACf,eAAe;EACf,cAAc;AAChB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;EACE,4BAA4B;EAC5B,eAAe;AACjB;AACA;EACE,QAAQ;EACR,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,MAAM;EACN,6BAA6B;EAC7B,+BAA+B;EAC/B,eAAe;AACjB;AACA;EACE,QAAQ;EACR,kBAAkB;EAClB,2BAA2B;AAC7B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,OAAO;EACP,+BAA+B;EAC/B,cAAc;EACd,0BAA0B;AAC5B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,UAAU;EACV,sBAAsB;EACtB,mEAAmE;EACnE,aAAa;EACb,mBAAmB;AACrB;AACA;;EAEE,sBAAsB;AACxB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,QAAQ;AACV;AACA;;EAEE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,eAAe;EACf,0BAA0B;EAC1B,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,mEAAmE;EACnE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,kEAAkE;EAClE,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,QAAQ;AACV;AACA;EACE,eAAe;EACf,SAAS;EACT,UAAU;EACV,YAAY;EACZ,WAAW;EACX,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,YAAY;EACZ,UAAU;EACV,WAAW;EACX,YAAY;EACZ,WAAW;EACX,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;EACnB,0BAA0B;EAC1B,eAAe;EACf,gCAAgC;AAClC;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,uBAAuB;EACvB,oBAAoB;EACpB,WAAW;AACb;AACA;EACE,oCAAoC;AACtC;AACA;EACE,WAAW;EACX,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,0BAA0B;EAC1B,gBAAgB;AAClB;AACA;EACE,0BAA0B;EAC1B,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,0BAA0B;EAC1B,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,8BAA8B;EAC9B,eAAe;EACf,0BAA0B;AAC5B;AACA;EACE,aAAa;EACb,OAAO;EACP,uBAAuB;EACvB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,SAAS;EACT,QAAQ;EACR,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,UAAU;EACV,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,yBAAyB;AAC3B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,uBAAuB;AACzB;AACA;;EAEE,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,OAAO;AACT;AACA;EACE,iBAAiB;AACnB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE;IACE,iBAAiB;EACnB;EACA;IACE,iBAAiB;EACnB;AACF;AACA;EACE;IACE,eAAe;EACjB;EACA;IACE,iBAAiB;EACnB;EACA;IACE,uBAAuB;EACzB;EACA;IACE,gBAAgB;EAClB;EACA;IACE,sBAAsB;EACxB;AACF;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,WAAW;AACb;AACA;EACE;IACE,kBAAkB;IAClB,cAAc;EAChB;EACA;IACE,kBAAkB;IAClB,cAAc;EAChB;AACF;AACA;EACE;IACE,kBAAkB;IAClB,cAAc;EAChB;EACA;IACE,sBAAsB;EACxB;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,0BAA0B;EAC1B,gBAAgB;EAChB,6BAA6B;EAC7B,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;EACpB,kBAAkB;EAClB,qBAAqB;EACrB,YAAY;EACZ,UAAU;EACV,gBAAgB;EAChB,mBAAmB;EACnB,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,gBAAgB;EAChB,SAAS;EACT,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;EAChB,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,qBAAqB;EACrB,yBAAyB;EACzB,qBAAqB;EACrB,oBAAoB;EACpB,kBAAkB;EAClB,uBAAuB;EACvB,oBAAoB;EACpB,mBAAmB;EACnB,mBAAmB;EACnB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;EACb,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,WAAW;EACX,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,qBAAqB;EACrB,eAAe;AACjB;AACA;EACE,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,YAAY;EACZ,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,eAAe;EACf,qBAAqB;EACrB,sBAAsB;EACtB,kBAAkB;EAClB,aAAa;EACb,oHAAoH;AACtH;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,gBAAgB;EAChB,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,gBAAgB;EAChB,0BAA0B;EAC1B,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,gCAAgC;AAClC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,2BAA2B;AAC7B;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,WAAW;EACX,yBAAyB;AAC3B;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,mBAAmB;EACnB,6BAA6B;EAC7B,gBAAgB;EAChB,eAAe;EACf,0BAA0B;EAC1B,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EAChB,aAAa;EACb,oHAAoH;EACpH,qEAAqE;AACvE;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;;EAEE,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,wHAAwH;AAC1H;AACA;;EAEE,4KAA4K;AAC9K;AACA;EACE,cAAc;AAChB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,eAAe;EACf,mHAAmH;AACrH;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,6BAA6B;EAC7B,WAAW;AACb;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,cAAc;EACd,yBAAyB;AAC3B;AACA;;;;;EAKE,cAAc;AAChB;AACA;;EAEE,gBAAgB;AAClB;AACA;;;EAGE,6BAA6B;AAC/B;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;;;EAGE,+BAA+B;AACjC;AACA;EACE,8BAA8B;AAChC;AACA;;;EAGE,gBAAgB;EAChB,+BAA+B;EAC/B,UAAU;EACV,gBAAgB;EAChB,eAAe;AACjB;AACA;;;EAGE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;;;EAGE,OAAO;EACP,cAAc;EACd,eAAe;AACjB;AACA;;;EAGE,eAAe;AACjB;AACA;;;;;;EAME,qBAAqB;AACvB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,8CAA8C;AAChD;AACA;;EAEE,kBAAkB;EAClB,cAAc;EACd,SAAS;EACT,eAAe;EACf,mBAAmB;EACnB,eAAe;EACf,kGAAkG;AACpG;AACA;;;;EAIE,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,6HAA6H;AAC/H;AACA;;;;EAIE,UAAU;EACV,0HAA0H;AAC5H;AACA;;;;EAIE,eAAe;AACjB;AACA;EACE,WAAW;EACX,aAAa;EACb,UAAU;EACV,gBAAgB;EAChB,cAAc;EACd,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,uBAAuB;EACvB,kBAAkB;EAClB,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,SAAS;EACT,OAAO;EACP,WAAW;EACX,WAAW;EACX,YAAY;EACZ,eAAe;EACf,YAAY;AACd;AACA;EACE,MAAM;EACN,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,+DAA+D;AACjE;AACA;EACE,sBAAsB;AACxB;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,WAAW;EACX,0BAA0B;EAC1B,2BAA2B;EAC3B,+DAA+D;AACjE;AACA;;EAEE,kBAAkB;EAClB,UAAU;EACV,aAAa;EACb,8BAA8B;EAC9B,kBAAkB;EAClB,qNAAqN;EACrN,WAAW;AACb;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,2CAA2C;AAC7C;AACA;;EAEE,cAAc;AAChB;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,aAAa;AACf;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,0CAA0C;AAC5C;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,SAAS;EACT,gCAAgC;EAChC,gBAAgB;AAClB;AACA;;EAEE,cAAc;EACd,gBAAgB;EAChB,gBAAgB;EAChB,eAAe;EACf,gBAAgB;EAChB,eAAe;AACjB;AACA;;;;;;;;EAQE,cAAc;EACd,gCAAgC;AAClC;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,qBAAqB;EACrB,sBAAsB;EACtB,oCAAoC;AACtC;AACA;EACE,UAAU;AACZ;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,WAAW;EACX,SAAS;EACT,cAAc;AAChB;AACA;;;;EAIE,kBAAkB;AACpB;AACA;;;;EAIE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,+BAA+B;EAC/B,yBAAyB;EACzB,UAAU;EACV,kHAAkH;EAClH,WAAW;AACb;AACA;;;;;;;;EAQE,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,uBAAuB;AACzB;AACA;;;;EAIE,sBAAsB;AACxB;AACA;;;;EAIE,kBAAkB;AACpB;AACA;;;;;;;;EAQE,YAAY;EACZ,iBAAiB;AACnB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;;EAEE,oBAAoB;EACpB,UAAU;EACV,oHAAoH;AACtH;AACA;;EAEE,uBAAuB;AACzB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;;;;EAIE,OAAO;EACP,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;;;;EAIE,aAAa;AACf;AACA;;;;;;;;EAQE,SAAS;EACT,eAAe;EACf,iBAAiB;AACnB;AACA;;;;;;;;EAQE,qBAAqB;EACrB,YAAY;EACZ,UAAU;AACZ;AACA;;EAEE,qBAAqB;AACvB;AACA;EACE,oBAAoB;AACtB;AACA;;EAEE,aAAa;AACf;AACA;EACE,gCAAgC;AAClC;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,SAAS;EACT,UAAU;AACZ;AACA;;EAEE,sBAAsB;AACxB;AACA;;;;EAIE,gBAAgB;AAClB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,UAAU;EACV,mBAAmB;EACnB,SAAS;EACT,gBAAgB;EAChB,gBAAgB;AAClB;AACA;;EAEE,YAAY;EACZ,iBAAiB;EACjB,2BAA2B;EAC3B,qBAAqB;AACvB;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,qCAAqC;EACrC,gBAAgB;EAChB,oCAAoC;EACpC,mBAAmB;AACrB;AACA;;EAEE,qCAAqC;EACrC,oBAAoB;AACtB;AACA;;EAEE,qCAAqC;EACrC,mBAAmB;AACrB;AACA;;;;EAIE,0CAA0C;AAC5C;AACA;EACE,oBAAoB;AACtB;AACA;;;EAGE,gCAAgC;EAChC,mBAAmB;AACrB;AACA;;;EAGE,aAAa;EACb,oBAAoB;AACtB;AACA;;;;;;EAME,gBAAgB;AAClB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,MAAM;EACN,aAAa;EACb,eAAe;EACf,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,SAAS;AACX;AACA;;;;EAIE,gCAAgC;AAClC;AACA;;;;EAIE,eAAe;AACjB;AACA;;;;EAIE,OAAO;EACP,cAAc;EACd,eAAe;AACjB;AACA;;;;EAIE,eAAe;AACjB;AACA;;EAEE,WAAW;AACb;AACA;;;;;;EAME,WAAW;EACX,6BAA6B;AAC/B;AACA;;;;;;;;;;;;EAYE,WAAW;AACb;AACA;;;;;;;;;;;;EAYE,UAAU;AACZ;AACA;;;;;;;;;;;;;;;;;;;;;;;;EAwBE,gBAAgB;AAClB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;;;;EAIE,WAAW;AACb;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,WAAW;AACb;AACA;;EAEE,yBAAyB;AAC3B;AACA;;;;;;EAME,2CAA2C;EAC3C,YAAY;AACd;AACA;;EAEE,2CAA2C;AAC7C;AACA;;;;EAIE,gDAAgD;AAClD;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,kBAAkB;EAClB,8BAA8B;AAChC;AACA;;EAEE,iBAAiB;AACnB;AACA;;;;;;EAME,2BAA2B;AAC7B;AACA;;;;EAIE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;;;;EAIE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;;;;EAIE,WAAW;EACX,UAAU;AACZ;AACA;;;EAGE,0CAA0C;AAC5C;AACA;;;EAGE,wCAAwC;AAC1C;AACA;;;;EAIE,WAAW;EACX,OAAO;AACT;AACA;;;;;;;;EAQE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,+BAA+B;AACjC;AACA;;EAEE,sBAAsB;AACxB;AACA;EACE,SAAS;AACX;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,eAAe;EACf,QAAQ;EACR,OAAO;EACP,aAAa;EACb,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;EAClB,oHAAoH;EACpH,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,8BAA8B;EAC9B,wBAAwB;AAC1B;AACA;EACE;IACE,iBAAiB;IACjB,YAAY;IACZ,UAAU;EACZ;EACA;IACE,aAAa;IACb,UAAU;IACV,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,oBAAoB;EACpB,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,6BAA6B;EAC7B,cAAc;EACd,oBAAoB;AACtB;AACA;;EAEE,eAAe;EACf,UAAU;EACV,wBAAwB;EACxB,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,aAAa;EACb,YAAY;EACZ,qCAAqC;AACvC;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;EACf,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,cAAc;EACd,UAAU;EACV,iCAAiC;AACnC;AACA;EACE,aAAa;AACf;AACA;EACE,SAAS;EACT,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,sBAAsB;EACtB,4BAA4B;EAC5B,SAAS;EACT,kBAAkB;EAClB,oHAAoH;EACpH,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,WAAW;EACX,UAAU;EACV,0BAA0B;EAC1B,gBAAgB;EAChB,cAAc;EACd,qBAAqB;EACrB,uBAAuB;EACvB,SAAS;EACT,UAAU;EACV,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;EACpB,oBAAoB;AACtB;AACA;;EAEE,0BAA0B;EAC1B,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,gBAAgB;EAChB,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;EACE,aAAa;EACb,eAAe;EACf,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,uBAAuB;EACvB,6BAA6B;EAC7B,0BAA0B;AAC5B;AACA;EACE,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,YAAY;EACZ,sBAAsB;EACtB,WAAW;AACb;AACA;EACE,MAAM;EACN,qBAAqB;EACrB,gBAAgB;EAChB,sBAAsB;AACxB;AACA;EACE;IACE,6BAA6B;IAC7B,gBAAgB;EAClB;EACA;IACE,OAAO;EACT;AACF;AACA;EACE,aAAa;AACf;AACA;EACE,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,OAAO;AACT;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,eAAe;EACf,aAAa;EACb,kBAAkB;AACpB;AACA;;EAEE,eAAe;EACf,iBAAiB;AACnB;AACA;;;;EAIE,sCAAsC;AACxC;AACA;EACE,eAAe;EACf,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,YAAY;EACZ,iCAAiC;EACjC,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;EAChB,qBAAqB;EACrB,gBAAgB;EAChB,kBAAkB;EAClB,oHAAoH;AACtH;AACA;;;;EAIE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,kDAAkD;EAClD,cAAc;EACd,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,0BAA0B;EAC1B,aAAa;AACf;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,yBAAyB;EACzB,+DAA+D;EAC/D,yBAAyB;AAC3B;AACA;;EAEE,yBAAyB;EACzB,+DAA+D;EAC/D,yBAAyB;EACzB,UAAU;EACV,4BAA4B;AAC9B;AACA;EACE,yBAAyB;EACzB,+DAA+D;EAC/D,yBAAyB;EACzB,wBAAwB;EACxB,4BAA4B;AAC9B;AACA;;EAEE,kCAAkC;EAClC,6BAA6B;AAC/B;AACA;EACE,mCAAmC;EACnC,6BAA6B;AAC/B;AACA;EACE;IACE,WAAW;IACX,UAAU;EACZ;EACA;IACE,OAAO;IACP,UAAU;EACZ;AACF;AACA;EACE;IACE,YAAY;IACZ,UAAU;EACZ;EACA;IACE,QAAQ;IACR,UAAU;EACZ;AACF;AACA;EACE;IACE,iBAAiB;IACjB,mBAAmB;IACnB,UAAU;EACZ;EACA;IACE,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,cAAc;AAChB;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,aAAa;EACb,sBAAsB;EACtB,WAAW;EACX,eAAe;AACjB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,cAAc;EACd,sBAAsB;AACxB;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,SAAS;AACX;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;;EAEE,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,WAAW;EACX,SAAS;EACT,gBAAgB;EAChB,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,iBAAiB;EACjB,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,iBAAiB;EACjB,kMAAkM;EAClM,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,gBAAgB;EAChB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,UAAU;EACV,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;EACd,cAAc;EACd,0BAA0B;EAC1B,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;;EAEE,qBAAqB;EACrB,oBAAoB;AACtB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,cAAc;AAChB;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,cAAc;EACd,eAAe;EACf,oBAAoB;EACpB,UAAU;EACV,oBAAoB;AACtB;AACA;;EAEE,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,YAAY;AACd;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,cAAc;EACd,YAAY;EACZ,0BAA0B;EAC1B,yCAAyC;EACzC,mBAAmB;EACnB,kBAAkB;EAClB,mBAAmB;EACnB,UAAU;EACV,oBAAoB;AACtB;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,UAAU;AACZ;AACA;;;EAGE,iBAAiB;AACnB;AACA;;;;EAIE,qBAAqB;EACrB,eAAe;EACf,YAAY;EACZ,0BAA0B;EAC1B,kMAAkM;EAClM,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,gBAAgB;EAChB,kBAAkB;EAClB,eAAe;EACf,oBAAoB;AACtB;AACA;;EAEE,yCAAyC;EACzC,UAAU;AACZ;AACA;;EAEE,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,UAAU;EACV,eAAe;EACf,kBAAkB;EAClB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,oBAAoB;AACtB;AACA;;;;EAIE,cAAc;EACd,qBAAqB;AACvB;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;EAGE,0BAA0B;EAC1B,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,sBAAsB;AACxB;AACA;EACE;;IAEE,mBAAmB;EACrB;AACF;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;EACpB,WAAW;EACX,YAAY;EACZ,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;;EAEE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;;EAEE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,mBAAmB;EACnB,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;;;;;;EAME,6BAA6B;EAC7B,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,sBAAsB;EACtB,+BAA+B;AACjC;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,YAAY;EACZ,iBAAiB;EACjB,mBAAmB;AACrB;AACA;;EAEE,YAAY;EACZ,6BAA6B;EAC7B,SAAS;AACX;AACA;;EAEE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,YAAY;EACZ,iBAAiB;EACjB,cAAc;EACd,kBAAkB;EAClB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,6BAA6B;AAC/B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,mBAAmB;AACrB;AACA;;EAEE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,YAAY;EACZ,SAAS;EACT,iBAAiB;AACnB;AACA;EACE,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;;EAEE,eAAe;EACf,YAAY;EACZ,SAAS;EACT,iBAAiB;AACnB;AACA;;EAEE,uBAAuB;EACvB,yBAAyB;AAC3B;AACA;;EAEE,YAAY;EACZ,iBAAiB;AACnB;AACA;;EAEE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;AACV;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,YAAY;AACd;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,uBAAuB;EACvB,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,yBAAyB;AAC3B;AACA;EACE,WAAW;AACb;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;EACE,0BAA0B;AAC5B;AACA;EACE;;IAEE,aAAa;EACf;AACF;AACA;EACE;IACE,aAAa;EACf;AACF;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;;;;EAIE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,qCAAqC;EACrC,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;;;EAGE,oBAAoB;AACtB;AACA;;;EAGE,kBAAkB;AACpB;AACA;;;EAGE,iBAAiB;AACnB;AACA;;;EAGE,mBAAmB;AACrB;AACA;EACE,sBAAsB;EACtB,4BAA4B;EAC5B,kBAAkB;EAClB,oHAAoH;EACpH,0CAA0C;AAC5C;AACA;EACE;IACE,UAAU;EACZ;EACA;IACE,oHAAoH;EACtH;AACF;AACA;EACE,gBAAgB;EAChB,gBAAgB;EAChB,SAAS;EACT,qBAAqB;EACrB,0BAA0B;EAC1B,gBAAgB;EAChB,gCAAgC;AAClC;AACA;EACE,kBAAkB;EAClB,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,mBAAmB;EACnB,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,uBAAuB;EACvB,mBAAmB;EACnB,0BAA0B;EAC1B,wBAAwB;AAC1B;AACA;;;EAGE,aAAa;EACb,6BAA6B;EAC7B,wBAAwB;EACxB,yBAAyB;EACzB,8BAA8B;EAC9B,2CAA2C;AAC7C;AACA;EACE,SAAS;EACT,yCAAyC;AAC3C;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;;;EAGE,SAAS;EACT,6BAA6B;EAC7B,+BAA+B;EAC/B,yBAAyB;EACzB,uBAAuB;EACvB,4CAA4C;AAC9C;AACA;EACE,QAAQ;EACR,yCAAyC;AAC3C;AACA;EACE,SAAS;AACX;AACA;EACE,YAAY;AACd;AACA;;;EAGE,QAAQ;EACR,sBAAsB;EACtB,+BAA+B;EAC/B,gCAAgC;EAChC,uBAAuB;EACvB,6CAA6C;AAC/C;AACA;EACE,SAAS;EACT,yCAAyC;AAC3C;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;;;EAGE,UAAU;EACV,sBAAsB;EACtB,wBAAwB;EACxB,gCAAgC;EAChC,8BAA8B;EAC9B,4CAA4C;AAC9C;AACA;EACE,QAAQ;EACR,yCAAyC;AAC3C;AACA;EACE,SAAS;AACX;AACA;EACE,YAAY;AACd;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,eAAe;AACjB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,cAAc;EACd,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,8BAA8B;EAC9B,8BAA8B;AAChC;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,WAAW;EACX,gBAAgB;EAChB,sBAAsB;EACtB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,eAAe;AACjB;AACA;EACE,mCAAmC;AACrC;AACA;EACE,eAAe;AACjB;AACA;;EAEE,kBAAkB;EAClB,yBAAyB;EACzB,oBAAoB;EACpB,yDAAyD;AAC3D;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,yBAAyB;AAC3B;AACA;EACE,qBAAqB;EACrB,UAAU;EACV,gBAAgB;EAChB,0BAA0B;EAC1B,cAAc;EACd,cAAc;EACd,mBAAmB;EACnB,gBAAgB;EAChB,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,gBAAgB;EAChB,mBAAmB;EACnB,UAAU;EACV,2EAA2E;EAC3E,WAAW;AACb;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,WAAW;EACX,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,cAAc;EACd,cAAc;EACd,mBAAmB;EACnB,kBAAkB;EAClB,gCAAgC;AAClC;AACA;EACE,uBAAuB;AACzB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE;IACE,QAAQ;IACR,YAAY;EACd;EACA;IACE,QAAQ;IACR,YAAY;EACd;EACA;IACE,WAAW;IACX,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,6BAA6B;EAC7B,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;;EAEE,iBAAiB;EACjB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;EACrB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,oBAAoB;EACpB,qBAAqB;EACrB,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,UAAU;EACV,qBAAqB;EACrB,aAAa;EACb,eAAe;AACjB;AACA;;;EAGE,qBAAqB;AACvB;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,kBAAkB;EAClB,2CAA2C;EAC3C,yBAAyB;EACzB,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,cAAc;EACd,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,qBAAqB;EACrB,mBAAmB;EACnB,iBAAiB;EACjB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,mBAAmB;EACnB,UAAU;EACV,yDAAyD;EACzD,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,UAAU;EACV,eAAe;EACf,UAAU;AACZ;AACA;EACE,qBAAqB;AACvB;AACA;EACE,mBAAmB;EACnB,UAAU;EACV,yDAAyD;AAC3D;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,gCAAgC;EAChC,mBAAmB;AACrB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,YAAY;EACZ,SAAS;EACT,eAAe;EACf,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;EACjB,gBAAgB;EAChB,yBAAyB;EACzB,wBAAwB;EACxB,oBAAoB;EACpB,eAAe;EACf,2EAA2E;AAC7E;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,WAAW;EACX,YAAY;AACd;AACA;EACE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,cAAc;EACd,uBAAuB;EACvB,UAAU;EACV,YAAY;EACZ,cAAc;EACd,yBAAyB;EACzB,iCAAiC;EACjC,WAAW;AACb;AACA;EACE,8BAA8B;EAC9B,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,6CAA6C;AAC/C;AACA;;;EAGE,QAAQ;EACR,SAAS;EACT,UAAU;EACV,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,cAAc;EACd,gBAAgB;EAChB,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,qBAAqB;EACrB,mBAAmB;AACrB;AACA;;EAEE,0BAA0B;EAC1B,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;EAC1B,yBAAyB;EACzB,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE;IACE,mBAAmB;IACnB,YAAY;EACd;EACA;IACE,qBAAqB;IACrB,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,+BAA+B;EAC/B,0BAA0B;AAC5B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,6BAA6B;EAC7B,qBAAqB;EACrB,SAAS;EACT,UAAU;EACV,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,cAAc;EACd,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,cAAc;EACd,oBAAoB;EACpB,iBAAiB;AACnB;AACA;;EAEE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,UAAU;EACV,YAAY;EACZ,gBAAgB;EAChB,UAAU;AACZ;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,cAAc;AAChB;AACA;EACE,qBAAqB;EACrB,aAAa;EACb,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,YAAY;EACZ,aAAa;EACb,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,WAAW;EACX,SAAS;EACT,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;;EAEE,UAAU;EACV,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE;;IAEE,iBAAiB;EACnB;AACF;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;;;EAGE,qBAAqB;EACrB,QAAQ;EACR,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;AACd;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,UAAU;EACV,SAAS;AACX;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;;;EAGE;AACF;EACE,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,eAAe;EACf,eAAe;AACjB;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,aAAa;EACb,eAAe;EACf,mBAAmB;EACnB,gBAAgB;AAClB;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,aAAa;EACb,iBAAiB;EACjB,cAAc;AAChB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,sBAAsB;EACtB,eAAe;EACf,YAAY;EACZ,eAAe;EACf,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;EACnB,yBAAyB;EACzB,kBAAkB;EAClB,eAAe;EACf,yDAAyD;EACzD,iBAAiB;EACjB,sBAAsB;EACtB,yBAAyB;EACzB,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,wBAAwB;EACxB,kCAAkC;EAClC,mCAAmC;EACnC,kCAAkC;EAClC,qBAAqB;EACrB,0BAA0B;EAC1B,iBAAiB;EACjB,eAAe;EACf,oBAAoB;EACpB,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,eAAe;EACf,eAAe;EACf,kBAAkB;EAClB,wBAAwB;AAC1B;AACA;;EAEE,YAAY;EACZ,kMAAkM;EAClM,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,UAAU;EACV,2BAA2B;EAC3B,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;;EAEE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;;EAEE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA,6BAA6B;AAC7B;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,yDAAyD;AAC3D;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,qBAAqB;EACrB,kCAAkC;EAClC,UAAU;EACV,4CAA4C;AAC9C;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,SAAS;EACT,UAAU;EACV,uBAAuB;EACvB,YAAY;EACZ,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,wBAAwB;AAC1B;AACA;EACE,qBAAqB;EACrB,kCAAkC;AACpC;AACA;EACE,qBAAqB;EACrB,iCAAiC;AACnC;AACA;EACE,OAAO;EACP,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE;;IAEE,UAAU;EACZ;AACF;AACA;EACE,OAAO;EACP,gBAAgB;EAChB,cAAc;EACd,mBAAmB;EACnB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE;;IAEE,UAAU;EACZ;AACF;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,oBAAoB;EACpB,wBAAwB;EACxB,kCAAkC;EAClC,mCAAmC;EACnC,kCAAkC;EAClC,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,0BAA0B;AAC5B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,UAAU;EACV,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,eAAe;EACf,UAAU;EACV,+CAA+C;EAC/C,oBAAoB;AACtB;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,UAAU;AACZ;AACA;EACE,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,YAAY;EACZ,aAAa;EACb,aAAa;EACb,sBAAsB;EACtB,cAAc;EACd,gBAAgB;EAChB,eAAe;EACf,qBAAqB;EACrB,sBAAsB;EACtB,kBAAkB;EAClB,aAAa;EACb,oHAAoH;AACtH;AACA;;EAEE,4BAA4B;AAC9B;AACA;;EAEE,8BAA8B;AAChC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,aAAa;AACf;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,gBAAgB;EAChB,iBAAiB;EACjB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,eAAe;EACf,gCAAgC;AAClC;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;EACV,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,UAAU;AACZ;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,wCAAwC;EACxC,oCAAoC;EACpC,2BAA2B;AAC7B;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,UAAU;AACZ;AACA;EACE,cAAc;EACd,UAAU;AACZ;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;;EAEE,QAAQ;EACR,SAAS;EACT,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;;EAEE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,oCAAoC;EACpC,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,WAAW;EACX,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,oCAAoC;EACpC,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,oCAAoC;EACpC,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,6HAA6H;EAC7H,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,6HAA6H;EAC7H,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,6HAA6H;EAC7H,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,6HAA6H;EAC7H,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,6HAA6H;EAC7H,0BAA0B;EAC1B,kDAAkD;AACpD;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,oCAAoC;EACpC,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,oCAAoC;EACpC,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,oCAAoC;EACpC,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,mBAAmB;EACnB,oCAAoC;EACpC,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE;IACE,6BAA6B;EAC/B;EACA;IACE,0BAA0B;EAC5B;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;;EAEE,wCAAwC;AAC1C;AACA;EACE,wCAAwC;AAC1C;AACA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,6BAA6B;EAC/B;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,YAAY;EACZ,qBAAqB;EACrB,cAAc;EACd,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,UAAU;EACV,WAAW;EACX,YAAY;AACd;AACA;EACE,SAAS;EACT,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,SAAS;EACT,SAAS;EACT,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,WAAW;EACX,yBAAyB;EACzB,kBAAkB;EAClB,iCAAiC;AACnC;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,yBAAyB;EACzB,kBAAkB;EAClB,iCAAiC;AACnC;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,eAAe;EACf,mGAAmG;AACrG;AACA;EACE,qBAAqB;EACrB,6CAA6C;AAC/C;AACA;EACE,qBAAqB;EACrB,aAAa;EACb,6CAA6C;AAC/C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,WAAW;EACX,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,0BAA0B;EAC1B,kBAAkB;EAClB,oBAAoB;EACpB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,WAAW;EACX,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gDAAgD;AAClD;AACA;;EAEE,sBAAsB;EACtB,4CAA4C;EAC5C,gBAAgB;EAChB,mBAAmB;AACrB;AACA;;EAEE,8BAA8B;AAChC;AACA;EACE,cAAc;AAChB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,kBAAkB;EAClB,sBAAsB;EACtB,UAAU;EACV,+DAA+D;AACjE;AACA;EACE,gBAAgB;EAChB,qBAAqB;EACrB,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,UAAU;EACV,cAAc;EACd,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,gBAAgB;EAChB,2BAA2B;AAC7B;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,wBAAwB;AAC1B;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,WAAW;EACX,gBAAgB;EAChB,WAAW;EACX,YAAY;EACZ,gBAAgB;EAChB,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,eAAe;EACf,UAAU;EACV,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,mBAAmB;EACnB,sBAAsB;EACtB,yBAAyB;EACzB,YAAY;EACZ,mDAAmD;AACrD;AACA;EACE,MAAM;EACN,OAAO;AACT;AACA;EACE,MAAM;EACN,QAAQ;EACR,qBAAqB;AACvB;AACA;EACE,QAAQ;EACR,SAAS;EACT,qBAAqB;AACvB;AACA;EACE,SAAS;EACT,OAAO;EACP,qBAAqB;AACvB;AACA;EACE,wBAAwB;EACxB,yCAAyC;AAC3C;AACA;EACE,eAAe;AACjB;AACA;EACE,UAAU;EACV,WAAW;AACb;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;EACV;IACE,gBAAgB;IAChB,YAAY;EACd;AACF;AACA;EACE;IACE,UAAU;EACZ;AACF;AACA;EACE;IACE,yBAAyB;EAC3B;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,4BAA4B;AAC9B;AACA;EACE;IACE,0BAA0B;EAC5B;AACF;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,kMAAkM;AACpM;AACA;EACE,qBAAqB;EACrB,cAAc;AAChB;AACA;;EAEE,qBAAqB;AACvB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,aAAa;EACb,WAAW;EACX,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,OAAO;EACP,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;AACZ;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,qBAAqB;EACrB,mBAAmB;AACrB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,kMAAkM;EAClM,iBAAiB;EACjB,kBAAkB;EAClB,qCAAqC;EACrC,mBAAmB;EACnB,oDAAoD;AACtD;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,cAAc;EACd,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,WAAW;EACX,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,kBAAkB;EAClB,2BAA2B;EAC3B,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,mBAAmB;EACnB,0BAA0B;EAC1B,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,cAAc;EACd,aAAa;EACb,WAAW;EACX,mBAAmB;EACnB,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,sBAAsB;EACtB,iCAAiC;AACnC;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,+BAA+B;AACjC;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;;;;EAIE,sBAAsB;AACxB;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,SAAS;AACX;AACA;EACE,QAAQ;EACR,WAAW;EACX,WAAW;EACX,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,QAAQ;AACV;AACA;EACE,cAAc;EACd,eAAe;EACf,oBAAoB;EACpB,gBAAgB;EAChB,SAAS;EACT,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,iBAAiB;EACjB,eAAe;AACjB;AACA;EACE,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,cAAc;EACd,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,kBAAkB;AACpB;AACA;EACE,cAAc;EACd,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,UAAU;EACV,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,YAAY;EACZ,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,kBAAkB;EAClB,cAAc;EACd,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,QAAQ;EACR,WAAW;EACX,kBAAkB;EAClB,UAAU;AACZ;AACA;;EAEE,wBAAwB;EACxB,WAAW;EACX,iBAAiB;AACnB;AACA;;EAEE,SAAS;AACX;AACA;;EAEE,UAAU;EACV,WAAW;EACX,iBAAiB;EACjB,gBAAgB;EAChB,gBAAgB;EAChB,uBAAuB;EACvB,SAAS;AACX;AACA;;EAEE,kBAAkB;EAClB,WAAW;EACX,WAAW;EACX,YAAY;EACZ,oBAAoB;EACpB,oBAAoB;EACpB,sBAAsB;AACxB;AACA;;EAEE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,WAAW;EACX,YAAY;EACZ,gCAAgC;EAChC,WAAW;AACb;AACA;;EAEE,YAAY;AACd;AACA;;EAEE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;AAClB;AACA;;EAEE,OAAO;AACT;AACA;EACE,eAAe;EACf,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,UAAU;EACV,SAAS;EACT,mBAAmB;AACrB;AACA;EACE,OAAO;AACT;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,wBAAwB;AAC1B;AACA;EACE,eAAe;AACjB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,OAAO;AACT;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,iBAAiB;EACjB,qCAAqC;EACrC,mBAAmB;EACnB,iBAAiB;EACjB,wBAAwB;EACxB,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,SAAS;EACT,qBAAqB;EACrB,QAAQ;EACR,WAAW;EACX,yBAAyB;EACzB,iCAAiC;EACjC,oCAAoC;EACpC,WAAW;AACb;AACA;EACE,OAAO;EACP,WAAW;AACb;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,MAAM;EACN,QAAQ;EACR,WAAW;EACX,cAAc;EACd,UAAU;EACV,yBAAyB;AAC3B;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,SAAS;EACT,cAAc;EACd,UAAU;EACV,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;AACjB;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,mBAAmB;EACnB,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,cAAc;EACd,yBAAyB;AAC3B;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,eAAe;AACjB;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;EAClB,cAAc;AAChB;AACA;;EAEE,UAAU;EACV,UAAU;AACZ;AACA;;EAEE,kBAAkB;EAClB,cAAc;AAChB;AACA;;EAEE,sBAAsB;AACxB;AACA;;EAEE,YAAY;AACd;AACA;;EAEE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,YAAY;EACZ,UAAU;AACZ;AACA;EACE,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,qBAAqB;EACrB,sBAAsB;EACtB,eAAe;EACf,YAAY;EACZ,iBAAiB;EACjB,sBAAsB;EACtB,qCAAqC;EACrC,SAAS;EACT,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,iBAAiB;AACnB;AACA;EACE,UAAU;EACV,wCAAwC;AAC1C;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;;EAEE,mBAAmB;EACnB,YAAY;AACd;AACA;;EAEE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,oBAAoB;EACpB,WAAW;EACX,eAAe;EACf,uBAAuB;AACzB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,WAAW;EACX,YAAY;EACZ,gCAAgC;AAClC;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,sBAAsB;EACtB,kBAAkB;EAClB,4CAA4C;EAC5C,gCAAgC;EAChC,WAAW;AACb;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,oBAAoB;EACpB,eAAe;AACjB;AACA;EACE,WAAW;EACX,YAAY;AACd;AACA;EACE,UAAU;EACV,cAAc;AAChB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,cAAc;AAChB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,UAAU;AACZ;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,oBAAoB;AACtB;AACA;EACE,8BAA8B;AAChC;AACA;EACE,8BAA8B;AAChC;AACA;EACE,eAAe;AACjB;AACA;;;;;;EAME,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;AACpB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,eAAe;AACjB;AACA;;;;;;EAME,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;AACA;EACE,iBAAiB;AACnB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,yBAAyB;EACzB,gBAAgB;AAClB;AACA;EACE,yBAAyB;EACzB,eAAe;EACf,gBAAgB;AAClB;AACA;;;;;;;;;;;;EAYE,+BAA+B;AACjC;AACA;;;EAGE,gCAAgC;AAClC;AACA;;;;;;;;;EASE,+BAA+B;AACjC;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;EAGE,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,SAAS;EACT,+BAA+B;EAC/B,WAAW;AACb;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,yBAAyB;EACzB,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,+BAA+B;AACjC;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,0BAA0B;EAC1B,yBAAyB;EACzB,iBAAiB;AACnB;AACA;;;;EAIE,kBAAkB;EAClB,kBAAkB;EAClB,yBAAyB;AAC3B;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,cAAc;EACd,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,0BAA0B;EAC1B,gBAAgB;EAChB,gBAAgB;EAChB,mBAAmB;EACnB,gCAAgC;EAChC,gCAAgC;AAClC;AACA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gCAAgC;EAChC,2BAA2B;AAC7B;AACA;EACE,8BAA8B;AAChC;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;EACnB,iCAAiC;AACnC;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,gCAAgC;AAClC;AACA;EACE,cAAc;AAChB;AACA;EACE,aAAa;EACb,eAAe;EACf,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,UAAU;EACV,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,sBAAsB;EACtB,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,oBAAoB;EACpB,sBAAsB;EACtB,mBAAmB;AACrB;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,6BAA6B;AAC/B;AACA;EACE,SAAS;AACX;AACA;EACE,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,aAAa;EACb,UAAU;EACV,oBAAoB;EACpB,mBAAmB;EACnB,eAAe;EACf,iCAAiC;AACnC;AACA;;;EAGE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,YAAY;EACZ,cAAc;EACd,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,gCAAgC;AAClC;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,gBAAgB;EAChB,sBAAsB;EACtB,kBAAkB;EAClB,oHAAoH;AACtH;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,SAAS;EACT,gBAAgB;AAClB;AACA;EACE,+BAA+B;EAC/B,kBAAkB;EAClB,gBAAgB;AAClB;AACA;;EAEE,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,8BAA8B;EAC9B,wBAAwB;EACxB,gBAAgB;EAChB,yBAAyB;EACzB,6BAA6B;AAC/B;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb;AACA;;EAEE,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;AACpB;AACA;;EAEE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,UAAU;EACV,eAAe;EACf,oBAAoB;EACpB,yBAAyB;EACzB,yBAAyB;AAC3B;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,eAAe;EACf,sBAAsB;EACtB,kBAAkB;EAClB,oBAAoB;EACpB,WAAW;EACX,sBAAsB;EACtB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,cAAc;EACd,iBAAiB;EACjB,gBAAgB;EAChB,yBAAyB;EACzB,kBAAkB;EAClB,aAAa;EACb,4BAA4B;EAC5B,wBAAwB;EACxB,oBAAoB;EACpB,iBAAiB;AACnB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;;EAGE,0BAA0B;AAC5B;AACA;;EAEE,kBAAkB;EAClB,wBAAwB;EACxB,mCAAmC;EACnC,WAAW;AACb;AACA;EACE,QAAQ;EACR,UAAU;EACV,SAAS;EACT,WAAW;AACb;AACA;EACE,QAAQ;EACR,WAAW;EACX,SAAS;EACT,UAAU;EACV,wBAAwB;AAC1B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,uBAAuB;EACvB,SAAS;EACT,kBAAkB;AACpB;AACA;;EAEE,aAAa;EACb,aAAa;AACf;AACA;EACE,oBAAoB;EACpB,iBAAiB;AACnB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,UAAU;EACV,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,mCAAmC;EACnC,2BAA2B;EAC3B,UAAU;EACV,gBAAgB;AAClB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,YAAY;EACZ,WAAW;EACX,2BAA2B;EAC3B,2BAA2B;EAC3B,WAAW;EACX,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,YAAY;EACZ,OAAO;EACP,WAAW;EACX,4BAA4B;EAC5B,2BAA2B;EAC3B,WAAW;EACX,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;EAClB,MAAM;EACN,SAAS;EACT,UAAU;EACV,WAAW;EACX,2BAA2B;EAC3B,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,OAAO;AACT;AACA;EACE,QAAQ;AACV;AACA;EACE,kBAAkB;AACpB;AACA;EACE,qDAAqD;AACvD;AACA;;EAEE,qDAAqD;AACvD;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sDAAsD;AACxD;AACA;;EAEE,sDAAsD;AACxD;AACA;EACE,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,oBAAoB;EACpB,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,6BAA6B;EAC7B,YAAY;AACd;AACA;EACE,+BAA+B;AACjC;AACA;EACE,WAAW;EACX,qCAAqC;EACrC,kBAAkB;AACpB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,oCAAoC;AACtC;AACA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,2BAA2B;EAC7B;AACF;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,mBAAmB;AACrB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;EACzB,0BAA0B;AAC5B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,2BAA2B;EAC3B,4BAA4B;AAC9B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,8BAA8B;AAChC;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,oBAAoB;AACtB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;;;;EAIE,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,eAAe;EACf,eAAe;AACjB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,SAAS;AACX;AACA;EACE,QAAQ;AACV;AACA;EACE,QAAQ;AACV;AACA;EACE,QAAQ;AACV;AACA;EACE,QAAQ;AACV;AACA;;;;EAIE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;;EAEE,sBAAsB;AACxB;AACA;;;;EAIE,kBAAkB;AACpB;AACA;;;;EAIE,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,gCAAgC;EAChC,WAAW;AACb;AACA;;;;EAIE,WAAW;AACb;AACA;;;;EAIE,6CAA6C;AAC/C;AACA;;;;;;;;EAQE,MAAM;EACN,SAAS;EACT,WAAW;AACb;AACA;;;;EAIE,OAAO;EACP,qDAAqD;AACvD;AACA;;;;EAIE,QAAQ;EACR,sDAAsD;AACxD;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,UAAU;AACZ;AACA;;EAEE,SAAS;AACX;AACA;;EAEE,SAAS;AACX;AACA;;EAEE,QAAQ;EACR,gBAAgB;EAChB,gBAAgB;AAClB;AACA;;EAEE,MAAM;AACR;AACA;;EAEE,MAAM;AACR;AACA;;EAEE,QAAQ;AACV;AACA;;;;EAIE,sBAAsB;EACtB,eAAe;AACjB;AACA;;;;EAIE,iBAAiB;EACjB,kBAAkB;AACpB;AACA;;;;EAIE,kBAAkB;AACpB;AACA;;;;EAIE,sBAAsB;AACxB;AACA;;;;;;;;EAQE,QAAQ;EACR,OAAO;EACP,YAAY;AACd;AACA;;;;EAIE,MAAM;EACN,qDAAqD;AACvD;AACA;;;;EAIE,SAAS;EACT,sDAAsD;AACxD;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,UAAU;AACZ;AACA;;;;EAIE,iCAAiC;AACnC;AACA;;;;;;;;EAQE,cAAc;EACd,sBAAsB;AACxB;AACA;;EAEE,QAAQ;AACV;AACA;;EAEE,iBAAiB;EACjB,8BAA8B;AAChC;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,QAAQ;AACV;AACA;;EAEE,OAAO;AACT;AACA;;EAEE,QAAQ;EACR,kBAAkB;EAClB,+BAA+B;AACjC;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,YAAY;EACZ,aAAa;EACb,aAAa;EACb,cAAc;AAChB;AACA;EACE,aAAa;AACf;AACA;EACE,iBAAiB;EACjB,SAAS;EACT,cAAc;EACd,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;EAChB,qBAAqB;EACrB,sBAAsB;EACtB,4BAA4B;EAC5B,kBAAkB;EAClB,aAAa;EACb,oHAAoH;AACtH;AACA;EACE,gBAAgB;EAChB,SAAS;EACT,iBAAiB;EACjB,gBAAgB;EAChB,0BAA0B;EAC1B,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,0BAA0B;EAC1B,uBAAuB;EACvB,mBAAmB;AACrB;AACA;;EAEE,SAAS;EACT,iBAAiB;EACjB,mBAAmB;EACnB,yBAAyB;EACzB,yDAAyD;AAC3D;AACA;;EAEE,cAAc;EACd,gBAAgB;AAClB;AACA;;EAEE,kBAAkB;AACpB;AACA;;;;EAIE,gBAAgB;AAClB;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,yBAAyB;AAC3B;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,sBAAsB;AACxB;AACA;;;;EAIE,eAAe;AACjB;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,wBAAwB;AAC1B;AACA;;EAEE,0BAA0B;AAC5B;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,aAAa;EACb,gBAAgB;AAClB;AACA;;EAEE,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,UAAU;EACV,mBAAmB;EACnB,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;;;;EAIE,kBAAkB;EAClB,UAAU;EACV,UAAU;EACV,wBAAwB;EACxB,WAAW;EACX,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;EAClB,aAAa;EACb,0BAA0B;AAC5B;AACA;;EAEE,aAAa;EACb,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;;EAEE,kBAAkB;EAClB,iBAAiB;EACjB,uBAAuB;EACvB,SAAS;AACX;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,OAAO;EACP,WAAW;EACX,2BAA2B;EAC3B,WAAW;AACb;AACA;;EAEE,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,yBAAyB;EACzB,0BAA0B;EAC1B,aAAa;EACb,eAAe;EACf,yDAAyD;AAC3D;AACA;;EAEE,cAAc;AAChB;AACA;;;;EAIE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,eAAe;EACf,eAAe;EACf,uBAAuB;EACvB,SAAS;EACT,aAAa;EACb,eAAe;AACjB;AACA;;;;EAIE,cAAc;AAChB;AACA;EACE,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,uBAAuB;EACvB,YAAY;EACZ,aAAa;EACb,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;EACd,oCAAoC;AACtC;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;;;EAIE,0BAA0B;AAC5B;AACA;EACE,SAAS;AACX;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,aAAa;EACb,WAAW;AACb;AACA;EACE,UAAU;EACV,YAAY;EACZ,aAAa;AACf;AACA;EACE,uBAAuB;AACzB;AACA;EACE,UAAU;EACV,WAAW;EACX,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;EACrB,YAAY;EACZ,iBAAiB;EACjB,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,mBAAmB;EACnB,mBAAmB;EACnB,yBAAyB;EACzB,kBAAkB;EAClB,UAAU;EACV,oBAAoB;AACtB;AACA;;;EAGE,0BAA0B;AAC5B;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,0BAA0B;EAC1B,eAAe;EACf,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;;;;;EAKE,WAAW;AACb;AACA;EACE,6BAA6B;EAC7B,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;;EAEE,WAAW;AACb;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,qBAAqB;AACvB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,iBAAiB;EACjB,cAAc;AAChB;AACA;;EAEE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,6BAA6B;EAC7B,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,oBAAoB;EACpB,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,SAAS;EACT,yBAAyB;EACzB,8BAA8B;AAChC;AACA;EACE,eAAe;EACf,6BAA6B;AAC/B;AACA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,sBAAsB;EACtB,6BAA6B;EAC7B,oBAAoB;AACtB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,cAAc;EACd,qBAAqB;AACvB;AACA;EACE,0BAA0B;EAC1B,iCAAiC;AACnC;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,SAAS;EACT,WAAW;EACX,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,cAAc;EACd,kBAAkB;EAClB,SAAS;EACT,gBAAgB;EAChB,gCAAgC;AAClC;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,kBAAkB;EAClB,sBAAsB;AACxB;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;;;;;;;;;EASE,SAAS;AACX;AACA;;;EAGE,iBAAiB;AACnB;AACA;;;EAGE,gBAAgB;AAClB;AACA;;;EAGE,qBAAqB;EACrB,uBAAuB;EACvB,gBAAgB;AAClB;AACA;;;EAGE,uBAAuB;EACvB,SAAS;EACT,iBAAiB;AACnB;AACA;;;EAGE,4BAA4B;AAC9B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,cAAc;EACd,yBAAyB;EACzB,+BAA+B;AACjC;AACA;EACE,aAAa;AACf;AACA;EACE,SAAS;EACT,cAAc;EACd,yBAAyB;EACzB,+BAA+B;AACjC;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;EACV,UAAU;EACV,+BAA+B;EAC/B,iBAAiB;AACnB;AACA;EACE,UAAU;EACV,UAAU;EACV,+BAA+B;AACjC;AACA;EACE,kBAAkB;AACpB;AACA;;;;;;;;;EASE,UAAU;EACV,UAAU;AACZ;AACA;;;EAGE,kBAAkB;EAClB,cAAc;AAChB;AACA;;;EAGE,iBAAiB;EACjB,cAAc;AAChB;AACA;;;EAGE,sBAAsB;EACtB,UAAU;EACV,iBAAiB;AACnB;AACA;;;EAGE,gBAAgB;AAClB;AACA;;;EAGE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,gCAAgC;EAChC,iBAAiB;AACnB;AACA;EACE,gCAAgC;EAChC,iBAAiB;AACnB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,uBAAuB;EACvB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,aAAa;EACb,cAAc;EACd,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;EAGE,iBAAiB;AACnB;AACA;;;EAGE,gBAAgB;AAClB;AACA;;;EAGE,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,gBAAgB;EAChB,WAAW;EACX,gBAAgB;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,qCAAqC;EACrC,kBAAkB;EAClB,oHAAoH;AACtH;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,oBAAoB;EACpB,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,cAAc;EACd,UAAU;EACV,WAAW;EACX,YAAY;EACZ,qCAAqC;EACrC,WAAW;EACX,oBAAoB;AACtB;AACA;;;EAGE,qBAAqB;AACvB;AACA;;;EAGE,2CAA2C;EAC3C,kDAAkD;AACpD;AACA;EACE,SAAS;EACT,2BAA2B;AAC7B;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;;;EAGE,mBAAmB;AACrB;AACA;;;EAGE,4CAA4C;EAC5C,iDAAiD;AACnD;AACA;EACE,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,QAAQ;AACV;AACA;EACE,WAAW;AACb;AACA;;;EAGE,oBAAoB;AACtB;AACA;;;EAGE,4CAA4C;EAC5C,kDAAkD;AACpD;AACA;EACE,QAAQ;EACR,2BAA2B;AAC7B;AACA;EACE,QAAQ;AACV;AACA;EACE,WAAW;AACb;AACA;;;EAGE,kBAAkB;AACpB;AACA;;;EAGE,6CAA6C;EAC7C,iDAAiD;AACnD;AACA;EACE,SAAS;EACT,2BAA2B;AAC7B;AACA;EACE,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;EACb,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;AACA;EACE,SAAS;EACT,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gCAAgC;AAClC;AACA;EACE,SAAS;AACX;AACA;EACE,kBAAkB;AACpB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,YAAY;EACZ,aAAa;EACb,yBAAyB;EACzB,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,YAAY;EACZ,WAAW;EACX,0BAA0B;EAC1B,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,oBAAoB;AACtB;AACA;EACE,aAAa;EACb,UAAU;EACV,mBAAmB;EACnB,YAAY;EACZ,qBAAqB;EACrB,0BAA0B;EAC1B,gBAAgB;EAChB,gCAAgC;EAChC,0BAA0B;AAC5B;AACA;EACE,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;EACV,gBAAgB;EAChB,mBAAmB;EACnB,iBAAiB;EACjB,uBAAuB;AACzB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,UAAU;EACV,sBAAsB;EACtB,gBAAgB;EAChB,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,aAAa;AACf;AACA;EACE,UAAU;EACV,SAAS;EACT,UAAU;EACV,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,oBAAoB;AACtB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;EACV,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,qBAAqB;EACrB,aAAa;EACb,eAAe;EACf,sBAAsB;EACtB,kBAAkB;EAClB,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,WAAW;EACX,YAAY;EACZ,UAAU;EACV,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,yBAAyB;EACzB,eAAe;AACjB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,uBAAuB;EACvB,eAAe;AACjB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,6BAA6B;AAC/B;AACA;EACE,UAAU;EACV,WAAW;EACX,cAAc;EACd,0BAA0B;EAC1B,kBAAkB;AACpB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,aAAa;EACb,UAAU;EACV,sBAAsB;EACtB,kBAAkB;EAClB,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,gBAAgB;AAClB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,QAAQ;EACR,UAAU;AACZ;AACA;EACE,oBAAoB;EACpB,uBAAuB;EACvB,uBAAuB;AACzB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,WAAW;EACX,OAAO;EACP,iCAAiC;EACjC,WAAW;EACX,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;EACE,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,WAAW;EACX,uBAAuB;AACzB;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;EACX,uBAAuB;AACzB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,mBAAmB;EACnB,aAAa;EACb,eAAe;AACjB;AACA;;;EAGE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,kBAAkB;EAClB,8CAA8C;EAC9C,8BAA8B;EAC9B,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,cAAc;EACd,WAAW;EACX,YAAY;EACZ,cAAc;EACd,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,uEAAuE;EACvE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,UAAU;EACV,WAAW;EACX,YAAY;EACZ,eAAe;EACf,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,6DAA6D;EAC7D,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iCAAiC;EACjC,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,gCAAgC;AAClC;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,oBAAoB;EACpB,qBAAqB;EACrB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,QAAQ;EACR,SAAS;EACT,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,SAAS;EACT,yCAAyC;EACzC,UAAU;EACV,YAAY;AACd;AACA;EACE,qCAAqC;EACrC,iCAAiC;AACnC;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,gBAAgB;EAChB,kBAAkB;EAClB,iCAAiC;AACnC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,UAAU;AACZ;AACA;EACE,aAAa;EACb,uBAAuB;EACvB,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,mBAAmB;EACnB,WAAW;EACX,SAAS;EACT,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,qBAAqB;EACrB,eAAe;EACf,wBAAwB;AAC1B;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,eAAe;AACjB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,qBAAqB;EACrB,WAAW;EACX,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,YAAY;EACZ,iBAAiB;EACjB,8BAA8B;EAC9B,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gCAAgC;EAChC,YAAY;AACd;AACA;EACE,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,gBAAgB;EAChB,SAAS;EACT,cAAc;EACd,cAAc;EACd,iBAAiB;EACjB,uBAAuB;EACvB,kBAAkB;EAClB,eAAe;EACf,8DAA8D;AAChE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW;EACX,6BAA6B;EAC7B,yBAAyB;EACzB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,WAAW;EACX,YAAY;EACZ,+BAA+B;EAC/B,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;AAChB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,WAAW;EACX,WAAW;EACX,kBAAkB;EAClB,8BAA8B;AAChC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,kBAAkB;EAClB,UAAU;EACV,cAAc;EACd,mBAAmB;EACnB,aAAa;EACb,eAAe;AACjB;AACA;;;EAGE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,WAAW;EACX,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;EAClB,kBAAkB;EAClB,8CAA8C;EAC9C,8BAA8B;EAC9B,WAAW;AACb;AACA;;EAEE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,cAAc;EACd,WAAW;EACX,YAAY;EACZ,cAAc;EACd,sBAAsB;EACtB,yBAAyB;EACzB,kBAAkB;EAClB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,uEAAuE;EACvE,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,QAAQ;EACR,SAAS;EACT,OAAO;EACP,UAAU;EACV,WAAW;EACX,YAAY;EACZ,eAAe;EACf,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,sBAAsB;EACtB,aAAa;EACb,cAAc;EACd,uDAAuD;EACvD,UAAU;EACV,6DAA6D;EAC7D,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,iCAAiC;EACjC,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,yBAAyB;EACzB,gCAAgC;AAClC;AACA;EACE,qBAAqB;EACrB,yBAAyB;EACzB,oBAAoB;AACtB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,oBAAoB;EACpB,qBAAqB;EACrB,kBAAkB;EAClB,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,QAAQ;EACR,gBAAgB;EAChB,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,qBAAqB;AACvB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,QAAQ;EACR,SAAS;EACT,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,SAAS;EACT,yCAAyC;EACzC,UAAU;EACV,YAAY;AACd;AACA;EACE,qCAAqC;EACrC,iCAAiC;AACnC;AACA;EACE,cAAc;AAChB;AACA;EACE,eAAe;EACf,gBAAgB;AAClB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,gBAAgB;AAClB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;AACZ;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,gBAAgB;EAChB,kBAAkB;EAClB,iCAAiC;AACnC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,oBAAoB;AACtB;AACA;EACE,UAAU;AACZ;AACA;EACE,aAAa;EACb,uBAAuB;EACvB,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,gBAAgB;AAClB;AACA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,mBAAmB;EACnB,WAAW;EACX,SAAS;EACT,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,qBAAqB;EACrB,eAAe;EACf,wBAAwB;AAC1B;AACA;;EAEE,0BAA0B;AAC5B;AACA;EACE,eAAe;AACjB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,qBAAqB;EACrB,WAAW;EACX,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,YAAY;EACZ,iBAAiB;EACjB,8BAA8B;EAC9B,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,gCAAgC;EAChC,YAAY;AACd;AACA;EACE,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,gBAAgB;EAChB,SAAS;EACT,cAAc;EACd,cAAc;EACd,iBAAiB;EACjB,uBAAuB;EACvB,kBAAkB;EAClB,eAAe;EACf,8DAA8D;AAChE;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,yBAAyB;EACzB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,UAAU;EACV,WAAW;EACX,6BAA6B;EAC7B,yBAAyB;EACzB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,kBAAkB;EAClB,YAAY;AACd;AACA;EACE,kBAAkB;EAClB,MAAM;EACN,WAAW;EACX,YAAY;EACZ,+BAA+B;EAC/B,WAAW;AACb;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,qBAAqB;AACvB;AACA;EACE,0BAA0B;EAC1B,yBAAyB;AAC3B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,0BAA0B;EAC1B,mBAAmB;EACnB,iBAAiB;AACnB;AACA;;EAEE,kBAAkB;AACpB;AACA;;EAEE,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,iBAAiB;AACnB;AACA;;EAEE,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;AACA;;EAEE,oBAAoB;EACpB,0BAA0B;EAC1B,gBAAgB;EAChB,eAAe;EACf,gBAAgB;AAClB;AACA;;;;;EAKE,iBAAiB;AACnB;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CE,iBAAiB;AACnB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,cAAc;EACd,aAAa;EACb,eAAe;EACf,sBAAsB;EACtB,qBAAqB;AACvB;AACA;;;;EAIE,cAAc;AAChB;AACA;;EAEE,cAAc;AAChB;AACA;;;;EAIE,qBAAqB;AACvB;AACA;;;;EAIE,0BAA0B;EAC1B,mBAAmB;AACrB;AACA;;;;;;;;EAQE,0BAA0B;AAC5B;AACA;;;;EAIE,oBAAoB;AACtB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,cAAc;EACd,oCAAoC;EACpC,0CAA0C;EAC1C,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,2BAA2B;EAC3B,cAAc;EACd,qCAAqC;EACrC,0CAA0C;EAC1C,wBAAwB;EACxB,kBAAkB;AACpB;AACA;EACE,UAAU;EACV,yBAAyB;AAC3B;AACA;;EAEE,0BAA0B;EAC1B,8BAA8B;AAChC;AACA;;EAEE,6BAA6B;AAC/B;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,cAAc;EACd,qBAAqB;EACrB,aAAa;EACb,eAAe;EACf,sBAAsB;EACtB,gBAAgB;AAClB;AACA;;;;;;EAME,cAAc;AAChB;AACA;;;EAGE,cAAc;AAChB;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,oCAAoC;AACtC;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,WAAW;EACX,0BAA0B;EAC1B,oBAAoB;AACtB;AACA;EACE,qBAAqB;AACvB;AACA;;EAEE,iBAAiB;EACjB,UAAU;AACZ;AACA;;EAEE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,wBAAwB;AAC1B;AACA;;EAEE,aAAa;AACf;AACA;EACE,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,oCAAoC;EACpC,0CAA0C;EAC1C,kBAAkB;AACpB;AACA;EACE,eAAe;EACf,SAAS;EACT,UAAU;EACV,kBAAkB;EAClB,oBAAoB;EACpB,uBAAuB;EACvB,SAAS;AACX;AACA;EACE,oBAAoB;EACpB,+CAA+C;EAC/C,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;;EAEE,sBAAsB;AACxB;AACA;EACE,oBAAoB;EACpB,gBAAgB;EAChB,qBAAqB;EACrB,+BAA+B;EAC/B,4BAA4B;AAC9B;AACA;EACE,cAAc;AAChB;AACA;;;EAGE,iBAAiB;EACjB,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;EACZ,UAAU;AACZ;AACA;EACE,WAAW;EACX,UAAU;AACZ;AACA;;EAEE,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,mBAAmB;EACnB,gBAAgB;EAChB,6BAA6B;EAC7B,UAAU;AACZ;AACA;EACE,SAAS;AACX;AACA;EACE,cAAc;EACd,WAAW;EACX,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,YAAY;EACZ,aAAa;EACb,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,yBAAyB;EACzB,0BAA0B;EAC1B,kBAAkB;EAClB,eAAe;EACf,6BAA6B;AAC/B;AACA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,YAAY;EACZ,kBAAkB;AACpB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;EACnB,0BAA0B;EAC1B,kBAAkB;EAClB,eAAe;EACf,6BAA6B;AAC/B;AACA;EACE,eAAe;AACjB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,YAAY;AACd;AACA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,eAAe;AACjB;AACA;EACE,eAAe;EACf,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,0BAA0B;EAC1B,eAAe;EACf,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,qBAAqB;EACrB,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,SAAS;EACT,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,0BAA0B;EAC1B,gBAAgB;EAChB,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;AACb;AACA;EACE,cAAc;EACd,WAAW;EACX,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,WAAW;EACX,kBAAkB;EAClB,gBAAgB;EAChB,mBAAmB;EACnB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,kBAAkB;EAClB,QAAQ;AACV;AACA;EACE,UAAU;AACZ;AACA;EACE,YAAY;EACZ,cAAc;AAChB;AACA;EACE,SAAS;EACT,cAAc;AAChB;AACA;;EAEE,UAAU;AACZ;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,YAAY;EACZ,cAAc;EACd,iCAAiC;AACnC;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;AACd;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,0BAA0B;EAC1B,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,0BAA0B;EAC1B,eAAe;EACf,cAAc;EACd,eAAe;EACf,UAAU;EACV,oBAAoB;AACtB;AACA;EACE,0BAA0B;AAC5B;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,UAAU;AACZ;AACA;EACE,UAAU;AACZ;AACA;;;EAGE,cAAc;AAChB;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,WAAW;EACX,kBAAkB;EAClB,eAAe;EACf,cAAc;AAChB;AACA;;EAEE,kBAAkB;EAClB,YAAY;EACZ,YAAY;EACZ,yBAAyB;EACzB,kBAAkB;AACpB;AACA;;EAEE,uBAAuB;AACzB;AACA;;EAEE,qBAAqB;AACvB;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,uBAAuB;AACzB;AACA;;EAEE,oBAAoB;AACtB;AACA;;EAEE,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,YAAY;AACd;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,aAAa;AACf;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,eAAe;EACf,gCAAgC;AAClC;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,gBAAgB;AAClB;AACA;;EAEE,qBAAqB;EACrB,sBAAsB;EACtB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;EACvB,oBAAoB;AACtB;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,YAAY;EACZ,wBAAwB;EACxB,aAAa;EACb,kBAAkB;AACpB;AACA;;EAEE,kBAAkB;EAClB,QAAQ;EACR,UAAU;EACV,cAAc;EACd,UAAU;AACZ;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,mBAAmB;AACrB;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;EACZ,SAAS;AACX;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,oCAAoC;EACpC,UAAU;EACV,oBAAoB;EACpB,YAAY;AACd;AACA;EACE,UAAU;AACZ;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,WAAW;EACX,mBAAmB;EACnB,gCAAgC;EAChC,UAAU;EACV,oBAAoB;AACtB;AACA;;;EAGE,WAAW;EACX,WAAW;EACX,aAAa;EACb,gCAAgC;EAChC,eAAe;EACf,eAAe;EACf,oBAAoB;AACtB;AACA;;;EAGE,WAAW;AACb;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,gBAAgB;EAChB,cAAc;EACd,WAAW;EACX,YAAY;EACZ,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,eAAe;EACf,UAAU;EACV,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,YAAY;AACd;AACA;;;EAGE,aAAa;AACf;AACA;EACE,YAAY;EACZ,wBAAwB;EACxB,eAAe;AACjB;AACA;;EAEE,qCAAqC;AACvC;AACA;;EAEE,cAAc;EACd,QAAQ;EACR,SAAS;EACT,WAAW;AACb;AACA;;EAEE,cAAc;EACd,UAAU;AACZ;AACA;;EAEE,aAAa;EACb,mBAAmB;AACrB;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,UAAU;EACV,cAAc;AAChB;AACA;;EAEE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;;;EAGE,wBAAwB;EACxB,yDAAyD;AAC3D;AACA;;EAEE,qCAAqC;AACvC;AACA;EACE,sCAAsC;AACxC;AACA;EACE;IACE,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;EACZ;AACF;AACA;EACE;IACE,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;EACZ;AACF;AACA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,WAAW;EACX,OAAO;AACT;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,SAAS;AACX;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,eAAe;AACjB;AACA;;EAEE,UAAU;AACZ;AACA;;EAEE,UAAU;EACV,UAAU;AACZ;AACA;;EAEE,UAAU;EACV,UAAU;EACV,+BAA+B;AACjC;AACA;;EAEE,iBAAiB;EACjB,mBAAmB;EACnB,iBAAiB;AACnB;AACA;;EAEE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;;EAEE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;;EAEE,gBAAgB;EAChB,eAAe;AACjB;AACA;;EAEE,WAAW;EACX,SAAS;AACX;AACA;EACE,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,UAAU;EACV,+BAA+B;AACjC;AACA;EACE,eAAe;EACf,UAAU;AACZ","file":"main.less","sourcesContent":["/*** GLOBAL CSS ***/\n/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n[class^=ant-]::-ms-clear,\n[class*= ant-]::-ms-clear,\n[class^=ant-] input::-ms-clear,\n[class*= ant-] input::-ms-clear,\n[class^=ant-] input::-ms-reveal,\n[class*= ant-] input::-ms-reveal {\n display: none;\n}\n[class^=ant-],\n[class*= ant-],\n[class^=ant-] *,\n[class*= ant-] *,\n[class^=ant-] *::before,\n[class*= ant-] *::before,\n[class^=ant-] *::after,\n[class*= ant-] *::after {\n box-sizing: border-box;\n}\n/* stylelint-disable at-rule-no-unknown */\nhtml,\nbody {\n width: 100%;\n height: 100%;\n}\ninput::-ms-clear,\ninput::-ms-reveal {\n display: none;\n}\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n@-ms-viewport {\n width: device-width;\n}\nbody {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n font-variant: tabular-nums;\n line-height: 1.5715;\n background-color: #fff;\n font-feature-settings: 'tnum';\n}\n[tabindex='-1']:focus {\n outline: none !important;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-top: 0;\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\np {\n margin-top: 0;\n margin-bottom: 1em;\n}\nabbr[title],\nabbr[data-original-title] {\n text-decoration: underline;\n text-decoration: underline dotted;\n border-bottom: 0;\n cursor: help;\n}\naddress {\n margin-bottom: 1em;\n font-style: normal;\n line-height: inherit;\n}\ninput[type='text'],\ninput[type='password'],\ninput[type='number'],\ntextarea {\n -webkit-appearance: none;\n}\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1em;\n}\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\ndt {\n font-weight: 500;\n}\ndd {\n margin-bottom: 0.5em;\n margin-left: 0;\n}\nblockquote {\n margin: 0 0 1em;\n}\ndfn {\n font-style: italic;\n}\nb,\nstrong {\n font-weight: bolder;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\na {\n color: #5b5ce1;\n text-decoration: none;\n background-color: transparent;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n -webkit-text-decoration-skip: objects;\n}\na:hover {\n color: #8588ed;\n}\na:active {\n color: #4541ba;\n}\na:active,\na:hover {\n text-decoration: none;\n outline: 0;\n}\na:focus {\n text-decoration: none;\n outline: 0;\n}\na[disabled] {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\npre,\ncode,\nkbd,\nsamp {\n font-size: 1em;\n font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;\n}\npre {\n margin-top: 0;\n margin-bottom: 1em;\n overflow: auto;\n}\nfigure {\n margin: 0 0 1em;\n}\nimg {\n vertical-align: middle;\n border-style: none;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\na,\narea,\nbutton,\n[role='button'],\ninput:not([type='range']),\nlabel,\nselect,\nsummary,\ntextarea {\n touch-action: manipulation;\n}\ntable {\n border-collapse: collapse;\n}\ncaption {\n padding-top: 0.75em;\n padding-bottom: 0.3em;\n color: rgba(0, 0, 0, 0.45);\n text-align: left;\n caption-side: bottom;\n}\nth {\n text-align: inherit;\n}\ninput,\nbutton,\nselect,\noptgroup,\ntextarea {\n margin: 0;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\nbutton,\ninput {\n overflow: visible;\n}\nbutton,\nselect {\n text-transform: none;\n}\nbutton,\nhtml [type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\nbutton::-moz-focus-inner,\n[type='button']::-moz-focus-inner,\n[type='reset']::-moz-focus-inner,\n[type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\ninput[type='radio'],\ninput[type='checkbox'] {\n box-sizing: border-box;\n padding: 0;\n}\ninput[type='date'],\ninput[type='time'],\ninput[type='datetime-local'],\ninput[type='month'] {\n -webkit-appearance: listbox;\n}\ntextarea {\n overflow: auto;\n resize: vertical;\n}\nfieldset {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n margin-bottom: 0.5em;\n padding: 0;\n color: inherit;\n font-size: 1.5em;\n line-height: inherit;\n white-space: normal;\n}\nprogress {\n vertical-align: baseline;\n}\n[type='number']::-webkit-inner-spin-button,\n[type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n[type='search'] {\n outline-offset: -2px;\n -webkit-appearance: none;\n}\n[type='search']::-webkit-search-cancel-button,\n[type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n}\noutput {\n display: inline-block;\n}\nsummary {\n display: list-item;\n}\ntemplate {\n display: none;\n}\n[hidden] {\n display: none !important;\n}\nmark {\n padding: 0.2em;\n background-color: #feffe6;\n}\n::selection {\n color: #fff;\n background: #5b5ce1;\n}\n.clearfix::before {\n display: table;\n content: '';\n}\n.clearfix::after {\n display: table;\n clear: both;\n content: '';\n}\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.anticon > * {\n line-height: 1;\n}\n.anticon svg {\n display: inline-block;\n}\n.anticon::before {\n display: none;\n}\n.anticon .anticon-icon {\n display: block;\n}\n.anticon[tabindex] {\n cursor: pointer;\n}\n.anticon-spin::before {\n display: inline-block;\n animation: loadingCircle 1s infinite linear;\n}\n.anticon-spin {\n display: inline-block;\n animation: loadingCircle 1s infinite linear;\n}\n.ant-fade-enter,\n.ant-fade-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-fade-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-fade-enter.ant-fade-enter-active,\n.ant-fade-appear.ant-fade-appear-active {\n animation-name: antFadeIn;\n animation-play-state: running;\n}\n.ant-fade-leave.ant-fade-leave-active {\n animation-name: antFadeOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-fade-enter,\n.ant-fade-appear {\n opacity: 0;\n animation-timing-function: linear;\n}\n.ant-fade-leave {\n animation-timing-function: linear;\n}\n@keyframes antFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes antFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n.ant-move-up-enter,\n.ant-move-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-up-enter.ant-move-up-enter-active,\n.ant-move-up-appear.ant-move-up-appear-active {\n animation-name: antMoveUpIn;\n animation-play-state: running;\n}\n.ant-move-up-leave.ant-move-up-leave-active {\n animation-name: antMoveUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-up-enter,\n.ant-move-up-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-up-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-down-enter,\n.ant-move-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-down-enter.ant-move-down-enter-active,\n.ant-move-down-appear.ant-move-down-appear-active {\n animation-name: antMoveDownIn;\n animation-play-state: running;\n}\n.ant-move-down-leave.ant-move-down-leave-active {\n animation-name: antMoveDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-down-enter,\n.ant-move-down-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-down-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-left-enter,\n.ant-move-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-left-enter.ant-move-left-enter-active,\n.ant-move-left-appear.ant-move-left-appear-active {\n animation-name: antMoveLeftIn;\n animation-play-state: running;\n}\n.ant-move-left-leave.ant-move-left-leave-active {\n animation-name: antMoveLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-left-enter,\n.ant-move-left-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-left-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n.ant-move-right-enter,\n.ant-move-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-move-right-enter.ant-move-right-enter-active,\n.ant-move-right-appear.ant-move-right-appear-active {\n animation-name: antMoveRightIn;\n animation-play-state: running;\n}\n.ant-move-right-leave.ant-move-right-leave-active {\n animation-name: antMoveRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-move-right-enter,\n.ant-move-right-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-move-right-leave {\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n}\n@keyframes antMoveDownIn {\n 0% {\n transform: translateY(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveDownOut {\n 0% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateY(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveLeftIn {\n 0% {\n transform: translateX(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveLeftOut {\n 0% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateX(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveRightIn {\n 0% {\n transform: translateX(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveRightOut {\n 0% {\n transform: translateX(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateX(100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes antMoveUpIn {\n 0% {\n transform: translateY(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n 100% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n}\n@keyframes antMoveUpOut {\n 0% {\n transform: translateY(0%);\n transform-origin: 0 0;\n opacity: 1;\n }\n 100% {\n transform: translateY(-100%);\n transform-origin: 0 0;\n opacity: 0;\n }\n}\n@keyframes loadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n[ant-click-animating='true'],\n[ant-click-animating-without-extra-node='true'] {\n position: relative;\n}\nhtml {\n --antd-wave-shadow-color: #5b5ce1;\n --scroll-bar: 0;\n}\n[ant-click-animating-without-extra-node='true']::after,\n.ant-click-animating-node {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n border-radius: inherit;\n box-shadow: 0 0 0 0 #5b5ce1;\n box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);\n opacity: 0.2;\n animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-fill-mode: forwards;\n content: '';\n pointer-events: none;\n}\n@keyframes waveEffect {\n 100% {\n box-shadow: 0 0 0 #5b5ce1;\n box-shadow: 0 0 0 6px var(--antd-wave-shadow-color);\n }\n}\n@keyframes fadeEffect {\n 100% {\n opacity: 0;\n }\n}\n.ant-slide-up-enter,\n.ant-slide-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-up-enter.ant-slide-up-enter-active,\n.ant-slide-up-appear.ant-slide-up-appear-active {\n animation-name: antSlideUpIn;\n animation-play-state: running;\n}\n.ant-slide-up-leave.ant-slide-up-leave-active {\n animation-name: antSlideUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-up-enter,\n.ant-slide-up-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-up-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-down-enter,\n.ant-slide-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-down-enter.ant-slide-down-enter-active,\n.ant-slide-down-appear.ant-slide-down-appear-active {\n animation-name: antSlideDownIn;\n animation-play-state: running;\n}\n.ant-slide-down-leave.ant-slide-down-leave-active {\n animation-name: antSlideDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-down-enter,\n.ant-slide-down-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-left-enter,\n.ant-slide-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-left-enter.ant-slide-left-enter-active,\n.ant-slide-left-appear.ant-slide-left-appear-active {\n animation-name: antSlideLeftIn;\n animation-play-state: running;\n}\n.ant-slide-left-leave.ant-slide-left-leave-active {\n animation-name: antSlideLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-left-enter,\n.ant-slide-left-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-left-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n.ant-slide-right-enter,\n.ant-slide-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-slide-right-enter.ant-slide-right-enter-active,\n.ant-slide-right-appear.ant-slide-right-appear-active {\n animation-name: antSlideRightIn;\n animation-play-state: running;\n}\n.ant-slide-right-leave.ant-slide-right-leave-active {\n animation-name: antSlideRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-slide-right-enter,\n.ant-slide-right-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.ant-slide-right-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n@keyframes antSlideUpIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideUpOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n}\n@keyframes antSlideDownIn {\n 0% {\n transform: scaleY(0.8);\n transform-origin: 100% 100%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 100% 100%;\n opacity: 1;\n }\n}\n@keyframes antSlideDownOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 100% 100%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0.8);\n transform-origin: 100% 100%;\n opacity: 0;\n }\n}\n@keyframes antSlideLeftIn {\n 0% {\n transform: scaleX(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleX(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideLeftOut {\n 0% {\n transform: scaleX(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleX(0.8);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n}\n@keyframes antSlideRightIn {\n 0% {\n transform: scaleX(0.8);\n transform-origin: 100% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleX(1);\n transform-origin: 100% 0%;\n opacity: 1;\n }\n}\n@keyframes antSlideRightOut {\n 0% {\n transform: scaleX(1);\n transform-origin: 100% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleX(0.8);\n transform-origin: 100% 0%;\n opacity: 0;\n }\n}\n.ant-zoom-enter,\n.ant-zoom-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-enter.ant-zoom-enter-active,\n.ant-zoom-appear.ant-zoom-appear-active {\n animation-name: antZoomIn;\n animation-play-state: running;\n}\n.ant-zoom-leave.ant-zoom-leave-active {\n animation-name: antZoomOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-enter,\n.ant-zoom-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-enter-prepare,\n.ant-zoom-appear-prepare {\n transform: none;\n}\n.ant-zoom-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-big-enter,\n.ant-zoom-big-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-enter.ant-zoom-big-enter-active,\n.ant-zoom-big-appear.ant-zoom-big-appear-active {\n animation-name: antZoomBigIn;\n animation-play-state: running;\n}\n.ant-zoom-big-leave.ant-zoom-big-leave-active {\n animation-name: antZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-big-enter,\n.ant-zoom-big-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-big-enter-prepare,\n.ant-zoom-big-appear-prepare {\n transform: none;\n}\n.ant-zoom-big-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-big-fast-enter,\n.ant-zoom-big-fast-appear {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-fast-leave {\n animation-duration: 0.1s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-big-fast-enter.ant-zoom-big-fast-enter-active,\n.ant-zoom-big-fast-appear.ant-zoom-big-fast-appear-active {\n animation-name: antZoomBigIn;\n animation-play-state: running;\n}\n.ant-zoom-big-fast-leave.ant-zoom-big-fast-leave-active {\n animation-name: antZoomBigOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-big-fast-enter,\n.ant-zoom-big-fast-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-big-fast-enter-prepare,\n.ant-zoom-big-fast-appear-prepare {\n transform: none;\n}\n.ant-zoom-big-fast-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-up-enter,\n.ant-zoom-up-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-up-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-up-enter.ant-zoom-up-enter-active,\n.ant-zoom-up-appear.ant-zoom-up-appear-active {\n animation-name: antZoomUpIn;\n animation-play-state: running;\n}\n.ant-zoom-up-leave.ant-zoom-up-leave-active {\n animation-name: antZoomUpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-up-enter,\n.ant-zoom-up-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-up-enter-prepare,\n.ant-zoom-up-appear-prepare {\n transform: none;\n}\n.ant-zoom-up-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-down-enter,\n.ant-zoom-down-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-down-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-down-enter.ant-zoom-down-enter-active,\n.ant-zoom-down-appear.ant-zoom-down-appear-active {\n animation-name: antZoomDownIn;\n animation-play-state: running;\n}\n.ant-zoom-down-leave.ant-zoom-down-leave-active {\n animation-name: antZoomDownOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-down-enter,\n.ant-zoom-down-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-down-enter-prepare,\n.ant-zoom-down-appear-prepare {\n transform: none;\n}\n.ant-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-left-enter,\n.ant-zoom-left-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-left-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-left-enter.ant-zoom-left-enter-active,\n.ant-zoom-left-appear.ant-zoom-left-appear-active {\n animation-name: antZoomLeftIn;\n animation-play-state: running;\n}\n.ant-zoom-left-leave.ant-zoom-left-leave-active {\n animation-name: antZoomLeftOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-left-enter,\n.ant-zoom-left-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-left-enter-prepare,\n.ant-zoom-left-appear-prepare {\n transform: none;\n}\n.ant-zoom-left-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-zoom-right-enter,\n.ant-zoom-right-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-right-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-zoom-right-enter.ant-zoom-right-enter-active,\n.ant-zoom-right-appear.ant-zoom-right-appear-active {\n animation-name: antZoomRightIn;\n animation-play-state: running;\n}\n.ant-zoom-right-leave.ant-zoom-right-leave-active {\n animation-name: antZoomRightOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-zoom-right-enter,\n.ant-zoom-right-appear {\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n.ant-zoom-right-enter-prepare,\n.ant-zoom-right-appear-prepare {\n transform: none;\n}\n.ant-zoom-right-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n@keyframes antZoomIn {\n 0% {\n transform: scale(0.2);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes antZoomOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.2);\n opacity: 0;\n }\n}\n@keyframes antZoomBigIn {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes antZoomBigOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.8);\n opacity: 0;\n }\n}\n@keyframes antZoomUpIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 50% 0%;\n }\n}\n@keyframes antZoomUpOut {\n 0% {\n transform: scale(1);\n transform-origin: 50% 0%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 50% 0%;\n opacity: 0;\n }\n}\n@keyframes antZoomLeftIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 0% 50%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 0% 50%;\n }\n}\n@keyframes antZoomLeftOut {\n 0% {\n transform: scale(1);\n transform-origin: 0% 50%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 0% 50%;\n opacity: 0;\n }\n}\n@keyframes antZoomRightIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 100% 50%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 100% 50%;\n }\n}\n@keyframes antZoomRightOut {\n 0% {\n transform: scale(1);\n transform-origin: 100% 50%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 100% 50%;\n opacity: 0;\n }\n}\n@keyframes antZoomDownIn {\n 0% {\n transform: scale(0.8);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n transform-origin: 50% 100%;\n }\n}\n@keyframes antZoomDownOut {\n 0% {\n transform: scale(1);\n transform-origin: 50% 100%;\n }\n 100% {\n transform: scale(0.8);\n transform-origin: 50% 100%;\n opacity: 0;\n }\n}\n.ant-motion-collapse-legacy {\n overflow: hidden;\n}\n.ant-motion-collapse-legacy-active {\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}\n.ant-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}\n.ant-affix {\n position: fixed;\n z-index: 10;\n}\n.ant-alert {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: flex;\n align-items: center;\n padding: 8px 15px;\n word-wrap: break-word;\n border-radius: 5px;\n}\n.ant-alert-content {\n flex: 1;\n min-width: 0;\n}\n.ant-alert-icon {\n margin-right: 8px;\n}\n.ant-alert-description {\n display: none;\n font-size: 14px;\n line-height: 22px;\n}\n.ant-alert-success {\n background-color: #f6ffed;\n border: 1px solid #b7eb8f;\n}\n.ant-alert-success .ant-alert-icon {\n color: #52c41a;\n}\n.ant-alert-info {\n background-color: #f0f2ff;\n border: 1px solid #e0e3ff;\n}\n.ant-alert-info .ant-alert-icon {\n color: #5b5ce1;\n}\n.ant-alert-warning {\n background-color: #fffbe6;\n border: 1px solid #ffe58f;\n}\n.ant-alert-warning .ant-alert-icon {\n color: #faad14;\n}\n.ant-alert-error {\n background-color: #fff2f0;\n border: 1px solid #ffccc7;\n}\n.ant-alert-error .ant-alert-icon {\n color: #ff4d4f;\n}\n.ant-alert-error .ant-alert-description > pre {\n margin: 0;\n padding: 0;\n}\n.ant-alert-action {\n margin-left: 8px;\n}\n.ant-alert-close-icon {\n margin-left: 8px;\n padding: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 12px;\n background-color: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n}\n.ant-alert-close-icon .anticon-close {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-icon .anticon-close:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-close-text {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-text:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-with-description {\n align-items: flex-start;\n padding: 15px 15px 15px 24px;\n}\n.ant-alert-with-description.ant-alert-no-icon {\n padding: 15px 15px;\n}\n.ant-alert-with-description .ant-alert-icon {\n margin-right: 15px;\n font-size: 24px;\n}\n.ant-alert-with-description .ant-alert-message {\n display: block;\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-alert-message {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-alert-with-description .ant-alert-description {\n display: block;\n}\n.ant-alert.ant-alert-motion-leave {\n overflow: hidden;\n opacity: 1;\n transition: max-height 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), opacity 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-top 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), padding-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), margin-bottom 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-alert.ant-alert-motion-leave-active {\n max-height: 0;\n margin-bottom: 0 !important;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n}\n.ant-alert-banner {\n margin-bottom: 0;\n border: 0;\n border-radius: 0;\n}\n.ant-alert.ant-alert-rtl {\n direction: rtl;\n}\n.ant-alert-rtl.ant-alert.ant-alert-no-icon {\n padding: 8px 15px;\n}\n.ant-alert-rtl .ant-alert-icon {\n margin-right: auto;\n margin-left: 8px;\n}\n.ant-alert-rtl .ant-alert-action {\n margin-right: 8px;\n margin-left: auto;\n}\n.ant-alert-rtl .ant-alert-close-icon {\n margin-right: 8px;\n margin-left: auto;\n}\n.ant-alert-rtl.ant-alert-with-description .ant-alert-icon {\n margin-right: auto;\n margin-left: 15px;\n}\n.ant-anchor {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding-left: 2px;\n}\n.ant-anchor-wrapper {\n margin-left: -4px;\n padding-left: 4px;\n overflow: auto;\n background-color: #fff;\n}\n.ant-anchor-ink {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n}\n.ant-anchor-ink::before {\n position: relative;\n display: block;\n width: 2px;\n height: 100%;\n margin: 0 auto;\n background-color: #f0f0f0;\n content: ' ';\n}\n.ant-anchor-ink-ball {\n position: absolute;\n left: 50%;\n display: none;\n width: 8px;\n height: 8px;\n background-color: #fff;\n border: 2px solid #5b5ce1;\n border-radius: 8px;\n transform: translateX(-50%);\n transition: top 0.3s ease-in-out;\n}\n.ant-anchor-ink-ball.visible {\n display: inline-block;\n}\n.ant-anchor.fixed .ant-anchor-ink .ant-anchor-ink-ball {\n display: none;\n}\n.ant-anchor-link {\n padding: 7px 0 7px 16px;\n line-height: 1.143;\n}\n.ant-anchor-link-title {\n position: relative;\n display: block;\n margin-bottom: 6px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-anchor-link-title:only-child {\n margin-bottom: 0;\n}\n.ant-anchor-link-active > .ant-anchor-link-title {\n color: #5b5ce1;\n}\n.ant-anchor-link .ant-anchor-link {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.ant-anchor-rtl {\n direction: rtl;\n}\n.ant-anchor-rtl.ant-anchor-wrapper {\n margin-right: -4px;\n margin-left: 0;\n padding-right: 4px;\n padding-left: 0;\n}\n.ant-anchor-rtl .ant-anchor-ink {\n right: 0;\n left: auto;\n}\n.ant-anchor-rtl .ant-anchor-ink-ball {\n right: 50%;\n left: 0;\n transform: translateX(50%);\n}\n.ant-anchor-rtl .ant-anchor-link {\n padding: 7px 16px 7px 0;\n}\n.ant-select-auto-complete {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-select-auto-complete .ant-select-clear {\n right: 13px;\n}\n.ant-avatar {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n overflow: hidden;\n color: #fff;\n white-space: nowrap;\n text-align: center;\n vertical-align: middle;\n background: #ccc;\n width: 32px;\n height: 32px;\n line-height: 32px;\n border-radius: 50%;\n}\n.ant-avatar-image {\n background: transparent;\n}\n.ant-avatar .ant-image-img {\n display: block;\n}\n.ant-avatar-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar.ant-avatar-icon {\n font-size: 18px;\n}\n.ant-avatar.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n border-radius: 50%;\n}\n.ant-avatar-lg-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-lg.ant-avatar-icon {\n font-size: 24px;\n}\n.ant-avatar-lg.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 50%;\n}\n.ant-avatar-sm-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-sm.ant-avatar-icon {\n font-size: 14px;\n}\n.ant-avatar-sm.ant-avatar-icon > .anticon {\n margin: 0;\n}\n.ant-avatar-square {\n border-radius: 5px;\n}\n.ant-avatar > img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.ant-avatar-group {\n display: inline-flex;\n}\n.ant-avatar-group .ant-avatar {\n border: 1px solid #fff;\n}\n.ant-avatar-group .ant-avatar:not(:first-child) {\n margin-left: -8px;\n}\n.ant-avatar-group-popover .ant-avatar + .ant-avatar {\n margin-left: 3px;\n}\n.ant-avatar-group-rtl .ant-avatar:not(:first-child) {\n margin-right: -8px;\n margin-left: 0;\n}\n.ant-avatar-group-popover.ant-popover-rtl .ant-avatar + .ant-avatar {\n margin-right: 3px;\n margin-left: 0;\n}\n.ant-back-top {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n right: 100px;\n bottom: 50px;\n z-index: 10;\n width: 40px;\n height: 40px;\n cursor: pointer;\n}\n.ant-back-top:empty {\n display: none;\n}\n.ant-back-top-rtl {\n right: auto;\n left: 100px;\n direction: rtl;\n}\n.ant-back-top-content {\n width: 40px;\n height: 40px;\n overflow: hidden;\n color: #fff;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.45);\n border-radius: 20px;\n transition: all 0.3s;\n}\n.ant-back-top-content:hover {\n background-color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-back-top-icon {\n font-size: 24px;\n line-height: 40px;\n}\n@media screen and (max-width: 768px) {\n .ant-back-top {\n right: 60px;\n }\n}\n@media screen and (max-width: 480px) {\n .ant-back-top {\n right: 20px;\n }\n}\n.ant-badge {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n line-height: 1;\n}\n.ant-badge-count {\n z-index: auto;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n color: #fff;\n font-weight: normal;\n font-size: 12px;\n line-height: 20px;\n white-space: nowrap;\n text-align: center;\n background: #ff4d4f;\n border-radius: 10px;\n box-shadow: 0 0 0 1px #fff;\n}\n.ant-badge-count a,\n.ant-badge-count a:hover {\n color: #fff;\n}\n.ant-badge-count-sm {\n min-width: 14px;\n height: 14px;\n padding: 0;\n font-size: 12px;\n line-height: 14px;\n border-radius: 7px;\n}\n.ant-badge-multiple-words {\n padding: 0 8px;\n}\n.ant-badge-dot {\n z-index: auto;\n width: 6px;\n min-width: 6px;\n height: 6px;\n background: #ff4d4f;\n border-radius: 100%;\n box-shadow: 0 0 0 1px #fff;\n}\n.ant-badge-count,\n.ant-badge-dot,\n.ant-badge .ant-scroll-number-custom-component {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n transform-origin: 100% 0%;\n}\n.ant-badge-count.anticon-spin,\n.ant-badge-dot.anticon-spin,\n.ant-badge .ant-scroll-number-custom-component.anticon-spin {\n animation: antBadgeLoadingCircle 1s infinite linear;\n}\n.ant-badge-status {\n line-height: inherit;\n vertical-align: baseline;\n}\n.ant-badge-status-dot {\n position: relative;\n top: -1px;\n display: inline-block;\n width: 6px;\n height: 6px;\n vertical-align: middle;\n border-radius: 50%;\n}\n.ant-badge-status-success {\n background-color: #52c41a;\n}\n.ant-badge-status-processing {\n position: relative;\n background-color: #1890ff;\n}\n.ant-badge-status-processing::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #1890ff;\n border-radius: 50%;\n animation: antStatusProcessing 1.2s infinite ease-in-out;\n content: '';\n}\n.ant-badge-status-default {\n background-color: #d9d9d9;\n}\n.ant-badge-status-error {\n background-color: #ff4d4f;\n}\n.ant-badge-status-warning {\n background-color: #faad14;\n}\n.ant-badge-status-pink {\n background: #eb2f96;\n}\n.ant-badge-status-magenta {\n background: #eb2f96;\n}\n.ant-badge-status-red {\n background: #f5222d;\n}\n.ant-badge-status-volcano {\n background: #fa541c;\n}\n.ant-badge-status-orange {\n background: #fa8c16;\n}\n.ant-badge-status-yellow {\n background: #fadb14;\n}\n.ant-badge-status-gold {\n background: #faad14;\n}\n.ant-badge-status-cyan {\n background: #13c2c2;\n}\n.ant-badge-status-lime {\n background: #a0d911;\n}\n.ant-badge-status-green {\n background: #52c41a;\n}\n.ant-badge-status-blue {\n background: #1890ff;\n}\n.ant-badge-status-geekblue {\n background: #2f54eb;\n}\n.ant-badge-status-purple {\n background: #722ed1;\n}\n.ant-badge-status-text {\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-badge-zoom-appear,\n.ant-badge-zoom-enter {\n animation: antZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n animation-fill-mode: both;\n}\n.ant-badge-zoom-leave {\n animation: antZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);\n animation-fill-mode: both;\n}\n.ant-badge-not-a-wrapper .ant-badge-zoom-appear,\n.ant-badge-not-a-wrapper .ant-badge-zoom-enter {\n animation: antNoWrapperZoomBadgeIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n}\n.ant-badge-not-a-wrapper .ant-badge-zoom-leave {\n animation: antNoWrapperZoomBadgeOut 0.3s cubic-bezier(0.71, -0.46, 0.88, 0.6);\n}\n.ant-badge-not-a-wrapper:not(.ant-badge-status) {\n vertical-align: middle;\n}\n.ant-badge-not-a-wrapper .ant-scroll-number-custom-component {\n transform: none;\n}\n.ant-badge-not-a-wrapper .ant-scroll-number-custom-component,\n.ant-badge-not-a-wrapper .ant-scroll-number {\n position: relative;\n top: auto;\n display: block;\n transform-origin: 50% 50%;\n}\n.ant-badge-not-a-wrapper .ant-badge-count {\n transform: none;\n}\n@keyframes antStatusProcessing {\n 0% {\n transform: scale(0.8);\n opacity: 0.5;\n }\n 100% {\n transform: scale(2.4);\n opacity: 0;\n }\n}\n.ant-scroll-number {\n overflow: hidden;\n}\n.ant-scroll-number-only {\n position: relative;\n display: inline-block;\n height: 20px;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-transform-style: preserve-3d;\n -webkit-backface-visibility: hidden;\n}\n.ant-scroll-number-only > p.ant-scroll-number-only-unit {\n height: 20px;\n margin: 0;\n -webkit-transform-style: preserve-3d;\n -webkit-backface-visibility: hidden;\n}\n.ant-scroll-number-symbol {\n vertical-align: top;\n}\n@keyframes antZoomBadgeIn {\n 0% {\n transform: scale(0) translate(50%, -50%);\n opacity: 0;\n }\n 100% {\n transform: scale(1) translate(50%, -50%);\n }\n}\n@keyframes antZoomBadgeOut {\n 0% {\n transform: scale(1) translate(50%, -50%);\n }\n 100% {\n transform: scale(0) translate(50%, -50%);\n opacity: 0;\n }\n}\n@keyframes antNoWrapperZoomBadgeIn {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes antNoWrapperZoomBadgeOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n opacity: 0;\n }\n}\n@keyframes antBadgeLoadingCircle {\n 0% {\n transform-origin: 50%;\n }\n 100% {\n transform: translate(50%, -50%) rotate(360deg);\n transform-origin: 50%;\n }\n}\n.ant-ribbon-wrapper {\n position: relative;\n}\n.ant-ribbon {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 8px;\n height: 22px;\n padding: 0 8px;\n color: #fff;\n line-height: 22px;\n white-space: nowrap;\n background-color: #5b5ce1;\n border-radius: 5px;\n}\n.ant-ribbon-text {\n color: #fff;\n}\n.ant-ribbon-corner {\n position: absolute;\n top: 100%;\n width: 8px;\n height: 8px;\n color: currentColor;\n border: 4px solid;\n transform: scaleY(0.75);\n transform-origin: top;\n}\n.ant-ribbon-corner::after {\n position: absolute;\n top: -4px;\n left: -4px;\n width: inherit;\n height: inherit;\n color: rgba(0, 0, 0, 0.25);\n border: inherit;\n content: '';\n}\n.ant-ribbon-color-pink {\n color: #eb2f96;\n background: #eb2f96;\n}\n.ant-ribbon-color-magenta {\n color: #eb2f96;\n background: #eb2f96;\n}\n.ant-ribbon-color-red {\n color: #f5222d;\n background: #f5222d;\n}\n.ant-ribbon-color-volcano {\n color: #fa541c;\n background: #fa541c;\n}\n.ant-ribbon-color-orange {\n color: #fa8c16;\n background: #fa8c16;\n}\n.ant-ribbon-color-yellow {\n color: #fadb14;\n background: #fadb14;\n}\n.ant-ribbon-color-gold {\n color: #faad14;\n background: #faad14;\n}\n.ant-ribbon-color-cyan {\n color: #13c2c2;\n background: #13c2c2;\n}\n.ant-ribbon-color-lime {\n color: #a0d911;\n background: #a0d911;\n}\n.ant-ribbon-color-green {\n color: #52c41a;\n background: #52c41a;\n}\n.ant-ribbon-color-blue {\n color: #1890ff;\n background: #1890ff;\n}\n.ant-ribbon-color-geekblue {\n color: #2f54eb;\n background: #2f54eb;\n}\n.ant-ribbon-color-purple {\n color: #722ed1;\n background: #722ed1;\n}\n.ant-ribbon.ant-ribbon-placement-end {\n right: -8px;\n border-bottom-right-radius: 0;\n}\n.ant-ribbon.ant-ribbon-placement-end .ant-ribbon-corner {\n right: 0;\n border-color: currentColor transparent transparent currentColor;\n}\n.ant-ribbon.ant-ribbon-placement-start {\n left: -8px;\n border-bottom-left-radius: 0;\n}\n.ant-ribbon.ant-ribbon-placement-start .ant-ribbon-corner {\n left: 0;\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-badge-rtl {\n direction: rtl;\n}\n.ant-badge-rtl .ant-badge-count,\n.ant-badge-rtl .ant-badge-dot,\n.ant-badge-rtl .ant-badge .ant-scroll-number-custom-component {\n right: auto;\n left: 0;\n direction: ltr;\n transform: translate(-50%, -50%);\n transform-origin: 0% 0%;\n}\n.ant-badge-rtl.ant-badge .ant-scroll-number-custom-component {\n right: auto;\n left: 0;\n transform: translate(-50%, -50%);\n transform-origin: 0% 0%;\n}\n.ant-badge-rtl .ant-badge-status-text {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-badge-rtl .ant-badge-zoom-appear,\n.ant-badge-rtl .ant-badge-zoom-enter {\n animation-name: antZoomBadgeInRtl;\n}\n.ant-badge-rtl .ant-badge-zoom-leave {\n animation-name: antZoomBadgeOutRtl;\n}\n.ant-badge-not-a-wrapper .ant-badge-count {\n transform: none;\n}\n.ant-ribbon-rtl {\n direction: rtl;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end {\n right: unset;\n left: -8px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner {\n right: unset;\n left: 0;\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-end .ant-ribbon-corner::after {\n border-color: currentColor currentColor transparent transparent;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start {\n right: -8px;\n left: unset;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner {\n right: 0;\n left: unset;\n border-color: currentColor transparent transparent currentColor;\n}\n.ant-ribbon-rtl.ant-ribbon-placement-start .ant-ribbon-corner::after {\n border-color: currentColor transparent transparent currentColor;\n}\n@keyframes antZoomBadgeInRtl {\n 0% {\n transform: scale(0) translate(-50%, -50%);\n opacity: 0;\n }\n 100% {\n transform: scale(1) translate(-50%, -50%);\n }\n}\n@keyframes antZoomBadgeOutRtl {\n 0% {\n transform: scale(1) translate(-50%, -50%);\n }\n 100% {\n transform: scale(0) translate(-50%, -50%);\n opacity: 0;\n }\n}\n.ant-breadcrumb {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-breadcrumb .anticon {\n font-size: 14px;\n}\n.ant-breadcrumb a {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-breadcrumb a:hover {\n color: #8588ed;\n}\n.ant-breadcrumb > span:last-child {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-breadcrumb > span:last-child a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-breadcrumb > span:last-child .ant-breadcrumb-separator {\n display: none;\n}\n.ant-breadcrumb-separator {\n margin: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-breadcrumb-link > .anticon + span,\n.ant-breadcrumb-link > .anticon + a {\n margin-left: 4px;\n}\n.ant-breadcrumb-overlay-link > .anticon {\n margin-left: 4px;\n}\n.ant-breadcrumb-rtl {\n direction: rtl;\n}\n.ant-breadcrumb-rtl::before {\n display: table;\n content: '';\n}\n.ant-breadcrumb-rtl::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-breadcrumb-rtl::before {\n display: table;\n content: '';\n}\n.ant-breadcrumb-rtl::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-breadcrumb-rtl > span {\n float: right;\n}\n.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + span,\n.ant-breadcrumb-rtl .ant-breadcrumb-link > .anticon + a {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-breadcrumb-rtl .ant-breadcrumb-overlay-link > .anticon {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-btn {\n line-height: 1.5715;\n position: relative;\n display: inline-block;\n font-weight: 400;\n white-space: nowrap;\n text-align: center;\n background-image: none;\n border: 1px solid transparent;\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n user-select: none;\n touch-action: manipulation;\n height: 32px;\n padding: 4px 15px;\n font-size: 14px;\n border-radius: 5px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-color: #d9d9d9;\n}\n.ant-btn > .anticon {\n line-height: 1;\n}\n.ant-btn,\n.ant-btn:active,\n.ant-btn:focus {\n outline: 0;\n}\n.ant-btn:not([disabled]):hover {\n text-decoration: none;\n}\n.ant-btn:not([disabled]):active {\n outline: 0;\n box-shadow: none;\n}\n.ant-btn[disabled] {\n cursor: not-allowed;\n}\n.ant-btn[disabled] > * {\n pointer-events: none;\n}\n.ant-btn-lg {\n height: 40px;\n padding: 6.4px 15px;\n font-size: 16px;\n border-radius: 5px;\n}\n.ant-btn-sm {\n height: 24px;\n padding: 0px 7px;\n font-size: 14px;\n border-radius: 5px;\n}\n.ant-btn > a:only-child {\n color: currentColor;\n}\n.ant-btn > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:hover,\n.ant-btn:focus {\n color: #8588ed;\n background: #fff;\n border-color: #8588ed;\n}\n.ant-btn:hover > a:only-child,\n.ant-btn:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn:hover > a:only-child::after,\n.ant-btn:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:active {\n color: #4541ba;\n background: #fff;\n border-color: #4541ba;\n}\n.ant-btn:active > a:only-child {\n color: currentColor;\n}\n.ant-btn:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn[disabled],\n.ant-btn[disabled]:hover,\n.ant-btn[disabled]:focus,\n.ant-btn[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn[disabled] > a:only-child,\n.ant-btn[disabled]:hover > a:only-child,\n.ant-btn[disabled]:focus > a:only-child,\n.ant-btn[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn[disabled] > a:only-child::after,\n.ant-btn[disabled]:hover > a:only-child::after,\n.ant-btn[disabled]:focus > a:only-child::after,\n.ant-btn[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn:hover,\n.ant-btn:focus,\n.ant-btn:active {\n text-decoration: none;\n background: #fff;\n}\n.ant-btn > span {\n display: inline-block;\n}\n.ant-btn-primary {\n color: #fff;\n background: #5b5ce1;\n border-color: #5b5ce1;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary:hover,\n.ant-btn-primary:focus {\n color: #fff;\n background: #8588ed;\n border-color: #8588ed;\n}\n.ant-btn-primary:hover > a:only-child,\n.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary:active {\n color: #fff;\n background: #4541ba;\n border-color: #4541ba;\n}\n.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-primary[disabled],\n.ant-btn-primary[disabled]:hover,\n.ant-btn-primary[disabled]:focus,\n.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child) {\n border-right-color: #8588ed;\n border-left-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:not(:first-child):not(:last-child):disabled {\n border-color: #d9d9d9;\n}\n.ant-btn-group .ant-btn-primary:first-child:not(:last-child) {\n border-right-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:first-child:not(:last-child)[disabled] {\n border-right-color: #d9d9d9;\n}\n.ant-btn-group .ant-btn-primary:last-child:not(:first-child),\n.ant-btn-group .ant-btn-primary + .ant-btn-primary {\n border-left-color: #8588ed;\n}\n.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled],\n.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {\n border-left-color: #d9d9d9;\n}\n.ant-btn-ghost {\n color: rgba(0, 0, 0, 0.85);\n background: transparent;\n border-color: #d9d9d9;\n}\n.ant-btn-ghost > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost:hover,\n.ant-btn-ghost:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-ghost:hover > a:only-child,\n.ant-btn-ghost:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost:hover > a:only-child::after,\n.ant-btn-ghost:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-ghost:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-ghost[disabled],\n.ant-btn-ghost[disabled]:hover,\n.ant-btn-ghost[disabled]:focus,\n.ant-btn-ghost[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-ghost[disabled] > a:only-child,\n.ant-btn-ghost[disabled]:hover > a:only-child,\n.ant-btn-ghost[disabled]:focus > a:only-child,\n.ant-btn-ghost[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-ghost[disabled] > a:only-child::after,\n.ant-btn-ghost[disabled]:hover > a:only-child::after,\n.ant-btn-ghost[disabled]:focus > a:only-child::after,\n.ant-btn-ghost[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-color: #d9d9d9;\n border-style: dashed;\n}\n.ant-btn-dashed > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed:hover,\n.ant-btn-dashed:focus {\n color: #8588ed;\n background: #fff;\n border-color: #8588ed;\n}\n.ant-btn-dashed:hover > a:only-child,\n.ant-btn-dashed:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed:hover > a:only-child::after,\n.ant-btn-dashed:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed:active {\n color: #4541ba;\n background: #fff;\n border-color: #4541ba;\n}\n.ant-btn-dashed:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dashed[disabled],\n.ant-btn-dashed[disabled]:hover,\n.ant-btn-dashed[disabled]:focus,\n.ant-btn-dashed[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dashed[disabled] > a:only-child,\n.ant-btn-dashed[disabled]:hover > a:only-child,\n.ant-btn-dashed[disabled]:focus > a:only-child,\n.ant-btn-dashed[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dashed[disabled] > a:only-child::after,\n.ant-btn-dashed[disabled]:hover > a:only-child::after,\n.ant-btn-dashed[disabled]:focus > a:only-child::after,\n.ant-btn-dashed[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger {\n color: #fff;\n background: #ff4d4f;\n border-color: #ff4d4f;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-danger > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger:hover,\n.ant-btn-danger:focus {\n color: #fff;\n background: #ff7875;\n border-color: #ff7875;\n}\n.ant-btn-danger:hover > a:only-child,\n.ant-btn-danger:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger:hover > a:only-child::after,\n.ant-btn-danger:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger:active {\n color: #fff;\n background: #d9363e;\n border-color: #d9363e;\n}\n.ant-btn-danger:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-danger[disabled],\n.ant-btn-danger[disabled]:hover,\n.ant-btn-danger[disabled]:focus,\n.ant-btn-danger[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-danger[disabled] > a:only-child,\n.ant-btn-danger[disabled]:hover > a:only-child,\n.ant-btn-danger[disabled]:focus > a:only-child,\n.ant-btn-danger[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-danger[disabled] > a:only-child::after,\n.ant-btn-danger[disabled]:hover > a:only-child::after,\n.ant-btn-danger[disabled]:focus > a:only-child::after,\n.ant-btn-danger[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link {\n color: #5b5ce1;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:hover,\n.ant-btn-link:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-link:hover > a:only-child,\n.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-link:hover > a:only-child::after,\n.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link[disabled],\n.ant-btn-link[disabled]:hover,\n.ant-btn-link[disabled]:focus,\n.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-link[disabled] > a:only-child,\n.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-link:hover {\n background: transparent;\n}\n.ant-btn-link:hover,\n.ant-btn-link:focus,\n.ant-btn-link:active {\n border-color: transparent;\n}\n.ant-btn-link[disabled],\n.ant-btn-link[disabled]:hover,\n.ant-btn-link[disabled]:focus,\n.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-link[disabled] > a:only-child,\n.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text {\n color: rgba(0, 0, 0, 0.85);\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-text > a:only-child {\n color: currentColor;\n}\n.ant-btn-text > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:hover,\n.ant-btn-text:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-text:hover > a:only-child,\n.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-text:hover > a:only-child::after,\n.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text[disabled],\n.ant-btn-text[disabled]:hover,\n.ant-btn-text[disabled]:focus,\n.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-text[disabled] > a:only-child,\n.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-text:hover,\n.ant-btn-text:focus {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.018);\n border-color: transparent;\n}\n.ant-btn-text:active {\n color: rgba(0, 0, 0, 0.85);\n background: rgba(0, 0, 0, 0.028);\n border-color: transparent;\n}\n.ant-btn-text[disabled],\n.ant-btn-text[disabled]:hover,\n.ant-btn-text[disabled]:focus,\n.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-text[disabled] > a:only-child,\n.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous {\n color: #ff4d4f;\n background: #fff;\n border-color: #ff4d4f;\n}\n.ant-btn-dangerous > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous:hover,\n.ant-btn-dangerous:focus {\n color: #ff7875;\n background: #fff;\n border-color: #ff7875;\n}\n.ant-btn-dangerous:hover > a:only-child,\n.ant-btn-dangerous:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous:hover > a:only-child::after,\n.ant-btn-dangerous:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous:active {\n color: #d9363e;\n background: #fff;\n border-color: #d9363e;\n}\n.ant-btn-dangerous:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous[disabled],\n.ant-btn-dangerous[disabled]:hover,\n.ant-btn-dangerous[disabled]:focus,\n.ant-btn-dangerous[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous[disabled] > a:only-child,\n.ant-btn-dangerous[disabled]:hover > a:only-child,\n.ant-btn-dangerous[disabled]:focus > a:only-child,\n.ant-btn-dangerous[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous[disabled] > a:only-child::after,\n.ant-btn-dangerous[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary {\n color: #fff;\n background: #ff4d4f;\n border-color: #ff4d4f;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);\n box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);\n}\n.ant-btn-dangerous.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary:hover,\n.ant-btn-dangerous.ant-btn-primary:focus {\n color: #fff;\n background: #ff7875;\n border-color: #ff7875;\n}\n.ant-btn-dangerous.ant-btn-primary:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary:active {\n color: #fff;\n background: #d9363e;\n border-color: #d9363e;\n}\n.ant-btn-dangerous.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-primary[disabled],\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-dangerous.ant-btn-link:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-dangerous.ant-btn-link:focus {\n color: #ff7875;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link:active {\n color: #d9363e;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:hover,\n.ant-btn-dangerous.ant-btn-text:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text[disabled],\n.ant-btn-dangerous.ant-btn-text[disabled]:hover,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus,\n.ant-btn-dangerous.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:hover,\n.ant-btn-dangerous.ant-btn-text:focus {\n color: #ff7875;\n background: rgba(0, 0, 0, 0.018);\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text:active {\n color: #d9363e;\n background: rgba(0, 0, 0, 0.028);\n border-color: transparent;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-dangerous.ant-btn-text[disabled],\n.ant-btn-dangerous.ant-btn-text[disabled]:hover,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus,\n.ant-btn-dangerous.ant-btn-text[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-dangerous.ant-btn-text[disabled] > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:hover > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:focus > a:only-child::after,\n.ant-btn-dangerous.ant-btn-text[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-icon-only {\n width: 32px;\n height: 32px;\n padding: 2.4px 0;\n font-size: 16px;\n border-radius: 5px;\n vertical-align: -1px;\n}\n.ant-btn-icon-only > * {\n font-size: 16px;\n}\n.ant-btn-icon-only.ant-btn-lg {\n width: 40px;\n height: 40px;\n padding: 4.9px 0;\n font-size: 18px;\n border-radius: 5px;\n}\n.ant-btn-icon-only.ant-btn-lg > * {\n font-size: 18px;\n}\n.ant-btn-icon-only.ant-btn-sm {\n width: 24px;\n height: 24px;\n padding: 0px 0;\n font-size: 14px;\n border-radius: 5px;\n}\n.ant-btn-icon-only.ant-btn-sm > * {\n font-size: 14px;\n}\n.ant-btn-round {\n height: 32px;\n padding: 4px 16px;\n font-size: 14px;\n border-radius: 32px;\n}\n.ant-btn-round.ant-btn-lg {\n height: 40px;\n padding: 6.4px 20px;\n font-size: 16px;\n border-radius: 40px;\n}\n.ant-btn-round.ant-btn-sm {\n height: 24px;\n padding: 0px 12px;\n font-size: 14px;\n border-radius: 24px;\n}\n.ant-btn-round.ant-btn-icon-only {\n width: auto;\n}\n.ant-btn-circle {\n min-width: 32px;\n padding-right: 0;\n padding-left: 0;\n text-align: center;\n border-radius: 50%;\n}\n.ant-btn-circle.ant-btn-lg {\n min-width: 40px;\n border-radius: 50%;\n}\n.ant-btn-circle.ant-btn-sm {\n min-width: 24px;\n border-radius: 50%;\n}\n.ant-btn::before {\n position: absolute;\n top: -1px;\n right: -1px;\n bottom: -1px;\n left: -1px;\n z-index: 1;\n display: none;\n background: #fff;\n border-radius: inherit;\n opacity: 0.35;\n transition: opacity 0.2s;\n content: '';\n pointer-events: none;\n}\n.ant-btn .anticon {\n transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-btn .anticon.anticon-plus > svg,\n.ant-btn .anticon.anticon-minus > svg {\n shape-rendering: optimizeSpeed;\n}\n.ant-btn.ant-btn-loading {\n position: relative;\n}\n.ant-btn.ant-btn-loading:not([disabled]) {\n pointer-events: none;\n}\n.ant-btn.ant-btn-loading::before {\n display: block;\n}\n.ant-btn > .ant-btn-loading-icon {\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-btn > .ant-btn-loading-icon .anticon {\n padding-right: 8px;\n animation: none;\n}\n.ant-btn > .ant-btn-loading-icon .anticon svg {\n animation: loadingCircle 1s infinite linear;\n}\n.ant-btn > .ant-btn-loading-icon:only-child .anticon {\n padding-right: 0;\n}\n.ant-btn-group {\n position: relative;\n display: inline-flex;\n}\n.ant-btn-group > .ant-btn,\n.ant-btn-group > span > .ant-btn {\n position: relative;\n}\n.ant-btn-group > .ant-btn:hover,\n.ant-btn-group > span > .ant-btn:hover,\n.ant-btn-group > .ant-btn:focus,\n.ant-btn-group > span > .ant-btn:focus,\n.ant-btn-group > .ant-btn:active,\n.ant-btn-group > span > .ant-btn:active {\n z-index: 2;\n}\n.ant-btn-group > .ant-btn[disabled],\n.ant-btn-group > span > .ant-btn[disabled] {\n z-index: 0;\n}\n.ant-btn-group .ant-btn-icon-only {\n font-size: 14px;\n}\n.ant-btn-group-lg > .ant-btn,\n.ant-btn-group-lg > span > .ant-btn {\n height: 40px;\n padding: 6.4px 15px;\n font-size: 16px;\n border-radius: 0;\n}\n.ant-btn-group-lg .ant-btn.ant-btn-icon-only {\n width: 40px;\n height: 40px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-group-sm > .ant-btn,\n.ant-btn-group-sm > span > .ant-btn {\n height: 24px;\n padding: 0px 7px;\n font-size: 14px;\n border-radius: 0;\n}\n.ant-btn-group-sm > .ant-btn > .anticon,\n.ant-btn-group-sm > span > .ant-btn > .anticon {\n font-size: 14px;\n}\n.ant-btn-group-sm .ant-btn.ant-btn-icon-only {\n width: 24px;\n height: 24px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn + .ant-btn-group,\n.ant-btn-group span + .ant-btn,\n.ant-btn-group .ant-btn + span,\n.ant-btn-group > span + span,\n.ant-btn-group + .ant-btn,\n.ant-btn-group + .ant-btn-group {\n margin-left: -1px;\n}\n.ant-btn-group .ant-btn-primary + .ant-btn:not(.ant-btn-primary):not([disabled]) {\n border-left-color: transparent;\n}\n.ant-btn-group .ant-btn {\n border-radius: 0;\n}\n.ant-btn-group > .ant-btn:first-child,\n.ant-btn-group > span:first-child > .ant-btn {\n margin-left: 0;\n}\n.ant-btn-group > .ant-btn:only-child {\n border-radius: 5px;\n}\n.ant-btn-group > span:only-child > .ant-btn {\n border-radius: 5px;\n}\n.ant-btn-group > .ant-btn:first-child:not(:last-child),\n.ant-btn-group > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group > .ant-btn:last-child:not(:first-child),\n.ant-btn-group > span:last-child:not(:first-child) > .ant-btn {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:only-child {\n border-radius: 5px;\n}\n.ant-btn-group-sm > span:only-child > .ant-btn {\n border-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group-sm > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-btn-group > .ant-btn-group {\n float: left;\n}\n.ant-btn-group > .ant-btn-group:not(:first-child):not(:last-child) > .ant-btn {\n border-radius: 0;\n}\n.ant-btn-group > .ant-btn-group:first-child:not(:last-child) > .ant-btn:last-child {\n padding-right: 8px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-btn-group > .ant-btn-group:last-child:not(:first-child) > .ant-btn:first-child {\n padding-left: 8px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-btn-rtl.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn-rtl.ant-btn + .ant-btn-group,\n.ant-btn-rtl.ant-btn-group span + .ant-btn,\n.ant-btn-rtl.ant-btn-group .ant-btn + span,\n.ant-btn-rtl.ant-btn-group > span + span,\n.ant-btn-rtl.ant-btn-group + .ant-btn,\n.ant-btn-rtl.ant-btn-group + .ant-btn-group,\n.ant-btn-group-rtl.ant-btn-group .ant-btn + .ant-btn,\n.ant-btn-group-rtl.ant-btn + .ant-btn-group,\n.ant-btn-group-rtl.ant-btn-group span + .ant-btn,\n.ant-btn-group-rtl.ant-btn-group .ant-btn + span,\n.ant-btn-group-rtl.ant-btn-group > span + span,\n.ant-btn-group-rtl.ant-btn-group + .ant-btn,\n.ant-btn-group-rtl.ant-btn-group + .ant-btn-group {\n margin-right: -1px;\n margin-left: auto;\n}\n.ant-btn-group.ant-btn-group-rtl {\n direction: rtl;\n}\n.ant-btn-group-rtl.ant-btn-group > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-rtl.ant-btn-group > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-btn-group-rtl.ant-btn-group > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group > span:last-child:not(:first-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:first-child:not(:last-child),\n.ant-btn-group-rtl.ant-btn-group-sm > span:first-child:not(:last-child) > .ant-btn {\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-btn-group-rtl.ant-btn-group-sm > .ant-btn:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group-sm > span:last-child:not(:first-child) > .ant-btn {\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-btn:focus > span,\n.ant-btn:active > span {\n position: relative;\n}\n.ant-btn > .anticon + span,\n.ant-btn > span + .anticon {\n margin-left: 8px;\n}\n.ant-btn-background-ghost {\n color: #fff;\n background: transparent !important;\n border-color: #fff;\n}\n.ant-btn-background-ghost.ant-btn-primary {\n color: #5b5ce1;\n background: transparent;\n border-color: #5b5ce1;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-primary > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary:hover,\n.ant-btn-background-ghost.ant-btn-primary:focus {\n color: #8588ed;\n background: transparent;\n border-color: #8588ed;\n}\n.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary:active {\n color: #4541ba;\n background: transparent;\n border-color: #4541ba;\n}\n.ant-btn-background-ghost.ant-btn-primary:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled],\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-primary[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-primary[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger {\n color: #ff4d4f;\n background: transparent;\n border-color: #ff4d4f;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-danger > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger:hover,\n.ant-btn-background-ghost.ant-btn-danger:focus {\n color: #ff7875;\n background: transparent;\n border-color: #ff7875;\n}\n.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger:active {\n color: #d9363e;\n background: transparent;\n border-color: #d9363e;\n}\n.ant-btn-background-ghost.ant-btn-danger:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled],\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-danger[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-danger[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous {\n color: #ff4d4f;\n background: transparent;\n border-color: #ff4d4f;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover,\n.ant-btn-background-ghost.ant-btn-dangerous:focus {\n color: #ff7875;\n background: transparent;\n border-color: #ff7875;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active {\n color: #d9363e;\n background: transparent;\n border-color: #d9363e;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled],\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link {\n color: #ff4d4f;\n background: transparent;\n border-color: transparent;\n text-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus {\n color: #ff7875;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:focus > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active {\n color: #d9363e;\n background: transparent;\n border-color: transparent;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled],\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n text-shadow: none;\n box-shadow: none;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {\n color: currentColor;\n}\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after,\n.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n content: '';\n}\n.ant-btn-two-chinese-chars::first-letter {\n letter-spacing: 0.34em;\n}\n.ant-btn-two-chinese-chars > *:not(.anticon) {\n margin-right: -0.34em;\n letter-spacing: 0.34em;\n}\n.ant-btn-block {\n width: 100%;\n}\n.ant-btn:empty {\n display: inline-block;\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\na.ant-btn {\n padding-top: 0.01px !important;\n line-height: 30px;\n}\na.ant-btn-lg {\n line-height: 38px;\n}\na.ant-btn-sm {\n line-height: 22px;\n}\n.ant-btn-rtl {\n direction: rtl;\n}\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child),\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary {\n border-right-color: #8588ed;\n border-left-color: #d9d9d9;\n}\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled],\n.ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {\n border-right-color: #d9d9d9;\n border-left-color: #8588ed;\n}\n.ant-btn-rtl.ant-btn > .ant-btn-loading-icon .anticon {\n padding-right: 0;\n padding-left: 8px;\n}\n.ant-btn > .ant-btn-loading-icon:only-child .anticon {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-btn-rtl.ant-btn > .anticon + span,\n.ant-btn-rtl.ant-btn > span + .anticon {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n}\n.ant-picker-calendar-header {\n display: flex;\n justify-content: flex-end;\n padding: 12px 0;\n}\n.ant-picker-calendar-header .ant-picker-calendar-year-select {\n min-width: 80px;\n}\n.ant-picker-calendar-header .ant-picker-calendar-month-select {\n min-width: 70px;\n margin-left: 8px;\n}\n.ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n margin-left: 8px;\n}\n.ant-picker-calendar .ant-picker-panel {\n background: #fff;\n border: 0;\n border-top: 1px solid #f0f0f0;\n border-radius: 0;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-month-panel,\n.ant-picker-calendar .ant-picker-panel .ant-picker-date-panel {\n width: auto;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-body {\n padding: 8px 0;\n}\n.ant-picker-calendar .ant-picker-panel .ant-picker-content {\n width: 100%;\n}\n.ant-picker-calendar-mini {\n border-radius: 5px;\n}\n.ant-picker-calendar-mini .ant-picker-calendar-header {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-picker-calendar-mini .ant-picker-panel {\n border-radius: 0 0 5px 5px;\n}\n.ant-picker-calendar-mini .ant-picker-content {\n height: 256px;\n}\n.ant-picker-calendar-mini .ant-picker-content th {\n height: auto;\n padding: 0;\n line-height: 18px;\n}\n.ant-picker-calendar-full .ant-picker-panel {\n display: block;\n width: 100%;\n text-align: right;\n background: #fff;\n border: 0;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body td {\n padding: 0;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th {\n height: auto;\n padding: 0 12px 5px 0;\n line-height: 18px;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell::before {\n display: none;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell:hover .ant-picker-calendar-date {\n background: #f5f5f5;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell .ant-picker-calendar-date-today::before {\n display: none;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today {\n background: #f0f2ff;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected .ant-picker-calendar-date-today .ant-picker-calendar-date-value,\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-selected:hover .ant-picker-calendar-date-today .ant-picker-calendar-date-value {\n color: #5b5ce1;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date {\n display: block;\n width: auto;\n height: auto;\n margin: 0 4px;\n padding: 4px 8px 0;\n border: 0;\n border-top: 2px solid #f0f0f0;\n border-radius: 0;\n transition: background 0.3s;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-value {\n line-height: 24px;\n transition: color 0.3s;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content {\n position: static;\n width: auto;\n height: 86px;\n overflow-y: auto;\n color: rgba(0, 0, 0, 0.85);\n line-height: 1.5715;\n text-align: left;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today {\n border-color: #5b5ce1;\n}\n.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-today .ant-picker-calendar-date-value {\n color: rgba(0, 0, 0, 0.85);\n}\n@media only screen and (max-width: 480px) {\n .ant-picker-calendar-header {\n display: block;\n }\n .ant-picker-calendar-header .ant-picker-calendar-year-select {\n width: 50%;\n }\n .ant-picker-calendar-header .ant-picker-calendar-month-select {\n width: calc(50% - 8px);\n }\n .ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n width: 100%;\n margin-top: 8px;\n margin-left: 0;\n }\n .ant-picker-calendar-header .ant-picker-calendar-mode-switch > label {\n width: 50%;\n text-align: center;\n }\n}\n.ant-picker-calendar-rtl {\n direction: rtl;\n}\n.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-month-select {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar-rtl .ant-picker-calendar-header .ant-picker-calendar-mode-switch {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel {\n text-align: left;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-body th {\n padding: 0 0 5px 12px;\n}\n.ant-picker-calendar-rtl.ant-picker-calendar-full .ant-picker-panel .ant-picker-calendar-date-content {\n text-align: right;\n}\n.ant-card {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n background: #fff;\n border-radius: 5px;\n}\n.ant-card-rtl {\n direction: rtl;\n}\n.ant-card-hoverable {\n cursor: pointer;\n transition: box-shadow 0.3s, border-color 0.3s;\n}\n.ant-card-hoverable:hover {\n border-color: transparent;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.ant-card-bordered {\n border: 1px solid #f0f0f0;\n}\n.ant-card-head {\n min-height: 48px;\n margin-bottom: -1px;\n padding: 0 24px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n background: transparent;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-card-head::before {\n display: table;\n content: '';\n}\n.ant-card-head::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-head::before {\n display: table;\n content: '';\n}\n.ant-card-head::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-head-wrapper {\n display: flex;\n align-items: center;\n}\n.ant-card-head-title {\n display: inline-block;\n flex: 1;\n padding: 16px 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-card-head-title > .ant-typography,\n.ant-card-head-title > .ant-typography-edit-content {\n left: 0;\n margin-top: 0;\n margin-bottom: 0;\n}\n.ant-card-head .ant-tabs {\n clear: both;\n margin-bottom: -17px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-card-head .ant-tabs-bar {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-card-extra {\n float: right;\n margin-left: auto;\n padding: 16px 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-card-rtl .ant-card-extra {\n margin-right: auto;\n margin-left: 0;\n}\n.ant-card-body {\n padding: 24px;\n}\n.ant-card-body::before {\n display: table;\n content: '';\n}\n.ant-card-body::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-body::before {\n display: table;\n content: '';\n}\n.ant-card-body::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body {\n margin: -1px 0 0 -1px;\n padding: 0;\n}\n.ant-card-grid {\n float: left;\n width: 33.33%;\n padding: 24px;\n border: 0;\n border-radius: 0;\n box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;\n transition: all 0.3s;\n}\n.ant-card-rtl .ant-card-grid {\n float: right;\n}\n.ant-card-grid-hoverable:hover {\n position: relative;\n z-index: 1;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.ant-card-contain-tabs > .ant-card-head .ant-card-head-title {\n min-height: 32px;\n padding-bottom: 0;\n}\n.ant-card-contain-tabs > .ant-card-head .ant-card-extra {\n padding-bottom: 0;\n}\n.ant-card-bordered .ant-card-cover {\n margin-top: -1px;\n margin-right: -1px;\n margin-left: -1px;\n}\n.ant-card-cover > * {\n display: block;\n width: 100%;\n}\n.ant-card-cover img {\n border-radius: 5px 5px 0 0;\n}\n.ant-card-actions {\n margin: 0;\n padding: 0;\n list-style: none;\n background: #fff;\n border-top: 1px solid #f0f0f0;\n}\n.ant-card-actions::before {\n display: table;\n content: '';\n}\n.ant-card-actions::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-actions::before {\n display: table;\n content: '';\n}\n.ant-card-actions::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-actions > li {\n float: left;\n margin: 12px 0;\n color: rgba(0, 0, 0, 0.45);\n text-align: center;\n}\n.ant-card-rtl .ant-card-actions > li {\n float: right;\n}\n.ant-card-actions > li > span {\n position: relative;\n display: block;\n min-width: 32px;\n font-size: 14px;\n line-height: 1.5715;\n cursor: pointer;\n}\n.ant-card-actions > li > span:hover {\n color: #5b5ce1;\n transition: color 0.3s;\n}\n.ant-card-actions > li > span a:not(.ant-btn),\n.ant-card-actions > li > span > .anticon {\n display: inline-block;\n width: 100%;\n color: rgba(0, 0, 0, 0.45);\n line-height: 22px;\n transition: color 0.3s;\n}\n.ant-card-actions > li > span a:not(.ant-btn):hover,\n.ant-card-actions > li > span > .anticon:hover {\n color: #5b5ce1;\n}\n.ant-card-actions > li > span > .anticon {\n font-size: 16px;\n line-height: 22px;\n}\n.ant-card-actions > li:not(:last-child) {\n border-right: 1px solid #f0f0f0;\n}\n.ant-card-rtl .ant-card-actions > li:not(:last-child) {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-card-type-inner .ant-card-head {\n padding: 0 24px;\n background: #fafafa;\n}\n.ant-card-type-inner .ant-card-head-title {\n padding: 12px 0;\n font-size: 14px;\n}\n.ant-card-type-inner .ant-card-body {\n padding: 16px 24px;\n}\n.ant-card-type-inner .ant-card-extra {\n padding: 13.5px 0;\n}\n.ant-card-meta {\n margin: -4px 0;\n}\n.ant-card-meta::before {\n display: table;\n content: '';\n}\n.ant-card-meta::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-meta::before {\n display: table;\n content: '';\n}\n.ant-card-meta::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-card-meta-avatar {\n float: left;\n padding-right: 16px;\n}\n.ant-card-rtl .ant-card-meta-avatar {\n float: right;\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-card-meta-detail {\n overflow: hidden;\n}\n.ant-card-meta-detail > div:not(:last-child) {\n margin-bottom: 8px;\n}\n.ant-card-meta-title {\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-card-meta-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-card-loading {\n overflow: hidden;\n}\n.ant-card-loading .ant-card-body {\n user-select: none;\n}\n.ant-card-loading-content p {\n margin: 0;\n}\n.ant-card-loading-block {\n height: 14px;\n margin: 4px 0;\n background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));\n background-size: 600% 600%;\n border-radius: 5px;\n animation: card-loading 1.4s ease infinite;\n}\n@keyframes card-loading {\n 0%,\n 100% {\n background-position: 0 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n}\n.ant-card-small > .ant-card-head {\n min-height: 36px;\n padding: 0 12px;\n font-size: 14px;\n}\n.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title {\n padding: 8px 0;\n}\n.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra {\n padding: 8px 0;\n font-size: 14px;\n}\n.ant-card-small > .ant-card-body {\n padding: 12px;\n}\n.ant-carousel {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-carousel .slick-slider {\n position: relative;\n display: block;\n box-sizing: border-box;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: transparent;\n}\n.ant-carousel .slick-list {\n position: relative;\n display: block;\n margin: 0;\n padding: 0;\n overflow: hidden;\n}\n.ant-carousel .slick-list:focus {\n outline: none;\n}\n.ant-carousel .slick-list.dragging {\n cursor: pointer;\n}\n.ant-carousel .slick-list .slick-slide {\n pointer-events: none;\n}\n.ant-carousel .slick-list .slick-slide input.ant-radio-input,\n.ant-carousel .slick-list .slick-slide input.ant-checkbox-input {\n visibility: hidden;\n}\n.ant-carousel .slick-list .slick-slide.slick-active {\n pointer-events: auto;\n}\n.ant-carousel .slick-list .slick-slide.slick-active input.ant-radio-input,\n.ant-carousel .slick-list .slick-slide.slick-active input.ant-checkbox-input {\n visibility: visible;\n}\n.ant-carousel .slick-list .slick-slide > div > div {\n vertical-align: bottom;\n}\n.ant-carousel .slick-slider .slick-track,\n.ant-carousel .slick-slider .slick-list {\n transform: translate3d(0, 0, 0);\n touch-action: pan-y;\n}\n.ant-carousel .slick-track {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n}\n.ant-carousel .slick-track::before,\n.ant-carousel .slick-track::after {\n display: table;\n content: '';\n}\n.ant-carousel .slick-track::after {\n clear: both;\n}\n.slick-loading .ant-carousel .slick-track {\n visibility: hidden;\n}\n.ant-carousel .slick-slide {\n display: none;\n float: left;\n height: 100%;\n min-height: 1px;\n}\n.ant-carousel .slick-slide img {\n display: block;\n}\n.ant-carousel .slick-slide.slick-loading img {\n display: none;\n}\n.ant-carousel .slick-slide.dragging img {\n pointer-events: none;\n}\n.ant-carousel .slick-initialized .slick-slide {\n display: block;\n}\n.ant-carousel .slick-loading .slick-slide {\n visibility: hidden;\n}\n.ant-carousel .slick-vertical .slick-slide {\n display: block;\n height: auto;\n}\n.ant-carousel .slick-arrow.slick-hidden {\n display: none;\n}\n.ant-carousel .slick-prev,\n.ant-carousel .slick-next {\n position: absolute;\n top: 50%;\n display: block;\n width: 20px;\n height: 20px;\n margin-top: -10px;\n padding: 0;\n color: transparent;\n font-size: 0;\n line-height: 0;\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n}\n.ant-carousel .slick-prev:hover,\n.ant-carousel .slick-next:hover,\n.ant-carousel .slick-prev:focus,\n.ant-carousel .slick-next:focus {\n color: transparent;\n background: transparent;\n outline: none;\n}\n.ant-carousel .slick-prev:hover::before,\n.ant-carousel .slick-next:hover::before,\n.ant-carousel .slick-prev:focus::before,\n.ant-carousel .slick-next:focus::before {\n opacity: 1;\n}\n.ant-carousel .slick-prev.slick-disabled::before,\n.ant-carousel .slick-next.slick-disabled::before {\n opacity: 0.25;\n}\n.ant-carousel .slick-prev {\n left: -25px;\n}\n.ant-carousel .slick-prev::before {\n content: '←';\n}\n.ant-carousel .slick-next {\n right: -25px;\n}\n.ant-carousel .slick-next::before {\n content: '→';\n}\n.ant-carousel .slick-dots {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 15;\n display: flex !important;\n justify-content: center;\n margin-right: 15%;\n margin-left: 15%;\n padding-left: 0;\n list-style: none;\n}\n.ant-carousel .slick-dots-bottom {\n bottom: 12px;\n}\n.ant-carousel .slick-dots-top {\n top: 12px;\n bottom: auto;\n}\n.ant-carousel .slick-dots li {\n position: relative;\n display: inline-block;\n flex: 0 1 auto;\n box-sizing: content-box;\n width: 16px;\n height: 3px;\n margin: 0 2px;\n margin-right: 3px;\n margin-left: 3px;\n padding: 0;\n text-align: center;\n text-indent: -999px;\n vertical-align: top;\n transition: all 0.5s;\n}\n.ant-carousel .slick-dots li button {\n display: block;\n width: 100%;\n height: 3px;\n padding: 0;\n color: transparent;\n font-size: 0;\n background: #fff;\n border: 0;\n border-radius: 1px;\n outline: none;\n cursor: pointer;\n opacity: 0.3;\n transition: all 0.5s;\n}\n.ant-carousel .slick-dots li button:hover,\n.ant-carousel .slick-dots li button:focus {\n opacity: 0.75;\n}\n.ant-carousel .slick-dots li.slick-active {\n width: 24px;\n}\n.ant-carousel .slick-dots li.slick-active button {\n background: #fff;\n opacity: 1;\n}\n.ant-carousel .slick-dots li.slick-active:hover,\n.ant-carousel .slick-dots li.slick-active:focus {\n opacity: 1;\n}\n.ant-carousel-vertical .slick-dots {\n top: 50%;\n bottom: auto;\n flex-direction: column;\n width: 3px;\n height: auto;\n margin: 0;\n transform: translateY(-50%);\n}\n.ant-carousel-vertical .slick-dots-left {\n right: auto;\n left: 12px;\n}\n.ant-carousel-vertical .slick-dots-right {\n right: 12px;\n left: auto;\n}\n.ant-carousel-vertical .slick-dots li {\n width: 3px;\n height: 16px;\n margin: 4px 2px;\n vertical-align: baseline;\n}\n.ant-carousel-vertical .slick-dots li button {\n width: 3px;\n height: 16px;\n}\n.ant-carousel-vertical .slick-dots li.slick-active {\n width: 3px;\n height: 24px;\n}\n.ant-carousel-vertical .slick-dots li.slick-active button {\n width: 3px;\n height: 24px;\n}\n.ant-carousel-rtl {\n direction: rtl;\n}\n.ant-carousel-rtl .ant-carousel .slick-track {\n right: 0;\n left: auto;\n}\n.ant-carousel-rtl .ant-carousel .slick-prev {\n right: -25px;\n left: auto;\n}\n.ant-carousel-rtl .ant-carousel .slick-prev::before {\n content: '→';\n}\n.ant-carousel-rtl .ant-carousel .slick-next {\n right: auto;\n left: -25px;\n}\n.ant-carousel-rtl .ant-carousel .slick-next::before {\n content: '←';\n}\n.ant-carousel-rtl.ant-carousel .slick-dots {\n flex-direction: row-reverse;\n}\n.ant-carousel-rtl.ant-carousel-vertical .slick-dots {\n flex-direction: column;\n}\n.ant-cascader {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-cascader-input.ant-input {\n position: static;\n width: 100%;\n padding-right: 24px;\n background-color: transparent !important;\n cursor: pointer;\n}\n.ant-cascader-picker-show-search .ant-cascader-input.ant-input {\n position: relative;\n}\n.ant-cascader-picker {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n background-color: #fff;\n border-radius: 5px;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-cascader-picker-with-value .ant-cascader-picker-label {\n color: transparent;\n}\n.ant-cascader-picker-disabled {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-cascader-picker-disabled .ant-cascader-input {\n cursor: not-allowed;\n}\n.ant-cascader-picker:focus .ant-cascader-input {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-cascader-picker:focus .ant-cascader-input {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-cascader-picker-borderless .ant-cascader-input {\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-cascader-picker-show-search.ant-cascader-picker-focused {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-cascader-picker-label {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n height: 20px;\n margin-top: -10px;\n padding: 0 20px 0 12px;\n overflow: hidden;\n line-height: 20px;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-cascader-picker-clear {\n position: absolute;\n top: 50%;\n right: 12px;\n z-index: 2;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 12px;\n background: #fff;\n cursor: pointer;\n opacity: 0;\n transition: color 0.3s ease, opacity 0.15s ease;\n}\n.ant-cascader-picker-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-cascader-picker:hover .ant-cascader-picker-clear {\n opacity: 1;\n}\n.ant-cascader-picker-arrow {\n position: absolute;\n top: 50%;\n right: 12px;\n z-index: 1;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 12px;\n}\n.ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-cascader-picker-label:hover + .ant-cascader-input:not(.ant-cascader-picker-disabled .ant-cascader-picker-label:hover + .ant-cascader-input) {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-cascader-picker-small .ant-cascader-picker-clear,\n.ant-cascader-picker-small .ant-cascader-picker-arrow {\n right: 8px;\n}\n.ant-cascader-menus {\n position: absolute;\n z-index: 1050;\n font-size: 14px;\n white-space: nowrap;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-cascader-menus ul,\n.ant-cascader-menus ol {\n margin: 0;\n list-style: none;\n}\n.ant-cascader-menus-empty,\n.ant-cascader-menus-hidden {\n display: none;\n}\n.ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-bottomLeft,\n.ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-bottomLeft {\n animation-name: antSlideUpIn;\n}\n.ant-cascader-menus.slide-up-enter.slide-up-enter-active.ant-cascader-menus-placement-topLeft,\n.ant-cascader-menus.slide-up-appear.slide-up-appear-active.ant-cascader-menus-placement-topLeft {\n animation-name: antSlideDownIn;\n}\n.ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-bottomLeft {\n animation-name: antSlideUpOut;\n}\n.ant-cascader-menus.slide-up-leave.slide-up-leave-active.ant-cascader-menus-placement-topLeft {\n animation-name: antSlideDownOut;\n}\n.ant-cascader-menu {\n display: inline-block;\n min-width: 111px;\n height: 180px;\n margin: 0;\n padding: 4px 0;\n overflow: auto;\n vertical-align: top;\n list-style: none;\n border-right: 1px solid #f0f0f0;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n.ant-cascader-menu:first-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-cascader-menu:last-child {\n margin-right: -1px;\n border-right-color: transparent;\n border-radius: 0 5px 5px 0;\n}\n.ant-cascader-menu:only-child {\n border-radius: 5px;\n}\n.ant-cascader-menu-item {\n padding: 5px 12px;\n overflow: hidden;\n line-height: 22px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-cascader-menu-item:hover {\n background: #f5f5f5;\n}\n.ant-cascader-menu-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-cascader-menu-item-disabled:hover {\n background: transparent;\n}\n.ant-cascader-menu-empty .ant-cascader-menu-item {\n color: rgba(0, 0, 0, 0.25);\n cursor: default;\n pointer-events: none;\n}\n.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),\n.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {\n font-weight: 600;\n background-color: #f0f2ff;\n}\n.ant-cascader-menu-item-expand {\n position: relative;\n padding-right: 24px;\n}\n.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-item-loading-icon {\n position: absolute;\n right: 12px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n}\n.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-cascader-menu-item .ant-cascader-menu-item-keyword {\n color: #ff4d4f;\n}\n.ant-cascader-picker-rtl .ant-cascader-input.ant-input {\n padding-right: 11px;\n padding-left: 24px;\n text-align: right;\n}\n.ant-cascader-picker-rtl {\n direction: rtl;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-label {\n padding: 0 12px 0 20px;\n text-align: right;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-clear {\n right: auto;\n left: 12px;\n}\n.ant-cascader-picker-rtl .ant-cascader-picker-arrow {\n right: auto;\n left: 12px;\n}\n.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-clear,\n.ant-cascader-picker-rtl.ant-cascader-picker-small .ant-cascader-picker-arrow {\n right: auto;\n left: 8px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu {\n direction: rtl;\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:first-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:last-child {\n margin-right: 0;\n margin-left: -1px;\n border-left-color: transparent;\n border-radius: 5px 0 0 5px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu:only-child {\n border-radius: 5px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-expand {\n padding-right: 12px;\n padding-left: 24px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,\n.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {\n right: auto;\n left: 12px;\n}\n.ant-cascader-menu-rtl .ant-cascader-menu-item-loading-icon {\n transform: scaleY(-1);\n}\n@keyframes antCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.ant-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-checkbox-wrapper:hover .ant-checkbox-inner,\n.ant-checkbox:hover .ant-checkbox-inner,\n.ant-checkbox-input:focus + .ant-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-checkbox:hover::after,\n.ant-checkbox-wrapper:hover .ant-checkbox::after {\n visibility: visible;\n}\n.ant-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-checkbox-checked .ant-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-checkbox-checked .ant-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-checkbox-disabled .ant-checkbox-input {\n cursor: not-allowed;\n}\n.ant-checkbox-disabled .ant-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-checkbox-disabled .ant-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-checkbox-disabled:hover::after,\n.ant-checkbox-wrapper:hover .ant-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-checkbox-group-item + .ant-checkbox-group-item {\n margin-left: 0;\n}\n.ant-checkbox-indeterminate .ant-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-checkbox-indeterminate.ant-checkbox-disabled .ant-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-checkbox-rtl {\n direction: rtl;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-checkbox-group-rtl .ant-checkbox-group-item + .ant-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-collapse {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-bottom: 0;\n border-radius: 5px;\n}\n.ant-collapse > .ant-collapse-item {\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-collapse > .ant-collapse-item:last-child,\n.ant-collapse > .ant-collapse-item:last-child > .ant-collapse-header {\n border-radius: 0 0 5px 5px;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header {\n position: relative;\n padding: 12px 16px;\n padding-left: 40px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 1.5715;\n cursor: pointer;\n transition: all 0.3s, visibility 0s;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::before {\n display: table;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::before {\n display: table;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n top: 5.0005px;\n left: 16px;\n display: inline-block;\n padding: 12px 16px;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n font-size: 12px;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow > * {\n line-height: 1;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n display: inline-block;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow::before {\n display: none;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow-icon {\n display: block;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n transition: transform 0.24s;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {\n float: right;\n}\n.ant-collapse > .ant-collapse-item > .ant-collapse-header:focus {\n outline: none;\n}\n.ant-collapse > .ant-collapse-item .ant-collapse-header-collapsible-only {\n cursor: default;\n}\n.ant-collapse > .ant-collapse-item .ant-collapse-header-collapsible-only .ant-collapse-header-text {\n cursor: pointer;\n}\n.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {\n padding-left: 12px;\n}\n.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header {\n padding: 12px 16px;\n padding-right: 40px;\n}\n.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {\n right: 16px;\n left: auto;\n}\n.ant-collapse-content {\n color: rgba(0, 0, 0, 0.85);\n background-color: #fff;\n border-top: 1px solid #d9d9d9;\n}\n.ant-collapse-content > .ant-collapse-content-box {\n padding: 16px;\n}\n.ant-collapse-content-hidden {\n display: none;\n}\n.ant-collapse-item:last-child > .ant-collapse-content {\n border-radius: 0 0 5px 5px;\n}\n.ant-collapse-borderless {\n background-color: #fafafa;\n border: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item {\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-collapse-borderless > .ant-collapse-item:last-child,\n.ant-collapse-borderless > .ant-collapse-item:last-child .ant-collapse-header {\n border-radius: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item > .ant-collapse-content {\n background-color: transparent;\n border-top: 0;\n}\n.ant-collapse-borderless > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 4px;\n}\n.ant-collapse-ghost {\n background-color: transparent;\n border: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item {\n border-bottom: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content {\n background-color: transparent;\n border-top: 0;\n}\n.ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.ant-collapse .ant-collapse-item-disabled > .ant-collapse-header,\n.ant-collapse .ant-collapse-item-disabled > .ant-collapse-header > .arrow {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-collapse-rtl {\n direction: rtl;\n}\n.ant-collapse-rtl .ant-collapse > .ant-collapse-item > .ant-collapse-header {\n padding: 12px 16px;\n padding-right: 40px;\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {\n transform: rotate(180deg);\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {\n float: left;\n}\n.ant-collapse-rtl.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {\n padding-right: 12px;\n padding-left: 0;\n}\n.ant-comment {\n position: relative;\n background-color: inherit;\n}\n.ant-comment-inner {\n display: flex;\n padding: 16px 0;\n}\n.ant-comment-avatar {\n position: relative;\n flex-shrink: 0;\n margin-right: 12px;\n cursor: pointer;\n}\n.ant-comment-avatar img {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n}\n.ant-comment-content {\n position: relative;\n flex: 1 1 auto;\n min-width: 1px;\n font-size: 14px;\n word-wrap: break-word;\n}\n.ant-comment-content-author {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-bottom: 4px;\n font-size: 14px;\n}\n.ant-comment-content-author > a,\n.ant-comment-content-author > span {\n padding-right: 8px;\n font-size: 12px;\n line-height: 18px;\n}\n.ant-comment-content-author-name {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n transition: color 0.3s;\n}\n.ant-comment-content-author-name > * {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-content-author-name > *:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-content-author-time {\n color: #ccc;\n white-space: nowrap;\n cursor: auto;\n}\n.ant-comment-content-detail p {\n margin-bottom: inherit;\n white-space: pre-wrap;\n}\n.ant-comment-actions {\n margin-top: 12px;\n margin-bottom: inherit;\n padding-left: 0;\n}\n.ant-comment-actions > li {\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-comment-actions > li > span {\n margin-right: 10px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n cursor: pointer;\n transition: color 0.3s;\n user-select: none;\n}\n.ant-comment-actions > li > span:hover {\n color: #595959;\n}\n.ant-comment-nested {\n margin-left: 44px;\n}\n.ant-comment-rtl {\n direction: rtl;\n}\n.ant-comment-rtl .ant-comment-avatar {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-comment-rtl .ant-comment-content-author > a,\n.ant-comment-rtl .ant-comment-content-author > span {\n padding-right: 0;\n padding-left: 8px;\n}\n.ant-comment-rtl .ant-comment-actions {\n padding-right: 0;\n}\n.ant-comment-rtl .ant-comment-actions > li > span {\n margin-right: 0;\n margin-left: 10px;\n}\n.ant-comment-rtl .ant-comment-nested {\n margin-right: 44px;\n margin-left: 0;\n}\n.ant-picker {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n padding: 4px 11px 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: border 0.3s, box-shadow 0.3s;\n}\n.ant-picker:hover,\n.ant-picker-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-picker:hover,\n.ant-input-rtl .ant-picker-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-picker-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker.ant-picker-disabled {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-picker.ant-picker-disabled .ant-picker-suffix {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-picker.ant-picker-borderless {\n background-color: transparent !important;\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-picker-input {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n}\n.ant-picker-input > input {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n flex: auto;\n min-width: 1px;\n height: auto;\n padding: 0;\n background: transparent;\n border: 0;\n}\n.ant-picker-input > input::-moz-placeholder {\n opacity: 1;\n}\n.ant-picker-input > input::placeholder {\n color: #bfbfbf;\n}\n.ant-picker-input > input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-picker-input > input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-picker-input > input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-input > input:focus,\n.ant-picker-input > input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-picker-input > input:focus,\n.ant-input-rtl .ant-picker-input > input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-picker-input > input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-picker-input > input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-picker-input > input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-picker-input > input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-picker-input > input-borderless,\n.ant-picker-input > input-borderless:hover,\n.ant-picker-input > input-borderless:focus,\n.ant-picker-input > input-borderless-focused,\n.ant-picker-input > input-borderless-disabled,\n.ant-picker-input > input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-picker-input > input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-picker-input > input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-picker-input > input-sm {\n padding: 0px 7px;\n}\n.ant-picker-input > input-rtl {\n direction: rtl;\n}\n.ant-picker-input > input:focus {\n box-shadow: none;\n}\n.ant-picker-input > input[disabled] {\n background: transparent;\n}\n.ant-picker-input:hover .ant-picker-clear {\n opacity: 1;\n}\n.ant-picker-input-placeholder > input {\n color: #bfbfbf;\n}\n.ant-picker-large {\n padding: 6.5px 11px 6.5px;\n}\n.ant-picker-large .ant-picker-input > input {\n font-size: 16px;\n}\n.ant-picker-small {\n padding: 0px 7px 0px;\n}\n.ant-picker-suffix {\n align-self: center;\n margin-left: 4px;\n color: rgba(0, 0, 0, 0.25);\n line-height: 1;\n pointer-events: none;\n}\n.ant-picker-suffix > * {\n vertical-align: top;\n}\n.ant-picker-clear {\n position: absolute;\n top: 50%;\n right: 0;\n color: rgba(0, 0, 0, 0.25);\n line-height: 1;\n background: #fff;\n transform: translateY(-50%);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.3s, color 0.3s;\n}\n.ant-picker-clear > * {\n vertical-align: top;\n}\n.ant-picker-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-picker-separator {\n position: relative;\n display: inline-block;\n width: 1em;\n height: 16px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 16px;\n vertical-align: top;\n cursor: default;\n}\n.ant-picker-focused .ant-picker-separator {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator {\n cursor: not-allowed;\n}\n.ant-picker-range {\n position: relative;\n display: inline-flex;\n}\n.ant-picker-range .ant-picker-clear {\n right: 11px;\n}\n.ant-picker-range:hover .ant-picker-clear {\n opacity: 1;\n}\n.ant-picker-range .ant-picker-active-bar {\n bottom: -1px;\n height: 2px;\n margin-left: 11px;\n background: #5b5ce1;\n opacity: 0;\n transition: all 0.3s ease-out;\n pointer-events: none;\n}\n.ant-picker-range.ant-picker-focused .ant-picker-active-bar {\n opacity: 1;\n}\n.ant-picker-range-separator {\n align-items: center;\n padding: 0 8px;\n line-height: 1;\n}\n.ant-picker-range.ant-picker-small .ant-picker-clear {\n right: 7px;\n}\n.ant-picker-range.ant-picker-small .ant-picker-active-bar {\n margin-left: 7px;\n}\n.ant-picker-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n z-index: 1050;\n}\n.ant-picker-dropdown-hidden {\n display: none;\n}\n.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow {\n top: 1.66666667px;\n display: block;\n transform: rotate(-45deg);\n}\n.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow {\n bottom: 1.66666667px;\n display: block;\n transform: rotate(135deg);\n}\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-topRight,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-topRight {\n animation-name: antSlideDownIn;\n}\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-enter.slide-up-enter-active.ant-picker-dropdown-placement-bottomRight,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-appear.slide-up-appear-active.ant-picker-dropdown-placement-bottomRight {\n animation-name: antSlideUpIn;\n}\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-topLeft,\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-topRight {\n animation-name: antSlideDownOut;\n}\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,\n.ant-picker-dropdown.slide-up-leave.slide-up-leave-active.ant-picker-dropdown-placement-bottomRight {\n animation-name: antSlideUpOut;\n}\n.ant-picker-dropdown-range {\n padding: 6.66666667px 0;\n}\n.ant-picker-dropdown-range-hidden {\n display: none;\n}\n.ant-picker-dropdown .ant-picker-panel > .ant-picker-time-panel {\n padding-top: 4px;\n}\n.ant-picker-ranges {\n margin-bottom: 0;\n padding: 4px 12px;\n overflow: hidden;\n line-height: 34px;\n text-align: left;\n list-style: none;\n}\n.ant-picker-ranges > li {\n display: inline-block;\n}\n.ant-picker-ranges .ant-picker-preset > .ant-tag-blue {\n color: #5b5ce1;\n background: #f0f2ff;\n border-color: #e0e3ff;\n cursor: pointer;\n}\n.ant-picker-ranges .ant-picker-ok {\n float: right;\n margin-left: 8px;\n}\n.ant-picker-range-wrapper {\n display: flex;\n}\n.ant-picker-range-arrow {\n position: absolute;\n z-index: 1;\n display: none;\n width: 10px;\n height: 10px;\n margin-left: 16.5px;\n box-shadow: 2px -2px 6px rgba(0, 0, 0, 0.06);\n transition: left 0.3s ease-out;\n}\n.ant-picker-range-arrow::after {\n position: absolute;\n top: 1px;\n right: 1px;\n width: 10px;\n height: 10px;\n border: 5px solid #f0f0f0;\n border-color: #fff #fff transparent transparent;\n content: '';\n}\n.ant-picker-panel-container {\n overflow: hidden;\n vertical-align: top;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n transition: margin 0.3s;\n}\n.ant-picker-panel-container .ant-picker-panels {\n display: inline-flex;\n flex-wrap: nowrap;\n direction: ltr;\n}\n.ant-picker-panel-container .ant-picker-panel {\n vertical-align: top;\n background: transparent;\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.ant-picker-panel-container .ant-picker-panel-focused {\n border-color: #f0f0f0;\n}\n.ant-picker-panel {\n display: inline-flex;\n flex-direction: column;\n text-align: center;\n background: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n outline: none;\n}\n.ant-picker-panel-focused {\n border-color: #5b5ce1;\n}\n.ant-picker-decade-panel,\n.ant-picker-year-panel,\n.ant-picker-quarter-panel,\n.ant-picker-month-panel,\n.ant-picker-week-panel,\n.ant-picker-date-panel,\n.ant-picker-time-panel {\n display: flex;\n flex-direction: column;\n width: 280px;\n}\n.ant-picker-header {\n display: flex;\n padding: 0 8px;\n color: rgba(0, 0, 0, 0.85);\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-picker-header > * {\n flex: none;\n}\n.ant-picker-header button {\n padding: 0;\n color: rgba(0, 0, 0, 0.25);\n line-height: 40px;\n background: transparent;\n border: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-picker-header > button {\n min-width: 1.6em;\n font-size: 14px;\n}\n.ant-picker-header > button:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-picker-header-view {\n flex: auto;\n font-weight: 500;\n line-height: 40px;\n}\n.ant-picker-header-view button {\n color: inherit;\n font-weight: inherit;\n}\n.ant-picker-header-view button:not(:first-child) {\n margin-left: 8px;\n}\n.ant-picker-header-view button:hover {\n color: #5b5ce1;\n}\n.ant-picker-prev-icon,\n.ant-picker-next-icon,\n.ant-picker-super-prev-icon,\n.ant-picker-super-next-icon {\n position: relative;\n display: inline-block;\n width: 7px;\n height: 7px;\n}\n.ant-picker-prev-icon::before,\n.ant-picker-next-icon::before,\n.ant-picker-super-prev-icon::before,\n.ant-picker-super-next-icon::before {\n position: absolute;\n top: 0;\n left: 0;\n display: inline-block;\n width: 7px;\n height: 7px;\n border: 0 solid currentColor;\n border-width: 1.5px 0 0 1.5px;\n content: '';\n}\n.ant-picker-super-prev-icon::after,\n.ant-picker-super-next-icon::after {\n position: absolute;\n top: 4px;\n left: 4px;\n display: inline-block;\n width: 7px;\n height: 7px;\n border: 0 solid currentColor;\n border-width: 1.5px 0 0 1.5px;\n content: '';\n}\n.ant-picker-prev-icon,\n.ant-picker-super-prev-icon {\n transform: rotate(-45deg);\n}\n.ant-picker-next-icon,\n.ant-picker-super-next-icon {\n transform: rotate(135deg);\n}\n.ant-picker-content {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n}\n.ant-picker-content th,\n.ant-picker-content td {\n position: relative;\n min-width: 24px;\n font-weight: 400;\n}\n.ant-picker-content th {\n height: 30px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 30px;\n}\n.ant-picker-cell {\n padding: 3px 0;\n color: rgba(0, 0, 0, 0.25);\n cursor: pointer;\n}\n.ant-picker-cell-in-view {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-picker-cell-disabled {\n cursor: not-allowed;\n}\n.ant-picker-cell::before {\n position: absolute;\n top: 50%;\n right: 0;\n left: 0;\n z-index: 1;\n height: 24px;\n transform: translateY(-50%);\n content: '';\n}\n.ant-picker-cell .ant-picker-cell-inner {\n position: relative;\n z-index: 2;\n display: inline-block;\n min-width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 5px;\n transition: background 0.3s, border 0.3s;\n}\n.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,\n.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner {\n background: #f5f5f5;\n}\n.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n content: '';\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range {\n position: relative;\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range::before {\n background: #f0f2ff;\n}\n.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,\n.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,\n.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {\n color: #fff;\n background: #5b5ce1;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single)::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single)::before {\n background: #f0f2ff;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start::before {\n left: 50%;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-end::before {\n right: 50%;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range)::after {\n position: absolute;\n top: 50%;\n z-index: 0;\n height: 24px;\n border-top: 1px dashed #b1b2f1;\n border-bottom: 1px dashed #b1b2f1;\n transform: translateY(-50%);\n content: '';\n}\n.ant-picker-cell-range-hover-start::after,\n.ant-picker-cell-range-hover-end::after,\n.ant-picker-cell-range-hover::after {\n right: 0;\n left: 2px;\n}\n.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start::before,\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end::before,\n.ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start::before,\n.ant-picker-panel > :not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end::before {\n background: #f2f2fd;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after,\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: #f2f2fd;\n content: '';\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after {\n right: -6px;\n left: 0;\n}\n.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n right: 0;\n left: -6px;\n}\n.ant-picker-cell-range-hover.ant-picker-cell-range-start::after {\n right: 50%;\n}\n.ant-picker-cell-range-hover.ant-picker-cell-range-end::after {\n left: 50%;\n}\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child::after,\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,\n.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {\n left: 6px;\n border-left: 1px dashed #b1b2f1;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child::after,\ntr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after,\n.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after,\n.ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {\n right: 6px;\n border-right: 1px dashed #b1b2f1;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-picker-cell-disabled {\n pointer-events: none;\n}\n.ant-picker-cell-disabled .ant-picker-cell-inner {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n}\n.ant-picker-cell-disabled::before {\n background: #f5f5f5;\n}\n.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner::before {\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-picker-decade-panel .ant-picker-content,\n.ant-picker-year-panel .ant-picker-content,\n.ant-picker-quarter-panel .ant-picker-content,\n.ant-picker-month-panel .ant-picker-content {\n height: 264px;\n}\n.ant-picker-decade-panel .ant-picker-cell-inner,\n.ant-picker-year-panel .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-inner {\n padding: 0 8px;\n}\n.ant-picker-decade-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-year-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-disabled .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-disabled .ant-picker-cell-inner {\n background: #f5f5f5;\n}\n.ant-picker-quarter-panel .ant-picker-content {\n height: 56px;\n}\n.ant-picker-footer {\n width: min-content;\n min-width: 100%;\n line-height: 38px;\n text-align: center;\n border-bottom: 1px solid transparent;\n}\n.ant-picker-panel .ant-picker-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-picker-footer-extra {\n padding: 0 12px;\n line-height: 38px;\n text-align: left;\n}\n.ant-picker-footer-extra:not(:last-child) {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-picker-now {\n text-align: left;\n}\n.ant-picker-today-btn {\n color: #5b5ce1;\n}\n.ant-picker-today-btn:hover {\n color: #8588ed;\n}\n.ant-picker-today-btn:active {\n color: #4541ba;\n}\n.ant-picker-today-btn.ant-picker-today-btn-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-picker-decade-panel .ant-picker-cell-inner {\n padding: 0 4px;\n}\n.ant-picker-decade-panel .ant-picker-cell::before {\n display: none;\n}\n.ant-picker-year-panel .ant-picker-body,\n.ant-picker-quarter-panel .ant-picker-body,\n.ant-picker-month-panel .ant-picker-body {\n padding: 0 8px;\n}\n.ant-picker-year-panel .ant-picker-cell-inner,\n.ant-picker-quarter-panel .ant-picker-cell-inner,\n.ant-picker-month-panel .ant-picker-cell-inner {\n width: 60px;\n}\n.ant-picker-year-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-month-panel .ant-picker-cell-range-hover-start::after {\n left: 14px;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start::after,\n.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start::after {\n right: 14px;\n border-right: 1px dashed #b1b2f1;\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-year-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-month-panel .ant-picker-cell-range-hover-end::after {\n right: 14px;\n border-right: 1px dashed #b1b2f1;\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end::after,\n.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end::after {\n left: 14px;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-week-panel .ant-picker-body {\n padding: 8px 12px;\n}\n.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner,\n.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,\n.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner {\n background: transparent !important;\n}\n.ant-picker-week-panel-row td {\n transition: background 0.3s;\n}\n.ant-picker-week-panel-row:hover td {\n background: #f5f5f5;\n}\n.ant-picker-week-panel-row-selected td,\n.ant-picker-week-panel-row-selected:hover td {\n background: #5b5ce1;\n}\n.ant-picker-week-panel-row-selected td.ant-picker-cell-week,\n.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week {\n color: rgba(255, 255, 255, 0.5);\n}\n.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner::before,\n.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner::before {\n border-color: #fff;\n}\n.ant-picker-week-panel-row-selected td .ant-picker-cell-inner,\n.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner {\n color: #fff;\n}\n.ant-picker-date-panel .ant-picker-body {\n padding: 8px 12px;\n}\n.ant-picker-date-panel .ant-picker-content {\n width: 252px;\n}\n.ant-picker-date-panel .ant-picker-content th {\n width: 36px;\n}\n.ant-picker-datetime-panel {\n display: flex;\n}\n.ant-picker-datetime-panel .ant-picker-time-panel {\n border-left: 1px solid #f0f0f0;\n}\n.ant-picker-datetime-panel .ant-picker-date-panel,\n.ant-picker-datetime-panel .ant-picker-time-panel {\n transition: opacity 0.3s;\n}\n.ant-picker-datetime-panel-active .ant-picker-date-panel,\n.ant-picker-datetime-panel-active .ant-picker-time-panel {\n opacity: 0.3;\n}\n.ant-picker-datetime-panel-active .ant-picker-date-panel-active,\n.ant-picker-datetime-panel-active .ant-picker-time-panel-active {\n opacity: 1;\n}\n.ant-picker-time-panel {\n width: auto;\n min-width: auto;\n}\n.ant-picker-time-panel .ant-picker-content {\n display: flex;\n flex: auto;\n height: 224px;\n}\n.ant-picker-time-panel-column {\n flex: 1 0 auto;\n width: 56px;\n margin: 0;\n padding: 0;\n overflow-y: hidden;\n text-align: left;\n list-style: none;\n transition: background 0.3s;\n}\n.ant-picker-time-panel-column::after {\n display: block;\n height: 196px;\n content: '';\n}\n.ant-picker-datetime-panel .ant-picker-time-panel-column::after {\n height: 198px;\n}\n.ant-picker-time-panel-column:not(:first-child) {\n border-left: 1px solid #f0f0f0;\n}\n.ant-picker-time-panel-column-active {\n background: rgba(240, 242, 255, 0.2);\n}\n.ant-picker-time-panel-column:hover {\n overflow-y: auto;\n}\n.ant-picker-time-panel-column > li {\n margin: 0;\n padding: 0;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner {\n display: block;\n width: 100%;\n height: 28px;\n margin: 0;\n padding: 0 0 0 14px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 28px;\n border-radius: 0;\n cursor: pointer;\n transition: background 0.3s;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover {\n background: #f5f5f5;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner {\n background: #f0f2ff;\n}\n.ant-picker-time-panel-column > li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n cursor: not-allowed;\n}\n/* stylelint-disable-next-line */\n_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,\n:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,\n_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,\n:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell {\n padding: 21px 0;\n}\n.ant-picker-rtl {\n direction: rtl;\n}\n.ant-picker-rtl .ant-picker-suffix {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-picker-rtl .ant-picker-clear {\n right: auto;\n left: 0;\n}\n.ant-picker-rtl .ant-picker-separator {\n transform: rotate(180deg);\n}\n.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child) {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-rtl.ant-picker-range .ant-picker-clear {\n right: auto;\n left: 11px;\n}\n.ant-picker-rtl.ant-picker-range .ant-picker-active-bar {\n margin-right: 11px;\n margin-left: 0;\n}\n.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar {\n margin-right: 7px;\n}\n.ant-picker-dropdown-rtl .ant-picker-ranges {\n text-align: right;\n}\n.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok {\n float: left;\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-picker-panel-rtl {\n direction: rtl;\n}\n.ant-picker-panel-rtl .ant-picker-prev-icon,\n.ant-picker-panel-rtl .ant-picker-super-prev-icon {\n transform: rotate(135deg);\n}\n.ant-picker-panel-rtl .ant-picker-next-icon,\n.ant-picker-panel-rtl .ant-picker-super-next-icon {\n transform: rotate(-45deg);\n}\n.ant-picker-cell .ant-picker-cell-inner {\n position: relative;\n z-index: 2;\n display: inline-block;\n min-width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 5px;\n transition: background 0.3s, border 0.3s;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start::before {\n right: 50%;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end::before {\n right: 0;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end::before {\n right: 50%;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner::after {\n right: 0;\n left: -6px;\n}\n.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner::after {\n right: -6px;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start::after {\n right: 0;\n left: 50%;\n}\n.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end::after {\n right: 50%;\n left: 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner {\n border-radius: 0 5px 5px 0;\n}\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner {\n border-radius: 5px 0 0 5px;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start::after {\n right: 6px;\n left: 0;\n border-right: 1px dashed #b1b2f1;\n border-left: none;\n border-top-left-radius: 0;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 0;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end::after {\n right: 0;\n left: 6px;\n border-right: none;\n border-left: 1px dashed #b1b2f1;\n border-top-left-radius: 5px;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 5px;\n}\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover)::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child::after,\n.ant-picker-panel-rtl tr > .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child::after {\n right: 6px;\n left: 6px;\n border-right: 1px dashed #b1b2f1;\n border-left: 1px dashed #b1b2f1;\n border-radius: 5px;\n}\n.ant-picker-dropdown-rtl .ant-picker-footer-extra {\n direction: rtl;\n text-align: right;\n}\n.ant-picker-panel-rtl .ant-picker-time-panel {\n direction: ltr;\n}\n.ant-descriptions-header {\n display: flex;\n align-items: center;\n margin-bottom: 20px;\n}\n.ant-descriptions-title {\n flex: auto;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: bold;\n font-size: 16px;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-descriptions-extra {\n margin-left: auto;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-descriptions-view {\n width: 100%;\n overflow: hidden;\n border-radius: 5px;\n}\n.ant-descriptions-view table {\n width: 100%;\n table-layout: fixed;\n}\n.ant-descriptions-row > th,\n.ant-descriptions-row > td {\n padding-bottom: 16px;\n}\n.ant-descriptions-row:last-child {\n border-bottom: none;\n}\n.ant-descriptions-item-label {\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 1.5715;\n text-align: start;\n}\n.ant-descriptions-item-label::after {\n content: ':';\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n}\n.ant-descriptions-item-label.ant-descriptions-item-no-colon::after {\n content: ' ';\n}\n.ant-descriptions-item-no-label::after {\n margin: 0;\n content: '';\n}\n.ant-descriptions-item-content {\n display: table-cell;\n flex: 1;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n word-break: break-word;\n overflow-wrap: break-word;\n}\n.ant-descriptions-item {\n padding-bottom: 0;\n vertical-align: top;\n}\n.ant-descriptions-item-container {\n display: flex;\n}\n.ant-descriptions-item-container .ant-descriptions-item-label,\n.ant-descriptions-item-container .ant-descriptions-item-content {\n display: inline-flex;\n align-items: baseline;\n}\n.ant-descriptions-middle .ant-descriptions-row > th,\n.ant-descriptions-middle .ant-descriptions-row > td {\n padding-bottom: 12px;\n}\n.ant-descriptions-small .ant-descriptions-row > th,\n.ant-descriptions-small .ant-descriptions-row > td {\n padding-bottom: 8px;\n}\n.ant-descriptions-bordered .ant-descriptions-view {\n border: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-view > table {\n table-layout: auto;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label,\n.ant-descriptions-bordered .ant-descriptions-item-content {\n padding: 16px 24px;\n border-right: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label:last-child,\n.ant-descriptions-bordered .ant-descriptions-item-content:last-child {\n border-right: none;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label {\n background-color: #fafafa;\n}\n.ant-descriptions-bordered .ant-descriptions-item-label::after {\n display: none;\n}\n.ant-descriptions-bordered .ant-descriptions-row {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-descriptions-bordered .ant-descriptions-row:last-child {\n border-bottom: none;\n}\n.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-label,\n.ant-descriptions-bordered.ant-descriptions-middle .ant-descriptions-item-content {\n padding: 12px 24px;\n}\n.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label,\n.ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-content {\n padding: 8px 16px;\n}\n.ant-descriptions-rtl {\n direction: rtl;\n}\n.ant-descriptions-rtl .ant-descriptions-item-label::after {\n margin: 0 2px 0 8px;\n}\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label,\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-label:last-child,\n.ant-descriptions-rtl.ant-descriptions-bordered .ant-descriptions-item-content:last-child {\n border-left: none;\n}\n.ant-divider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n border-top: 1px solid rgba(0, 0, 0, 0.06);\n}\n.ant-divider-vertical {\n position: relative;\n top: -0.06em;\n display: inline-block;\n height: 0.9em;\n margin: 0 8px;\n vertical-align: middle;\n border-top: 0;\n border-left: 1px solid rgba(0, 0, 0, 0.06);\n}\n.ant-divider-horizontal {\n display: flex;\n clear: both;\n width: 100%;\n min-width: 100%;\n margin: 24px 0;\n}\n.ant-divider-horizontal.ant-divider-with-text {\n display: flex;\n margin: 16px 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n white-space: nowrap;\n text-align: center;\n border-top: 0;\n border-top-color: rgba(0, 0, 0, 0.06);\n}\n.ant-divider-horizontal.ant-divider-with-text::before,\n.ant-divider-horizontal.ant-divider-with-text::after {\n position: relative;\n top: 50%;\n width: 50%;\n border-top: 1px solid transparent;\n border-top-color: inherit;\n border-bottom: 0;\n transform: translateY(50%);\n content: '';\n}\n.ant-divider-horizontal.ant-divider-with-text-left::before {\n top: 50%;\n width: 5%;\n}\n.ant-divider-horizontal.ant-divider-with-text-left::after {\n top: 50%;\n width: 95%;\n}\n.ant-divider-horizontal.ant-divider-with-text-right::before {\n top: 50%;\n width: 95%;\n}\n.ant-divider-horizontal.ant-divider-with-text-right::after {\n top: 50%;\n width: 5%;\n}\n.ant-divider-inner-text {\n display: inline-block;\n padding: 0 1em;\n}\n.ant-divider-dashed {\n background: none;\n border-color: rgba(0, 0, 0, 0.06);\n border-style: dashed;\n border-width: 1px 0 0;\n}\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed {\n border-top: 0;\n}\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before,\n.ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after {\n border-style: dashed none none;\n}\n.ant-divider-vertical.ant-divider-dashed {\n border-width: 0 0 0 1px;\n}\n.ant-divider-plain.ant-divider-with-text {\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-divider-rtl {\n direction: rtl;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::before {\n width: 95%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-left::after {\n width: 5%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::before {\n width: 5%;\n}\n.ant-divider-rtl.ant-divider-horizontal.ant-divider-with-text-right::after {\n width: 95%;\n}\n.ant-drawer {\n position: fixed;\n z-index: 1000;\n width: 0%;\n height: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;\n}\n.ant-drawer > * {\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-content-wrapper {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.ant-drawer .ant-drawer-content {\n width: 100%;\n height: 100%;\n}\n.ant-drawer-left,\n.ant-drawer-right {\n top: 0;\n width: 0%;\n height: 100%;\n}\n.ant-drawer-left .ant-drawer-content-wrapper,\n.ant-drawer-right .ant-drawer-content-wrapper {\n height: 100%;\n}\n.ant-drawer-left.ant-drawer-open,\n.ant-drawer-right.ant-drawer-open {\n width: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-left {\n left: 0;\n}\n.ant-drawer-left .ant-drawer-content-wrapper {\n left: 0;\n}\n.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-right {\n right: 0;\n}\n.ant-drawer-right .ant-drawer-content-wrapper {\n right: 0;\n}\n.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-right.ant-drawer-open.no-mask {\n right: 1px;\n transform: translateX(1px);\n}\n.ant-drawer-top,\n.ant-drawer-bottom {\n left: 0;\n width: 100%;\n height: 0%;\n}\n.ant-drawer-top .ant-drawer-content-wrapper,\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n width: 100%;\n}\n.ant-drawer-top.ant-drawer-open,\n.ant-drawer-bottom.ant-drawer-open {\n height: 100%;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-top {\n top: 0;\n}\n.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-bottom {\n bottom: 0;\n}\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n bottom: 0;\n}\n.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {\n box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);\n}\n.ant-drawer-bottom.ant-drawer-open.no-mask {\n bottom: 1px;\n transform: translateY(1px);\n}\n.ant-drawer.ant-drawer-open .ant-drawer-mask {\n height: 100%;\n opacity: 1;\n transition: none;\n animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n pointer-events: auto;\n}\n.ant-drawer-title {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n}\n.ant-drawer-content {\n position: relative;\n z-index: 1;\n overflow: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n}\n.ant-drawer-close {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n display: block;\n padding: 20px;\n color: rgba(0, 0, 0, 0.45);\n font-weight: 700;\n font-size: 16px;\n font-style: normal;\n line-height: 1;\n text-align: center;\n text-transform: none;\n text-decoration: none;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n text-rendering: auto;\n}\n.ant-drawer-close:focus,\n.ant-drawer-close:hover {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}\n.ant-drawer-header-no-title .ant-drawer-close {\n margin-right: var(--scroll-bar);\n /* stylelint-disable-next-line function-calc-no-invalid */\n padding-right: calc(20px - var(--scroll-bar));\n}\n.ant-drawer-header {\n position: relative;\n padding: 16px 24px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-drawer-header-no-title {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-drawer-wrapper-body {\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n}\n.ant-drawer-body {\n flex-grow: 1;\n padding: 24px;\n overflow: auto;\n font-size: 14px;\n line-height: 1.5715;\n word-wrap: break-word;\n}\n.ant-drawer-footer {\n flex-shrink: 0;\n padding: 10px 16px;\n border-top: 1px solid #f0f0f0;\n}\n.ant-drawer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 0;\n background-color: rgba(0, 0, 0, 0.45);\n opacity: 0;\n filter: alpha(opacity=45);\n transition: opacity 0.3s linear, height 0s ease 0.3s;\n pointer-events: none;\n}\n.ant-drawer-open-content {\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-drawer .ant-picker-clear {\n background: #fff;\n}\n@keyframes antdDrawerFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ant-drawer-rtl {\n direction: rtl;\n}\n.ant-drawer-rtl .ant-drawer-close {\n right: auto;\n left: 0;\n}\n.ant-dropdown-menu-item.ant-dropdown-menu-item-danger {\n color: #ff4d4f;\n}\n.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {\n color: #fff;\n background-color: #ff4d4f;\n}\n.ant-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n display: block;\n}\n.ant-dropdown::before {\n position: absolute;\n top: -4px;\n right: 0;\n bottom: -4px;\n left: -7px;\n z-index: -9999;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-dropdown-wrap {\n position: relative;\n}\n.ant-dropdown-wrap .ant-btn > .anticon-down {\n font-size: 10px;\n}\n.ant-dropdown-wrap .anticon-down::before {\n transition: transform 0.2s;\n}\n.ant-dropdown-wrap-open .anticon-down::before {\n transform: rotate(180deg);\n}\n.ant-dropdown-hidden,\n.ant-dropdown-menu-hidden {\n display: none;\n}\n.ant-dropdown-show-arrow.ant-dropdown-placement-topCenter,\n.ant-dropdown-show-arrow.ant-dropdown-placement-topLeft,\n.ant-dropdown-show-arrow.ant-dropdown-placement-topRight {\n padding-bottom: 10px;\n}\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomCenter,\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomLeft,\n.ant-dropdown-show-arrow.ant-dropdown-placement-bottomRight {\n padding-top: 10px;\n}\n.ant-dropdown-arrow {\n position: absolute;\n z-index: 1;\n display: block;\n width: 8.48528137px;\n height: 8.48528137px;\n background: transparent;\n border-style: solid;\n border-width: 4.24264069px;\n transform: rotate(45deg);\n}\n.ant-dropdown-placement-topCenter > .ant-dropdown-arrow,\n.ant-dropdown-placement-topLeft > .ant-dropdown-arrow,\n.ant-dropdown-placement-topRight > .ant-dropdown-arrow {\n bottom: 6.2px;\n border-top-color: transparent;\n border-right-color: #fff;\n border-bottom-color: #fff;\n border-left-color: transparent;\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-dropdown-placement-topCenter > .ant-dropdown-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-dropdown-placement-topLeft > .ant-dropdown-arrow {\n left: 16px;\n}\n.ant-dropdown-placement-topRight > .ant-dropdown-arrow {\n right: 16px;\n}\n.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow,\n.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow,\n.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {\n top: 6px;\n border-top-color: #fff;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: #fff;\n box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n}\n.ant-dropdown-placement-bottomCenter > .ant-dropdown-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow {\n left: 16px;\n}\n.ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {\n right: 16px;\n}\n.ant-dropdown-menu {\n position: relative;\n margin: 0;\n padding: 4px 0;\n text-align: left;\n list-style-type: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-dropdown-menu-item-group-title {\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.45);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n background: transparent;\n box-shadow: none;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu-popup ul,\n.ant-dropdown-menu-submenu-popup li {\n list-style: none;\n}\n.ant-dropdown-menu-submenu-popup ul {\n margin-right: 0.3em;\n margin-left: 0.3em;\n}\n.ant-dropdown-menu-item,\n.ant-dropdown-menu-submenu-title {\n clear: both;\n margin: 0;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > .anticon:first-child,\n.ant-dropdown-menu-item > a > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > a > .anticon:first-child,\n.ant-dropdown-menu-item > span > .anticon:first-child,\n.ant-dropdown-menu-submenu-title > span > .anticon:first-child {\n min-width: 12px;\n margin-right: 8px;\n font-size: 12px;\n vertical-align: -0.1em;\n}\n.ant-dropdown-menu-item > a,\n.ant-dropdown-menu-submenu-title > a {\n display: block;\n margin: -5px -12px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > a:hover,\n.ant-dropdown-menu-submenu-title > a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-dropdown-menu-item > .anticon + span > a,\n.ant-dropdown-menu-submenu-title > .anticon + span > a {\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-dropdown-menu-item > .anticon + span > a:hover,\n.ant-dropdown-menu-submenu-title > .anticon + span > a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-submenu-title-selected,\n.ant-dropdown-menu-item-selected > a,\n.ant-dropdown-menu-submenu-title-selected > a {\n color: #5b5ce1;\n background-color: #f0f2ff;\n}\n.ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-submenu-title:hover {\n background-color: #f5f5f5;\n}\n.ant-dropdown-menu-item-disabled,\n.ant-dropdown-menu-submenu-title-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-disabled:hover,\n.ant-dropdown-menu-submenu-title-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-item-disabled > .anticon + span > a,\n.ant-dropdown-menu-submenu-title-disabled > .anticon + span > a,\n.ant-dropdown-menu-item-disabled > a,\n.ant-dropdown-menu-submenu-title-disabled > a {\n position: relative;\n color: rgba(0, 0, 0, 0.25);\n pointer-events: none;\n}\n.ant-dropdown-menu-item-disabled > .anticon + span > a::after,\n.ant-dropdown-menu-submenu-title-disabled > .anticon + span > a::after,\n.ant-dropdown-menu-item-disabled > a::after,\n.ant-dropdown-menu-submenu-title-disabled > a::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: not-allowed;\n content: '';\n}\n.ant-dropdown-menu-item-divider,\n.ant-dropdown-menu-submenu-title-divider {\n height: 1px;\n margin: 4px 0;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon {\n position: absolute;\n right: 8px;\n}\n.ant-dropdown-menu-item .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon,\n.ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-expand-icon .ant-dropdown-menu-submenu-arrow-icon {\n margin-right: 0 !important;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n font-style: normal;\n}\n.ant-dropdown-menu-item-group-list {\n margin: 0 8px;\n padding: 0;\n list-style: none;\n}\n.ant-dropdown-menu-submenu-title {\n padding-right: 24px;\n}\n.ant-dropdown-menu-submenu-vertical {\n position: relative;\n}\n.ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {\n position: absolute;\n top: 0;\n left: 100%;\n min-width: 100%;\n margin-left: 4px;\n transform-origin: 0 0;\n}\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-submenu.ant-dropdown-menu-submenu-disabled .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-dropdown-menu-submenu-selected .ant-dropdown-menu-submenu-title {\n color: #5b5ce1;\n}\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-enter.slide-down-enter-active.ant-dropdown-placement-bottomRight,\n.ant-dropdown.slide-down-appear.slide-down-appear-active.ant-dropdown-placement-bottomRight {\n animation-name: antSlideUpIn;\n}\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-enter.slide-up-enter-active.ant-dropdown-placement-topRight,\n.ant-dropdown.slide-up-appear.slide-up-appear-active.ant-dropdown-placement-topRight {\n animation-name: antSlideDownIn;\n}\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomLeft,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomCenter,\n.ant-dropdown.slide-down-leave.slide-down-leave-active.ant-dropdown-placement-bottomRight {\n animation-name: antSlideUpOut;\n}\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topLeft,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topCenter,\n.ant-dropdown.slide-up-leave.slide-up-leave-active.ant-dropdown-placement-topRight {\n animation-name: antSlideDownOut;\n}\n.ant-dropdown-trigger > .anticon.anticon-down,\n.ant-dropdown-link > .anticon.anticon-down,\n.ant-dropdown-button > .anticon.anticon-down {\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-dropdown-button {\n white-space: nowrap;\n}\n.ant-dropdown-button.ant-btn-group > .ant-btn:last-child:not(:first-child):not(.ant-btn-icon-only) {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-dropdown-menu-dark,\n.ant-dropdown-menu-dark .ant-dropdown-menu {\n background: #001529;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a .ant-dropdown-menu-submenu-arrow::after,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a .ant-dropdown-menu-submenu-arrow::after {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-submenu-title:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > a:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item > .anticon + span > a:hover {\n color: #fff;\n background: transparent;\n}\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected:hover,\n.ant-dropdown-menu-dark .ant-dropdown-menu-item-selected > a {\n color: #fff;\n background: #5b5ce1;\n}\n.ant-dropdown-rtl {\n direction: rtl;\n}\n.ant-dropdown-rtl.ant-dropdown::before {\n right: -7px;\n left: 0;\n}\n.ant-dropdown-menu.ant-dropdown-menu-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item-group-title {\n direction: rtl;\n text-align: right;\n}\n.ant-dropdown-menu-submenu-popup.ant-dropdown-menu-submenu-rtl {\n transform-origin: 100% 0;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup ul,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-popup li {\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {\n text-align: right;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-item > span > .anticon:first-child,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title > span > .anticon:first-child {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow {\n right: auto;\n left: 8px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-item .ant-dropdown-menu-submenu-arrow-icon,\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title .ant-dropdown-menu-submenu-arrow-icon {\n margin-left: 0 !important;\n transform: scaleX(-1);\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-title {\n padding-right: 12px;\n padding-left: 24px;\n}\n.ant-dropdown-rtl .ant-dropdown-menu-submenu-vertical > .ant-dropdown-menu {\n right: 100%;\n left: 0;\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-empty {\n margin: 0 8px;\n font-size: 14px;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-empty-image {\n height: 100px;\n margin-bottom: 8px;\n}\n.ant-empty-image img {\n height: 100%;\n}\n.ant-empty-image svg {\n height: 100%;\n margin: auto;\n}\n.ant-empty-footer {\n margin-top: 16px;\n}\n.ant-empty-normal {\n margin: 32px 0;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-empty-normal .ant-empty-image {\n height: 40px;\n}\n.ant-empty-small {\n margin: 8px 0;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-empty-small .ant-empty-image {\n height: 35px;\n}\n.ant-empty-img-default-ellipse {\n fill: #f5f5f5;\n fill-opacity: 0.8;\n}\n.ant-empty-img-default-path-1 {\n fill: #aeb8c2;\n}\n.ant-empty-img-default-path-2 {\n fill: url(#linearGradient-1);\n}\n.ant-empty-img-default-path-3 {\n fill: #f5f5f7;\n}\n.ant-empty-img-default-path-4 {\n fill: #dce0e6;\n}\n.ant-empty-img-default-path-5 {\n fill: #dce0e6;\n}\n.ant-empty-img-default-g {\n fill: #fff;\n}\n.ant-empty-img-simple-ellipse {\n fill: #f5f5f5;\n}\n.ant-empty-img-simple-g {\n stroke: #d9d9d9;\n}\n.ant-empty-img-simple-path {\n fill: #fafafa;\n}\n.ant-empty-rtl {\n direction: rtl;\n}\n.ant-form-item .ant-mentions,\n.ant-form-item textarea.ant-input {\n height: auto;\n}\n.ant-form-item .ant-upload {\n background: transparent;\n}\n.ant-form-item .ant-upload.ant-upload-drag {\n background: #fafafa;\n}\n.ant-form-item input[type='radio'],\n.ant-form-item input[type='checkbox'] {\n width: 14px;\n height: 14px;\n}\n.ant-form-item .ant-radio-inline,\n.ant-form-item .ant-checkbox-inline {\n display: inline-block;\n margin-left: 8px;\n font-weight: normal;\n vertical-align: middle;\n cursor: pointer;\n}\n.ant-form-item .ant-radio-inline:first-child,\n.ant-form-item .ant-checkbox-inline:first-child {\n margin-left: 0;\n}\n.ant-form-item .ant-checkbox-vertical,\n.ant-form-item .ant-radio-vertical {\n display: block;\n}\n.ant-form-item .ant-checkbox-vertical + .ant-checkbox-vertical,\n.ant-form-item .ant-radio-vertical + .ant-radio-vertical {\n margin-left: 0;\n}\n.ant-form-item .ant-input-number + .ant-form-text {\n margin-left: 8px;\n}\n.ant-form-item .ant-input-number-handler-wrap {\n z-index: 2;\n}\n.ant-form-item .ant-select,\n.ant-form-item .ant-cascader-picker {\n width: 100%;\n}\n.ant-form-item .ant-input-group .ant-select,\n.ant-form-item .ant-input-group .ant-cascader-picker {\n width: auto;\n}\n.ant-form-inline {\n display: flex;\n flex-wrap: wrap;\n}\n.ant-form-inline .ant-form-item {\n flex: none;\n flex-wrap: nowrap;\n margin-right: 16px;\n margin-bottom: 0;\n}\n.ant-form-inline .ant-form-item-with-help {\n margin-bottom: 24px;\n}\n.ant-form-inline .ant-form-item > .ant-form-item-label,\n.ant-form-inline .ant-form-item > .ant-form-item-control {\n display: inline-block;\n vertical-align: top;\n}\n.ant-form-inline .ant-form-item > .ant-form-item-label {\n flex: none;\n}\n.ant-form-inline .ant-form-item .ant-form-text {\n display: inline-block;\n}\n.ant-form-inline .ant-form-item .ant-form-item-has-feedback {\n display: inline-block;\n}\n.ant-form-horizontal .ant-form-item-label {\n flex-grow: 0;\n}\n.ant-form-horizontal .ant-form-item-control {\n flex: 1 1 0;\n}\n.ant-form-vertical .ant-form-item {\n flex-direction: column;\n}\n.ant-form-vertical .ant-form-item-label > label {\n height: auto;\n}\n.ant-form-vertical .ant-form-item-label,\n.ant-col-24.ant-form-item-label,\n.ant-col-xl-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n}\n.ant-form-vertical .ant-form-item-label > label,\n.ant-col-24.ant-form-item-label > label,\n.ant-col-xl-24.ant-form-item-label > label {\n margin: 0;\n}\n.ant-form-vertical .ant-form-item-label > label::after,\n.ant-col-24.ant-form-item-label > label::after,\n.ant-col-xl-24.ant-form-item-label > label::after {\n display: none;\n}\n.ant-form-rtl.ant-form-vertical .ant-form-item-label,\n.ant-form-rtl.ant-col-24.ant-form-item-label,\n.ant-form-rtl.ant-col-xl-24.ant-form-item-label {\n text-align: right;\n}\n@media (max-width: 575px) {\n .ant-form-item .ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-form-item .ant-form-item-label > label {\n margin: 0;\n }\n .ant-form-item .ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-form-item .ant-form-item-label {\n text-align: right;\n }\n .ant-form .ant-form-item {\n flex-wrap: wrap;\n }\n .ant-form .ant-form-item .ant-form-item-label,\n .ant-form .ant-form-item .ant-form-item-control {\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xs-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-xs-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-xs-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-xs-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 767px) {\n .ant-col-sm-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-sm-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-sm-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-sm-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 991px) {\n .ant-col-md-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-md-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-md-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-md-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 1199px) {\n .ant-col-lg-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-lg-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-lg-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-lg-24.ant-form-item-label {\n text-align: right;\n }\n}\n@media (max-width: 1599px) {\n .ant-col-xl-24.ant-form-item-label {\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left;\n }\n .ant-col-xl-24.ant-form-item-label > label {\n margin: 0;\n }\n .ant-col-xl-24.ant-form-item-label > label::after {\n display: none;\n }\n .ant-form-rtl.ant-col-xl-24.ant-form-item-label {\n text-align: right;\n }\n}\n.ant-form-item {\n /* Some non-status related component style is in `components.less` */\n /* To support leave along ErrorList. We add additional className to handle explain style */\n}\n.ant-form-item-explain.ant-form-item-explain-error {\n color: #ff4d4f;\n}\n.ant-form-item-explain.ant-form-item-explain-warning {\n color: #faad14;\n}\n.ant-form-item-has-feedback .ant-input {\n padding-right: 24px;\n}\n.ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {\n padding-right: 18px;\n}\n.ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {\n right: 28px;\n}\n.ant-form-item-has-feedback .ant-switch {\n margin: 2px 0 4px;\n}\n.ant-form-item-has-feedback > .ant-select .ant-select-arrow,\n.ant-form-item-has-feedback > .ant-select .ant-select-clear,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-clear {\n right: 32px;\n}\n.ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,\n.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {\n padding-right: 42px;\n}\n.ant-form-item-has-feedback .ant-cascader-picker-arrow {\n margin-right: 19px;\n}\n.ant-form-item-has-feedback .ant-cascader-picker-clear {\n right: 32px;\n}\n.ant-form-item-has-feedback .ant-picker {\n padding-right: 29.2px;\n}\n.ant-form-item-has-feedback .ant-picker-large {\n padding-right: 29.2px;\n}\n.ant-form-item-has-feedback .ant-picker-small {\n padding-right: 25.2px;\n}\n.ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,\n.ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {\n position: absolute;\n top: 50%;\n right: 0;\n z-index: 1;\n width: 32px;\n height: 20px;\n margin-top: -10px;\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n visibility: visible;\n animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);\n pointer-events: none;\n}\n.ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #52c41a;\n animation-name: diffZoomIn1 !important;\n}\n.ant-form-item-has-warning .ant-form-item-split {\n color: #faad14;\n}\n.ant-form-item-has-warning .ant-input,\n.ant-form-item-has-warning .ant-input-affix-wrapper,\n.ant-form-item-has-warning .ant-input:hover,\n.ant-form-item-has-warning .ant-input-affix-wrapper:hover {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-input:focus,\n.ant-form-item-has-warning .ant-input-affix-wrapper:focus,\n.ant-form-item-has-warning .ant-input-focused,\n.ant-form-item-has-warning .ant-input-affix-wrapper-focused {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-disabled,\n.ant-form-item-has-warning .ant-input-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled,\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled input:focus,\n.ant-form-item-has-warning .ant-input-affix-wrapper-disabled:hover input:focus {\n box-shadow: none !important;\n}\n.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-prefix {\n color: #faad14;\n}\n.ant-form-item-has-warning .ant-input-group-addon {\n color: #faad14;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .has-feedback {\n color: #faad14;\n}\n.ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #faad14;\n animation-name: diffZoomIn3 !important;\n}\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {\n background-color: #fff;\n border-color: #faad14 !important;\n}\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector,\n.ant-form-item-has-warning .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-number,\n.ant-form-item-has-warning .ant-picker {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-input-number-focused,\n.ant-form-item-has-warning .ant-picker-focused,\n.ant-form-item-has-warning .ant-input-number:focus,\n.ant-form-item-has-warning .ant-picker:focus {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-warning .ant-input-number:not([disabled]):hover,\n.ant-form-item-has-warning .ant-picker:not([disabled]):hover {\n background-color: #fff;\n border-color: #faad14;\n}\n.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {\n border-color: #ffc53d;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);\n}\n.ant-form-item-has-error .ant-form-item-split {\n color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input,\n.ant-form-item-has-error .ant-input-affix-wrapper,\n.ant-form-item-has-error .ant-input:hover,\n.ant-form-item-has-error .ant-input-affix-wrapper:hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input:focus,\n.ant-form-item-has-error .ant-input-affix-wrapper:focus,\n.ant-form-item-has-error .ant-input-focused,\n.ant-form-item-has-error .ant-input-affix-wrapper-focused {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-disabled,\n.ant-form-item-has-error .ant-input-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled,\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled:hover {\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled input:focus,\n.ant-form-item-has-error .ant-input-affix-wrapper-disabled:hover input:focus {\n box-shadow: none !important;\n}\n.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-prefix {\n color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-group-addon {\n color: #ff4d4f;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .has-feedback {\n color: #ff4d4f;\n}\n.ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {\n color: #ff4d4f;\n animation-name: diffZoomIn2 !important;\n}\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {\n background-color: #fff;\n border-color: #ff4d4f !important;\n}\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-open .ant-select-selector,\n.ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input).ant-select-focused .ant-select-selector {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n border: 0;\n}\n.ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-number,\n.ant-form-item-has-error .ant-picker {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-input-number-focused,\n.ant-form-item-has-error .ant-picker-focused,\n.ant-form-item-has-error .ant-input-number:focus,\n.ant-form-item-has-error .ant-picker:focus {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-input-number:not([disabled]):hover,\n.ant-form-item-has-error .ant-picker:not([disabled]):hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor,\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor,\n.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {\n background-color: #fff;\n border-color: #ff7875;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);\n}\n.ant-form-item-has-error .ant-transfer-list {\n border-color: #ff4d4f;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {\n border-color: #d9d9d9;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-form-item-has-error .ant-radio-button-wrapper {\n border-color: #ff4d4f !important;\n}\n.ant-form-item-has-error .ant-radio-button-wrapper:not(:first-child)::before {\n background-color: #ff4d4f;\n}\n.ant-form-item-is-validating.ant-form-item-has-feedback .ant-form-item-children-icon {\n display: inline-block;\n color: #5b5ce1;\n}\n.ant-form {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-form legend {\n display: block;\n width: 100%;\n margin-bottom: 20px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n font-size: 16px;\n line-height: inherit;\n border: 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.ant-form label {\n font-size: 14px;\n}\n.ant-form input[type='search'] {\n box-sizing: border-box;\n}\n.ant-form input[type='radio'],\n.ant-form input[type='checkbox'] {\n line-height: normal;\n}\n.ant-form input[type='file'] {\n display: block;\n}\n.ant-form input[type='range'] {\n display: block;\n width: 100%;\n}\n.ant-form select[multiple],\n.ant-form select[size] {\n height: auto;\n}\n.ant-form input[type='file']:focus,\n.ant-form input[type='radio']:focus,\n.ant-form input[type='checkbox']:focus {\n outline: thin dotted;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.ant-form output {\n display: block;\n padding-top: 15px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-form .ant-form-text {\n display: inline-block;\n padding-right: 8px;\n}\n.ant-form-small .ant-form-item-label > label {\n height: 24px;\n}\n.ant-form-small .ant-form-item-control-input {\n min-height: 24px;\n}\n.ant-form-large .ant-form-item-label > label {\n height: 40px;\n}\n.ant-form-large .ant-form-item-control-input {\n min-height: 40px;\n}\n.ant-form-item {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n margin-bottom: 24px;\n vertical-align: top;\n}\n.ant-form-item-with-help {\n margin-bottom: 0;\n}\n.ant-form-item-hidden,\n.ant-form-item-hidden.ant-row {\n display: none;\n}\n.ant-form-item-label {\n display: inline-block;\n flex-grow: 0;\n overflow: hidden;\n white-space: nowrap;\n text-align: right;\n vertical-align: middle;\n}\n.ant-form-item-label-left {\n text-align: left;\n}\n.ant-form-item-label > label {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 32px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-form-item-label > label > .anticon {\n font-size: 14px;\n vertical-align: top;\n}\n.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n display: inline-block;\n margin-right: 4px;\n color: #ff4d4f;\n font-size: 14px;\n font-family: SimSun, sans-serif;\n line-height: 1;\n content: '*';\n}\n.ant-form-hide-required-mark .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n display: none;\n}\n.ant-form-item-label > label .ant-form-item-optional {\n display: inline-block;\n margin-left: 4px;\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-form-hide-required-mark .ant-form-item-label > label .ant-form-item-optional {\n display: none;\n}\n.ant-form-item-label > label .ant-form-item-tooltip {\n color: rgba(0, 0, 0, 0.45);\n cursor: help;\n writing-mode: horizontal-tb;\n margin-inline-start: 4px;\n}\n.ant-form-item-label > label::after {\n content: ':';\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n}\n.ant-form-item-label > label.ant-form-item-no-colon::after {\n content: ' ';\n}\n.ant-form-item-control {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n.ant-form-item-control:first-child:not([class^='ant-col-']):not([class*=' ant-col-']) {\n width: 100%;\n}\n.ant-form-item-control-input {\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n}\n.ant-form-item-control-input-content {\n flex: auto;\n max-width: 100%;\n}\n.ant-form-item-explain,\n.ant-form-item-extra {\n clear: both;\n min-height: 24px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);\n padding-top: 0px;\n}\n.ant-form-item .ant-input-textarea-show-count::after {\n margin-bottom: -22px;\n}\n.ant-show-help-enter,\n.ant-show-help-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-show-help-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.ant-show-help-enter.ant-show-help-enter-active,\n.ant-show-help-appear.ant-show-help-appear-active {\n animation-name: antShowHelpIn;\n animation-play-state: running;\n}\n.ant-show-help-leave.ant-show-help-leave-active {\n animation-name: antShowHelpOut;\n animation-play-state: running;\n pointer-events: none;\n}\n.ant-show-help-enter,\n.ant-show-help-appear {\n opacity: 0;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-show-help-leave {\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n@keyframes antShowHelpIn {\n 0% {\n transform: translateY(-5px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@keyframes antShowHelpOut {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n@keyframes diffZoomIn1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes diffZoomIn2 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes diffZoomIn3 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n.ant-form-rtl {\n direction: rtl;\n}\n.ant-form-rtl .ant-form-item-label {\n text-align: left;\n}\n.ant-form-rtl .ant-form-item-label > label.ant-form-item-required::before {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-form-rtl .ant-form-item-label > label::after {\n margin: 0 2px 0 8px;\n}\n.ant-form-rtl .ant-form-item-label > label .ant-form-item-optional {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-col-rtl .ant-form-item-control:first-child {\n width: 100%;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input {\n padding-right: 11px;\n padding-left: 24px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {\n padding-right: 11px;\n padding-left: 18px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input {\n padding: 0;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {\n right: auto;\n left: 28px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-input-number {\n padding-left: 18px;\n}\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-arrow,\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-clear,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-clear {\n right: auto;\n left: 32px;\n}\n.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,\n.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {\n padding-right: 0;\n padding-left: 42px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow {\n margin-right: 0;\n margin-left: 19px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear {\n right: auto;\n left: 32px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker {\n padding-right: 11px;\n padding-left: 29.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large {\n padding-right: 11px;\n padding-left: 29.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small {\n padding-right: 7px;\n padding-left: 25.2px;\n}\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,\n.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {\n right: auto;\n left: 0;\n}\n.ant-form-rtl.ant-form-inline .ant-form-item {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-row {\n display: flex;\n flex-flow: row wrap;\n}\n.ant-row::before,\n.ant-row::after {\n display: flex;\n}\n.ant-row-no-wrap {\n flex-wrap: nowrap;\n}\n.ant-row-start {\n justify-content: flex-start;\n}\n.ant-row-center {\n justify-content: center;\n}\n.ant-row-end {\n justify-content: flex-end;\n}\n.ant-row-space-between {\n justify-content: space-between;\n}\n.ant-row-space-around {\n justify-content: space-around;\n}\n.ant-row-top {\n align-items: flex-start;\n}\n.ant-row-middle {\n align-items: center;\n}\n.ant-row-bottom {\n align-items: flex-end;\n}\n.ant-col {\n position: relative;\n max-width: 100%;\n min-height: 1px;\n}\n.ant-col-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ant-col-push-24 {\n left: 100%;\n}\n.ant-col-pull-24 {\n right: 100%;\n}\n.ant-col-offset-24 {\n margin-left: 100%;\n}\n.ant-col-order-24 {\n order: 24;\n}\n.ant-col-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n}\n.ant-col-push-23 {\n left: 95.83333333%;\n}\n.ant-col-pull-23 {\n right: 95.83333333%;\n}\n.ant-col-offset-23 {\n margin-left: 95.83333333%;\n}\n.ant-col-order-23 {\n order: 23;\n}\n.ant-col-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n}\n.ant-col-push-22 {\n left: 91.66666667%;\n}\n.ant-col-pull-22 {\n right: 91.66666667%;\n}\n.ant-col-offset-22 {\n margin-left: 91.66666667%;\n}\n.ant-col-order-22 {\n order: 22;\n}\n.ant-col-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n}\n.ant-col-push-21 {\n left: 87.5%;\n}\n.ant-col-pull-21 {\n right: 87.5%;\n}\n.ant-col-offset-21 {\n margin-left: 87.5%;\n}\n.ant-col-order-21 {\n order: 21;\n}\n.ant-col-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n}\n.ant-col-push-20 {\n left: 83.33333333%;\n}\n.ant-col-pull-20 {\n right: 83.33333333%;\n}\n.ant-col-offset-20 {\n margin-left: 83.33333333%;\n}\n.ant-col-order-20 {\n order: 20;\n}\n.ant-col-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n}\n.ant-col-push-19 {\n left: 79.16666667%;\n}\n.ant-col-pull-19 {\n right: 79.16666667%;\n}\n.ant-col-offset-19 {\n margin-left: 79.16666667%;\n}\n.ant-col-order-19 {\n order: 19;\n}\n.ant-col-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n}\n.ant-col-push-18 {\n left: 75%;\n}\n.ant-col-pull-18 {\n right: 75%;\n}\n.ant-col-offset-18 {\n margin-left: 75%;\n}\n.ant-col-order-18 {\n order: 18;\n}\n.ant-col-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n}\n.ant-col-push-17 {\n left: 70.83333333%;\n}\n.ant-col-pull-17 {\n right: 70.83333333%;\n}\n.ant-col-offset-17 {\n margin-left: 70.83333333%;\n}\n.ant-col-order-17 {\n order: 17;\n}\n.ant-col-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n}\n.ant-col-push-16 {\n left: 66.66666667%;\n}\n.ant-col-pull-16 {\n right: 66.66666667%;\n}\n.ant-col-offset-16 {\n margin-left: 66.66666667%;\n}\n.ant-col-order-16 {\n order: 16;\n}\n.ant-col-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n}\n.ant-col-push-15 {\n left: 62.5%;\n}\n.ant-col-pull-15 {\n right: 62.5%;\n}\n.ant-col-offset-15 {\n margin-left: 62.5%;\n}\n.ant-col-order-15 {\n order: 15;\n}\n.ant-col-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n}\n.ant-col-push-14 {\n left: 58.33333333%;\n}\n.ant-col-pull-14 {\n right: 58.33333333%;\n}\n.ant-col-offset-14 {\n margin-left: 58.33333333%;\n}\n.ant-col-order-14 {\n order: 14;\n}\n.ant-col-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n}\n.ant-col-push-13 {\n left: 54.16666667%;\n}\n.ant-col-pull-13 {\n right: 54.16666667%;\n}\n.ant-col-offset-13 {\n margin-left: 54.16666667%;\n}\n.ant-col-order-13 {\n order: 13;\n}\n.ant-col-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n}\n.ant-col-push-12 {\n left: 50%;\n}\n.ant-col-pull-12 {\n right: 50%;\n}\n.ant-col-offset-12 {\n margin-left: 50%;\n}\n.ant-col-order-12 {\n order: 12;\n}\n.ant-col-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n}\n.ant-col-push-11 {\n left: 45.83333333%;\n}\n.ant-col-pull-11 {\n right: 45.83333333%;\n}\n.ant-col-offset-11 {\n margin-left: 45.83333333%;\n}\n.ant-col-order-11 {\n order: 11;\n}\n.ant-col-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n}\n.ant-col-push-10 {\n left: 41.66666667%;\n}\n.ant-col-pull-10 {\n right: 41.66666667%;\n}\n.ant-col-offset-10 {\n margin-left: 41.66666667%;\n}\n.ant-col-order-10 {\n order: 10;\n}\n.ant-col-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n}\n.ant-col-push-9 {\n left: 37.5%;\n}\n.ant-col-pull-9 {\n right: 37.5%;\n}\n.ant-col-offset-9 {\n margin-left: 37.5%;\n}\n.ant-col-order-9 {\n order: 9;\n}\n.ant-col-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n}\n.ant-col-push-8 {\n left: 33.33333333%;\n}\n.ant-col-pull-8 {\n right: 33.33333333%;\n}\n.ant-col-offset-8 {\n margin-left: 33.33333333%;\n}\n.ant-col-order-8 {\n order: 8;\n}\n.ant-col-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n}\n.ant-col-push-7 {\n left: 29.16666667%;\n}\n.ant-col-pull-7 {\n right: 29.16666667%;\n}\n.ant-col-offset-7 {\n margin-left: 29.16666667%;\n}\n.ant-col-order-7 {\n order: 7;\n}\n.ant-col-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n}\n.ant-col-push-6 {\n left: 25%;\n}\n.ant-col-pull-6 {\n right: 25%;\n}\n.ant-col-offset-6 {\n margin-left: 25%;\n}\n.ant-col-order-6 {\n order: 6;\n}\n.ant-col-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n}\n.ant-col-push-5 {\n left: 20.83333333%;\n}\n.ant-col-pull-5 {\n right: 20.83333333%;\n}\n.ant-col-offset-5 {\n margin-left: 20.83333333%;\n}\n.ant-col-order-5 {\n order: 5;\n}\n.ant-col-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n}\n.ant-col-push-4 {\n left: 16.66666667%;\n}\n.ant-col-pull-4 {\n right: 16.66666667%;\n}\n.ant-col-offset-4 {\n margin-left: 16.66666667%;\n}\n.ant-col-order-4 {\n order: 4;\n}\n.ant-col-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n}\n.ant-col-push-3 {\n left: 12.5%;\n}\n.ant-col-pull-3 {\n right: 12.5%;\n}\n.ant-col-offset-3 {\n margin-left: 12.5%;\n}\n.ant-col-order-3 {\n order: 3;\n}\n.ant-col-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n}\n.ant-col-push-2 {\n left: 8.33333333%;\n}\n.ant-col-pull-2 {\n right: 8.33333333%;\n}\n.ant-col-offset-2 {\n margin-left: 8.33333333%;\n}\n.ant-col-order-2 {\n order: 2;\n}\n.ant-col-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n}\n.ant-col-push-1 {\n left: 4.16666667%;\n}\n.ant-col-pull-1 {\n right: 4.16666667%;\n}\n.ant-col-offset-1 {\n margin-left: 4.16666667%;\n}\n.ant-col-order-1 {\n order: 1;\n}\n.ant-col-0 {\n display: none;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-offset-0 {\n margin-left: 0;\n}\n.ant-col-order-0 {\n order: 0;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-offset-0.ant-col-rtl {\n margin-right: 0;\n}\n.ant-col-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n}\n.ant-col-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n}\n.ant-col-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n}\n.ant-col-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n}\n.ant-col-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n}\n.ant-col-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n}\n.ant-col-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n}\n.ant-col-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n}\n.ant-col-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n}\n.ant-col-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n}\n.ant-col-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n}\n.ant-col-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n}\n.ant-col-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n}\n.ant-col-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n}\n.ant-col-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n}\n.ant-col-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n}\n.ant-col-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n}\n.ant-col-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n}\n.ant-col-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n}\n.ant-col-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n}\n.ant-col-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n}\n.ant-col-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n}\n.ant-col-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n}\n.ant-col-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n}\n.ant-col-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n}\n.ant-col-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n}\n.ant-col-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n}\n.ant-col-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n}\n.ant-col-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n}\n.ant-col-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n}\n.ant-col-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n}\n.ant-col-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n}\n.ant-col-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n}\n.ant-col-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n}\n.ant-col-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n}\n.ant-col-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n}\n.ant-col-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n}\n.ant-col-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n}\n.ant-col-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n}\n.ant-col-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n}\n.ant-col-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n}\n.ant-col-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n}\n.ant-col-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n}\n.ant-col-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n}\n.ant-col-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n}\n.ant-col-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n}\n.ant-col-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n}\n.ant-col-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n}\n.ant-col-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n}\n.ant-col-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n}\n.ant-col-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n}\n.ant-col-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n}\n.ant-col-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n}\n.ant-col-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n}\n.ant-col-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n}\n.ant-col-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n}\n.ant-col-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n}\n.ant-col-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n}\n.ant-col-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n}\n.ant-col-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n}\n.ant-col-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n}\n.ant-col-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n}\n.ant-col-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n}\n.ant-col-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n}\n.ant-col-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n}\n.ant-col-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n}\n.ant-col-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n}\n.ant-col-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n}\n.ant-col-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n}\n.ant-col-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n}\n.ant-col-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n}\n.ant-col-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n}\n.ant-col-xs-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ant-col-xs-push-24 {\n left: 100%;\n}\n.ant-col-xs-pull-24 {\n right: 100%;\n}\n.ant-col-xs-offset-24 {\n margin-left: 100%;\n}\n.ant-col-xs-order-24 {\n order: 24;\n}\n.ant-col-xs-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n}\n.ant-col-xs-push-23 {\n left: 95.83333333%;\n}\n.ant-col-xs-pull-23 {\n right: 95.83333333%;\n}\n.ant-col-xs-offset-23 {\n margin-left: 95.83333333%;\n}\n.ant-col-xs-order-23 {\n order: 23;\n}\n.ant-col-xs-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n}\n.ant-col-xs-push-22 {\n left: 91.66666667%;\n}\n.ant-col-xs-pull-22 {\n right: 91.66666667%;\n}\n.ant-col-xs-offset-22 {\n margin-left: 91.66666667%;\n}\n.ant-col-xs-order-22 {\n order: 22;\n}\n.ant-col-xs-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n}\n.ant-col-xs-push-21 {\n left: 87.5%;\n}\n.ant-col-xs-pull-21 {\n right: 87.5%;\n}\n.ant-col-xs-offset-21 {\n margin-left: 87.5%;\n}\n.ant-col-xs-order-21 {\n order: 21;\n}\n.ant-col-xs-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n}\n.ant-col-xs-push-20 {\n left: 83.33333333%;\n}\n.ant-col-xs-pull-20 {\n right: 83.33333333%;\n}\n.ant-col-xs-offset-20 {\n margin-left: 83.33333333%;\n}\n.ant-col-xs-order-20 {\n order: 20;\n}\n.ant-col-xs-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n}\n.ant-col-xs-push-19 {\n left: 79.16666667%;\n}\n.ant-col-xs-pull-19 {\n right: 79.16666667%;\n}\n.ant-col-xs-offset-19 {\n margin-left: 79.16666667%;\n}\n.ant-col-xs-order-19 {\n order: 19;\n}\n.ant-col-xs-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n}\n.ant-col-xs-push-18 {\n left: 75%;\n}\n.ant-col-xs-pull-18 {\n right: 75%;\n}\n.ant-col-xs-offset-18 {\n margin-left: 75%;\n}\n.ant-col-xs-order-18 {\n order: 18;\n}\n.ant-col-xs-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n}\n.ant-col-xs-push-17 {\n left: 70.83333333%;\n}\n.ant-col-xs-pull-17 {\n right: 70.83333333%;\n}\n.ant-col-xs-offset-17 {\n margin-left: 70.83333333%;\n}\n.ant-col-xs-order-17 {\n order: 17;\n}\n.ant-col-xs-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n}\n.ant-col-xs-push-16 {\n left: 66.66666667%;\n}\n.ant-col-xs-pull-16 {\n right: 66.66666667%;\n}\n.ant-col-xs-offset-16 {\n margin-left: 66.66666667%;\n}\n.ant-col-xs-order-16 {\n order: 16;\n}\n.ant-col-xs-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n}\n.ant-col-xs-push-15 {\n left: 62.5%;\n}\n.ant-col-xs-pull-15 {\n right: 62.5%;\n}\n.ant-col-xs-offset-15 {\n margin-left: 62.5%;\n}\n.ant-col-xs-order-15 {\n order: 15;\n}\n.ant-col-xs-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n}\n.ant-col-xs-push-14 {\n left: 58.33333333%;\n}\n.ant-col-xs-pull-14 {\n right: 58.33333333%;\n}\n.ant-col-xs-offset-14 {\n margin-left: 58.33333333%;\n}\n.ant-col-xs-order-14 {\n order: 14;\n}\n.ant-col-xs-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n}\n.ant-col-xs-push-13 {\n left: 54.16666667%;\n}\n.ant-col-xs-pull-13 {\n right: 54.16666667%;\n}\n.ant-col-xs-offset-13 {\n margin-left: 54.16666667%;\n}\n.ant-col-xs-order-13 {\n order: 13;\n}\n.ant-col-xs-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n}\n.ant-col-xs-push-12 {\n left: 50%;\n}\n.ant-col-xs-pull-12 {\n right: 50%;\n}\n.ant-col-xs-offset-12 {\n margin-left: 50%;\n}\n.ant-col-xs-order-12 {\n order: 12;\n}\n.ant-col-xs-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n}\n.ant-col-xs-push-11 {\n left: 45.83333333%;\n}\n.ant-col-xs-pull-11 {\n right: 45.83333333%;\n}\n.ant-col-xs-offset-11 {\n margin-left: 45.83333333%;\n}\n.ant-col-xs-order-11 {\n order: 11;\n}\n.ant-col-xs-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n}\n.ant-col-xs-push-10 {\n left: 41.66666667%;\n}\n.ant-col-xs-pull-10 {\n right: 41.66666667%;\n}\n.ant-col-xs-offset-10 {\n margin-left: 41.66666667%;\n}\n.ant-col-xs-order-10 {\n order: 10;\n}\n.ant-col-xs-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n}\n.ant-col-xs-push-9 {\n left: 37.5%;\n}\n.ant-col-xs-pull-9 {\n right: 37.5%;\n}\n.ant-col-xs-offset-9 {\n margin-left: 37.5%;\n}\n.ant-col-xs-order-9 {\n order: 9;\n}\n.ant-col-xs-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n}\n.ant-col-xs-push-8 {\n left: 33.33333333%;\n}\n.ant-col-xs-pull-8 {\n right: 33.33333333%;\n}\n.ant-col-xs-offset-8 {\n margin-left: 33.33333333%;\n}\n.ant-col-xs-order-8 {\n order: 8;\n}\n.ant-col-xs-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n}\n.ant-col-xs-push-7 {\n left: 29.16666667%;\n}\n.ant-col-xs-pull-7 {\n right: 29.16666667%;\n}\n.ant-col-xs-offset-7 {\n margin-left: 29.16666667%;\n}\n.ant-col-xs-order-7 {\n order: 7;\n}\n.ant-col-xs-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n}\n.ant-col-xs-push-6 {\n left: 25%;\n}\n.ant-col-xs-pull-6 {\n right: 25%;\n}\n.ant-col-xs-offset-6 {\n margin-left: 25%;\n}\n.ant-col-xs-order-6 {\n order: 6;\n}\n.ant-col-xs-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n}\n.ant-col-xs-push-5 {\n left: 20.83333333%;\n}\n.ant-col-xs-pull-5 {\n right: 20.83333333%;\n}\n.ant-col-xs-offset-5 {\n margin-left: 20.83333333%;\n}\n.ant-col-xs-order-5 {\n order: 5;\n}\n.ant-col-xs-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n}\n.ant-col-xs-push-4 {\n left: 16.66666667%;\n}\n.ant-col-xs-pull-4 {\n right: 16.66666667%;\n}\n.ant-col-xs-offset-4 {\n margin-left: 16.66666667%;\n}\n.ant-col-xs-order-4 {\n order: 4;\n}\n.ant-col-xs-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n}\n.ant-col-xs-push-3 {\n left: 12.5%;\n}\n.ant-col-xs-pull-3 {\n right: 12.5%;\n}\n.ant-col-xs-offset-3 {\n margin-left: 12.5%;\n}\n.ant-col-xs-order-3 {\n order: 3;\n}\n.ant-col-xs-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n}\n.ant-col-xs-push-2 {\n left: 8.33333333%;\n}\n.ant-col-xs-pull-2 {\n right: 8.33333333%;\n}\n.ant-col-xs-offset-2 {\n margin-left: 8.33333333%;\n}\n.ant-col-xs-order-2 {\n order: 2;\n}\n.ant-col-xs-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n}\n.ant-col-xs-push-1 {\n left: 4.16666667%;\n}\n.ant-col-xs-pull-1 {\n right: 4.16666667%;\n}\n.ant-col-xs-offset-1 {\n margin-left: 4.16666667%;\n}\n.ant-col-xs-order-1 {\n order: 1;\n}\n.ant-col-xs-0 {\n display: none;\n}\n.ant-col-push-0 {\n left: auto;\n}\n.ant-col-pull-0 {\n right: auto;\n}\n.ant-col-xs-push-0 {\n left: auto;\n}\n.ant-col-xs-pull-0 {\n right: auto;\n}\n.ant-col-xs-offset-0 {\n margin-left: 0;\n}\n.ant-col-xs-order-0 {\n order: 0;\n}\n.ant-col-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-xs-push-0.ant-col-rtl {\n right: auto;\n}\n.ant-col-xs-pull-0.ant-col-rtl {\n left: auto;\n}\n.ant-col-xs-offset-0.ant-col-rtl {\n margin-right: 0;\n}\n.ant-col-xs-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n}\n.ant-col-xs-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n}\n.ant-col-xs-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n}\n.ant-col-xs-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n}\n.ant-col-xs-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n}\n.ant-col-xs-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n}\n.ant-col-xs-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n}\n.ant-col-xs-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n}\n.ant-col-xs-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n}\n.ant-col-xs-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n}\n.ant-col-xs-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n}\n.ant-col-xs-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n}\n.ant-col-xs-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n}\n.ant-col-xs-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n}\n.ant-col-xs-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n}\n.ant-col-xs-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n}\n.ant-col-xs-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n}\n.ant-col-xs-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n}\n.ant-col-xs-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n}\n.ant-col-xs-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n}\n.ant-col-xs-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n}\n.ant-col-xs-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n}\n.ant-col-xs-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n}\n.ant-col-xs-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n}\n.ant-col-xs-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n}\n.ant-col-xs-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n}\n.ant-col-xs-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n}\n.ant-col-xs-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n}\n.ant-col-xs-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n}\n.ant-col-xs-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n}\n.ant-col-xs-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n}\n.ant-col-xs-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n}\n.ant-col-xs-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n}\n.ant-col-xs-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n}\n.ant-col-xs-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n}\n.ant-col-xs-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n}\n.ant-col-xs-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n}\n.ant-col-xs-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n}\n.ant-col-xs-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n}\n.ant-col-xs-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n}\n.ant-col-xs-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n}\n.ant-col-xs-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n}\n.ant-col-xs-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n}\n@media (min-width: 576px) {\n .ant-col-sm-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-sm-push-24 {\n left: 100%;\n }\n .ant-col-sm-pull-24 {\n right: 100%;\n }\n .ant-col-sm-offset-24 {\n margin-left: 100%;\n }\n .ant-col-sm-order-24 {\n order: 24;\n }\n .ant-col-sm-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-sm-push-23 {\n left: 95.83333333%;\n }\n .ant-col-sm-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-sm-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-sm-order-23 {\n order: 23;\n }\n .ant-col-sm-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-sm-push-22 {\n left: 91.66666667%;\n }\n .ant-col-sm-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-sm-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-sm-order-22 {\n order: 22;\n }\n .ant-col-sm-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-sm-push-21 {\n left: 87.5%;\n }\n .ant-col-sm-pull-21 {\n right: 87.5%;\n }\n .ant-col-sm-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-sm-order-21 {\n order: 21;\n }\n .ant-col-sm-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-sm-push-20 {\n left: 83.33333333%;\n }\n .ant-col-sm-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-sm-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-sm-order-20 {\n order: 20;\n }\n .ant-col-sm-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-sm-push-19 {\n left: 79.16666667%;\n }\n .ant-col-sm-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-sm-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-sm-order-19 {\n order: 19;\n }\n .ant-col-sm-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-sm-push-18 {\n left: 75%;\n }\n .ant-col-sm-pull-18 {\n right: 75%;\n }\n .ant-col-sm-offset-18 {\n margin-left: 75%;\n }\n .ant-col-sm-order-18 {\n order: 18;\n }\n .ant-col-sm-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-sm-push-17 {\n left: 70.83333333%;\n }\n .ant-col-sm-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-sm-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-sm-order-17 {\n order: 17;\n }\n .ant-col-sm-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-sm-push-16 {\n left: 66.66666667%;\n }\n .ant-col-sm-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-sm-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-sm-order-16 {\n order: 16;\n }\n .ant-col-sm-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-sm-push-15 {\n left: 62.5%;\n }\n .ant-col-sm-pull-15 {\n right: 62.5%;\n }\n .ant-col-sm-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-sm-order-15 {\n order: 15;\n }\n .ant-col-sm-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-sm-push-14 {\n left: 58.33333333%;\n }\n .ant-col-sm-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-sm-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-sm-order-14 {\n order: 14;\n }\n .ant-col-sm-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-sm-push-13 {\n left: 54.16666667%;\n }\n .ant-col-sm-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-sm-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-sm-order-13 {\n order: 13;\n }\n .ant-col-sm-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-sm-push-12 {\n left: 50%;\n }\n .ant-col-sm-pull-12 {\n right: 50%;\n }\n .ant-col-sm-offset-12 {\n margin-left: 50%;\n }\n .ant-col-sm-order-12 {\n order: 12;\n }\n .ant-col-sm-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-sm-push-11 {\n left: 45.83333333%;\n }\n .ant-col-sm-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-sm-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-sm-order-11 {\n order: 11;\n }\n .ant-col-sm-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-sm-push-10 {\n left: 41.66666667%;\n }\n .ant-col-sm-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-sm-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-sm-order-10 {\n order: 10;\n }\n .ant-col-sm-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-sm-push-9 {\n left: 37.5%;\n }\n .ant-col-sm-pull-9 {\n right: 37.5%;\n }\n .ant-col-sm-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-sm-order-9 {\n order: 9;\n }\n .ant-col-sm-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-sm-push-8 {\n left: 33.33333333%;\n }\n .ant-col-sm-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-sm-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-sm-order-8 {\n order: 8;\n }\n .ant-col-sm-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-sm-push-7 {\n left: 29.16666667%;\n }\n .ant-col-sm-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-sm-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-sm-order-7 {\n order: 7;\n }\n .ant-col-sm-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-sm-push-6 {\n left: 25%;\n }\n .ant-col-sm-pull-6 {\n right: 25%;\n }\n .ant-col-sm-offset-6 {\n margin-left: 25%;\n }\n .ant-col-sm-order-6 {\n order: 6;\n }\n .ant-col-sm-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-sm-push-5 {\n left: 20.83333333%;\n }\n .ant-col-sm-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-sm-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-sm-order-5 {\n order: 5;\n }\n .ant-col-sm-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-sm-push-4 {\n left: 16.66666667%;\n }\n .ant-col-sm-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-sm-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-sm-order-4 {\n order: 4;\n }\n .ant-col-sm-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-sm-push-3 {\n left: 12.5%;\n }\n .ant-col-sm-pull-3 {\n right: 12.5%;\n }\n .ant-col-sm-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-sm-order-3 {\n order: 3;\n }\n .ant-col-sm-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-sm-push-2 {\n left: 8.33333333%;\n }\n .ant-col-sm-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-sm-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-sm-order-2 {\n order: 2;\n }\n .ant-col-sm-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-sm-push-1 {\n left: 4.16666667%;\n }\n .ant-col-sm-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-sm-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-sm-order-1 {\n order: 1;\n }\n .ant-col-sm-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-sm-push-0 {\n left: auto;\n }\n .ant-col-sm-pull-0 {\n right: auto;\n }\n .ant-col-sm-offset-0 {\n margin-left: 0;\n }\n .ant-col-sm-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-sm-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-sm-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-sm-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-sm-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-sm-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-sm-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-sm-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-sm-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-sm-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-sm-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-sm-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-sm-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-sm-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-sm-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-sm-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-sm-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-sm-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-sm-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-sm-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-sm-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-sm-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-sm-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-sm-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-sm-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-sm-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-sm-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-sm-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-sm-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-sm-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-sm-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-sm-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-sm-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-sm-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-sm-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-sm-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-sm-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-sm-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-sm-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-sm-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-sm-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-sm-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-sm-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-sm-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-sm-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-sm-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-sm-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 768px) {\n .ant-col-md-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-md-push-24 {\n left: 100%;\n }\n .ant-col-md-pull-24 {\n right: 100%;\n }\n .ant-col-md-offset-24 {\n margin-left: 100%;\n }\n .ant-col-md-order-24 {\n order: 24;\n }\n .ant-col-md-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-md-push-23 {\n left: 95.83333333%;\n }\n .ant-col-md-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-md-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-md-order-23 {\n order: 23;\n }\n .ant-col-md-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-md-push-22 {\n left: 91.66666667%;\n }\n .ant-col-md-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-md-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-md-order-22 {\n order: 22;\n }\n .ant-col-md-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-md-push-21 {\n left: 87.5%;\n }\n .ant-col-md-pull-21 {\n right: 87.5%;\n }\n .ant-col-md-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-md-order-21 {\n order: 21;\n }\n .ant-col-md-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-md-push-20 {\n left: 83.33333333%;\n }\n .ant-col-md-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-md-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-md-order-20 {\n order: 20;\n }\n .ant-col-md-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-md-push-19 {\n left: 79.16666667%;\n }\n .ant-col-md-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-md-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-md-order-19 {\n order: 19;\n }\n .ant-col-md-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-md-push-18 {\n left: 75%;\n }\n .ant-col-md-pull-18 {\n right: 75%;\n }\n .ant-col-md-offset-18 {\n margin-left: 75%;\n }\n .ant-col-md-order-18 {\n order: 18;\n }\n .ant-col-md-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-md-push-17 {\n left: 70.83333333%;\n }\n .ant-col-md-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-md-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-md-order-17 {\n order: 17;\n }\n .ant-col-md-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-md-push-16 {\n left: 66.66666667%;\n }\n .ant-col-md-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-md-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-md-order-16 {\n order: 16;\n }\n .ant-col-md-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-md-push-15 {\n left: 62.5%;\n }\n .ant-col-md-pull-15 {\n right: 62.5%;\n }\n .ant-col-md-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-md-order-15 {\n order: 15;\n }\n .ant-col-md-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-md-push-14 {\n left: 58.33333333%;\n }\n .ant-col-md-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-md-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-md-order-14 {\n order: 14;\n }\n .ant-col-md-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-md-push-13 {\n left: 54.16666667%;\n }\n .ant-col-md-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-md-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-md-order-13 {\n order: 13;\n }\n .ant-col-md-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-md-push-12 {\n left: 50%;\n }\n .ant-col-md-pull-12 {\n right: 50%;\n }\n .ant-col-md-offset-12 {\n margin-left: 50%;\n }\n .ant-col-md-order-12 {\n order: 12;\n }\n .ant-col-md-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-md-push-11 {\n left: 45.83333333%;\n }\n .ant-col-md-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-md-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-md-order-11 {\n order: 11;\n }\n .ant-col-md-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-md-push-10 {\n left: 41.66666667%;\n }\n .ant-col-md-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-md-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-md-order-10 {\n order: 10;\n }\n .ant-col-md-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-md-push-9 {\n left: 37.5%;\n }\n .ant-col-md-pull-9 {\n right: 37.5%;\n }\n .ant-col-md-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-md-order-9 {\n order: 9;\n }\n .ant-col-md-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-md-push-8 {\n left: 33.33333333%;\n }\n .ant-col-md-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-md-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-md-order-8 {\n order: 8;\n }\n .ant-col-md-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-md-push-7 {\n left: 29.16666667%;\n }\n .ant-col-md-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-md-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-md-order-7 {\n order: 7;\n }\n .ant-col-md-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-md-push-6 {\n left: 25%;\n }\n .ant-col-md-pull-6 {\n right: 25%;\n }\n .ant-col-md-offset-6 {\n margin-left: 25%;\n }\n .ant-col-md-order-6 {\n order: 6;\n }\n .ant-col-md-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-md-push-5 {\n left: 20.83333333%;\n }\n .ant-col-md-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-md-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-md-order-5 {\n order: 5;\n }\n .ant-col-md-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-md-push-4 {\n left: 16.66666667%;\n }\n .ant-col-md-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-md-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-md-order-4 {\n order: 4;\n }\n .ant-col-md-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-md-push-3 {\n left: 12.5%;\n }\n .ant-col-md-pull-3 {\n right: 12.5%;\n }\n .ant-col-md-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-md-order-3 {\n order: 3;\n }\n .ant-col-md-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-md-push-2 {\n left: 8.33333333%;\n }\n .ant-col-md-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-md-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-md-order-2 {\n order: 2;\n }\n .ant-col-md-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-md-push-1 {\n left: 4.16666667%;\n }\n .ant-col-md-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-md-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-md-order-1 {\n order: 1;\n }\n .ant-col-md-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-md-push-0 {\n left: auto;\n }\n .ant-col-md-pull-0 {\n right: auto;\n }\n .ant-col-md-offset-0 {\n margin-left: 0;\n }\n .ant-col-md-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-md-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-md-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-md-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-md-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-md-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-md-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-md-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-md-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-md-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-md-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-md-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-md-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-md-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-md-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-md-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-md-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-md-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-md-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-md-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-md-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-md-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-md-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-md-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-md-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-md-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-md-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-md-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-md-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-md-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-md-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-md-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-md-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-md-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-md-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-md-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-md-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-md-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-md-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-md-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-md-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-md-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-md-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-md-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-md-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-md-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-md-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-md-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-md-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-md-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-md-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-md-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-md-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-md-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-md-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-md-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-md-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-md-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-md-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-md-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-md-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-md-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-md-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-md-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 992px) {\n .ant-col-lg-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-lg-push-24 {\n left: 100%;\n }\n .ant-col-lg-pull-24 {\n right: 100%;\n }\n .ant-col-lg-offset-24 {\n margin-left: 100%;\n }\n .ant-col-lg-order-24 {\n order: 24;\n }\n .ant-col-lg-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-lg-push-23 {\n left: 95.83333333%;\n }\n .ant-col-lg-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-lg-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-lg-order-23 {\n order: 23;\n }\n .ant-col-lg-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-lg-push-22 {\n left: 91.66666667%;\n }\n .ant-col-lg-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-lg-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-lg-order-22 {\n order: 22;\n }\n .ant-col-lg-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-lg-push-21 {\n left: 87.5%;\n }\n .ant-col-lg-pull-21 {\n right: 87.5%;\n }\n .ant-col-lg-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-lg-order-21 {\n order: 21;\n }\n .ant-col-lg-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-lg-push-20 {\n left: 83.33333333%;\n }\n .ant-col-lg-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-lg-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-lg-order-20 {\n order: 20;\n }\n .ant-col-lg-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-lg-push-19 {\n left: 79.16666667%;\n }\n .ant-col-lg-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-lg-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-lg-order-19 {\n order: 19;\n }\n .ant-col-lg-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-lg-push-18 {\n left: 75%;\n }\n .ant-col-lg-pull-18 {\n right: 75%;\n }\n .ant-col-lg-offset-18 {\n margin-left: 75%;\n }\n .ant-col-lg-order-18 {\n order: 18;\n }\n .ant-col-lg-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-lg-push-17 {\n left: 70.83333333%;\n }\n .ant-col-lg-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-lg-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-lg-order-17 {\n order: 17;\n }\n .ant-col-lg-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-lg-push-16 {\n left: 66.66666667%;\n }\n .ant-col-lg-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-lg-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-lg-order-16 {\n order: 16;\n }\n .ant-col-lg-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-lg-push-15 {\n left: 62.5%;\n }\n .ant-col-lg-pull-15 {\n right: 62.5%;\n }\n .ant-col-lg-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-lg-order-15 {\n order: 15;\n }\n .ant-col-lg-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-lg-push-14 {\n left: 58.33333333%;\n }\n .ant-col-lg-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-lg-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-lg-order-14 {\n order: 14;\n }\n .ant-col-lg-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-lg-push-13 {\n left: 54.16666667%;\n }\n .ant-col-lg-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-lg-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-lg-order-13 {\n order: 13;\n }\n .ant-col-lg-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-lg-push-12 {\n left: 50%;\n }\n .ant-col-lg-pull-12 {\n right: 50%;\n }\n .ant-col-lg-offset-12 {\n margin-left: 50%;\n }\n .ant-col-lg-order-12 {\n order: 12;\n }\n .ant-col-lg-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-lg-push-11 {\n left: 45.83333333%;\n }\n .ant-col-lg-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-lg-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-lg-order-11 {\n order: 11;\n }\n .ant-col-lg-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-lg-push-10 {\n left: 41.66666667%;\n }\n .ant-col-lg-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-lg-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-lg-order-10 {\n order: 10;\n }\n .ant-col-lg-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-lg-push-9 {\n left: 37.5%;\n }\n .ant-col-lg-pull-9 {\n right: 37.5%;\n }\n .ant-col-lg-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-lg-order-9 {\n order: 9;\n }\n .ant-col-lg-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-lg-push-8 {\n left: 33.33333333%;\n }\n .ant-col-lg-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-lg-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-lg-order-8 {\n order: 8;\n }\n .ant-col-lg-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-lg-push-7 {\n left: 29.16666667%;\n }\n .ant-col-lg-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-lg-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-lg-order-7 {\n order: 7;\n }\n .ant-col-lg-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-lg-push-6 {\n left: 25%;\n }\n .ant-col-lg-pull-6 {\n right: 25%;\n }\n .ant-col-lg-offset-6 {\n margin-left: 25%;\n }\n .ant-col-lg-order-6 {\n order: 6;\n }\n .ant-col-lg-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-lg-push-5 {\n left: 20.83333333%;\n }\n .ant-col-lg-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-lg-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-lg-order-5 {\n order: 5;\n }\n .ant-col-lg-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-lg-push-4 {\n left: 16.66666667%;\n }\n .ant-col-lg-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-lg-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-lg-order-4 {\n order: 4;\n }\n .ant-col-lg-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-lg-push-3 {\n left: 12.5%;\n }\n .ant-col-lg-pull-3 {\n right: 12.5%;\n }\n .ant-col-lg-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-lg-order-3 {\n order: 3;\n }\n .ant-col-lg-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-lg-push-2 {\n left: 8.33333333%;\n }\n .ant-col-lg-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-lg-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-lg-order-2 {\n order: 2;\n }\n .ant-col-lg-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-lg-push-1 {\n left: 4.16666667%;\n }\n .ant-col-lg-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-lg-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-lg-order-1 {\n order: 1;\n }\n .ant-col-lg-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-lg-push-0 {\n left: auto;\n }\n .ant-col-lg-pull-0 {\n right: auto;\n }\n .ant-col-lg-offset-0 {\n margin-left: 0;\n }\n .ant-col-lg-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-lg-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-lg-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-lg-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-lg-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-lg-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-lg-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-lg-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-lg-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-lg-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-lg-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-lg-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-lg-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-lg-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-lg-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-lg-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-lg-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-lg-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-lg-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-lg-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-lg-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-lg-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-lg-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-lg-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-lg-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-lg-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-lg-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-lg-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-lg-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-lg-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-lg-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-lg-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-lg-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-lg-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-lg-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-lg-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-lg-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-lg-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-lg-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-lg-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-lg-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-lg-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-lg-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-lg-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-lg-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-lg-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-lg-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 1200px) {\n .ant-col-xl-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xl-push-24 {\n left: 100%;\n }\n .ant-col-xl-pull-24 {\n right: 100%;\n }\n .ant-col-xl-offset-24 {\n margin-left: 100%;\n }\n .ant-col-xl-order-24 {\n order: 24;\n }\n .ant-col-xl-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-xl-push-23 {\n left: 95.83333333%;\n }\n .ant-col-xl-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-xl-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-xl-order-23 {\n order: 23;\n }\n .ant-col-xl-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-xl-push-22 {\n left: 91.66666667%;\n }\n .ant-col-xl-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-xl-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-xl-order-22 {\n order: 22;\n }\n .ant-col-xl-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-xl-push-21 {\n left: 87.5%;\n }\n .ant-col-xl-pull-21 {\n right: 87.5%;\n }\n .ant-col-xl-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-xl-order-21 {\n order: 21;\n }\n .ant-col-xl-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-xl-push-20 {\n left: 83.33333333%;\n }\n .ant-col-xl-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-xl-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-xl-order-20 {\n order: 20;\n }\n .ant-col-xl-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-xl-push-19 {\n left: 79.16666667%;\n }\n .ant-col-xl-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-xl-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-xl-order-19 {\n order: 19;\n }\n .ant-col-xl-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-xl-push-18 {\n left: 75%;\n }\n .ant-col-xl-pull-18 {\n right: 75%;\n }\n .ant-col-xl-offset-18 {\n margin-left: 75%;\n }\n .ant-col-xl-order-18 {\n order: 18;\n }\n .ant-col-xl-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-xl-push-17 {\n left: 70.83333333%;\n }\n .ant-col-xl-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-xl-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-xl-order-17 {\n order: 17;\n }\n .ant-col-xl-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-xl-push-16 {\n left: 66.66666667%;\n }\n .ant-col-xl-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-xl-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-xl-order-16 {\n order: 16;\n }\n .ant-col-xl-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-xl-push-15 {\n left: 62.5%;\n }\n .ant-col-xl-pull-15 {\n right: 62.5%;\n }\n .ant-col-xl-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-xl-order-15 {\n order: 15;\n }\n .ant-col-xl-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-xl-push-14 {\n left: 58.33333333%;\n }\n .ant-col-xl-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-xl-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-xl-order-14 {\n order: 14;\n }\n .ant-col-xl-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-xl-push-13 {\n left: 54.16666667%;\n }\n .ant-col-xl-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-xl-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-xl-order-13 {\n order: 13;\n }\n .ant-col-xl-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-xl-push-12 {\n left: 50%;\n }\n .ant-col-xl-pull-12 {\n right: 50%;\n }\n .ant-col-xl-offset-12 {\n margin-left: 50%;\n }\n .ant-col-xl-order-12 {\n order: 12;\n }\n .ant-col-xl-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-xl-push-11 {\n left: 45.83333333%;\n }\n .ant-col-xl-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-xl-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-xl-order-11 {\n order: 11;\n }\n .ant-col-xl-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-xl-push-10 {\n left: 41.66666667%;\n }\n .ant-col-xl-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-xl-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-xl-order-10 {\n order: 10;\n }\n .ant-col-xl-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-xl-push-9 {\n left: 37.5%;\n }\n .ant-col-xl-pull-9 {\n right: 37.5%;\n }\n .ant-col-xl-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-xl-order-9 {\n order: 9;\n }\n .ant-col-xl-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-xl-push-8 {\n left: 33.33333333%;\n }\n .ant-col-xl-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-xl-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-xl-order-8 {\n order: 8;\n }\n .ant-col-xl-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-xl-push-7 {\n left: 29.16666667%;\n }\n .ant-col-xl-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-xl-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-xl-order-7 {\n order: 7;\n }\n .ant-col-xl-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-xl-push-6 {\n left: 25%;\n }\n .ant-col-xl-pull-6 {\n right: 25%;\n }\n .ant-col-xl-offset-6 {\n margin-left: 25%;\n }\n .ant-col-xl-order-6 {\n order: 6;\n }\n .ant-col-xl-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-xl-push-5 {\n left: 20.83333333%;\n }\n .ant-col-xl-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-xl-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-xl-order-5 {\n order: 5;\n }\n .ant-col-xl-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-xl-push-4 {\n left: 16.66666667%;\n }\n .ant-col-xl-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-xl-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-xl-order-4 {\n order: 4;\n }\n .ant-col-xl-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-xl-push-3 {\n left: 12.5%;\n }\n .ant-col-xl-pull-3 {\n right: 12.5%;\n }\n .ant-col-xl-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-xl-order-3 {\n order: 3;\n }\n .ant-col-xl-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-xl-push-2 {\n left: 8.33333333%;\n }\n .ant-col-xl-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-xl-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-xl-order-2 {\n order: 2;\n }\n .ant-col-xl-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-xl-push-1 {\n left: 4.16666667%;\n }\n .ant-col-xl-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-xl-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-xl-order-1 {\n order: 1;\n }\n .ant-col-xl-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-xl-push-0 {\n left: auto;\n }\n .ant-col-xl-pull-0 {\n right: auto;\n }\n .ant-col-xl-offset-0 {\n margin-left: 0;\n }\n .ant-col-xl-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xl-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-xl-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xl-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-xl-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-xl-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-xl-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-xl-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-xl-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-xl-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-xl-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-xl-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-xl-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-xl-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-xl-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-xl-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-xl-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-xl-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-xl-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-xl-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-xl-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-xl-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-xl-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-xl-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-xl-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-xl-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-xl-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-xl-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-xl-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-xl-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-xl-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-xl-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-xl-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-xl-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-xl-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-xl-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-xl-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-xl-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-xl-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-xl-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-xl-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-xl-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-xl-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-xl-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-xl-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-xl-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-xl-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n@media (min-width: 1600px) {\n .ant-col-xxl-24 {\n display: block;\n flex: 0 0 100%;\n max-width: 100%;\n }\n .ant-col-xxl-push-24 {\n left: 100%;\n }\n .ant-col-xxl-pull-24 {\n right: 100%;\n }\n .ant-col-xxl-offset-24 {\n margin-left: 100%;\n }\n .ant-col-xxl-order-24 {\n order: 24;\n }\n .ant-col-xxl-23 {\n display: block;\n flex: 0 0 95.83333333%;\n max-width: 95.83333333%;\n }\n .ant-col-xxl-push-23 {\n left: 95.83333333%;\n }\n .ant-col-xxl-pull-23 {\n right: 95.83333333%;\n }\n .ant-col-xxl-offset-23 {\n margin-left: 95.83333333%;\n }\n .ant-col-xxl-order-23 {\n order: 23;\n }\n .ant-col-xxl-22 {\n display: block;\n flex: 0 0 91.66666667%;\n max-width: 91.66666667%;\n }\n .ant-col-xxl-push-22 {\n left: 91.66666667%;\n }\n .ant-col-xxl-pull-22 {\n right: 91.66666667%;\n }\n .ant-col-xxl-offset-22 {\n margin-left: 91.66666667%;\n }\n .ant-col-xxl-order-22 {\n order: 22;\n }\n .ant-col-xxl-21 {\n display: block;\n flex: 0 0 87.5%;\n max-width: 87.5%;\n }\n .ant-col-xxl-push-21 {\n left: 87.5%;\n }\n .ant-col-xxl-pull-21 {\n right: 87.5%;\n }\n .ant-col-xxl-offset-21 {\n margin-left: 87.5%;\n }\n .ant-col-xxl-order-21 {\n order: 21;\n }\n .ant-col-xxl-20 {\n display: block;\n flex: 0 0 83.33333333%;\n max-width: 83.33333333%;\n }\n .ant-col-xxl-push-20 {\n left: 83.33333333%;\n }\n .ant-col-xxl-pull-20 {\n right: 83.33333333%;\n }\n .ant-col-xxl-offset-20 {\n margin-left: 83.33333333%;\n }\n .ant-col-xxl-order-20 {\n order: 20;\n }\n .ant-col-xxl-19 {\n display: block;\n flex: 0 0 79.16666667%;\n max-width: 79.16666667%;\n }\n .ant-col-xxl-push-19 {\n left: 79.16666667%;\n }\n .ant-col-xxl-pull-19 {\n right: 79.16666667%;\n }\n .ant-col-xxl-offset-19 {\n margin-left: 79.16666667%;\n }\n .ant-col-xxl-order-19 {\n order: 19;\n }\n .ant-col-xxl-18 {\n display: block;\n flex: 0 0 75%;\n max-width: 75%;\n }\n .ant-col-xxl-push-18 {\n left: 75%;\n }\n .ant-col-xxl-pull-18 {\n right: 75%;\n }\n .ant-col-xxl-offset-18 {\n margin-left: 75%;\n }\n .ant-col-xxl-order-18 {\n order: 18;\n }\n .ant-col-xxl-17 {\n display: block;\n flex: 0 0 70.83333333%;\n max-width: 70.83333333%;\n }\n .ant-col-xxl-push-17 {\n left: 70.83333333%;\n }\n .ant-col-xxl-pull-17 {\n right: 70.83333333%;\n }\n .ant-col-xxl-offset-17 {\n margin-left: 70.83333333%;\n }\n .ant-col-xxl-order-17 {\n order: 17;\n }\n .ant-col-xxl-16 {\n display: block;\n flex: 0 0 66.66666667%;\n max-width: 66.66666667%;\n }\n .ant-col-xxl-push-16 {\n left: 66.66666667%;\n }\n .ant-col-xxl-pull-16 {\n right: 66.66666667%;\n }\n .ant-col-xxl-offset-16 {\n margin-left: 66.66666667%;\n }\n .ant-col-xxl-order-16 {\n order: 16;\n }\n .ant-col-xxl-15 {\n display: block;\n flex: 0 0 62.5%;\n max-width: 62.5%;\n }\n .ant-col-xxl-push-15 {\n left: 62.5%;\n }\n .ant-col-xxl-pull-15 {\n right: 62.5%;\n }\n .ant-col-xxl-offset-15 {\n margin-left: 62.5%;\n }\n .ant-col-xxl-order-15 {\n order: 15;\n }\n .ant-col-xxl-14 {\n display: block;\n flex: 0 0 58.33333333%;\n max-width: 58.33333333%;\n }\n .ant-col-xxl-push-14 {\n left: 58.33333333%;\n }\n .ant-col-xxl-pull-14 {\n right: 58.33333333%;\n }\n .ant-col-xxl-offset-14 {\n margin-left: 58.33333333%;\n }\n .ant-col-xxl-order-14 {\n order: 14;\n }\n .ant-col-xxl-13 {\n display: block;\n flex: 0 0 54.16666667%;\n max-width: 54.16666667%;\n }\n .ant-col-xxl-push-13 {\n left: 54.16666667%;\n }\n .ant-col-xxl-pull-13 {\n right: 54.16666667%;\n }\n .ant-col-xxl-offset-13 {\n margin-left: 54.16666667%;\n }\n .ant-col-xxl-order-13 {\n order: 13;\n }\n .ant-col-xxl-12 {\n display: block;\n flex: 0 0 50%;\n max-width: 50%;\n }\n .ant-col-xxl-push-12 {\n left: 50%;\n }\n .ant-col-xxl-pull-12 {\n right: 50%;\n }\n .ant-col-xxl-offset-12 {\n margin-left: 50%;\n }\n .ant-col-xxl-order-12 {\n order: 12;\n }\n .ant-col-xxl-11 {\n display: block;\n flex: 0 0 45.83333333%;\n max-width: 45.83333333%;\n }\n .ant-col-xxl-push-11 {\n left: 45.83333333%;\n }\n .ant-col-xxl-pull-11 {\n right: 45.83333333%;\n }\n .ant-col-xxl-offset-11 {\n margin-left: 45.83333333%;\n }\n .ant-col-xxl-order-11 {\n order: 11;\n }\n .ant-col-xxl-10 {\n display: block;\n flex: 0 0 41.66666667%;\n max-width: 41.66666667%;\n }\n .ant-col-xxl-push-10 {\n left: 41.66666667%;\n }\n .ant-col-xxl-pull-10 {\n right: 41.66666667%;\n }\n .ant-col-xxl-offset-10 {\n margin-left: 41.66666667%;\n }\n .ant-col-xxl-order-10 {\n order: 10;\n }\n .ant-col-xxl-9 {\n display: block;\n flex: 0 0 37.5%;\n max-width: 37.5%;\n }\n .ant-col-xxl-push-9 {\n left: 37.5%;\n }\n .ant-col-xxl-pull-9 {\n right: 37.5%;\n }\n .ant-col-xxl-offset-9 {\n margin-left: 37.5%;\n }\n .ant-col-xxl-order-9 {\n order: 9;\n }\n .ant-col-xxl-8 {\n display: block;\n flex: 0 0 33.33333333%;\n max-width: 33.33333333%;\n }\n .ant-col-xxl-push-8 {\n left: 33.33333333%;\n }\n .ant-col-xxl-pull-8 {\n right: 33.33333333%;\n }\n .ant-col-xxl-offset-8 {\n margin-left: 33.33333333%;\n }\n .ant-col-xxl-order-8 {\n order: 8;\n }\n .ant-col-xxl-7 {\n display: block;\n flex: 0 0 29.16666667%;\n max-width: 29.16666667%;\n }\n .ant-col-xxl-push-7 {\n left: 29.16666667%;\n }\n .ant-col-xxl-pull-7 {\n right: 29.16666667%;\n }\n .ant-col-xxl-offset-7 {\n margin-left: 29.16666667%;\n }\n .ant-col-xxl-order-7 {\n order: 7;\n }\n .ant-col-xxl-6 {\n display: block;\n flex: 0 0 25%;\n max-width: 25%;\n }\n .ant-col-xxl-push-6 {\n left: 25%;\n }\n .ant-col-xxl-pull-6 {\n right: 25%;\n }\n .ant-col-xxl-offset-6 {\n margin-left: 25%;\n }\n .ant-col-xxl-order-6 {\n order: 6;\n }\n .ant-col-xxl-5 {\n display: block;\n flex: 0 0 20.83333333%;\n max-width: 20.83333333%;\n }\n .ant-col-xxl-push-5 {\n left: 20.83333333%;\n }\n .ant-col-xxl-pull-5 {\n right: 20.83333333%;\n }\n .ant-col-xxl-offset-5 {\n margin-left: 20.83333333%;\n }\n .ant-col-xxl-order-5 {\n order: 5;\n }\n .ant-col-xxl-4 {\n display: block;\n flex: 0 0 16.66666667%;\n max-width: 16.66666667%;\n }\n .ant-col-xxl-push-4 {\n left: 16.66666667%;\n }\n .ant-col-xxl-pull-4 {\n right: 16.66666667%;\n }\n .ant-col-xxl-offset-4 {\n margin-left: 16.66666667%;\n }\n .ant-col-xxl-order-4 {\n order: 4;\n }\n .ant-col-xxl-3 {\n display: block;\n flex: 0 0 12.5%;\n max-width: 12.5%;\n }\n .ant-col-xxl-push-3 {\n left: 12.5%;\n }\n .ant-col-xxl-pull-3 {\n right: 12.5%;\n }\n .ant-col-xxl-offset-3 {\n margin-left: 12.5%;\n }\n .ant-col-xxl-order-3 {\n order: 3;\n }\n .ant-col-xxl-2 {\n display: block;\n flex: 0 0 8.33333333%;\n max-width: 8.33333333%;\n }\n .ant-col-xxl-push-2 {\n left: 8.33333333%;\n }\n .ant-col-xxl-pull-2 {\n right: 8.33333333%;\n }\n .ant-col-xxl-offset-2 {\n margin-left: 8.33333333%;\n }\n .ant-col-xxl-order-2 {\n order: 2;\n }\n .ant-col-xxl-1 {\n display: block;\n flex: 0 0 4.16666667%;\n max-width: 4.16666667%;\n }\n .ant-col-xxl-push-1 {\n left: 4.16666667%;\n }\n .ant-col-xxl-pull-1 {\n right: 4.16666667%;\n }\n .ant-col-xxl-offset-1 {\n margin-left: 4.16666667%;\n }\n .ant-col-xxl-order-1 {\n order: 1;\n }\n .ant-col-xxl-0 {\n display: none;\n }\n .ant-col-push-0 {\n left: auto;\n }\n .ant-col-pull-0 {\n right: auto;\n }\n .ant-col-xxl-push-0 {\n left: auto;\n }\n .ant-col-xxl-pull-0 {\n right: auto;\n }\n .ant-col-xxl-offset-0 {\n margin-left: 0;\n }\n .ant-col-xxl-order-0 {\n order: 0;\n }\n .ant-col-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xxl-push-0.ant-col-rtl {\n right: auto;\n }\n .ant-col-xxl-pull-0.ant-col-rtl {\n left: auto;\n }\n .ant-col-xxl-offset-0.ant-col-rtl {\n margin-right: 0;\n }\n .ant-col-xxl-push-1.ant-col-rtl {\n right: 4.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-1.ant-col-rtl {\n right: auto;\n left: 4.16666667%;\n }\n .ant-col-xxl-offset-1.ant-col-rtl {\n margin-right: 4.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-2.ant-col-rtl {\n right: 8.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-2.ant-col-rtl {\n right: auto;\n left: 8.33333333%;\n }\n .ant-col-xxl-offset-2.ant-col-rtl {\n margin-right: 8.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-3.ant-col-rtl {\n right: 12.5%;\n left: auto;\n }\n .ant-col-xxl-pull-3.ant-col-rtl {\n right: auto;\n left: 12.5%;\n }\n .ant-col-xxl-offset-3.ant-col-rtl {\n margin-right: 12.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-4.ant-col-rtl {\n right: 16.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-4.ant-col-rtl {\n right: auto;\n left: 16.66666667%;\n }\n .ant-col-xxl-offset-4.ant-col-rtl {\n margin-right: 16.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-5.ant-col-rtl {\n right: 20.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-5.ant-col-rtl {\n right: auto;\n left: 20.83333333%;\n }\n .ant-col-xxl-offset-5.ant-col-rtl {\n margin-right: 20.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-6.ant-col-rtl {\n right: 25%;\n left: auto;\n }\n .ant-col-xxl-pull-6.ant-col-rtl {\n right: auto;\n left: 25%;\n }\n .ant-col-xxl-offset-6.ant-col-rtl {\n margin-right: 25%;\n margin-left: 0;\n }\n .ant-col-xxl-push-7.ant-col-rtl {\n right: 29.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-7.ant-col-rtl {\n right: auto;\n left: 29.16666667%;\n }\n .ant-col-xxl-offset-7.ant-col-rtl {\n margin-right: 29.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-8.ant-col-rtl {\n right: 33.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-8.ant-col-rtl {\n right: auto;\n left: 33.33333333%;\n }\n .ant-col-xxl-offset-8.ant-col-rtl {\n margin-right: 33.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-9.ant-col-rtl {\n right: 37.5%;\n left: auto;\n }\n .ant-col-xxl-pull-9.ant-col-rtl {\n right: auto;\n left: 37.5%;\n }\n .ant-col-xxl-offset-9.ant-col-rtl {\n margin-right: 37.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-10.ant-col-rtl {\n right: 41.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-10.ant-col-rtl {\n right: auto;\n left: 41.66666667%;\n }\n .ant-col-xxl-offset-10.ant-col-rtl {\n margin-right: 41.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-11.ant-col-rtl {\n right: 45.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-11.ant-col-rtl {\n right: auto;\n left: 45.83333333%;\n }\n .ant-col-xxl-offset-11.ant-col-rtl {\n margin-right: 45.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-12.ant-col-rtl {\n right: 50%;\n left: auto;\n }\n .ant-col-xxl-pull-12.ant-col-rtl {\n right: auto;\n left: 50%;\n }\n .ant-col-xxl-offset-12.ant-col-rtl {\n margin-right: 50%;\n margin-left: 0;\n }\n .ant-col-xxl-push-13.ant-col-rtl {\n right: 54.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-13.ant-col-rtl {\n right: auto;\n left: 54.16666667%;\n }\n .ant-col-xxl-offset-13.ant-col-rtl {\n margin-right: 54.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-14.ant-col-rtl {\n right: 58.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-14.ant-col-rtl {\n right: auto;\n left: 58.33333333%;\n }\n .ant-col-xxl-offset-14.ant-col-rtl {\n margin-right: 58.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-15.ant-col-rtl {\n right: 62.5%;\n left: auto;\n }\n .ant-col-xxl-pull-15.ant-col-rtl {\n right: auto;\n left: 62.5%;\n }\n .ant-col-xxl-offset-15.ant-col-rtl {\n margin-right: 62.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-16.ant-col-rtl {\n right: 66.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-16.ant-col-rtl {\n right: auto;\n left: 66.66666667%;\n }\n .ant-col-xxl-offset-16.ant-col-rtl {\n margin-right: 66.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-17.ant-col-rtl {\n right: 70.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-17.ant-col-rtl {\n right: auto;\n left: 70.83333333%;\n }\n .ant-col-xxl-offset-17.ant-col-rtl {\n margin-right: 70.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-18.ant-col-rtl {\n right: 75%;\n left: auto;\n }\n .ant-col-xxl-pull-18.ant-col-rtl {\n right: auto;\n left: 75%;\n }\n .ant-col-xxl-offset-18.ant-col-rtl {\n margin-right: 75%;\n margin-left: 0;\n }\n .ant-col-xxl-push-19.ant-col-rtl {\n right: 79.16666667%;\n left: auto;\n }\n .ant-col-xxl-pull-19.ant-col-rtl {\n right: auto;\n left: 79.16666667%;\n }\n .ant-col-xxl-offset-19.ant-col-rtl {\n margin-right: 79.16666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-20.ant-col-rtl {\n right: 83.33333333%;\n left: auto;\n }\n .ant-col-xxl-pull-20.ant-col-rtl {\n right: auto;\n left: 83.33333333%;\n }\n .ant-col-xxl-offset-20.ant-col-rtl {\n margin-right: 83.33333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-21.ant-col-rtl {\n right: 87.5%;\n left: auto;\n }\n .ant-col-xxl-pull-21.ant-col-rtl {\n right: auto;\n left: 87.5%;\n }\n .ant-col-xxl-offset-21.ant-col-rtl {\n margin-right: 87.5%;\n margin-left: 0;\n }\n .ant-col-xxl-push-22.ant-col-rtl {\n right: 91.66666667%;\n left: auto;\n }\n .ant-col-xxl-pull-22.ant-col-rtl {\n right: auto;\n left: 91.66666667%;\n }\n .ant-col-xxl-offset-22.ant-col-rtl {\n margin-right: 91.66666667%;\n margin-left: 0;\n }\n .ant-col-xxl-push-23.ant-col-rtl {\n right: 95.83333333%;\n left: auto;\n }\n .ant-col-xxl-pull-23.ant-col-rtl {\n right: auto;\n left: 95.83333333%;\n }\n .ant-col-xxl-offset-23.ant-col-rtl {\n margin-right: 95.83333333%;\n margin-left: 0;\n }\n .ant-col-xxl-push-24.ant-col-rtl {\n right: 100%;\n left: auto;\n }\n .ant-col-xxl-pull-24.ant-col-rtl {\n right: auto;\n left: 100%;\n }\n .ant-col-xxl-offset-24.ant-col-rtl {\n margin-right: 100%;\n margin-left: 0;\n }\n}\n.ant-row-rtl {\n direction: rtl;\n}\n.ant-image {\n position: relative;\n display: inline-block;\n}\n.ant-image-img {\n display: block;\n width: 100%;\n height: auto;\n}\n.ant-image-img-placeholder {\n background-color: #f5f5f5;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=);\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 30%;\n}\n.ant-image-mask {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n background: rgba(0, 0, 0, 0.5);\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.ant-image-mask-info .anticon {\n margin-inline-end: 4px;\n}\n.ant-image-mask:hover {\n opacity: 1;\n}\n.ant-image-placeholder {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ant-image-preview {\n pointer-events: none;\n height: 100%;\n text-align: center;\n}\n.ant-image-preview.zoom-enter,\n.ant-image-preview.zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.ant-image-preview-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1000;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.ant-image-preview-mask-hidden {\n display: none;\n}\n.ant-image-preview-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n -webkit-overflow-scrolling: touch;\n}\n.ant-image-preview-body {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n}\n.ant-image-preview-img {\n max-width: 100%;\n max-height: 100%;\n vertical-align: middle;\n transform: scale3d(1, 1, 1);\n cursor: grab;\n transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;\n user-select: none;\n pointer-events: auto;\n}\n.ant-image-preview-img-wrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;\n}\n.ant-image-preview-img-wrapper::before {\n display: inline-block;\n width: 1px;\n height: 50%;\n margin-right: -1px;\n content: '';\n}\n.ant-image-preview-moving .ant-image-preview-img {\n cursor: grabbing;\n}\n.ant-image-preview-moving .ant-image-preview-img-wrapper {\n transition-duration: 0s;\n}\n.ant-image-preview-wrap {\n z-index: 1080;\n}\n.ant-image-preview-operations {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n width: 100%;\n color: rgba(255, 255, 255, 0.85);\n list-style: none;\n background: rgba(0, 0, 0, 0.1);\n pointer-events: auto;\n}\n.ant-image-preview-operations-operation {\n margin-left: 12px;\n padding: 12px;\n cursor: pointer;\n}\n.ant-image-preview-operations-operation-disabled {\n color: rgba(255, 255, 255, 0.25);\n pointer-events: none;\n}\n.ant-image-preview-operations-operation:last-of-type {\n margin-left: 0;\n}\n.ant-image-preview-operations-icon {\n font-size: 18px;\n}\n.ant-image-preview-switch-left,\n.ant-image-preview-switch-right {\n position: absolute;\n top: 50%;\n right: 10px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 44px;\n height: 44px;\n margin-top: -22px;\n color: rgba(255, 255, 255, 0.85);\n background: rgba(0, 0, 0, 0.1);\n border-radius: 50%;\n cursor: pointer;\n pointer-events: auto;\n}\n.ant-image-preview-switch-left-disabled,\n.ant-image-preview-switch-right-disabled {\n color: rgba(255, 255, 255, 0.25);\n cursor: not-allowed;\n}\n.ant-image-preview-switch-left-disabled > .anticon,\n.ant-image-preview-switch-right-disabled > .anticon {\n cursor: not-allowed;\n}\n.ant-image-preview-switch-left > .anticon,\n.ant-image-preview-switch-right > .anticon {\n font-size: 18px;\n}\n.ant-image-preview-switch-left {\n left: 10px;\n}\n.ant-image-preview-switch-right {\n right: 10px;\n}\n.ant-input-affix-wrapper {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n display: inline-flex;\n}\n.ant-input-affix-wrapper::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-affix-wrapper::placeholder {\n color: #bfbfbf;\n}\n.ant-input-affix-wrapper:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-affix-wrapper:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input-affix-wrapper:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-affix-wrapper:focus,\n.ant-input-affix-wrapper-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-affix-wrapper:focus,\n.ant-input-rtl .ant-input-affix-wrapper-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-affix-wrapper-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-affix-wrapper-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-affix-wrapper[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-affix-wrapper[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-affix-wrapper-borderless,\n.ant-input-affix-wrapper-borderless:hover,\n.ant-input-affix-wrapper-borderless:focus,\n.ant-input-affix-wrapper-borderless-focused,\n.ant-input-affix-wrapper-borderless-disabled,\n.ant-input-affix-wrapper-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input-affix-wrapper {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-affix-wrapper-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-affix-wrapper-sm {\n padding: 0px 7px;\n}\n.ant-input-affix-wrapper-rtl {\n direction: rtl;\n}\n.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n z-index: 1;\n}\n.ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-search-with-button .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {\n z-index: 0;\n}\n.ant-input-affix-wrapper-focused,\n.ant-input-affix-wrapper:focus {\n z-index: 1;\n}\n.ant-input-affix-wrapper-disabled .ant-input[disabled] {\n background: transparent;\n}\n.ant-input-affix-wrapper > input.ant-input {\n padding: 0;\n border: none;\n outline: none;\n}\n.ant-input-affix-wrapper > input.ant-input:focus {\n box-shadow: none;\n}\n.ant-input-affix-wrapper::before {\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\n.ant-input-prefix,\n.ant-input-suffix {\n display: flex;\n flex: none;\n align-items: center;\n}\n.ant-input-prefix {\n margin-right: 4px;\n}\n.ant-input-suffix {\n margin-left: 4px;\n}\n.ant-input-clear-icon {\n margin: 0 4px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n vertical-align: -1px;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-input-clear-icon:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-input-clear-icon:active {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-input-clear-icon-hidden {\n visibility: hidden;\n}\n.ant-input-clear-icon:last-child {\n margin-right: 0;\n}\n.ant-input-affix-wrapper-textarea-with-clear-btn {\n padding: 0 !important;\n border: 0 !important;\n}\n.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon {\n position: absolute;\n top: 8px;\n right: 8px;\n z-index: 1;\n}\n.ant-input {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n}\n.ant-input::-moz-placeholder {\n opacity: 1;\n}\n.ant-input::placeholder {\n color: #bfbfbf;\n}\n.ant-input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input:focus,\n.ant-input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input:focus,\n.ant-input-rtl .ant-input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-borderless,\n.ant-input-borderless:hover,\n.ant-input-borderless:focus,\n.ant-input-borderless-focused,\n.ant-input-borderless-disabled,\n.ant-input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-sm {\n padding: 0px 7px;\n}\n.ant-input-rtl {\n direction: rtl;\n}\n.ant-input-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: table;\n width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n}\n.ant-input-group[class*='col-'] {\n float: none;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-input-group > [class*='col-'] {\n padding-right: 8px;\n}\n.ant-input-group > [class*='col-']:last-child {\n padding-right: 0;\n}\n.ant-input-group-addon,\n.ant-input-group-wrap,\n.ant-input-group > .ant-input {\n display: table-cell;\n}\n.ant-input-group-addon:not(:first-child):not(:last-child),\n.ant-input-group-wrap:not(:first-child):not(:last-child),\n.ant-input-group > .ant-input:not(:first-child):not(:last-child) {\n border-radius: 0;\n}\n.ant-input-group-addon,\n.ant-input-group-wrap {\n width: 1px;\n white-space: nowrap;\n vertical-align: middle;\n}\n.ant-input-group-wrap > * {\n display: block !important;\n}\n.ant-input-group .ant-input {\n float: left;\n width: 100%;\n margin-bottom: 0;\n text-align: inherit;\n}\n.ant-input-group .ant-input:focus {\n z-index: 1;\n border-right-width: 1px;\n}\n.ant-input-group .ant-input:hover {\n z-index: 1;\n border-right-width: 1px;\n}\n.ant-input-search-with-button .ant-input-group .ant-input:hover {\n z-index: 0;\n}\n.ant-input-group-addon {\n position: relative;\n padding: 0 11px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n text-align: center;\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n}\n.ant-input-group-addon .ant-select {\n margin: -5px -11px;\n}\n.ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n background-color: inherit;\n border: 1px solid transparent;\n box-shadow: none;\n}\n.ant-input-group-addon .ant-select-open .ant-select-selector,\n.ant-input-group-addon .ant-select-focused .ant-select-selector {\n color: #5b5ce1;\n}\n.ant-input-group > .ant-input:first-child,\n.ant-input-group-addon:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group > .ant-input:first-child .ant-select .ant-select-selector,\n.ant-input-group-addon:first-child .ant-select .ant-select-selector {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group > .ant-input-affix-wrapper:not(:first-child) .ant-input {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group > .ant-input-affix-wrapper:not(:last-child) .ant-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-group-addon:first-child {\n border-right: 0;\n}\n.ant-input-group-addon:last-child {\n border-left: 0;\n}\n.ant-input-group > .ant-input:last-child,\n.ant-input-group-addon:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group > .ant-input:last-child .ant-select .ant-select-selector,\n.ant-input-group-addon:last-child .ant-select .ant-select-selector {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group-lg .ant-input,\n.ant-input-group-lg > .ant-input-group-addon {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-group-sm .ant-input,\n.ant-input-group-sm > .ant-input-group-addon {\n padding: 0px 7px;\n}\n.ant-input-group-lg .ant-select-single .ant-select-selector {\n height: 40px;\n}\n.ant-input-group-sm .ant-select-single .ant-select-selector {\n height: 24px;\n}\n.ant-input-group .ant-input-affix-wrapper:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact {\n display: block;\n}\n.ant-input-group.ant-input-group-compact::before {\n display: table;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::before {\n display: table;\n content: '';\n}\n.ant-input-group.ant-input-group-compact::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child),\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child),\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child) {\n border-right-width: 1px;\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):hover,\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):hover,\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child):hover {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact-addon:not(:first-child):not(:last-child):focus,\n.ant-input-group.ant-input-group-compact-wrap:not(:first-child):not(:last-child):focus,\n.ant-input-group.ant-input-group-compact > .ant-input:not(:first-child):not(:last-child):focus {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > * {\n display: inline-block;\n float: none;\n vertical-align: top;\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact > .ant-input-affix-wrapper {\n display: inline-flex;\n}\n.ant-input-group.ant-input-group-compact > .ant-picker-range {\n display: inline-flex;\n}\n.ant-input-group.ant-input-group-compact > *:not(:last-child) {\n margin-right: -1px;\n border-right-width: 1px;\n}\n.ant-input-group.ant-input-group-compact .ant-input {\n float: none;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input {\n border-right-width: 1px;\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector:hover,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input:hover,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input:hover,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input:hover {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-selector:focus,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input:focus,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker .ant-input:focus,\n.ant-input-group.ant-input-group-compact > .ant-input-group-wrapper .ant-input:focus {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select-focused {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > .ant-select > .ant-select-arrow {\n z-index: 1;\n}\n.ant-input-group.ant-input-group-compact > *:first-child,\n.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact > *:last-child,\n.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input,\n.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {\n border-right-width: 1px;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.ant-input-group.ant-input-group-compact > .ant-select-auto-complete .ant-input {\n vertical-align: top;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper + .ant-input-group-wrapper {\n margin-left: -1px;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper + .ant-input-group-wrapper .ant-input-affix-wrapper {\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input-group-addon > .ant-input-search-button {\n border-radius: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group > .ant-input-rtl:first-child,\n.ant-input-group-rtl .ant-input-group-addon:first-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl .ant-input-group-addon:first-child {\n border-right: 1px solid #d9d9d9;\n border-left: 0;\n}\n.ant-input-group-rtl .ant-input-group-addon:last-child {\n border-right: 0;\n border-left: 1px solid #d9d9d9;\n}\n.ant-input-group-rtl.ant-input-group > .ant-input:last-child,\n.ant-input-group-rtl.ant-input-group-addon:last-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child) {\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child) {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:not(:last-child) {\n margin-right: 0;\n margin-left: -1px;\n border-left-width: 1px;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:first-child,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:last-child,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input,\n.ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {\n border-left-width: 1px;\n border-radius: 5px 0 0 5px;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl + .ant-input-group-wrapper-rtl {\n margin-right: -1px;\n margin-left: 0;\n}\n.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {\n border-radius: 0 5px 5px 0;\n}\n.ant-input-group-wrapper {\n display: inline-block;\n width: 100%;\n text-align: start;\n vertical-align: top;\n}\n.ant-input-password-icon {\n color: rgba(0, 0, 0, 0.45);\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-input-password-icon:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-input[type='color'] {\n height: 32px;\n}\n.ant-input[type='color'].ant-input-lg {\n height: 40px;\n}\n.ant-input[type='color'].ant-input-sm {\n height: 24px;\n padding-top: 3px;\n padding-bottom: 3px;\n}\n.ant-input-textarea-show-count::after {\n float: right;\n color: rgba(0, 0, 0, 0.45);\n white-space: nowrap;\n content: attr(data-count);\n pointer-events: none;\n}\n.ant-input-search .ant-input:hover,\n.ant-input-search .ant-input:focus {\n border-color: #8588ed;\n}\n.ant-input-search .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),\n.ant-input-search .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {\n border-left-color: #8588ed;\n}\n.ant-input-search .ant-input-affix-wrapper {\n border-radius: 0;\n}\n.ant-input-search .ant-input-lg {\n line-height: 1.5713;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child {\n left: -1px;\n padding: 0;\n border: 0;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 5px 5px 0;\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary) {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child .ant-input-search-button:not(.ant-btn-primary).ant-btn-loading::before {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ant-input-search-button {\n height: 32px;\n}\n.ant-input-search-button:hover,\n.ant-input-search-button:focus {\n z-index: 1;\n}\n.ant-input-search-large .ant-input-search-button {\n height: 40px;\n}\n.ant-input-search-small .ant-input-search-button {\n height: 24px;\n}\n.ant-input-group-wrapper-rtl {\n direction: rtl;\n}\n.ant-input-group-rtl {\n direction: rtl;\n}\n.ant-input-affix-wrapper.ant-input-affix-wrapper-rtl > input.ant-input {\n border: none;\n outline: none;\n}\n.ant-input-affix-wrapper-rtl .ant-input-prefix {\n margin: 0 0 0 4px;\n}\n.ant-input-affix-wrapper-rtl .ant-input-suffix {\n margin: 0 4px 0 0;\n}\n.ant-input-textarea-rtl {\n direction: rtl;\n}\n.ant-input-textarea-rtl.ant-input-textarea-show-count::after {\n text-align: left;\n}\n.ant-input-affix-wrapper-rtl .ant-input-clear-icon:last-child {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-input-affix-wrapper-rtl .ant-input-clear-icon {\n right: auto;\n left: 8px;\n}\n.ant-input-search-rtl {\n direction: rtl;\n}\n.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),\n.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {\n border-right-color: #8588ed;\n border-left-color: #d9d9d9;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,\n.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {\n border-right-color: #8588ed;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {\n right: -1px;\n left: auto;\n}\n.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {\n border-radius: 5px 0 0 5px;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ant-input {\n height: 32px;\n }\n .ant-input-lg {\n height: 40px;\n }\n .ant-input-sm {\n height: 24px;\n }\n .ant-input-affix-wrapper > input.ant-input {\n height: auto;\n }\n}\n.ant-input-number {\n box-sizing: border-box;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n transition: all 0.3s;\n display: inline-block;\n width: 90px;\n margin: 0;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-input-number::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-number::placeholder {\n color: #bfbfbf;\n}\n.ant-input-number:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-number:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-input-number:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number:focus,\n.ant-input-number-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-number:focus,\n.ant-input-rtl .ant-input-number-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number-borderless,\n.ant-input-number-borderless:hover,\n.ant-input-number-borderless:focus,\n.ant-input-number-borderless-focused,\n.ant-input-number-borderless-disabled,\n.ant-input-number-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-input-number {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-input-number-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-input-number-sm {\n padding: 0px 7px;\n}\n.ant-input-number-rtl {\n direction: rtl;\n}\n.ant-input-number-handler {\n position: relative;\n display: block;\n width: 100%;\n height: 50%;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n line-height: 0;\n text-align: center;\n transition: all 0.1s linear;\n}\n.ant-input-number-handler:active {\n background: #f4f4f4;\n}\n.ant-input-number-handler:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler:hover .ant-input-number-handler-down-inner {\n color: #8588ed;\n}\n.ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-inner {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n right: 4px;\n width: 12px;\n height: 12px;\n color: rgba(0, 0, 0, 0.45);\n line-height: 12px;\n transition: all 0.1s linear;\n user-select: none;\n}\n.ant-input-number-handler-up-inner > *,\n.ant-input-number-handler-down-inner > * {\n line-height: 1;\n}\n.ant-input-number-handler-up-inner svg,\n.ant-input-number-handler-down-inner svg {\n display: inline-block;\n}\n.ant-input-number-handler-up-inner::before,\n.ant-input-number-handler-down-inner::before {\n display: none;\n}\n.ant-input-number-handler-up-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-up-inner .ant-input-number-handler-down-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-up-inner-icon,\n.ant-input-number-handler-down-inner .ant-input-number-handler-down-inner-icon {\n display: block;\n}\n.ant-input-number:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-number:hover + .ant-form-item-children-icon {\n opacity: 0;\n transition: opacity 0.24s linear 0.24s;\n}\n.ant-input-number-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-input-number-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-input-number-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-number-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-input-number-disabled .ant-input-number-input {\n cursor: not-allowed;\n}\n.ant-input-number-disabled .ant-input-number-handler-wrap {\n display: none;\n}\n.ant-input-number-readonly .ant-input-number-handler-wrap {\n display: none;\n}\n.ant-input-number-input {\n width: 100%;\n height: 30px;\n padding: 0 11px;\n text-align: left;\n background-color: transparent;\n border: 0;\n border-radius: 5px;\n outline: 0;\n transition: all 0.3s linear;\n -moz-appearance: textfield !important;\n}\n.ant-input-number-input::-moz-placeholder {\n opacity: 1;\n}\n.ant-input-number-input::placeholder {\n color: #bfbfbf;\n}\n.ant-input-number-input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-input-number-input[type='number']::-webkit-inner-spin-button,\n.ant-input-number-input[type='number']::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.ant-input-number-lg {\n padding: 0;\n font-size: 16px;\n}\n.ant-input-number-lg input {\n height: 38px;\n}\n.ant-input-number-sm {\n padding: 0;\n}\n.ant-input-number-sm input {\n height: 22px;\n padding: 0 7px;\n}\n.ant-input-number-handler-wrap {\n position: absolute;\n top: 0;\n right: 0;\n width: 22px;\n height: 100%;\n background: #fff;\n border-left: 1px solid #d9d9d9;\n border-radius: 0 5px 5px 0;\n opacity: 0;\n transition: opacity 0.24s linear 0.1s;\n}\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-up-inner,\n.ant-input-number-handler-wrap .ant-input-number-handler .ant-input-number-handler-down-inner {\n min-width: auto;\n margin-right: 0;\n font-size: 7px;\n}\n.ant-input-number-borderless .ant-input-number-handler-wrap {\n border-left-width: 0;\n}\n.ant-input-number-handler-wrap:hover .ant-input-number-handler {\n height: 40%;\n}\n.ant-input-number:hover .ant-input-number-handler-wrap {\n opacity: 1;\n}\n.ant-input-number-handler-up {\n border-top-right-radius: 5px;\n cursor: pointer;\n}\n.ant-input-number-handler-up-inner {\n top: 50%;\n margin-top: -5px;\n text-align: center;\n}\n.ant-input-number-handler-up:hover {\n height: 60% !important;\n}\n.ant-input-number-handler-down {\n top: 0;\n border-top: 1px solid #d9d9d9;\n border-bottom-right-radius: 5px;\n cursor: pointer;\n}\n.ant-input-number-handler-down-inner {\n top: 50%;\n text-align: center;\n transform: translateY(-50%);\n}\n.ant-input-number-handler-down:hover {\n height: 60% !important;\n}\n.ant-input-number-borderless .ant-input-number-handler-down {\n border-top-width: 0;\n}\n.ant-input-number-handler-up-disabled,\n.ant-input-number-handler-down-disabled {\n cursor: not-allowed;\n}\n.ant-input-number-handler-up-disabled:hover .ant-input-number-handler-up-inner,\n.ant-input-number-handler-down-disabled:hover .ant-input-number-handler-down-inner {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-input-number-borderless {\n box-shadow: none;\n}\n.ant-input-number-out-of-range input {\n color: #ff4d4f;\n}\n.ant-input-number-rtl {\n direction: rtl;\n}\n.ant-input-number-rtl .ant-input-number-handler-wrap {\n right: auto;\n left: 0;\n border-right: 1px solid #d9d9d9;\n border-left: 0;\n border-radius: 5px 0 0 5px;\n}\n.ant-input-number-rtl.ant-input-number-borderless .ant-input-number-handler-wrap {\n border-right-width: 0;\n}\n.ant-input-number-rtl .ant-input-number-input {\n direction: ltr;\n text-align: right;\n}\n.ant-layout {\n display: flex;\n flex: auto;\n flex-direction: column;\n /* fix firefox can't set height smaller than content on flex item */\n min-height: 0;\n background: #f0f2f5;\n}\n.ant-layout,\n.ant-layout * {\n box-sizing: border-box;\n}\n.ant-layout.ant-layout-has-sider {\n flex-direction: row;\n}\n.ant-layout.ant-layout-has-sider > .ant-layout,\n.ant-layout.ant-layout-has-sider > .ant-layout-content {\n width: 0;\n}\n.ant-layout-header,\n.ant-layout-footer {\n flex: 0 0 auto;\n}\n.ant-layout-header {\n height: 64px;\n padding: 0 50px;\n color: rgba(0, 0, 0, 0.85);\n line-height: 64px;\n background: #001529;\n}\n.ant-layout-footer {\n padding: 24px 50px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n background: #f0f2f5;\n}\n.ant-layout-content {\n flex: auto;\n /* fix firefox can't set height smaller than content on flex item */\n min-height: 0;\n}\n.ant-layout-sider {\n position: relative;\n /* fix firefox can't set width smaller than content on flex item */\n min-width: 0;\n background: #001529;\n transition: all 0.2s;\n}\n.ant-layout-sider-children {\n height: 100%;\n margin-top: -0.1px;\n padding-top: 0.1px;\n}\n.ant-layout-sider-has-trigger {\n padding-bottom: 48px;\n}\n.ant-layout-sider-right {\n order: 1;\n}\n.ant-layout-sider-trigger {\n position: fixed;\n bottom: 0;\n z-index: 1;\n height: 48px;\n color: #fff;\n line-height: 48px;\n text-align: center;\n background: #002140;\n cursor: pointer;\n transition: all 0.2s;\n}\n.ant-layout-sider-zero-width > * {\n overflow: hidden;\n}\n.ant-layout-sider-zero-width-trigger {\n position: absolute;\n top: 64px;\n right: -36px;\n z-index: 1;\n width: 36px;\n height: 42px;\n color: #fff;\n font-size: 18px;\n line-height: 42px;\n text-align: center;\n background: #001529;\n border-radius: 0 5px 5px 0;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-layout-sider-zero-width-trigger::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: transparent;\n transition: all 0.3s;\n content: '';\n}\n.ant-layout-sider-zero-width-trigger:hover::after {\n background: rgba(255, 255, 255, 0.1);\n}\n.ant-layout-sider-zero-width-trigger-right {\n left: -36px;\n border-radius: 5px 0 0 5px;\n}\n.ant-layout-sider-light {\n background: #fff;\n}\n.ant-layout-sider-light .ant-layout-sider-trigger {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-layout-sider-light .ant-layout-sider-zero-width-trigger {\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n}\n.ant-layout-rtl {\n direction: rtl;\n}\n.ant-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n}\n.ant-list * {\n outline: none;\n}\n.ant-list-pagination {\n margin-top: 24px;\n text-align: right;\n}\n.ant-list-pagination .ant-pagination-options {\n text-align: left;\n}\n.ant-list-more {\n margin-top: 12px;\n text-align: center;\n}\n.ant-list-more button {\n padding-right: 32px;\n padding-left: 32px;\n}\n.ant-list-spin {\n min-height: 40px;\n text-align: center;\n}\n.ant-list-empty-text {\n padding: 16px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 14px;\n text-align: center;\n}\n.ant-list-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-list-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 0;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-list-item-meta {\n display: flex;\n flex: 1;\n align-items: flex-start;\n max-width: 100%;\n}\n.ant-list-item-meta-avatar {\n margin-right: 16px;\n}\n.ant-list-item-meta-content {\n flex: 1 0;\n width: 0;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-list-item-meta-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-list-item-meta-title > a {\n color: rgba(0, 0, 0, 0.85);\n transition: all 0.3s;\n}\n.ant-list-item-meta-title > a:hover {\n color: #5b5ce1;\n}\n.ant-list-item-meta-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n}\n.ant-list-item-action {\n flex: 0 0 auto;\n margin-left: 48px;\n padding: 0;\n font-size: 0;\n list-style: none;\n}\n.ant-list-item-action > li {\n position: relative;\n display: inline-block;\n padding: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-item-action-split {\n position: absolute;\n top: 50%;\n right: 0;\n width: 1px;\n height: 14px;\n margin-top: -7px;\n background-color: #f0f0f0;\n}\n.ant-list-header {\n background: transparent;\n}\n.ant-list-footer {\n background: transparent;\n}\n.ant-list-header,\n.ant-list-footer {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.ant-list-empty {\n padding: 16px 0;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n text-align: center;\n}\n.ant-list-split .ant-list-item {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-split .ant-list-item:last-child {\n border-bottom: none;\n}\n.ant-list-split .ant-list-header {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-split.ant-list-empty .ant-list-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-list-loading .ant-list-spin-nested-loading {\n min-height: 32px;\n}\n.ant-list-split.ant-list-something-after-last-item .ant-spin-container > .ant-list-items > .ant-list-item:last-child {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-list-lg .ant-list-item {\n padding: 16px 24px;\n}\n.ant-list-sm .ant-list-item {\n padding: 8px 16px;\n}\n.ant-list-vertical .ant-list-item {\n align-items: initial;\n}\n.ant-list-vertical .ant-list-item-main {\n display: block;\n flex: 1;\n}\n.ant-list-vertical .ant-list-item-extra {\n margin-left: 40px;\n}\n.ant-list-vertical .ant-list-item-meta {\n margin-bottom: 16px;\n}\n.ant-list-vertical .ant-list-item-meta-title {\n margin-bottom: 12px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 24px;\n}\n.ant-list-vertical .ant-list-item-action {\n margin-top: 16px;\n margin-left: auto;\n}\n.ant-list-vertical .ant-list-item-action > li {\n padding: 0 16px;\n}\n.ant-list-vertical .ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-grid .ant-col > .ant-list-item {\n display: block;\n max-width: 100%;\n margin-bottom: 16px;\n padding-top: 0;\n padding-bottom: 0;\n border-bottom: none;\n}\n.ant-list-item-no-flex {\n display: block;\n}\n.ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action {\n float: right;\n}\n.ant-list-bordered {\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-list-bordered .ant-list-header {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-footer {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-item {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-pagination {\n margin: 16px 24px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-item {\n padding: 8px 16px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-header,\n.ant-list-bordered.ant-list-sm .ant-list-footer {\n padding: 8px 16px;\n}\n.ant-list-bordered.ant-list-lg .ant-list-item {\n padding: 16px 24px;\n}\n.ant-list-bordered.ant-list-lg .ant-list-header,\n.ant-list-bordered.ant-list-lg .ant-list-footer {\n padding: 16px 24px;\n}\n@media screen and (max-width: 768px) {\n .ant-list-item-action {\n margin-left: 24px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin-left: 24px;\n }\n}\n@media screen and (max-width: 576px) {\n .ant-list-item {\n flex-wrap: wrap;\n }\n .ant-list-item-action {\n margin-left: 12px;\n }\n .ant-list-vertical .ant-list-item {\n flex-wrap: wrap-reverse;\n }\n .ant-list-vertical .ant-list-item-main {\n min-width: 220px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin: auto auto 16px;\n }\n}\n.ant-list-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-list-rtl .ReactVirtualized__List .ant-list-item {\n direction: rtl;\n}\n.ant-list-rtl .ant-list-pagination {\n text-align: left;\n}\n.ant-list-rtl .ant-list-item-meta-avatar {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-list-rtl .ant-list-item-action {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-list.ant-list-rtl .ant-list-item-action > li:first-child {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-list-rtl .ant-list-item-action-split {\n right: auto;\n left: 0;\n}\n.ant-list-rtl.ant-list-vertical .ant-list-item-extra {\n margin-right: 40px;\n margin-left: 0;\n}\n.ant-list-rtl.ant-list-vertical .ant-list-item-action {\n margin-right: auto;\n}\n.ant-list-rtl .ant-list-vertical .ant-list-item-action > li:first-child {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-list-rtl .ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action {\n float: left;\n}\n@media screen and (max-width: 768px) {\n .ant-list-rtl .ant-list-item-action {\n margin-right: 24px;\n margin-left: 0;\n }\n .ant-list-rtl .ant-list-vertical .ant-list-item-extra {\n margin-right: 24px;\n margin-left: 0;\n }\n}\n@media screen and (max-width: 576px) {\n .ant-list-rtl .ant-list-item-action {\n margin-right: 22px;\n margin-left: 0;\n }\n .ant-list-rtl.ant-list-vertical .ant-list-item-extra {\n margin: auto auto 16px;\n }\n}\n.ant-mentions {\n box-sizing: border-box;\n margin: 0;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n position: relative;\n display: inline-block;\n height: auto;\n padding: 0;\n overflow: hidden;\n line-height: 1.5715;\n white-space: pre-wrap;\n vertical-align: bottom;\n}\n.ant-mentions::-moz-placeholder {\n opacity: 1;\n}\n.ant-mentions::placeholder {\n color: #bfbfbf;\n}\n.ant-mentions:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-mentions:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-mentions:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions:focus,\n.ant-mentions-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-mentions:focus,\n.ant-input-rtl .ant-mentions-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions-borderless,\n.ant-mentions-borderless:hover,\n.ant-mentions-borderless:focus,\n.ant-mentions-borderless-focused,\n.ant-mentions-borderless-disabled,\n.ant-mentions-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-mentions {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-mentions-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-mentions-sm {\n padding: 0px 7px;\n}\n.ant-mentions-rtl {\n direction: rtl;\n}\n.ant-mentions-disabled > textarea {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-mentions-disabled > textarea:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-mentions-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-mentions-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-mentions > textarea,\n.ant-mentions-measure {\n min-height: 30px;\n margin: 0;\n padding: 4px 11px;\n overflow: inherit;\n overflow-x: hidden;\n overflow-y: auto;\n font-weight: inherit;\n font-size: inherit;\n font-family: inherit;\n font-style: inherit;\n font-variant: inherit;\n font-size-adjust: inherit;\n font-stretch: inherit;\n line-height: inherit;\n direction: inherit;\n letter-spacing: inherit;\n white-space: inherit;\n text-align: inherit;\n vertical-align: top;\n word-wrap: break-word;\n word-break: inherit;\n tab-size: inherit;\n}\n.ant-mentions > textarea {\n width: 100%;\n border: none;\n outline: none;\n resize: none;\n}\n.ant-mentions > textarea::-moz-placeholder {\n opacity: 1;\n}\n.ant-mentions > textarea::placeholder {\n color: #bfbfbf;\n}\n.ant-mentions > textarea:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-mentions-measure {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n color: transparent;\n pointer-events: none;\n}\n.ant-mentions-measure > span {\n display: inline-block;\n min-height: 1em;\n}\n.ant-mentions-dropdown {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n box-sizing: border-box;\n font-size: 14px;\n font-variant: initial;\n background-color: #fff;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-mentions-dropdown-hidden {\n display: none;\n}\n.ant-mentions-dropdown-menu {\n max-height: 250px;\n margin-bottom: 0;\n padding-left: 0;\n overflow: auto;\n list-style: none;\n outline: none;\n}\n.ant-mentions-dropdown-menu-item {\n position: relative;\n display: block;\n min-width: 100px;\n padding: 5px 12px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-mentions-dropdown-menu-item:hover {\n background-color: #f5f5f5;\n}\n.ant-mentions-dropdown-menu-item:first-child {\n border-radius: 5px 5px 0 0;\n}\n.ant-mentions-dropdown-menu-item:last-child {\n border-radius: 0 0 5px 5px;\n}\n.ant-mentions-dropdown-menu-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-mentions-dropdown-menu-item-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #fff;\n cursor: not-allowed;\n}\n.ant-mentions-dropdown-menu-item-selected {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n background-color: #fafafa;\n}\n.ant-mentions-dropdown-menu-item-active {\n background-color: #f5f5f5;\n}\n.ant-mentions-rtl {\n direction: rtl;\n}\n.ant-menu-item-danger.ant-menu-item {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item:hover,\n.ant-menu-item-danger.ant-menu-item-active {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item:active {\n background: #fff1f0;\n}\n.ant-menu-item-danger.ant-menu-item-selected {\n color: #ff4d4f;\n}\n.ant-menu-item-danger.ant-menu-item-selected > a,\n.ant-menu-item-danger.ant-menu-item-selected > a:hover {\n color: #ff4d4f;\n}\n.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {\n background-color: #fff1f0;\n}\n.ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {\n border-right-color: #ff4d4f;\n}\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item,\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover,\n.ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {\n color: #ff4d4f;\n}\n.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {\n color: #fff;\n background-color: #ff4d4f;\n}\n.ant-menu {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n margin-bottom: 0;\n padding-left: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 0;\n text-align: left;\n list-style: none;\n background: #fff;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;\n}\n.ant-menu::before {\n display: table;\n content: '';\n}\n.ant-menu::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-menu::before {\n display: table;\n content: '';\n}\n.ant-menu::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-menu ul,\n.ant-menu ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-menu-hidden {\n display: none;\n}\n.ant-menu-item-group-title {\n height: 1.5715;\n padding: 8px 16px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n transition: all 0.3s;\n}\n.ant-menu-horizontal .ant-menu-submenu {\n transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu,\n.ant-menu-submenu-inline {\n transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-selected {\n color: #5b5ce1;\n}\n.ant-menu-item:active,\n.ant-menu-submenu-title:active {\n background: #f0f2ff;\n}\n.ant-menu-submenu .ant-menu-sub {\n cursor: initial;\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-item a:hover {\n color: #5b5ce1;\n}\n.ant-menu-item a::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: transparent;\n content: '';\n}\n.ant-menu-item > .ant-badge a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-item > .ant-badge a:hover {\n color: #5b5ce1;\n}\n.ant-menu-item-divider {\n height: 1px;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-menu-item:hover,\n.ant-menu-item-active,\n.ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,\n.ant-menu-submenu-active,\n.ant-menu-submenu-title:hover {\n color: #5b5ce1;\n}\n.ant-menu-horizontal .ant-menu-item,\n.ant-menu-horizontal .ant-menu-submenu {\n margin-top: -1px;\n}\n.ant-menu-horizontal > .ant-menu-item:hover,\n.ant-menu-horizontal > .ant-menu-item-active,\n.ant-menu-horizontal > .ant-menu-submenu .ant-menu-submenu-title:hover {\n background-color: transparent;\n}\n.ant-menu-item-selected {\n color: #5b5ce1;\n}\n.ant-menu-item-selected a,\n.ant-menu-item-selected a:hover {\n color: #5b5ce1;\n}\n.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #f0f2ff;\n}\n.ant-menu-inline,\n.ant-menu-vertical,\n.ant-menu-vertical-left {\n border-right: 1px solid #f0f0f0;\n}\n.ant-menu-vertical-right {\n border-left: 1px solid #f0f0f0;\n}\n.ant-menu-vertical.ant-menu-sub,\n.ant-menu-vertical-left.ant-menu-sub,\n.ant-menu-vertical-right.ant-menu-sub {\n min-width: 160px;\n max-height: calc(100vh - 100px);\n padding: 0;\n overflow: hidden;\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub:not([class*='-active']),\n.ant-menu-vertical-left.ant-menu-sub:not([class*='-active']),\n.ant-menu-vertical-right.ant-menu-sub:not([class*='-active']) {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-left.ant-menu-sub .ant-menu-item::after,\n.ant-menu-vertical-right.ant-menu-sub .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-vertical.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,\n.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {\n transform-origin: 0 0;\n}\n.ant-menu-horizontal.ant-menu-sub {\n min-width: 114px;\n}\n.ant-menu-horizontal .ant-menu-item,\n.ant-menu-horizontal .ant-menu-submenu-title {\n transition: border-color 0.3s, background 0.3s;\n}\n.ant-menu-item,\n.ant-menu-submenu-title {\n position: relative;\n display: block;\n margin: 0;\n padding: 0 20px;\n white-space: nowrap;\n cursor: pointer;\n transition: border-color 0.3s, background 0.3s, padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-item .ant-menu-item-icon,\n.ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-item .anticon,\n.ant-menu-submenu-title .anticon {\n min-width: 14px;\n margin-right: 10px;\n font-size: 14px;\n transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;\n}\n.ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-item .anticon + span,\n.ant-menu-submenu-title .anticon + span {\n opacity: 1;\n transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;\n}\n.ant-menu-item.ant-menu-item-only-child > .anticon,\n.ant-menu-submenu-title.ant-menu-item-only-child > .anticon,\n.ant-menu-item.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-submenu-title.ant-menu-item-only-child > .ant-menu-item-icon {\n margin-right: 0;\n}\n.ant-menu > .ant-menu-item-divider {\n height: 1px;\n margin: 1px 0;\n padding: 0;\n overflow: hidden;\n line-height: 0;\n background-color: #f0f0f0;\n}\n.ant-menu-submenu-popup {\n position: absolute;\n z-index: 1050;\n background: transparent;\n border-radius: 5px;\n box-shadow: none;\n transform-origin: 0 0;\n}\n.ant-menu-submenu-popup::before {\n position: absolute;\n top: -7px;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n opacity: 0.0001;\n content: ' ';\n}\n.ant-menu-submenu-placement-rightTop::before {\n top: 0;\n left: -7px;\n}\n.ant-menu-submenu > .ant-menu {\n background-color: #fff;\n border-radius: 5px;\n}\n.ant-menu-submenu > .ant-menu-submenu-title::after {\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-popup > .ant-menu {\n background-color: #fff;\n}\n.ant-menu-submenu-expand-icon,\n.ant-menu-submenu-arrow {\n position: absolute;\n top: 50%;\n right: 16px;\n width: 10px;\n color: rgba(0, 0, 0, 0.85);\n transform: translateY(-50%);\n transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-submenu-arrow::before,\n.ant-menu-submenu-arrow::after {\n position: absolute;\n width: 6px;\n height: 1.5px;\n background-color: currentColor;\n border-radius: 2px;\n transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), top 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n content: '';\n}\n.ant-menu-submenu-arrow::before {\n transform: rotate(45deg) translateY(-2.5px);\n}\n.ant-menu-submenu-arrow::after {\n transform: rotate(-45deg) translateY(2.5px);\n}\n.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-expand-icon,\n.ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow {\n color: #5b5ce1;\n}\n.ant-menu-submenu-inline .ant-menu-submenu-arrow::before {\n transform: rotate(-45deg) translateX(2.5px);\n}\n.ant-menu-submenu-inline .ant-menu-submenu-arrow::after {\n transform: rotate(45deg) translateX(-2.5px);\n}\n.ant-menu-submenu-horizontal .ant-menu-submenu-arrow {\n display: none;\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow {\n transform: translateY(-2px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n transform: rotate(-45deg) translateX(-2.5px);\n}\n.ant-menu-submenu-open.ant-menu-submenu-inline > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before {\n transform: rotate(45deg) translateX(2.5px);\n}\n.ant-menu-vertical .ant-menu-submenu-selected,\n.ant-menu-vertical-left .ant-menu-submenu-selected,\n.ant-menu-vertical-right .ant-menu-submenu-selected {\n color: #5b5ce1;\n}\n.ant-menu-horizontal {\n line-height: 46px;\n border: 0;\n border-bottom: 1px solid #f0f0f0;\n box-shadow: none;\n}\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu {\n margin: 0 20px;\n margin-top: -1px;\n margin-bottom: 0;\n padding: 0 20px;\n padding-right: 0;\n padding-left: 0;\n}\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected,\n.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected {\n color: #5b5ce1;\n border-bottom: 2px solid #5b5ce1;\n}\n.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-horizontal > .ant-menu-submenu {\n position: relative;\n top: 1px;\n display: inline-block;\n vertical-align: bottom;\n border-bottom: 2px solid transparent;\n}\n.ant-menu-horizontal > .ant-menu-submenu > .ant-menu-submenu-title {\n padding: 0;\n}\n.ant-menu-horizontal > .ant-menu-item a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-menu-horizontal > .ant-menu-item a:hover {\n color: #5b5ce1;\n}\n.ant-menu-horizontal > .ant-menu-item a::before {\n bottom: -2px;\n}\n.ant-menu-horizontal > .ant-menu-item-selected a {\n color: #5b5ce1;\n}\n.ant-menu-horizontal::after {\n display: block;\n clear: both;\n height: 0;\n content: '\\20';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item {\n position: relative;\n}\n.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-vertical-right .ant-menu-item::after,\n.ant-menu-inline .ant-menu-item::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-right: 3px solid #5b5ce1;\n transform: scaleY(0.0001);\n opacity: 0;\n transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);\n content: '';\n}\n.ant-menu-vertical .ant-menu-item,\n.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-inline .ant-menu-item,\n.ant-menu-vertical .ant-menu-submenu-title,\n.ant-menu-vertical-left .ant-menu-submenu-title,\n.ant-menu-vertical-right .ant-menu-submenu-title,\n.ant-menu-inline .ant-menu-submenu-title {\n height: 40px;\n margin-top: 4px;\n margin-bottom: 4px;\n padding: 0 16px;\n overflow: hidden;\n line-height: 40px;\n text-overflow: ellipsis;\n}\n.ant-menu-vertical .ant-menu-submenu,\n.ant-menu-vertical-left .ant-menu-submenu,\n.ant-menu-vertical-right .ant-menu-submenu,\n.ant-menu-inline .ant-menu-submenu {\n padding-bottom: 0.02px;\n}\n.ant-menu-vertical .ant-menu-item:not(:last-child),\n.ant-menu-vertical-left .ant-menu-item:not(:last-child),\n.ant-menu-vertical-right .ant-menu-item:not(:last-child),\n.ant-menu-inline .ant-menu-item:not(:last-child) {\n margin-bottom: 8px;\n}\n.ant-menu-vertical > .ant-menu-item,\n.ant-menu-vertical-left > .ant-menu-item,\n.ant-menu-vertical-right > .ant-menu-item,\n.ant-menu-inline > .ant-menu-item,\n.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-left > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-vertical-right > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n}\n.ant-menu-vertical .ant-menu-item-group-list .ant-menu-submenu-title,\n.ant-menu-vertical .ant-menu-submenu-title {\n padding-right: 34px;\n}\n.ant-menu-inline {\n width: 100%;\n}\n.ant-menu-inline .ant-menu-selected::after,\n.ant-menu-inline .ant-menu-item-selected::after {\n transform: scaleY(1);\n opacity: 1;\n transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-menu-inline .ant-menu-item,\n.ant-menu-inline .ant-menu-submenu-title {\n width: calc(100% + 1px);\n}\n.ant-menu-inline .ant-menu-item-group-list .ant-menu-submenu-title,\n.ant-menu-inline .ant-menu-submenu-title {\n padding-right: 34px;\n}\n.ant-menu-inline-collapsed {\n width: 80px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {\n left: 0;\n padding: 0 calc(50% - 16px / 2);\n text-overflow: clip;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n display: none;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-inline-collapsed > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon {\n margin: 0;\n font-size: 16px;\n line-height: 40px;\n}\n.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon + span,\n.ant-menu-inline-collapsed > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-item .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-item-group > .ant-menu-item-group-list > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span,\n.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .anticon + span {\n display: inline-block;\n max-width: 0;\n opacity: 0;\n}\n.ant-menu-inline-collapsed .ant-menu-item-icon,\n.ant-menu-inline-collapsed .anticon {\n display: inline-block;\n}\n.ant-menu-inline-collapsed-tooltip {\n pointer-events: none;\n}\n.ant-menu-inline-collapsed-tooltip .ant-menu-item-icon,\n.ant-menu-inline-collapsed-tooltip .anticon {\n display: none;\n}\n.ant-menu-inline-collapsed-tooltip a {\n color: rgba(255, 255, 255, 0.85);\n}\n.ant-menu-inline-collapsed .ant-menu-item-group-title {\n padding-right: 4px;\n padding-left: 4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-menu-item-group-list {\n margin: 0;\n padding: 0;\n}\n.ant-menu-item-group-list .ant-menu-item,\n.ant-menu-item-group-list .ant-menu-submenu-title {\n padding: 0 16px 0 28px;\n}\n.ant-menu-root.ant-menu-vertical,\n.ant-menu-root.ant-menu-vertical-left,\n.ant-menu-root.ant-menu-vertical-right,\n.ant-menu-root.ant-menu-inline {\n box-shadow: none;\n}\n.ant-menu-root.ant-menu-inline-collapsed .ant-menu-item > .ant-menu-inline-collapsed-noicon,\n.ant-menu-root.ant-menu-inline-collapsed .ant-menu-submenu .ant-menu-submenu-title > .ant-menu-inline-collapsed-noicon {\n font-size: 16px;\n text-align: center;\n}\n.ant-menu-sub.ant-menu-inline {\n padding: 0;\n background: #fafafa;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n}\n.ant-menu-sub.ant-menu-inline > .ant-menu-item,\n.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {\n height: 40px;\n line-height: 40px;\n list-style-position: inside;\n list-style-type: disc;\n}\n.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {\n padding-left: 32px;\n}\n.ant-menu-item-disabled,\n.ant-menu-submenu-disabled {\n color: rgba(0, 0, 0, 0.25) !important;\n background: none;\n border-color: transparent !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled a,\n.ant-menu-submenu-disabled a {\n color: rgba(0, 0, 0, 0.25) !important;\n pointer-events: none;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(0, 0, 0, 0.25) !important;\n cursor: not-allowed;\n}\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-layout-header .ant-menu {\n line-height: inherit;\n}\n.ant-menu.ant-menu-dark,\n.ant-menu-dark .ant-menu-sub,\n.ant-menu.ant-menu-dark .ant-menu-sub {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n}\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow {\n opacity: 0.45;\n transition: all 0.3s;\n}\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu.ant-menu-dark .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu.ant-menu-dark .ant-menu-sub .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark.ant-menu-submenu-popup {\n background: transparent;\n}\n.ant-menu-dark .ant-menu-inline.ant-menu-sub {\n background: #000c17;\n}\n.ant-menu-dark.ant-menu-horizontal {\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu {\n top: 0;\n margin-top: 0;\n padding: 0 20px;\n border-color: #001529;\n border-bottom: 0;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item:hover {\n background-color: #5b5ce1;\n}\n.ant-menu-dark.ant-menu-horizontal > .ant-menu-item > a::before {\n bottom: 0;\n}\n.ant-menu-dark .ant-menu-item,\n.ant-menu-dark .ant-menu-item-group-title,\n.ant-menu-dark .ant-menu-item > a,\n.ant-menu-dark .ant-menu-item > span > a {\n color: rgba(255, 255, 255, 0.65);\n}\n.ant-menu-dark.ant-menu-inline,\n.ant-menu-dark.ant-menu-vertical,\n.ant-menu-dark.ant-menu-vertical-left,\n.ant-menu-dark.ant-menu-vertical-right {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item {\n left: 0;\n margin-left: 0;\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-dark.ant-menu-vertical-right .ant-menu-item::after {\n border-right: 0;\n}\n.ant-menu-dark.ant-menu-inline .ant-menu-item,\n.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title {\n width: 100%;\n}\n.ant-menu-dark .ant-menu-item:hover,\n.ant-menu-dark .ant-menu-item-active,\n.ant-menu-dark .ant-menu-submenu-active,\n.ant-menu-dark .ant-menu-submenu-open,\n.ant-menu-dark .ant-menu-submenu-selected,\n.ant-menu-dark .ant-menu-submenu-title:hover {\n color: #fff;\n background-color: transparent;\n}\n.ant-menu-dark .ant-menu-item:hover > a,\n.ant-menu-dark .ant-menu-item-active > a,\n.ant-menu-dark .ant-menu-submenu-active > a,\n.ant-menu-dark .ant-menu-submenu-open > a,\n.ant-menu-dark .ant-menu-submenu-selected > a,\n.ant-menu-dark .ant-menu-submenu-title:hover > a,\n.ant-menu-dark .ant-menu-item:hover > span > a,\n.ant-menu-dark .ant-menu-item-active > span > a,\n.ant-menu-dark .ant-menu-submenu-active > span > a,\n.ant-menu-dark .ant-menu-submenu-open > span > a,\n.ant-menu-dark .ant-menu-submenu-selected > span > a,\n.ant-menu-dark .ant-menu-submenu-title:hover > span > a {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow {\n opacity: 1;\n}\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-active > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-open > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-title:hover > .ant-menu-submenu-title:hover > .ant-menu-submenu-arrow::before {\n background: #fff;\n}\n.ant-menu-dark .ant-menu-item:hover {\n background-color: transparent;\n}\n.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #5b5ce1;\n}\n.ant-menu-dark .ant-menu-item-selected {\n color: #fff;\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected::after {\n border-right: 0;\n}\n.ant-menu-dark .ant-menu-item-selected > a,\n.ant-menu-dark .ant-menu-item-selected > span > a,\n.ant-menu-dark .ant-menu-item-selected > a:hover,\n.ant-menu-dark .ant-menu-item-selected > span > a:hover {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,\n.ant-menu-dark .ant-menu-item-selected .anticon {\n color: #fff;\n}\n.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon + span,\n.ant-menu-dark .ant-menu-item-selected .anticon + span {\n color: #fff;\n}\n.ant-menu.ant-menu-dark .ant-menu-item-selected,\n.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {\n background-color: #5b5ce1;\n}\n.ant-menu-dark .ant-menu-item-disabled,\n.ant-menu-dark .ant-menu-submenu-disabled,\n.ant-menu-dark .ant-menu-item-disabled > a,\n.ant-menu-dark .ant-menu-submenu-disabled > a,\n.ant-menu-dark .ant-menu-item-disabled > span > a,\n.ant-menu-dark .ant-menu-submenu-disabled > span > a {\n color: rgba(255, 255, 255, 0.35) !important;\n opacity: 0.8;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title {\n color: rgba(255, 255, 255, 0.35) !important;\n}\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::before,\n.ant-menu-dark .ant-menu-item-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after,\n.ant-menu-dark .ant-menu-submenu-disabled > .ant-menu-submenu-title > .ant-menu-submenu-arrow::after {\n background: rgba(255, 255, 255, 0.35) !important;\n}\n.ant-menu.ant-menu-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-menu-rtl .ant-menu-item-group-title {\n text-align: right;\n}\n.ant-menu-rtl.ant-menu-inline,\n.ant-menu-rtl.ant-menu-vertical {\n border-right: none;\n border-left: 1px solid #f0f0f0;\n}\n.ant-menu-rtl.ant-menu-dark.ant-menu-inline,\n.ant-menu-rtl.ant-menu-dark.ant-menu-vertical {\n border-left: none;\n}\n.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-rtl.ant-menu-vertical-left.ant-menu-sub > .ant-menu-submenu,\n.ant-menu-rtl.ant-menu-vertical-right.ant-menu-sub > .ant-menu-submenu {\n transform-origin: top right;\n}\n.ant-menu-rtl .ant-menu-item .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-submenu-title .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-item .anticon,\n.ant-menu-rtl .ant-menu-submenu-title .anticon {\n margin-right: auto;\n margin-left: 10px;\n}\n.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child > .ant-menu-item-icon,\n.ant-menu-rtl .ant-menu-item.ant-menu-item-only-child > .anticon,\n.ant-menu-rtl .ant-menu-submenu-title.ant-menu-item-only-child > .anticon {\n margin-left: 0;\n}\n.ant-menu-submenu-rtl.ant-menu-submenu-popup {\n transform-origin: 100% 0;\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow,\n.ant-menu-rtl .ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow {\n right: auto;\n left: 16px;\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::before,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {\n transform: rotate(-45deg) translateY(-2px);\n}\n.ant-menu-rtl .ant-menu-submenu-vertical > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-rtl .ant-menu-submenu-vertical-left > .ant-menu-submenu-title .ant-menu-submenu-arrow::after,\n.ant-menu-rtl .ant-menu-submenu-vertical-right > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {\n transform: rotate(45deg) translateY(2px);\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item::after,\n.ant-menu-rtl.ant-menu-inline .ant-menu-item::after {\n right: auto;\n left: 0;\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-item,\n.ant-menu-rtl.ant-menu-inline .ant-menu-item,\n.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-vertical-left .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-vertical-right .ant-menu-submenu-title,\n.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {\n text-align: right;\n}\n.ant-menu-rtl.ant-menu-inline .ant-menu-submenu-title {\n padding-right: 0;\n padding-left: 34px;\n}\n.ant-menu-rtl.ant-menu-vertical .ant-menu-submenu-title {\n padding-right: 16px;\n padding-left: 34px;\n}\n.ant-menu-rtl.ant-menu-inline-collapsed.ant-menu-vertical .ant-menu-submenu-title {\n padding: 0 calc(50% - 16px / 2);\n}\n.ant-menu-rtl .ant-menu-item-group-list .ant-menu-item,\n.ant-menu-rtl .ant-menu-item-group-list .ant-menu-submenu-title {\n padding: 0 28px 0 16px;\n}\n.ant-menu-sub.ant-menu-inline {\n border: 0;\n}\n.ant-menu-rtl.ant-menu-sub.ant-menu-inline .ant-menu-item-group-title {\n padding-right: 32px;\n padding-left: 0;\n}\n.ant-message {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n top: 8px;\n left: 0;\n z-index: 1010;\n width: 100%;\n pointer-events: none;\n}\n.ant-message-notice {\n padding: 8px;\n text-align: center;\n}\n.ant-message-notice-content {\n display: inline-block;\n padding: 10px 16px;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n pointer-events: all;\n}\n.ant-message-success .anticon {\n color: #52c41a;\n}\n.ant-message-error .anticon {\n color: #ff4d4f;\n}\n.ant-message-warning .anticon {\n color: #faad14;\n}\n.ant-message-info .anticon,\n.ant-message-loading .anticon {\n color: #5b5ce1;\n}\n.ant-message .anticon {\n position: relative;\n top: 1px;\n margin-right: 8px;\n font-size: 16px;\n}\n.ant-message-notice.move-up-leave.move-up-leave-active {\n animation-name: MessageMoveOut;\n animation-duration: 0.3s;\n}\n@keyframes MessageMoveOut {\n 0% {\n max-height: 150px;\n padding: 8px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n padding: 0;\n opacity: 0;\n }\n}\n.ant-message-rtl {\n direction: rtl;\n}\n.ant-message-rtl span {\n direction: rtl;\n}\n.ant-message-rtl .anticon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-modal {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n pointer-events: none;\n position: relative;\n top: 100px;\n width: auto;\n max-width: calc(100vw - 32px);\n margin: 0 auto;\n padding-bottom: 24px;\n}\n.ant-modal.zoom-enter,\n.ant-modal.zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.ant-modal-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1000;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.ant-modal-mask-hidden {\n display: none;\n}\n.ant-modal-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n -webkit-overflow-scrolling: touch;\n}\n.ant-modal-wrap {\n z-index: 1000;\n}\n.ant-modal-title {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n word-wrap: break-word;\n}\n.ant-modal-content {\n position: relative;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n pointer-events: auto;\n}\n.ant-modal-close {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n font-weight: 700;\n line-height: 1;\n text-decoration: none;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n transition: color 0.3s;\n}\n.ant-modal-close-x {\n display: block;\n width: 56px;\n height: 56px;\n font-size: 16px;\n font-style: normal;\n line-height: 56px;\n text-align: center;\n text-transform: none;\n text-rendering: auto;\n}\n.ant-modal-close:focus,\n.ant-modal-close:hover {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}\n.ant-modal-header {\n padding: 16px 24px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-modal-body {\n padding: 24px;\n font-size: 14px;\n line-height: 1.5715;\n word-wrap: break-word;\n}\n.ant-modal-footer {\n padding: 10px 16px;\n text-align: right;\n background: transparent;\n border-top: 1px solid #f0f0f0;\n border-radius: 0 0 5px 5px;\n}\n.ant-modal-footer .ant-btn + .ant-btn {\n margin-bottom: 0;\n margin-left: 8px;\n}\n.ant-modal-open {\n overflow: hidden;\n}\n.ant-modal-centered {\n text-align: center;\n}\n.ant-modal-centered::before {\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n content: '';\n}\n.ant-modal-centered .ant-modal {\n top: 0;\n display: inline-block;\n text-align: left;\n vertical-align: middle;\n}\n@media (max-width: 767px) {\n .ant-modal {\n max-width: calc(100vw - 16px);\n margin: 8px auto;\n }\n .ant-modal-centered .ant-modal {\n flex: 1;\n }\n}\n.ant-modal-confirm .ant-modal-header {\n display: none;\n}\n.ant-modal-confirm .ant-modal-body {\n padding: 32px 32px 24px;\n}\n.ant-modal-confirm-body-wrapper::before {\n display: table;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::before {\n display: table;\n content: '';\n}\n.ant-modal-confirm-body-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-modal-confirm-body .ant-modal-confirm-title {\n display: block;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 1.4;\n}\n.ant-modal-confirm-body .ant-modal-confirm-content {\n margin-top: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-modal-confirm-body > .anticon {\n float: left;\n margin-right: 16px;\n font-size: 22px;\n}\n.ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {\n margin-left: 38px;\n}\n.ant-modal-confirm .ant-modal-confirm-btns {\n float: right;\n margin-top: 24px;\n}\n.ant-modal-confirm .ant-modal-confirm-btns .ant-btn + .ant-btn {\n margin-bottom: 0;\n margin-left: 8px;\n}\n.ant-modal-confirm-error .ant-modal-confirm-body > .anticon {\n color: #ff4d4f;\n}\n.ant-modal-confirm-warning .ant-modal-confirm-body > .anticon,\n.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {\n color: #faad14;\n}\n.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {\n color: #5b5ce1;\n}\n.ant-modal-confirm-success .ant-modal-confirm-body > .anticon {\n color: #52c41a;\n}\n.ant-modal-wrap-rtl {\n direction: rtl;\n}\n.ant-modal-wrap-rtl .ant-modal-close {\n right: initial;\n left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-footer {\n text-align: left;\n}\n.ant-modal-wrap-rtl .ant-modal-footer .ant-btn + .ant-btn {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body {\n direction: rtl;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body > .anticon {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {\n margin-right: 38px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-btns {\n float: left;\n}\n.ant-modal-wrap-rtl .ant-modal-confirm-btns .ant-btn + .ant-btn {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-modal-wrap-rtl.ant-modal-centered .ant-modal {\n text-align: right;\n}\n.ant-notification {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: fixed;\n z-index: 1010;\n margin-right: 24px;\n}\n.ant-notification-topLeft,\n.ant-notification-bottomLeft {\n margin-right: 0;\n margin-left: 24px;\n}\n.ant-notification-topLeft .ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-bottomLeft .ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-topLeft .ant-notification-fade-appear.ant-notification-fade-appear-active,\n.ant-notification-bottomLeft .ant-notification-fade-appear.ant-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.ant-notification-close-icon {\n font-size: 14px;\n cursor: pointer;\n}\n.ant-notification-hook-holder,\n.ant-notification-notice {\n position: relative;\n width: 384px;\n max-width: calc(100vw - 24px * 2);\n margin-bottom: 16px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-notification-topLeft .ant-notification-hook-holder,\n.ant-notification-topLeft .ant-notification-notice,\n.ant-notification-bottomLeft .ant-notification-hook-holder,\n.ant-notification-bottomLeft .ant-notification-notice {\n margin-right: auto;\n margin-left: 0;\n}\n.ant-notification-hook-holder > .ant-notification-notice {\n margin-bottom: 0;\n box-shadow: none;\n}\n.ant-notification-notice {\n padding: 16px 24px;\n line-height: 1.5715;\n}\n.ant-notification-notice-message {\n margin-bottom: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 24px;\n}\n.ant-notification-notice-message-single-line-auto-margin {\n display: block;\n width: calc(384px - 24px * 2 - 24px - 48px - 100%);\n max-width: 4px;\n background-color: transparent;\n pointer-events: none;\n}\n.ant-notification-notice-message-single-line-auto-margin::before {\n display: block;\n content: '';\n}\n.ant-notification-notice-description {\n font-size: 14px;\n}\n.ant-notification-notice-closable .ant-notification-notice-message {\n padding-right: 24px;\n}\n.ant-notification-notice-with-icon .ant-notification-notice-message {\n margin-bottom: 4px;\n margin-left: 48px;\n font-size: 16px;\n}\n.ant-notification-notice-with-icon .ant-notification-notice-description {\n margin-left: 48px;\n font-size: 14px;\n}\n.ant-notification-notice-icon {\n position: absolute;\n margin-left: 4px;\n font-size: 24px;\n line-height: 24px;\n}\n.anticon.ant-notification-notice-icon-success {\n color: #52c41a;\n}\n.anticon.ant-notification-notice-icon-info {\n color: #5b5ce1;\n}\n.anticon.ant-notification-notice-icon-warning {\n color: #faad14;\n}\n.anticon.ant-notification-notice-icon-error {\n color: #ff4d4f;\n}\n.ant-notification-notice-close {\n position: absolute;\n top: 16px;\n right: 22px;\n color: rgba(0, 0, 0, 0.45);\n outline: none;\n}\n.ant-notification-notice-close:hover {\n color: rgba(0, 0, 0, 0.67);\n}\n.ant-notification-notice-btn {\n float: right;\n margin-top: 16px;\n}\n.ant-notification .notification-fade-effect {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n}\n.ant-notification-fade-enter,\n.ant-notification-fade-appear {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n opacity: 0;\n animation-play-state: paused;\n}\n.ant-notification-fade-leave {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n animation-duration: 0.2s;\n animation-play-state: paused;\n}\n.ant-notification-fade-enter.ant-notification-fade-enter-active,\n.ant-notification-fade-appear.ant-notification-fade-appear-active {\n animation-name: NotificationFadeIn;\n animation-play-state: running;\n}\n.ant-notification-fade-leave.ant-notification-fade-leave-active {\n animation-name: NotificationFadeOut;\n animation-play-state: running;\n}\n@keyframes NotificationFadeIn {\n 0% {\n left: 384px;\n opacity: 0;\n }\n 100% {\n left: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationLeftFadeIn {\n 0% {\n right: 384px;\n opacity: 0;\n }\n 100% {\n right: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationFadeOut {\n 0% {\n max-height: 150px;\n margin-bottom: 16px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n margin-bottom: 0;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n }\n}\n.ant-notification-rtl {\n direction: rtl;\n}\n.ant-notification-rtl .ant-notification-notice-closable .ant-notification-notice-message {\n padding-right: 0;\n padding-left: 24px;\n}\n.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-message {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-with-icon .ant-notification-notice-description {\n margin-right: 48px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-icon {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-notification-rtl .ant-notification-notice-close {\n right: auto;\n left: 22px;\n}\n.ant-notification-rtl .ant-notification-notice-btn {\n float: left;\n}\n.ant-page-header {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding: 16px 24px;\n background-color: #fff;\n}\n.ant-page-header-ghost {\n background-color: inherit;\n}\n.ant-page-header.has-breadcrumb {\n padding-top: 12px;\n}\n.ant-page-header.has-footer {\n padding-bottom: 0;\n}\n.ant-page-header-back {\n margin-right: 16px;\n font-size: 16px;\n line-height: 1;\n}\n.ant-page-header-back-button {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n transition: color 0.3s;\n color: #000;\n cursor: pointer;\n}\n.ant-page-header-back-button:focus,\n.ant-page-header-back-button:hover {\n color: #8588ed;\n}\n.ant-page-header-back-button:active {\n color: #4541ba;\n}\n.ant-page-header .ant-divider-vertical {\n height: 14px;\n margin: 0 12px;\n vertical-align: middle;\n}\n.ant-breadcrumb + .ant-page-header-heading {\n margin-top: 8px;\n}\n.ant-page-header-heading {\n display: flex;\n justify-content: space-between;\n}\n.ant-page-header-heading-left {\n display: flex;\n align-items: center;\n margin: 4px 0;\n overflow: hidden;\n}\n.ant-page-header-heading-title {\n margin-right: 12px;\n margin-bottom: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 20px;\n line-height: 32px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-page-header-heading .ant-avatar {\n margin-right: 12px;\n}\n.ant-page-header-heading-sub-title {\n margin-right: 12px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.5715;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-page-header-heading-extra {\n margin: 4px 0;\n white-space: nowrap;\n}\n.ant-page-header-heading-extra > * {\n margin-left: 12px;\n white-space: unset;\n}\n.ant-page-header-heading-extra > *:first-child {\n margin-left: 0;\n}\n.ant-page-header-content {\n padding-top: 12px;\n}\n.ant-page-header-footer {\n margin-top: 16px;\n}\n.ant-page-header-footer .ant-tabs > .ant-tabs-nav {\n margin: 0;\n}\n.ant-page-header-footer .ant-tabs > .ant-tabs-nav::before {\n border: none;\n}\n.ant-page-header-footer .ant-tabs .ant-tabs-tab {\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 16px;\n}\n.ant-page-header-compact .ant-page-header-heading {\n flex-wrap: wrap;\n}\n.ant-page-header-rtl {\n direction: rtl;\n}\n.ant-page-header-rtl .ant-page-header-back {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-page-header-rtl .ant-page-header-heading-title {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading .ant-avatar {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading-sub-title {\n float: right;\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-page-header-rtl .ant-page-header-heading-tags {\n float: right;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra {\n float: left;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra > * {\n margin-right: 12px;\n margin-left: 0;\n}\n.ant-page-header-rtl .ant-page-header-heading-extra > *:first-child {\n margin-right: 0;\n}\n.ant-page-header-rtl .ant-page-header-footer .ant-tabs-bar .ant-tabs-nav {\n float: right;\n}\n.ant-pagination {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-pagination ul,\n.ant-pagination ol {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-pagination::after {\n display: block;\n clear: both;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n content: ' ';\n}\n.ant-pagination-total-text {\n display: inline-block;\n height: 32px;\n margin-right: 8px;\n line-height: 30px;\n vertical-align: middle;\n}\n.ant-pagination-item {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n margin-right: 8px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 30px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: 0;\n cursor: pointer;\n user-select: none;\n}\n.ant-pagination-item a {\n display: block;\n padding: 0 6px;\n color: rgba(0, 0, 0, 0.85);\n transition: none;\n}\n.ant-pagination-item a:hover {\n text-decoration: none;\n}\n.ant-pagination-item:focus-visible,\n.ant-pagination-item:hover {\n border-color: #5b5ce1;\n transition: all 0.3s;\n}\n.ant-pagination-item:focus-visible a,\n.ant-pagination-item:hover a {\n color: #5b5ce1;\n}\n.ant-pagination-item-active {\n font-weight: 500;\n background: #fff;\n border-color: #5b5ce1;\n}\n.ant-pagination-item-active a {\n color: #5b5ce1;\n}\n.ant-pagination-item-active:focus-visible,\n.ant-pagination-item-active:hover {\n border-color: #8588ed;\n}\n.ant-pagination-item-active:focus-visible a,\n.ant-pagination-item-active:hover a {\n color: #8588ed;\n}\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n outline: 0;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container,\n.ant-pagination-jump-next .ant-pagination-item-container {\n position: relative;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {\n color: #5b5ce1;\n font-size: 12px;\n letter-spacing: -1px;\n opacity: 0;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon-svg,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon-svg {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n}\n.ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n margin: auto;\n color: rgba(0, 0, 0, 0.25);\n font-family: Arial, Helvetica, sans-serif;\n letter-spacing: 2px;\n text-align: center;\n text-indent: 0.13em;\n opacity: 1;\n transition: all 0.2s;\n}\n.ant-pagination-jump-prev:focus-visible .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:focus-visible .ant-pagination-item-link-icon,\n.ant-pagination-jump-prev:hover .ant-pagination-item-link-icon,\n.ant-pagination-jump-next:hover .ant-pagination-item-link-icon {\n opacity: 1;\n}\n.ant-pagination-jump-prev:focus-visible .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:focus-visible .ant-pagination-item-ellipsis,\n.ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,\n.ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {\n opacity: 0;\n}\n.ant-pagination-prev,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n margin-right: 8px;\n}\n.ant-pagination-prev,\n.ant-pagination-next,\n.ant-pagination-jump-prev,\n.ant-pagination-jump-next {\n display: inline-block;\n min-width: 32px;\n height: 32px;\n color: rgba(0, 0, 0, 0.85);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 32px;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-pagination-prev,\n.ant-pagination-next {\n font-family: Arial, Helvetica, sans-serif;\n outline: 0;\n}\n.ant-pagination-prev button,\n.ant-pagination-next button {\n color: rgba(0, 0, 0, 0.85);\n cursor: pointer;\n user-select: none;\n}\n.ant-pagination-prev:hover button,\n.ant-pagination-next:hover button {\n border-color: #8588ed;\n}\n.ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-next .ant-pagination-item-link {\n display: block;\n width: 100%;\n height: 100%;\n padding: 0;\n font-size: 12px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: none;\n transition: all 0.3s;\n}\n.ant-pagination-prev:focus-visible .ant-pagination-item-link,\n.ant-pagination-next:focus-visible .ant-pagination-item-link,\n.ant-pagination-prev:hover .ant-pagination-item-link,\n.ant-pagination-next:hover .ant-pagination-item-link {\n color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-pagination-disabled,\n.ant-pagination-disabled:hover,\n.ant-pagination-disabled:focus-visible {\n cursor: not-allowed;\n}\n.ant-pagination-disabled .ant-pagination-item-link,\n.ant-pagination-disabled:hover .ant-pagination-item-link,\n.ant-pagination-disabled:focus-visible .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-slash {\n margin: 0 10px 0 5px;\n}\n.ant-pagination-options {\n display: inline-block;\n margin-left: 16px;\n vertical-align: middle;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-pagination-options *::-ms-backdrop,\n .ant-pagination-options {\n vertical-align: top;\n }\n}\n.ant-pagination-options-size-changer.ant-select {\n display: inline-block;\n width: auto;\n}\n.ant-pagination-options-quick-jumper {\n display: inline-block;\n height: 32px;\n margin-left: 8px;\n line-height: 32px;\n vertical-align: top;\n}\n.ant-pagination-options-quick-jumper input {\n position: relative;\n display: inline-block;\n width: 100%;\n min-width: 0;\n padding: 4px 11px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 1.5715;\n background-color: #fff;\n background-image: none;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s;\n width: 50px;\n height: 32px;\n margin: 0 8px;\n}\n.ant-pagination-options-quick-jumper input::-moz-placeholder {\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input::placeholder {\n color: #bfbfbf;\n}\n.ant-pagination-options-quick-jumper input:placeholder-shown {\n text-overflow: ellipsis;\n}\n.ant-pagination-options-quick-jumper input:hover {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-pagination-options-quick-jumper input:hover {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input:focus,\n.ant-pagination-options-quick-jumper input-focused {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-pagination-options-quick-jumper input:focus,\n.ant-input-rtl .ant-pagination-options-quick-jumper input-focused {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input-disabled:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-pagination-options-quick-jumper input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-pagination-options-quick-jumper input-borderless,\n.ant-pagination-options-quick-jumper input-borderless:hover,\n.ant-pagination-options-quick-jumper input-borderless:focus,\n.ant-pagination-options-quick-jumper input-borderless-focused,\n.ant-pagination-options-quick-jumper input-borderless-disabled,\n.ant-pagination-options-quick-jumper input-borderless[disabled] {\n background-color: transparent;\n border: none;\n box-shadow: none;\n}\ntextarea.ant-pagination-options-quick-jumper input {\n max-width: 100%;\n height: auto;\n min-height: 32px;\n line-height: 1.5715;\n vertical-align: bottom;\n transition: all 0.3s, height 0s;\n}\n.ant-pagination-options-quick-jumper input-lg {\n padding: 6.5px 11px;\n font-size: 16px;\n}\n.ant-pagination-options-quick-jumper input-sm {\n padding: 0px 7px;\n}\n.ant-pagination-options-quick-jumper input-rtl {\n direction: rtl;\n}\n.ant-pagination-simple .ant-pagination-prev,\n.ant-pagination-simple .ant-pagination-next {\n height: 24px;\n line-height: 24px;\n vertical-align: top;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link {\n height: 24px;\n background-color: transparent;\n border: 0;\n}\n.ant-pagination-simple .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination-simple .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager {\n display: inline-block;\n height: 24px;\n margin-right: 8px;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input {\n box-sizing: border-box;\n height: 100%;\n margin-right: 8px;\n padding: 0 6px;\n text-align: center;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n outline: none;\n transition: border-color 0.3s;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input:hover {\n border-color: #5b5ce1;\n}\n.ant-pagination-simple .ant-pagination-simple-pager input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.mini .ant-pagination-total-text,\n.ant-pagination.mini .ant-pagination-simple-pager {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-item {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 22px;\n}\n.ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev,\n.ant-pagination.mini .ant-pagination-next {\n min-width: 24px;\n height: 24px;\n margin: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {\n background: transparent;\n border-color: transparent;\n}\n.ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link::after,\n.ant-pagination.mini .ant-pagination-next .ant-pagination-item-link::after {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-jump-prev,\n.ant-pagination.mini .ant-pagination-jump-next {\n height: 24px;\n margin-right: 0;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options {\n margin-left: 2px;\n}\n.ant-pagination.mini .ant-pagination-options-size-changer {\n top: 0px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper {\n height: 24px;\n line-height: 24px;\n}\n.ant-pagination.mini .ant-pagination-options-quick-jumper input {\n padding: 0px 7px;\n width: 44px;\n height: 24px;\n}\n.ant-pagination.ant-pagination-disabled {\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item {\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item a {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n border: none;\n cursor: not-allowed;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {\n background: #dbdbdb;\n border-color: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-active a {\n color: #fff;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-pagination-simple.ant-pagination.ant-pagination-disabled .ant-pagination-item-link {\n background: transparent;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-link-icon {\n opacity: 0;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-item-ellipsis {\n opacity: 1;\n}\n.ant-pagination.ant-pagination-disabled .ant-pagination-simple-pager {\n color: rgba(0, 0, 0, 0.25);\n}\n@media only screen and (max-width: 992px) {\n .ant-pagination-item-after-jump-prev,\n .ant-pagination-item-before-jump-next {\n display: none;\n }\n}\n@media only screen and (max-width: 576px) {\n .ant-pagination-options {\n display: none;\n }\n}\n.ant-pagination-rtl .ant-pagination-total-text {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-item,\n.ant-pagination-rtl .ant-pagination-prev,\n.ant-pagination-rtl .ant-pagination-jump-prev,\n.ant-pagination-rtl .ant-pagination-jump-next {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-slash {\n margin: 0 5px 0 10px;\n}\n.ant-pagination-rtl .ant-pagination-options {\n margin-right: 16px;\n margin-left: 0;\n}\n.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-size-changer.ant-select {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl .ant-pagination-options .ant-pagination-options-quick-jumper {\n margin-left: 0;\n}\n.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl.ant-pagination-simple .ant-pagination-simple-pager input {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-pagination-rtl.ant-pagination.mini .ant-pagination-options {\n margin-right: 2px;\n margin-left: 0;\n}\n.ant-popconfirm {\n z-index: 1060;\n}\n.ant-popover {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1030;\n font-weight: normal;\n white-space: normal;\n text-align: left;\n cursor: auto;\n user-select: text;\n}\n.ant-popover::after {\n position: absolute;\n background: rgba(255, 255, 255, 0.01);\n content: '';\n}\n.ant-popover-hidden {\n display: none;\n}\n.ant-popover-placement-top,\n.ant-popover-placement-topLeft,\n.ant-popover-placement-topRight {\n padding-bottom: 10px;\n}\n.ant-popover-placement-right,\n.ant-popover-placement-rightTop,\n.ant-popover-placement-rightBottom {\n padding-left: 10px;\n}\n.ant-popover-placement-bottom,\n.ant-popover-placement-bottomLeft,\n.ant-popover-placement-bottomRight {\n padding-top: 10px;\n}\n.ant-popover-placement-left,\n.ant-popover-placement-leftTop,\n.ant-popover-placement-leftBottom {\n padding-right: 10px;\n}\n.ant-popover-inner {\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \\9;\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ant-popover {\n /* IE10+ */\n }\n .ant-popover-inner {\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n }\n}\n.ant-popover-title {\n min-width: 177px;\n min-height: 32px;\n margin: 0;\n padding: 5px 16px 4px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-popover-inner-content {\n padding: 12px 16px;\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-popover-message {\n position: relative;\n padding: 4px 0 12px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n}\n.ant-popover-message > .anticon {\n position: absolute;\n top: 8.0005px;\n color: #faad14;\n font-size: 14px;\n}\n.ant-popover-message-title {\n padding-left: 22px;\n}\n.ant-popover-buttons {\n margin-bottom: 4px;\n text-align: right;\n}\n.ant-popover-buttons button {\n margin-left: 8px;\n}\n.ant-popover-arrow {\n position: absolute;\n display: block;\n width: 8.48528137px;\n height: 8.48528137px;\n background: transparent;\n border-style: solid;\n border-width: 4.24264069px;\n transform: rotate(45deg);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n bottom: 6.2px;\n border-top-color: transparent;\n border-right-color: #fff;\n border-bottom-color: #fff;\n border-left-color: transparent;\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-top > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-topLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-topRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n left: 6px;\n border-top-color: transparent;\n border-right-color: transparent;\n border-bottom-color: #fff;\n border-left-color: #fff;\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-right > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-rightTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-rightBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n top: 6px;\n border-top-color: #fff;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: #fff;\n box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);\n}\n.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow {\n left: 50%;\n transform: translateX(-50%) rotate(45deg);\n}\n.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow {\n left: 16px;\n}\n.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {\n right: 16px;\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow,\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n right: 6px;\n border-top-color: #fff;\n border-right-color: #fff;\n border-bottom-color: transparent;\n border-left-color: transparent;\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n}\n.ant-popover-placement-left > .ant-popover-content > .ant-popover-arrow {\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n}\n.ant-popover-placement-leftTop > .ant-popover-content > .ant-popover-arrow {\n top: 12px;\n}\n.ant-popover-placement-leftBottom > .ant-popover-content > .ant-popover-arrow {\n bottom: 12px;\n}\n.ant-popover-rtl {\n direction: rtl;\n text-align: right;\n}\n.ant-popover-rtl .ant-popover-message-title {\n padding-right: 22px;\n padding-left: 16px;\n}\n.ant-popover-rtl .ant-popover-buttons {\n text-align: left;\n}\n.ant-popover-rtl .ant-popover-buttons button {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-progress {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-progress-line {\n position: relative;\n width: 100%;\n font-size: 14px;\n}\n.ant-progress-steps {\n display: inline-block;\n}\n.ant-progress-steps-outer {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n.ant-progress-steps-item {\n flex-shrink: 0;\n min-width: 2px;\n margin-right: 2px;\n background: #f3f3f3;\n transition: all 0.3s;\n}\n.ant-progress-steps-item-active {\n background: #1890ff;\n}\n.ant-progress-small.ant-progress-line,\n.ant-progress-small.ant-progress-line .ant-progress-text .anticon {\n font-size: 12px;\n}\n.ant-progress-outer {\n display: inline-block;\n width: 100%;\n margin-right: 0;\n padding-right: 0;\n}\n.ant-progress-show-info .ant-progress-outer {\n margin-right: calc(-2em - 8px);\n padding-right: calc(2em + 8px);\n}\n.ant-progress-inner {\n position: relative;\n display: inline-block;\n width: 100%;\n overflow: hidden;\n vertical-align: middle;\n background-color: #f5f5f5;\n border-radius: 100px;\n}\n.ant-progress-circle-trail {\n stroke: #f5f5f5;\n}\n.ant-progress-circle-path {\n animation: ant-progress-appear 0.3s;\n}\n.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #1890ff;\n}\n.ant-progress-success-bg,\n.ant-progress-bg {\n position: relative;\n background-color: #1890ff;\n border-radius: 100px;\n transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;\n}\n.ant-progress-success-bg {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #52c41a;\n}\n.ant-progress-text {\n display: inline-block;\n width: 2em;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 1em;\n line-height: 1;\n white-space: nowrap;\n text-align: left;\n vertical-align: middle;\n word-break: normal;\n}\n.ant-progress-text .anticon {\n font-size: 14px;\n}\n.ant-progress-status-active .ant-progress-bg::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: #fff;\n border-radius: 10px;\n opacity: 0;\n animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;\n content: '';\n}\n.ant-progress-status-exception .ant-progress-bg {\n background-color: #ff4d4f;\n}\n.ant-progress-status-exception .ant-progress-text {\n color: #ff4d4f;\n}\n.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #ff4d4f;\n}\n.ant-progress-status-success .ant-progress-bg {\n background-color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {\n stroke: #52c41a;\n}\n.ant-progress-circle .ant-progress-inner {\n position: relative;\n line-height: 1;\n background-color: transparent;\n}\n.ant-progress-circle .ant-progress-text {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 1em;\n line-height: 1;\n white-space: normal;\n text-align: center;\n transform: translate(-50%, -50%);\n}\n.ant-progress-circle .ant-progress-text .anticon {\n font-size: 1.16666667em;\n}\n.ant-progress-circle.ant-progress-status-exception .ant-progress-text {\n color: #ff4d4f;\n}\n.ant-progress-circle.ant-progress-status-success .ant-progress-text {\n color: #52c41a;\n}\n@keyframes ant-progress-active {\n 0% {\n width: 0;\n opacity: 0.1;\n }\n 20% {\n width: 0;\n opacity: 0.5;\n }\n 100% {\n width: 100%;\n opacity: 0;\n }\n}\n.ant-progress-rtl {\n direction: rtl;\n}\n.ant-progress-rtl.ant-progress-show-info .ant-progress-outer {\n margin-right: 0;\n margin-left: calc(-2em - 8px);\n padding-right: 0;\n padding-left: calc(2em + 8px);\n}\n.ant-progress-rtl .ant-progress-success-bg {\n right: 0;\n left: auto;\n}\n.ant-progress-rtl.ant-progress-line .ant-progress-text,\n.ant-progress-rtl.ant-progress-steps .ant-progress-text {\n margin-right: 8px;\n margin-left: 0;\n text-align: right;\n}\n.ant-radio-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n font-size: 0;\n line-height: unset;\n}\n.ant-radio-group .ant-badge-count {\n z-index: 1;\n}\n.ant-radio-group > .ant-badge:not(:first-child) > .ant-radio-button-wrapper {\n border-left: none;\n}\n.ant-radio-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-flex;\n align-items: baseline;\n margin-right: 8px;\n cursor: pointer;\n}\n.ant-radio-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-radio {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n display: inline-block;\n outline: none;\n cursor: pointer;\n}\n.ant-radio-wrapper:hover .ant-radio,\n.ant-radio:hover .ant-radio-inner,\n.ant-radio-input:focus + .ant-radio-inner {\n border-color: #5b5ce1;\n}\n.ant-radio-input:focus + .ant-radio-inner {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 50%;\n visibility: hidden;\n animation: antRadioEffect 0.36s ease-in-out;\n animation-fill-mode: both;\n content: '';\n}\n.ant-radio:hover::after,\n.ant-radio-wrapper:hover .ant-radio::after {\n visibility: visible;\n}\n.ant-radio-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n background-color: #fff;\n border-color: #d9d9d9;\n border-style: solid;\n border-width: 1px;\n border-radius: 50%;\n transition: all 0.3s;\n}\n.ant-radio-inner::after {\n position: absolute;\n top: 3px;\n left: 3px;\n display: table;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border-top: 0;\n border-left: 0;\n border-radius: 8px;\n transform: scale(0);\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n content: ' ';\n}\n.ant-radio-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n cursor: pointer;\n opacity: 0;\n}\n.ant-radio-checked .ant-radio-inner {\n border-color: #5b5ce1;\n}\n.ant-radio-checked .ant-radio-inner::after {\n transform: scale(1);\n opacity: 1;\n transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-radio-disabled {\n cursor: not-allowed;\n}\n.ant-radio-disabled .ant-radio-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n cursor: not-allowed;\n}\n.ant-radio-disabled .ant-radio-inner::after {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.ant-radio-disabled .ant-radio-input {\n cursor: not-allowed;\n}\n.ant-radio-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\nspan.ant-radio + * {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-radio-button-wrapper {\n position: relative;\n display: inline-block;\n height: 32px;\n margin: 0;\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n line-height: 30px;\n background: #fff;\n border: 1px solid #d9d9d9;\n border-top-width: 1.02px;\n border-left-width: 0;\n cursor: pointer;\n transition: color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;\n}\n.ant-radio-button-wrapper a {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-radio-button-wrapper > .ant-radio-button {\n position: absolute;\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n}\n.ant-radio-group-large .ant-radio-button-wrapper {\n height: 40px;\n font-size: 16px;\n line-height: 38px;\n}\n.ant-radio-group-small .ant-radio-button-wrapper {\n height: 24px;\n padding: 0 7px;\n line-height: 22px;\n}\n.ant-radio-button-wrapper:not(:first-child)::before {\n position: absolute;\n top: -1px;\n left: -1px;\n display: block;\n box-sizing: content-box;\n width: 1px;\n height: 100%;\n padding: 1px 0;\n background-color: #d9d9d9;\n transition: background-color 0.3s;\n content: '';\n}\n.ant-radio-button-wrapper:first-child {\n border-left: 1px solid #d9d9d9;\n border-radius: 5px 0 0 5px;\n}\n.ant-radio-button-wrapper:last-child {\n border-radius: 0 5px 5px 0;\n}\n.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px;\n}\n.ant-radio-button-wrapper:hover {\n position: relative;\n color: #5b5ce1;\n}\n.ant-radio-button-wrapper:focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-button-wrapper .ant-radio-inner,\n.ant-radio-button-wrapper input[type='checkbox'],\n.ant-radio-button-wrapper input[type='radio'] {\n width: 0;\n height: 0;\n opacity: 0;\n pointer-events: none;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n z-index: 1;\n color: #5b5ce1;\n background: #fff;\n border-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {\n background-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border-color: #5b5ce1;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n color: #8588ed;\n border-color: #8588ed;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {\n background-color: #8588ed;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n color: #4541ba;\n border-color: #4541ba;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {\n background-color: #4541ba;\n}\n.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #fff;\n background: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {\n color: #fff;\n background: #8588ed;\n border-color: #8588ed;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n color: #fff;\n background: #4541ba;\n border-color: #4541ba;\n}\n.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n box-shadow: 0 0 0 3px rgba(91, 92, 225, 0.08);\n}\n.ant-radio-button-wrapper-disabled {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-radio-button-wrapper-disabled:first-child,\n.ant-radio-button-wrapper-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n}\n.ant-radio-button-wrapper-disabled:first-child {\n border-left-color: #d9d9d9;\n}\n.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n color: rgba(0, 0, 0, 0.25);\n background-color: #e6e6e6;\n border-color: #d9d9d9;\n box-shadow: none;\n}\n@keyframes antRadioEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.ant-radio-group.ant-radio-group-rtl {\n direction: rtl;\n}\n.ant-radio-wrapper.ant-radio-wrapper-rtl {\n margin-right: 0;\n margin-left: 8px;\n direction: rtl;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl {\n border-right-width: 0;\n border-left-width: 1px;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:not(:first-child)::before {\n right: -1px;\n left: 0;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:first-child {\n border-right: 1px solid #d9d9d9;\n border-radius: 0 5px 5px 0;\n}\n.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {\n border-right-color: #8588ed;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper:last-child {\n border-radius: 5px 0 0 5px;\n}\n.ant-radio-button-wrapper.ant-radio-button-wrapper-rtl.ant-radio-button-wrapper-disabled:first-child {\n border-right-color: #d9d9d9;\n}\n.ant-rate {\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n display: inline-block;\n margin: 0;\n padding: 0;\n color: #fadb14;\n font-size: 20px;\n line-height: unset;\n list-style: none;\n outline: none;\n}\n.ant-rate-disabled .ant-rate-star {\n cursor: default;\n}\n.ant-rate-disabled .ant-rate-star:hover {\n transform: scale(1);\n}\n.ant-rate-star {\n position: relative;\n display: inline-block;\n color: inherit;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-rate-star:not(:last-child) {\n margin-right: 8px;\n}\n.ant-rate-star > div:focus {\n outline: 0;\n}\n.ant-rate-star > div:hover,\n.ant-rate-star > div:focus {\n transform: scale(1.1);\n}\n.ant-rate-star-first,\n.ant-rate-star-second {\n color: #f0f0f0;\n transition: all 0.3s;\n user-select: none;\n}\n.ant-rate-star-first .anticon,\n.ant-rate-star-second .anticon {\n vertical-align: middle;\n}\n.ant-rate-star-first {\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n overflow: hidden;\n opacity: 0;\n}\n.ant-rate-star-half .ant-rate-star-first,\n.ant-rate-star-half .ant-rate-star-second {\n opacity: 1;\n}\n.ant-rate-star-half .ant-rate-star-first,\n.ant-rate-star-full .ant-rate-star-second {\n color: inherit;\n}\n.ant-rate-text {\n display: inline-block;\n margin: 0 8px;\n font-size: 14px;\n}\n.ant-rate-rtl {\n direction: rtl;\n}\n.ant-rate-rtl .ant-rate-star:not(:last-child) {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-rate-rtl .ant-rate-star-first {\n right: 0;\n left: auto;\n}\n.ant-result {\n padding: 48px 32px;\n}\n.ant-result-success .ant-result-icon > .anticon {\n color: #52c41a;\n}\n.ant-result-error .ant-result-icon > .anticon {\n color: #ff4d4f;\n}\n.ant-result-info .ant-result-icon > .anticon {\n color: #5b5ce1;\n}\n.ant-result-warning .ant-result-icon > .anticon {\n color: #faad14;\n}\n.ant-result-image {\n width: 250px;\n height: 295px;\n margin: auto;\n}\n.ant-result-icon {\n margin-bottom: 24px;\n text-align: center;\n}\n.ant-result-icon > .anticon {\n font-size: 72px;\n}\n.ant-result-title {\n color: rgba(0, 0, 0, 0.85);\n font-size: 24px;\n line-height: 1.8;\n text-align: center;\n}\n.ant-result-subtitle {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 1.6;\n text-align: center;\n}\n.ant-result-extra {\n margin: 24px 0 0 0;\n text-align: center;\n}\n.ant-result-extra > * {\n margin-right: 8px;\n}\n.ant-result-extra > *:last-child {\n margin-right: 0;\n}\n.ant-result-content {\n margin-top: 24px;\n padding: 24px 40px;\n background-color: #fafafa;\n}\n.ant-result-rtl {\n direction: rtl;\n}\n.ant-result-rtl .ant-result-extra > * {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-result-rtl .ant-result-extra > *:last-child {\n margin-left: 0;\n}\n.ant-select-single .ant-select-selector {\n display: flex;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-search {\n position: absolute;\n top: 0;\n right: 11px;\n bottom: 0;\n left: 11px;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-search-input {\n width: 100%;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-item,\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n padding: 0;\n line-height: 30px;\n transition: all 0.3s;\n}\n@supports (-moz-appearance: meterbar) {\n .ant-select-single .ant-select-selector .ant-select-selection-item,\n .ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n line-height: 30px;\n }\n}\n.ant-select-single .ant-select-selector .ant-select-selection-item {\n position: relative;\n user-select: none;\n}\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n pointer-events: none;\n}\n.ant-select-single .ant-select-selector::after,\n.ant-select-single .ant-select-selector .ant-select-selection-item::after,\n.ant-select-single .ant-select-selector .ant-select-selection-placeholder::after {\n display: inline-block;\n width: 0;\n visibility: hidden;\n content: '\\a0';\n}\n.ant-select-single.ant-select-show-arrow .ant-select-selection-search {\n right: 25px;\n}\n.ant-select-single.ant-select-show-arrow .ant-select-selection-item,\n.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 18px;\n}\n.ant-select-single.ant-select-open .ant-select-selection-item {\n color: #bfbfbf;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {\n width: 100%;\n height: 32px;\n padding: 0 11px;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n height: 30px;\n}\n.ant-select-single:not(.ant-select-customize-input) .ant-select-selector::after {\n line-height: 30px;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector::after {\n display: none;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-search {\n position: static;\n width: 100%;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder {\n position: absolute;\n right: 0;\n left: 0;\n padding: 0 11px;\n}\n.ant-select-single.ant-select-customize-input .ant-select-selector .ant-select-selection-placeholder::after {\n display: none;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {\n height: 40px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector::after,\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder {\n line-height: 38px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input {\n height: 38px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {\n height: 24px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector::after,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder {\n line-height: 22px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input {\n height: 22px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selection-search {\n right: 7px;\n left: 7px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector {\n padding: 0 7px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search {\n right: 28px;\n}\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,\n.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 21px;\n}\n.ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {\n padding: 0 11px;\n}\n/**\n * Do not merge `height` & `line-height` under style with `selection` & `search`,\n * since chrome may update to redesign with its align logic.\n */\n.ant-select-selection-overflow {\n position: relative;\n display: flex;\n flex: auto;\n flex-wrap: wrap;\n max-width: 100%;\n}\n.ant-select-selection-overflow-item {\n flex: none;\n align-self: center;\n max-width: 100%;\n}\n.ant-select-multiple .ant-select-selector {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n padding: 1px 4px;\n}\n.ant-select-show-search.ant-select-multiple .ant-select-selector {\n cursor: text;\n}\n.ant-select-disabled.ant-select-multiple .ant-select-selector {\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-select-multiple .ant-select-selector::after {\n display: inline-block;\n width: 0;\n margin: 2px 0;\n line-height: 24px;\n content: '\\a0';\n}\n.ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 24px;\n}\n.ant-select-multiple .ant-select-selection-item {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n max-width: 100%;\n height: 24px;\n margin-top: 2px;\n margin-bottom: 2px;\n line-height: 22px;\n background: #f5f5f5;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n cursor: default;\n transition: font-size 0.3s, line-height 0.3s, height 0.3s;\n user-select: none;\n margin-inline-end: 4px;\n padding-inline-start: 8px;\n padding-inline-end: 4px;\n}\n.ant-select-disabled.ant-select-multiple .ant-select-selection-item {\n color: #bfbfbf;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.ant-select-multiple .ant-select-selection-item-content {\n display: inline-block;\n margin-right: 4px;\n overflow: hidden;\n white-space: pre;\n text-overflow: ellipsis;\n}\n.ant-select-multiple .ant-select-selection-item-remove {\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n font-weight: bold;\n font-size: 10px;\n line-height: inherit;\n cursor: pointer;\n}\n.ant-select-multiple .ant-select-selection-item-remove > * {\n line-height: 1;\n}\n.ant-select-multiple .ant-select-selection-item-remove svg {\n display: inline-block;\n}\n.ant-select-multiple .ant-select-selection-item-remove::before {\n display: none;\n}\n.ant-select-multiple .ant-select-selection-item-remove .ant-select-multiple .ant-select-selection-item-remove-icon {\n display: block;\n}\n.ant-select-multiple .ant-select-selection-item-remove > .anticon {\n vertical-align: -0.2em;\n}\n.ant-select-multiple .ant-select-selection-item-remove:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-select-multiple .ant-select-selection-overflow-item + .ant-select-selection-overflow-item .ant-select-selection-search {\n margin-inline-start: 0;\n}\n.ant-select-multiple .ant-select-selection-search {\n position: relative;\n max-width: 100%;\n margin-top: 2px;\n margin-bottom: 2px;\n margin-inline-start: 7px;\n}\n.ant-select-multiple .ant-select-selection-search-input,\n.ant-select-multiple .ant-select-selection-search-mirror {\n height: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 24px;\n transition: all 0.3s;\n}\n.ant-select-multiple .ant-select-selection-search-input {\n width: 100%;\n min-width: 4.1px;\n}\n.ant-select-multiple .ant-select-selection-search-mirror {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 999;\n white-space: pre;\n visibility: hidden;\n}\n.ant-select-multiple .ant-select-selection-placeholder {\n position: absolute;\n top: 50%;\n right: 11px;\n left: 11px;\n transform: translateY(-50%);\n transition: all 0.3s;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selector::after {\n line-height: 32px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-item {\n height: 32px;\n line-height: 30px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-search {\n height: 32px;\n line-height: 32px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-search-input,\n.ant-select-multiple.ant-select-lg .ant-select-selection-search-mirror {\n height: 32px;\n line-height: 30px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selector::after {\n line-height: 16px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-item {\n height: 16px;\n line-height: 14px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search {\n height: 16px;\n line-height: 16px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search-input,\n.ant-select-multiple.ant-select-sm .ant-select-selection-search-mirror {\n height: 16px;\n line-height: 14px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder {\n left: 7px;\n}\n.ant-select-multiple.ant-select-sm .ant-select-selection-search {\n margin-inline-start: 3px;\n}\n.ant-select-multiple.ant-select-lg .ant-select-selection-item {\n height: 32px;\n line-height: 32px;\n}\n.ant-select-disabled .ant-select-selection-item-remove {\n display: none;\n}\n/* Reset search input style */\n.ant-select {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n cursor: pointer;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n position: relative;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: pointer;\n}\n.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n cursor: text;\n}\n.ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: auto;\n}\n.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-color: #8588ed;\n border-right-width: 1px !important;\n outline: 0;\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-input-rtl .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n cursor: not-allowed;\n}\n.ant-select-multiple.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {\n background: #f5f5f5;\n}\n.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector input {\n cursor: not-allowed;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {\n margin: 0;\n padding: 0;\n background: transparent;\n border: none;\n outline: none;\n appearance: none;\n}\n.ant-select:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input::-webkit-search-cancel-button {\n display: none;\n -webkit-appearance: none;\n}\n.ant-select:not(.ant-select-disabled):hover .ant-select-selector {\n border-color: #8588ed;\n border-right-width: 1px !important;\n}\n.ant-input-rtl .ant-select:not(.ant-select-disabled):hover .ant-select-selector {\n border-right-width: 0;\n border-left-width: 1px !important;\n}\n.ant-select-selection-item {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-select-selection-item *::-ms-backdrop,\n .ant-select-selection-item {\n flex: auto;\n }\n}\n.ant-select-selection-placeholder {\n flex: 1;\n overflow: hidden;\n color: #bfbfbf;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n}\n@media all and (-ms-high-contrast: none) {\n .ant-select-selection-placeholder *::-ms-backdrop,\n .ant-select-selection-placeholder {\n flex: auto;\n }\n}\n.ant-select-arrow {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n top: 53%;\n right: 11px;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n line-height: 1;\n text-align: center;\n pointer-events: none;\n}\n.ant-select-arrow > * {\n line-height: 1;\n}\n.ant-select-arrow svg {\n display: inline-block;\n}\n.ant-select-arrow::before {\n display: none;\n}\n.ant-select-arrow .ant-select-arrow-icon {\n display: block;\n}\n.ant-select-arrow .anticon {\n vertical-align: top;\n transition: transform 0.3s;\n}\n.ant-select-arrow .anticon > svg {\n vertical-align: top;\n}\n.ant-select-arrow .anticon:not(.ant-select-suffix) {\n pointer-events: auto;\n}\n.ant-select-disabled .ant-select-arrow {\n cursor: not-allowed;\n}\n.ant-select-clear {\n position: absolute;\n top: 50%;\n right: 11px;\n z-index: 1;\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-top: -6px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n font-style: normal;\n line-height: 1;\n text-align: center;\n text-transform: none;\n background: #fff;\n cursor: pointer;\n opacity: 0;\n transition: color 0.3s ease, opacity 0.15s ease;\n text-rendering: auto;\n}\n.ant-select-clear::before {\n display: block;\n}\n.ant-select-clear:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-select:hover .ant-select-clear {\n opacity: 1;\n}\n.ant-select-dropdown {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n box-sizing: border-box;\n padding: 4px 0;\n overflow: hidden;\n font-size: 14px;\n font-variant: initial;\n background-color: #fff;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-bottomLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpIn;\n}\n.ant-select-dropdown.slide-up-enter.slide-up-enter-active.ant-select-dropdown-placement-topLeft,\n.ant-select-dropdown.slide-up-appear.slide-up-appear-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownIn;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {\n animation-name: antSlideUpOut;\n}\n.ant-select-dropdown.slide-up-leave.slide-up-leave-active.ant-select-dropdown-placement-topLeft {\n animation-name: antSlideDownOut;\n}\n.ant-select-dropdown-hidden {\n display: none;\n}\n.ant-select-dropdown-empty {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-item-empty {\n position: relative;\n display: block;\n min-height: 32px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-item {\n position: relative;\n display: block;\n min-height: 32px;\n padding: 5px 12px;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n.ant-select-item-group {\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n cursor: default;\n}\n.ant-select-item-option {\n display: flex;\n}\n.ant-select-item-option-content {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-select-item-option-state {\n flex: none;\n}\n.ant-select-item-option-active:not(.ant-select-item-option-disabled) {\n background-color: #f5f5f5;\n}\n.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n background-color: #f0f2ff;\n}\n.ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state {\n color: #5b5ce1;\n}\n.ant-select-item-option-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-item-option-grouped {\n padding-left: 24px;\n}\n.ant-select-lg {\n font-size: 16px;\n}\n.ant-select-borderless .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n box-shadow: none !important;\n}\n.ant-select-rtl {\n direction: rtl;\n}\n.ant-select-rtl .ant-select-arrow {\n right: initial;\n left: 11px;\n}\n.ant-select-rtl .ant-select-clear {\n right: initial;\n left: 11px;\n}\n.ant-select-dropdown-rtl {\n direction: rtl;\n}\n.ant-select-dropdown-rtl .ant-select-item-option-grouped {\n padding-right: 24px;\n padding-left: 12px;\n}\n.ant-select-rtl.ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.ant-select-rtl.ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 4px;\n padding-left: 24px;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-item {\n text-align: right;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-item-content {\n margin-right: 0;\n margin-left: 4px;\n text-align: right;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-search-mirror {\n right: 0;\n left: auto;\n}\n.ant-select-rtl.ant-select-multiple .ant-select-selection-placeholder {\n right: 11px;\n left: auto;\n}\n.ant-select-rtl.ant-select-multiple.ant-select-sm .ant-select-selection-placeholder {\n right: 7px;\n}\n.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-item,\n.ant-select-rtl.ant-select-single .ant-select-selector .ant-select-selection-placeholder {\n right: 0;\n left: 9px;\n text-align: right;\n}\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-search {\n right: 11px;\n left: 25px;\n}\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-item,\n.ant-select-rtl.ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 0;\n padding-left: 18px;\n}\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-search {\n right: 6px;\n}\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-item,\n.ant-select-rtl.ant-select-single.ant-select-sm:not(.ant-select-customize-input).ant-select-show-arrow .ant-select-selection-placeholder {\n padding-right: 0;\n padding-left: 21px;\n}\n.ant-skeleton {\n display: table;\n width: 100%;\n}\n.ant-skeleton-header {\n display: table-cell;\n padding-right: 16px;\n vertical-align: top;\n}\n.ant-skeleton-header .ant-skeleton-avatar {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-content {\n display: table-cell;\n width: 100%;\n vertical-align: top;\n}\n.ant-skeleton-content .ant-skeleton-title {\n width: 100%;\n height: 16px;\n margin-top: 16px;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 4px;\n}\n.ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 24px;\n}\n.ant-skeleton-content .ant-skeleton-paragraph {\n padding: 0;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li {\n width: 100%;\n height: 16px;\n list-style: none;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 4px;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li:last-child:not(:first-child):not(:nth-child(2)) {\n width: 61%;\n}\n.ant-skeleton-content .ant-skeleton-paragraph > li + li {\n margin-top: 16px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title {\n margin-top: 12px;\n}\n.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title + .ant-skeleton-paragraph {\n margin-top: 28px;\n}\n.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {\n border-radius: 100px;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-button {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-input {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton.ant-skeleton-active .ant-skeleton-image {\n background: linear-gradient(90deg, rgba(190, 190, 190, 0.2) 25%, rgba(129, 129, 129, 0.24) 37%, rgba(190, 190, 190, 0.2) 63%);\n background-size: 400% 100%;\n animation: ant-skeleton-loading 1.4s ease infinite;\n}\n.ant-skeleton-element {\n display: inline-block;\n width: auto;\n}\n.ant-skeleton-element .ant-skeleton-button {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n border-radius: 5px;\n width: 64px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {\n width: 32px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {\n border-radius: 32px;\n}\n.ant-skeleton-element .ant-skeleton-button-lg {\n width: 80px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle {\n width: 40px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round {\n border-radius: 40px;\n}\n.ant-skeleton-element .ant-skeleton-button-sm {\n width: 48px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle {\n width: 24px;\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round {\n border-radius: 24px;\n}\n.ant-skeleton-element .ant-skeleton-avatar {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-input {\n display: inline-block;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 100%;\n height: 32px;\n line-height: 32px;\n}\n.ant-skeleton-element .ant-skeleton-input-lg {\n width: 100%;\n height: 40px;\n line-height: 40px;\n}\n.ant-skeleton-element .ant-skeleton-input-sm {\n width: 100%;\n height: 24px;\n line-height: 24px;\n}\n.ant-skeleton-element .ant-skeleton-image {\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: top;\n background: rgba(190, 190, 190, 0.2);\n width: 96px;\n height: 96px;\n line-height: 96px;\n}\n.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle {\n border-radius: 50%;\n}\n.ant-skeleton-element .ant-skeleton-image-path {\n fill: #bfbfbf;\n}\n.ant-skeleton-element .ant-skeleton-image-svg {\n width: 48px;\n height: 48px;\n line-height: 48px;\n max-width: 192px;\n max-height: 192px;\n}\n.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle {\n border-radius: 50%;\n}\n@keyframes ant-skeleton-loading {\n 0% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0 50%;\n }\n}\n.ant-skeleton-rtl {\n direction: rtl;\n}\n.ant-skeleton-rtl .ant-skeleton-header {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {\n animation-name: ant-skeleton-loading-rtl;\n}\n.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {\n animation-name: ant-skeleton-loading-rtl;\n}\n@keyframes ant-skeleton-loading-rtl {\n 0% {\n background-position: 0% 50%;\n }\n 100% {\n background-position: 100% 50%;\n }\n}\n.ant-slider {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n height: 12px;\n margin: 10px 6px 10px;\n padding: 4px 0;\n cursor: pointer;\n touch-action: none;\n}\n.ant-slider-vertical {\n width: 12px;\n height: 100%;\n margin: 6px 10px;\n padding: 0 4px;\n}\n.ant-slider-vertical .ant-slider-rail {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-track {\n width: 4px;\n}\n.ant-slider-vertical .ant-slider-handle {\n margin-top: -6px;\n margin-left: -5px;\n}\n.ant-slider-vertical .ant-slider-mark {\n top: 0;\n left: 12px;\n width: 18px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-mark-text {\n left: 4px;\n white-space: nowrap;\n}\n.ant-slider-vertical .ant-slider-step {\n width: 4px;\n height: 100%;\n}\n.ant-slider-vertical .ant-slider-dot {\n top: auto;\n left: 2px;\n margin-bottom: -4px;\n}\n.ant-slider-tooltip .ant-tooltip-inner {\n min-width: unset;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-handle {\n margin-right: -5px;\n margin-left: 0;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-mark {\n right: 12px;\n left: auto;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text {\n right: 4px;\n left: auto;\n}\n.ant-slider-rtl.ant-slider-vertical .ant-slider-dot {\n right: 2px;\n left: auto;\n}\n.ant-slider-with-marks {\n margin-bottom: 28px;\n}\n.ant-slider-rail {\n position: absolute;\n width: 100%;\n height: 4px;\n background-color: #f5f5f5;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-slider-track {\n position: absolute;\n height: 4px;\n background-color: #e0e3ff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n margin-top: -5px;\n background-color: #fff;\n border: solid 2px #e0e3ff;\n border-radius: 50%;\n box-shadow: 0;\n cursor: pointer;\n transition: border-color 0.3s, box-shadow 0.6s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);\n}\n.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging {\n border-color: #7c7de7;\n box-shadow: 0 0 0 5px rgba(91, 92, 225, 0.12);\n}\n.ant-slider-handle:focus {\n border-color: #7c7de7;\n outline: none;\n box-shadow: 0 0 0 5px rgba(91, 92, 225, 0.12);\n}\n.ant-slider-handle.ant-tooltip-open {\n border-color: #5b5ce1;\n}\n.ant-slider:hover .ant-slider-rail {\n background-color: #e1e1e1;\n}\n.ant-slider:hover .ant-slider-track {\n background-color: #b4b9fa;\n}\n.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {\n border-color: #b4b9fa;\n}\n.ant-slider-mark {\n position: absolute;\n top: 14px;\n left: 0;\n width: 100%;\n font-size: 14px;\n}\n.ant-slider-mark-text {\n position: absolute;\n display: inline-block;\n color: rgba(0, 0, 0, 0.45);\n text-align: center;\n word-break: keep-all;\n cursor: pointer;\n user-select: none;\n}\n.ant-slider-mark-text-active {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n}\n.ant-slider-dot {\n position: absolute;\n top: -2px;\n width: 8px;\n height: 8px;\n margin-left: -4px;\n background-color: #fff;\n border: 2px solid #f0f0f0;\n border-radius: 50%;\n cursor: pointer;\n}\n.ant-slider-dot:first-child {\n margin-left: -4px;\n}\n.ant-slider-dot:last-child {\n margin-left: -4px;\n}\n.ant-slider-dot-active {\n border-color: #adaef0;\n}\n.ant-slider-disabled {\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-track {\n background-color: rgba(0, 0, 0, 0.25) !important;\n}\n.ant-slider-disabled .ant-slider-handle,\n.ant-slider-disabled .ant-slider-dot {\n background-color: #fff;\n border-color: rgba(0, 0, 0, 0.25) !important;\n box-shadow: none;\n cursor: not-allowed;\n}\n.ant-slider-disabled .ant-slider-mark-text,\n.ant-slider-disabled .ant-slider-dot {\n cursor: not-allowed !important;\n}\n.ant-slider-rtl {\n direction: rtl;\n}\n.ant-slider-rtl .ant-slider-mark {\n right: 0;\n left: auto;\n}\n.ant-slider-rtl .ant-slider-dot {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-slider-rtl .ant-slider-dot:first-child {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-slider-rtl .ant-slider-dot:last-child {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-space {\n display: inline-flex;\n}\n.ant-space-vertical {\n flex-direction: column;\n}\n.ant-space-align-center {\n align-items: center;\n}\n.ant-space-align-start {\n align-items: flex-start;\n}\n.ant-space-align-end {\n align-items: flex-end;\n}\n.ant-space-align-baseline {\n align-items: baseline;\n}\n.ant-space-item:empty {\n display: none;\n}\n.ant-space-rtl {\n direction: rtl;\n}\n.ant-spin {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n display: none;\n color: #5b5ce1;\n text-align: center;\n vertical-align: middle;\n opacity: 0;\n transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-spin-spinning {\n position: static;\n display: inline-block;\n opacity: 1;\n}\n.ant-spin-nested-loading {\n position: relative;\n}\n.ant-spin-nested-loading > div > .ant-spin {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 4;\n display: block;\n width: 100%;\n height: 100%;\n max-height: 400px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -10px;\n}\n.ant-spin-nested-loading > div > .ant-spin .ant-spin-text {\n position: absolute;\n top: 50%;\n width: 100%;\n padding-top: 5px;\n text-shadow: 0 1px 2px #fff;\n}\n.ant-spin-nested-loading > div > .ant-spin.ant-spin-show-text .ant-spin-dot {\n margin-top: -20px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-dot {\n margin: -7px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm .ant-spin-text {\n padding-top: 2px;\n}\n.ant-spin-nested-loading > div > .ant-spin-sm.ant-spin-show-text .ant-spin-dot {\n margin-top: -17px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-dot {\n margin: -16px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg .ant-spin-text {\n padding-top: 11px;\n}\n.ant-spin-nested-loading > div > .ant-spin-lg.ant-spin-show-text .ant-spin-dot {\n margin-top: -26px;\n}\n.ant-spin-container {\n position: relative;\n transition: opacity 0.3s;\n}\n.ant-spin-container::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 10;\n display: none \\9;\n width: 100%;\n height: 100%;\n background: #fff;\n opacity: 0;\n transition: all 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-spin-blur {\n clear: both;\n overflow: hidden;\n opacity: 0.5;\n user-select: none;\n pointer-events: none;\n}\n.ant-spin-blur::after {\n opacity: 0.4;\n pointer-events: auto;\n}\n.ant-spin-tip {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-spin-dot {\n position: relative;\n display: inline-block;\n font-size: 20px;\n width: 1em;\n height: 1em;\n}\n.ant-spin-dot-item {\n position: absolute;\n display: block;\n width: 9px;\n height: 9px;\n background-color: #5b5ce1;\n border-radius: 100%;\n transform: scale(0.75);\n transform-origin: 50% 50%;\n opacity: 0.3;\n animation: antSpinMove 1s infinite linear alternate;\n}\n.ant-spin-dot-item:nth-child(1) {\n top: 0;\n left: 0;\n}\n.ant-spin-dot-item:nth-child(2) {\n top: 0;\n right: 0;\n animation-delay: 0.4s;\n}\n.ant-spin-dot-item:nth-child(3) {\n right: 0;\n bottom: 0;\n animation-delay: 0.8s;\n}\n.ant-spin-dot-item:nth-child(4) {\n bottom: 0;\n left: 0;\n animation-delay: 1.2s;\n}\n.ant-spin-dot-spin {\n transform: rotate(45deg);\n animation: antRotate 1.2s infinite linear;\n}\n.ant-spin-sm .ant-spin-dot {\n font-size: 14px;\n}\n.ant-spin-sm .ant-spin-dot i {\n width: 6px;\n height: 6px;\n}\n.ant-spin-lg .ant-spin-dot {\n font-size: 32px;\n}\n.ant-spin-lg .ant-spin-dot i {\n width: 14px;\n height: 14px;\n}\n.ant-spin.ant-spin-show-text .ant-spin-text {\n display: block;\n}\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /* IE10+ */\n .ant-spin-blur {\n background: #fff;\n opacity: 0.5;\n }\n}\n@keyframes antSpinMove {\n to {\n opacity: 1;\n }\n}\n@keyframes antRotate {\n to {\n transform: rotate(405deg);\n }\n}\n.ant-spin-rtl {\n direction: rtl;\n}\n.ant-spin-rtl .ant-spin-dot-spin {\n transform: rotate(-45deg);\n animation-name: antRotateRtl;\n}\n@keyframes antRotateRtl {\n to {\n transform: rotate(-405deg);\n }\n}\n.ant-statistic {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-statistic-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-statistic-content {\n color: rgba(0, 0, 0, 0.85);\n font-size: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n}\n.ant-statistic-content-value {\n display: inline-block;\n direction: ltr;\n}\n.ant-statistic-content-prefix,\n.ant-statistic-content-suffix {\n display: inline-block;\n}\n.ant-statistic-content-prefix {\n margin-right: 4px;\n}\n.ant-statistic-content-suffix {\n margin-left: 4px;\n}\n.ant-statistic-rtl {\n direction: rtl;\n}\n.ant-statistic-rtl .ant-statistic-content-prefix {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-statistic-rtl .ant-statistic-content-suffix {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-steps {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: flex;\n width: 100%;\n font-size: 0;\n text-align: initial;\n}\n.ant-steps-item {\n position: relative;\n display: inline-block;\n flex: 1;\n overflow: hidden;\n vertical-align: top;\n}\n.ant-steps-item-container {\n outline: none;\n}\n.ant-steps-item:last-child {\n flex: none;\n}\n.ant-steps-item:last-child > .ant-steps-item-container > .ant-steps-item-tail,\n.ant-steps-item:last-child > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-item-icon,\n.ant-steps-item-content {\n display: inline-block;\n vertical-align: top;\n}\n.ant-steps-item-icon {\n width: 32px;\n height: 32px;\n margin: 0 8px 0 0;\n font-size: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n line-height: 32px;\n text-align: center;\n border: 1px solid rgba(0, 0, 0, 0.25);\n border-radius: 32px;\n transition: background-color 0.3s, border-color 0.3s;\n}\n.ant-steps-item-icon .ant-steps-icon {\n position: relative;\n top: -0.5px;\n color: #5b5ce1;\n line-height: 1;\n}\n.ant-steps-item-tail {\n position: absolute;\n top: 12px;\n left: 0;\n width: 100%;\n padding: 0 10px;\n}\n.ant-steps-item-tail::after {\n display: inline-block;\n width: 100%;\n height: 1px;\n background: #f0f0f0;\n border-radius: 1px;\n transition: background 0.3s;\n content: '';\n}\n.ant-steps-item-title {\n position: relative;\n display: inline-block;\n padding-right: 16px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 32px;\n}\n.ant-steps-item-title::after {\n position: absolute;\n top: 16px;\n left: 100%;\n display: block;\n width: 9999px;\n height: 1px;\n background: #f0f0f0;\n content: '';\n}\n.ant-steps-item-subtitle {\n display: inline;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.45);\n font-weight: normal;\n font-size: 14px;\n}\n.ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-steps-item-wait .ant-steps-item-icon {\n background-color: #fff;\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: rgba(0, 0, 0, 0.25);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process .ant-steps-item-icon {\n background-color: #fff;\n border-color: #5b5ce1;\n}\n.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #5b5ce1;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {\n background: #5b5ce1;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon .ant-steps-icon {\n color: #fff;\n}\n.ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-title {\n font-weight: 500;\n}\n.ant-steps-item-finish .ant-steps-item-icon {\n background-color: #fff;\n border-color: #5b5ce1;\n}\n.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #5b5ce1;\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #5b5ce1;\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #5b5ce1;\n}\n.ant-steps-item-error .ant-steps-item-icon {\n background-color: #fff;\n border-color: #ff4d4f;\n}\n.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon {\n color: #ff4d4f;\n}\n.ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n color: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-description {\n color: #ff4d4f;\n}\n.ant-steps-item-error > .ant-steps-item-container > .ant-steps-item-tail::after {\n background-color: #f0f0f0;\n}\n.ant-steps-item.ant-steps-next-error .ant-steps-item-title::after {\n background: #ff4d4f;\n}\n.ant-steps-item-disabled {\n cursor: not-allowed;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] {\n cursor: pointer;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-title,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-subtitle,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-description,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button'] .ant-steps-item-icon .ant-steps-icon {\n transition: color 0.3s;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-title,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-subtitle,\n.ant-steps .ant-steps-item:not(.ant-steps-item-active) > .ant-steps-item-container[role='button']:hover .ant-steps-item-description {\n color: #5b5ce1;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon {\n border-color: #5b5ce1;\n}\n.ant-steps .ant-steps-item:not(.ant-steps-item-active):not(.ant-steps-item-process) > .ant-steps-item-container[role='button']:hover .ant-steps-item-icon .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-left: 16px;\n white-space: nowrap;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-left: 0;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title {\n padding-right: 0;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail {\n display: none;\n}\n.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description {\n max-width: 140px;\n white-space: normal;\n}\n.ant-steps-item-custom > .ant-steps-item-container > .ant-steps-item-icon {\n height: auto;\n background: none;\n border: 0;\n}\n.ant-steps-item-custom > .ant-steps-item-container > .ant-steps-item-icon > .ant-steps-icon {\n top: 0px;\n left: 0.5px;\n width: 32px;\n height: 32px;\n font-size: 24px;\n line-height: 32px;\n}\n.ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon {\n color: #5b5ce1;\n}\n.ant-steps:not(.ant-steps-vertical) .ant-steps-item-custom .ant-steps-item-icon {\n width: auto;\n background: none;\n}\n.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-left: 12px;\n}\n.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-left: 0;\n}\n.ant-steps-small .ant-steps-item-icon {\n width: 24px;\n height: 24px;\n margin: 0 8px 0 0;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n border-radius: 24px;\n}\n.ant-steps-small .ant-steps-item-title {\n padding-right: 12px;\n font-size: 14px;\n line-height: 24px;\n}\n.ant-steps-small .ant-steps-item-title::after {\n top: 12px;\n}\n.ant-steps-small .ant-steps-item-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-steps-small .ant-steps-item-tail {\n top: 8px;\n}\n.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon {\n width: inherit;\n height: inherit;\n line-height: inherit;\n background: none;\n border: 0;\n border-radius: 0;\n}\n.ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon {\n font-size: 24px;\n line-height: 24px;\n transform: none;\n}\n.ant-steps-vertical {\n display: flex;\n flex-direction: column;\n}\n.ant-steps-vertical > .ant-steps-item {\n display: block;\n flex: 1 0 auto;\n padding-left: 0;\n overflow: visible;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-icon {\n float: left;\n margin-right: 16px;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-content {\n display: block;\n min-height: 48px;\n overflow: hidden;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-title {\n line-height: 32px;\n}\n.ant-steps-vertical > .ant-steps-item .ant-steps-item-description {\n padding-bottom: 12px;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n position: absolute;\n top: 0;\n left: 16px;\n width: 1px;\n height: 100%;\n padding: 38px 0 6px;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail::after {\n width: 1px;\n height: 100%;\n}\n.ant-steps-vertical > .ant-steps-item:not(:last-child) > .ant-steps-item-container > .ant-steps-item-tail {\n display: block;\n}\n.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail {\n position: absolute;\n top: 0;\n left: 12px;\n padding: 30px 0 6px;\n}\n.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-title {\n line-height: 24px;\n}\n.ant-steps-label-vertical .ant-steps-item {\n overflow: visible;\n}\n.ant-steps-label-vertical .ant-steps-item-tail {\n margin-left: 58px;\n padding: 3.5px 24px;\n}\n.ant-steps-label-vertical .ant-steps-item-content {\n display: block;\n width: 116px;\n margin-top: 8px;\n text-align: center;\n}\n.ant-steps-label-vertical .ant-steps-item-icon {\n display: inline-block;\n margin-left: 42px;\n}\n.ant-steps-label-vertical .ant-steps-item-title {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-steps-label-vertical .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-label-vertical .ant-steps-item-subtitle {\n display: block;\n margin-bottom: 4px;\n margin-left: 0;\n line-height: 1.5715;\n}\n.ant-steps-label-vertical.ant-steps-small:not(.ant-steps-dot) .ant-steps-item-icon {\n margin-left: 46px;\n}\n.ant-steps-dot .ant-steps-item-title,\n.ant-steps-dot.ant-steps-small .ant-steps-item-title {\n line-height: 1.5715;\n}\n.ant-steps-dot .ant-steps-item-tail,\n.ant-steps-dot.ant-steps-small .ant-steps-item-tail {\n top: 2px;\n width: 100%;\n margin: 0 0 0 70px;\n padding: 0;\n}\n.ant-steps-dot .ant-steps-item-tail::after,\n.ant-steps-dot.ant-steps-small .ant-steps-item-tail::after {\n width: calc(100% - 20px);\n height: 3px;\n margin-left: 12px;\n}\n.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot {\n left: 2px;\n}\n.ant-steps-dot .ant-steps-item-icon,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon {\n width: 8px;\n height: 8px;\n margin-left: 67px;\n padding-right: 0;\n line-height: 8px;\n background: transparent;\n border: 0;\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n position: relative;\n float: left;\n width: 100%;\n height: 100%;\n border-radius: 100px;\n transition: all 0.3s;\n /* expand hover area */\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot::after {\n position: absolute;\n top: -12px;\n left: -26px;\n width: 60px;\n height: 32px;\n background: rgba(0, 0, 0, 0.001);\n content: '';\n}\n.ant-steps-dot .ant-steps-item-content,\n.ant-steps-dot.ant-steps-small .ant-steps-item-content {\n width: 140px;\n}\n.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon,\n.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-item-icon {\n position: relative;\n top: -1px;\n width: 10px;\n height: 10px;\n line-height: 10px;\n background: none;\n}\n.ant-steps-dot .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-process .ant-steps-icon:first-child .ant-steps-icon-dot {\n left: 0;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 8px;\n margin-left: 0;\n background: none;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 2px;\n left: -9px;\n margin: 0;\n padding: 22px 0 4px;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot {\n left: 0;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-content {\n width: inherit;\n}\n.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon-dot {\n left: -2px;\n}\n.ant-steps-navigation {\n padding-top: 12px;\n}\n.ant-steps-navigation.ant-steps-small .ant-steps-item-container {\n margin-left: -12px;\n}\n.ant-steps-navigation .ant-steps-item {\n overflow: visible;\n text-align: center;\n}\n.ant-steps-navigation .ant-steps-item-container {\n display: inline-block;\n height: 100%;\n margin-left: -16px;\n padding-bottom: 12px;\n text-align: left;\n transition: opacity 0.3s;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-content {\n max-width: auto;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title {\n max-width: 100%;\n padding-right: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title::after {\n display: none;\n}\n.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role='button'] {\n cursor: pointer;\n}\n.ant-steps-navigation .ant-steps-item:not(.ant-steps-item-active) .ant-steps-item-container[role='button']:hover {\n opacity: 0.85;\n}\n.ant-steps-navigation .ant-steps-item:last-child {\n flex: 1;\n}\n.ant-steps-navigation .ant-steps-item:last-child::after {\n display: none;\n}\n.ant-steps-navigation .ant-steps-item::after {\n position: absolute;\n top: 50%;\n left: 100%;\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-top: -14px;\n margin-left: -2px;\n border: 1px solid rgba(0, 0, 0, 0.25);\n border-bottom: none;\n border-left: none;\n transform: rotate(45deg);\n content: '';\n}\n.ant-steps-navigation .ant-steps-item::before {\n position: absolute;\n bottom: 0;\n left: 50%;\n display: inline-block;\n width: 0;\n height: 2px;\n background-color: #5b5ce1;\n transition: width 0.3s, left 0.3s;\n transition-timing-function: ease-out;\n content: '';\n}\n.ant-steps-navigation .ant-steps-item.ant-steps-item-active::before {\n left: 0;\n width: 100%;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item {\n margin-right: 0 !important;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item::before {\n display: none;\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item.ant-steps-item-active::before {\n top: 0;\n right: 0;\n left: unset;\n display: block;\n width: 3px;\n height: calc(100% - 24px);\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item::after {\n position: relative;\n top: -2px;\n left: 50%;\n display: block;\n width: 8px;\n height: 8px;\n margin-bottom: 8px;\n text-align: center;\n transform: rotate(135deg);\n}\n.ant-steps-navigation.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n visibility: hidden;\n}\n.ant-steps-rtl {\n direction: rtl;\n}\n.ant-steps.ant-steps-rtl .ant-steps-item-icon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-steps-rtl .ant-steps-item-tail {\n right: 0;\n left: auto;\n}\n.ant-steps-rtl .ant-steps-item-title {\n padding-right: 0;\n padding-left: 16px;\n}\n.ant-steps-rtl .ant-steps-item-title::after {\n right: 100%;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-right: 16px;\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-right: 0;\n}\n.ant-steps-rtl.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon {\n right: 0.5px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-navigation.ant-steps-small .ant-steps-item-container {\n margin-right: -12px;\n margin-left: 0;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container {\n margin-right: -16px;\n margin-left: 0;\n text-align: right;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item-container .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-navigation .ant-steps-item::after {\n right: 100%;\n left: auto;\n margin-right: -2px;\n margin-left: 0;\n transform: rotate(225deg);\n}\n.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item {\n padding-right: 12px;\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-small.ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:first-child {\n padding-right: 0;\n}\n.ant-steps-rtl.ant-steps-small .ant-steps-item-title {\n padding-right: 0;\n padding-left: 12px;\n}\n.ant-steps-rtl.ant-steps-vertical > .ant-steps-item .ant-steps-item-icon {\n float: right;\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-steps-rtl.ant-steps-vertical > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n right: 16px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-small .ant-steps-item-container .ant-steps-item-tail {\n right: 12px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-label-vertical .ant-steps-item-title {\n padding-left: 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail {\n margin: 0 70px 0 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-tail::after,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-tail::after {\n margin-right: 12px;\n margin-left: 0;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item:first-child .ant-steps-icon-dot {\n right: 2px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon {\n margin-right: 67px;\n margin-left: 0;\n}\n.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n /* expand hover area */\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot {\n float: right;\n}\n.ant-steps-rtl.ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot::after,\n.ant-steps-rtl.ant-steps-dot.ant-steps-small .ant-steps-item-icon .ant-steps-icon-dot::after {\n right: -26px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-right: 0;\n margin-left: 16px;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n right: -9px;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot {\n right: 0;\n left: auto;\n}\n.ant-steps-rtl.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n right: -2px;\n left: auto;\n}\n.ant-steps-with-progress .ant-steps-item {\n padding-top: 4px;\n}\n.ant-steps-with-progress .ant-steps-item .ant-steps-item-tail {\n top: 4px !important;\n}\n.ant-steps-with-progress.ant-steps-horizontal .ant-steps-item:first-child {\n padding-left: 4px;\n}\n.ant-steps-with-progress .ant-steps-item-icon {\n position: relative;\n}\n.ant-steps-with-progress .ant-steps-item-icon .ant-progress {\n position: absolute;\n top: -5px;\n right: -5px;\n bottom: -5px;\n left: -5px;\n}\n.ant-switch {\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n min-width: 44px;\n height: 22px;\n line-height: 22px;\n vertical-align: middle;\n background-color: rgba(0, 0, 0, 0.25);\n border: 0;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.ant-switch:focus {\n outline: 0;\n box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);\n}\n.ant-switch-checked:focus {\n box-shadow: 0 0 0 2px rgba(91, 92, 225, 0.2);\n}\n.ant-switch:focus:hover {\n box-shadow: none;\n}\n.ant-switch-checked {\n background-color: #5b5ce1;\n}\n.ant-switch-loading,\n.ant-switch-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n}\n.ant-switch-loading *,\n.ant-switch-disabled * {\n box-shadow: none;\n cursor: not-allowed;\n}\n.ant-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n color: #fff;\n font-size: 12px;\n transition: margin 0.2s;\n}\n.ant-switch-checked .ant-switch-inner {\n margin: 0 25px 0 7px;\n}\n.ant-switch-handle {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 18px;\n height: 18px;\n transition: all 0.2s ease-in-out;\n}\n.ant-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #fff;\n border-radius: 9px;\n box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);\n transition: all 0.2s ease-in-out;\n content: '';\n}\n.ant-switch-checked .ant-switch-handle {\n left: calc(100% - 18px - 2px);\n}\n.ant-switch:not(.ant-switch-disabled):active .ant-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.ant-switch:not(.ant-switch-disabled):active.ant-switch-checked .ant-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.ant-switch-loading-icon {\n position: relative;\n top: 2px;\n color: rgba(0, 0, 0, 0.65);\n vertical-align: top;\n}\n.ant-switch-checked .ant-switch-loading-icon {\n color: #5b5ce1;\n}\n.ant-switch-small {\n min-width: 28px;\n height: 16px;\n line-height: 16px;\n}\n.ant-switch-small .ant-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 12px;\n}\n.ant-switch-small .ant-switch-handle {\n width: 12px;\n height: 12px;\n}\n.ant-switch-small .ant-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.ant-switch-small.ant-switch-checked .ant-switch-inner {\n margin: 0 18px 0 5px;\n}\n.ant-switch-small.ant-switch-checked .ant-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n.ant-switch-rtl {\n direction: rtl;\n}\n.ant-switch-rtl .ant-switch-inner {\n margin: 0 25px 0 7px;\n}\n.ant-switch-rtl .ant-switch-handle {\n right: 2px;\n left: auto;\n}\n.ant-switch-rtl:not(.ant-switch-rtl-disabled):active .ant-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.ant-switch-rtl:not(.ant-switch-rtl-disabled):active.ant-switch-checked .ant-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.ant-switch-rtl.ant-switch-checked .ant-switch-inner {\n margin: 0 7px 0 25px;\n}\n.ant-switch-rtl.ant-switch-checked .ant-switch-handle {\n right: calc(100% - 18px - 2px);\n}\n.ant-switch-rtl.ant-switch-small.ant-switch-checked .ant-switch-handle {\n right: calc(100% - 12px - 2px);\n}\n.ant-table.ant-table-middle {\n font-size: 14px;\n}\n.ant-table.ant-table-middle .ant-table-title,\n.ant-table.ant-table-middle .ant-table-footer,\n.ant-table.ant-table-middle .ant-table-thead > tr > th,\n.ant-table.ant-table-middle .ant-table-tbody > tr > td,\n.ant-table.ant-table-middle tfoot > tr > th,\n.ant-table.ant-table-middle tfoot > tr > td {\n padding: 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column {\n margin: -12px -8px;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-filter-column-title {\n padding: 12px 2.3em 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-thead .ant-table-column-sorters {\n padding: 12px 8px;\n}\n.ant-table.ant-table-middle .ant-table-expanded-row-fixed {\n margin: -12px -8px;\n}\n.ant-table.ant-table-middle .ant-table-tbody .ant-table-wrapper:only-child .ant-table {\n margin: -12px -8px -12px 25px;\n}\n.ant-table.ant-table-small {\n font-size: 14px;\n}\n.ant-table.ant-table-small .ant-table-title,\n.ant-table.ant-table-small .ant-table-footer,\n.ant-table.ant-table-small .ant-table-thead > tr > th,\n.ant-table.ant-table-small .ant-table-tbody > tr > td,\n.ant-table.ant-table-small tfoot > tr > th,\n.ant-table.ant-table-small tfoot > tr > td {\n padding: 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column {\n margin: -8px -8px;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-filter-column-title {\n padding: 8px 2.3em 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters {\n padding: 8px 8px;\n}\n.ant-table.ant-table-small .ant-table-expanded-row-fixed {\n margin: -8px -8px;\n}\n.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table {\n margin: -8px -8px -8px 25px;\n}\n.ant-table-small .ant-table-thead > tr > th {\n background-color: #fafafa;\n}\n.ant-table-small .ant-table-selection-column {\n width: 46px;\n min-width: 46px;\n}\n.ant-table.ant-table-bordered > .ant-table-title {\n border: 1px solid #f0f0f0;\n border-bottom: 0;\n}\n.ant-table.ant-table-bordered > .ant-table-container {\n border: 1px solid #f0f0f0;\n border-right: 0;\n border-bottom: 0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > td,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > td {\n border-right: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr:not(:last-child) > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr:not(:last-child) > th,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr:not(:last-child) > th {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > thead > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tfoot > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tfoot > tr > .ant-table-cell-fix-right-first::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tfoot > tr > .ant-table-cell-fix-right-first::after {\n border-right: 1px solid #f0f0f0;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -16px -17px;\n}\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table > tbody > tr > td > .ant-table-expanded-row-fixed::after,\n.ant-table.ant-table-bordered > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed::after {\n position: absolute;\n top: 0;\n right: 1px;\n bottom: 0;\n border-right: 1px solid #f0f0f0;\n content: '';\n}\n.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td,\n.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {\n border-right: 0;\n}\n.ant-table.ant-table-bordered.ant-table-middle > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered.ant-table-middle > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -12px -9px;\n}\n.ant-table.ant-table-bordered.ant-table-small > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed,\n.ant-table.ant-table-bordered.ant-table-small > .ant-table-container > .ant-table-body > table > tbody > tr > td > .ant-table-expanded-row-fixed {\n margin: -8px -9px;\n}\n.ant-table.ant-table-bordered > .ant-table-footer {\n border: 1px solid #f0f0f0;\n border-top: 0;\n}\n.ant-table-cell .ant-table-container:first-child {\n border-top: 0;\n}\n.ant-table-cell-scrollbar {\n box-shadow: 0 1px 0 1px #fafafa;\n}\n.ant-table-wrapper {\n clear: both;\n max-width: 100%;\n}\n.ant-table-wrapper::before {\n display: table;\n content: '';\n}\n.ant-table-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-table-wrapper::before {\n display: table;\n content: '';\n}\n.ant-table-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-table {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n font-size: 14px;\n background: #fff;\n border-radius: 5px;\n}\n.ant-table table {\n width: 100%;\n text-align: left;\n border-radius: 5px 5px 0 0;\n border-collapse: separate;\n border-spacing: 0;\n}\n.ant-table-thead > tr > th,\n.ant-table-tbody > tr > td,\n.ant-table tfoot > tr > th,\n.ant-table tfoot > tr > td {\n position: relative;\n padding: 16px 16px;\n overflow-wrap: break-word;\n}\n.ant-table-cell-ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n word-break: keep-all;\n}\n.ant-table-cell-ellipsis.ant-table-cell-fix-left-last,\n.ant-table-cell-ellipsis.ant-table-cell-fix-right-first {\n overflow: visible;\n}\n.ant-table-cell-ellipsis.ant-table-cell-fix-left-last .ant-table-cell-content,\n.ant-table-cell-ellipsis.ant-table-cell-fix-right-first .ant-table-cell-content {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ant-table-title {\n padding: 16px 16px;\n}\n.ant-table-footer {\n padding: 16px 16px;\n color: rgba(0, 0, 0, 0.85);\n background: #fafafa;\n}\n.ant-table-thead > tr > th {\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n text-align: left;\n background: #fafafa;\n border-bottom: 1px solid #f0f0f0;\n transition: background 0.3s ease;\n}\n.ant-table-thead > tr > th[colspan]:not([colspan='1']) {\n text-align: center;\n}\n.ant-table-thead > tr:not(:last-child) > th[colspan] {\n border-bottom: 0;\n}\n.ant-table-tbody > tr > td {\n border-bottom: 1px solid #f0f0f0;\n transition: background 0.3s;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table {\n margin: -16px -16px -16px 33px;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td {\n border-bottom: 0;\n}\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:first-child,\n.ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table-tbody > tr:last-child > td:last-child {\n border-radius: 0;\n}\n.ant-table-tbody > tr.ant-table-row:hover > td {\n background: #fafafa;\n}\n.ant-table-tbody > tr.ant-table-row-selected > td {\n background: #f0f2ff;\n border-color: rgba(0, 0, 0, 0.03);\n}\n.ant-table-tbody > tr.ant-table-row-selected:hover > td {\n background: #e6e9ff;\n}\n.ant-table tfoot > tr > th,\n.ant-table tfoot > tr > td {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-table-pagination.ant-pagination {\n margin: 16px 0;\n}\n.ant-table-pagination {\n display: flex;\n flex-wrap: wrap;\n row-gap: 8px;\n}\n.ant-table-pagination > * {\n flex: none;\n}\n.ant-table-pagination-left {\n justify-content: flex-start;\n}\n.ant-table-pagination-center {\n justify-content: center;\n}\n.ant-table-pagination-right {\n justify-content: flex-end;\n}\n.ant-table-thead th.ant-table-column-has-sorters {\n padding: 0;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-table-thead th.ant-table-column-has-sorters:hover {\n background: #f2f2f2;\n}\n.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container {\n background: #f7f7f7;\n}\n.ant-table-thead th.ant-table-column-sort {\n background: #f5f5f5;\n}\ntd.ant-table-column-sort {\n background: #fafafa;\n}\n.ant-table-column-sorters-with-tooltip {\n display: inline-block;\n width: 100%;\n}\n.ant-table-column-sorters {\n display: inline-flex;\n align-items: center;\n padding: 16px 16px;\n}\n.ant-table-column-sorter {\n margin-top: 0.15em;\n margin-bottom: -0.15em;\n margin-left: 8px;\n color: #bfbfbf;\n}\n.ant-table-column-sorter-full {\n margin-top: -0.2em;\n margin-bottom: 0;\n}\n.ant-table-column-sorter-inner {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.ant-table-column-sorter-up,\n.ant-table-column-sorter-down {\n font-size: 11px;\n}\n.ant-table-column-sorter-up.active,\n.ant-table-column-sorter-down.active {\n color: #5b5ce1;\n}\n.ant-table-column-sorter-up + .ant-table-column-sorter-down {\n margin-top: -0.3em;\n}\n.ant-table-filter-column {\n display: flex;\n align-items: center;\n margin: -16px -16px;\n}\n.ant-table-filter-column-title {\n flex: auto;\n padding: 16px 2.3em 16px 16px;\n}\n.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column {\n margin: 0;\n}\n.ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {\n padding: 0 2.3em 0 0;\n}\n.ant-table-filter-trigger-container {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex: none;\n align-items: stretch;\n align-self: stretch;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n.ant-table-filter-trigger-container-open,\n.ant-table-filter-trigger-container:hover,\n.ant-table-thead th.ant-table-column-has-sorters:hover .ant-table-filter-trigger-container:hover {\n background: #e5e5e5;\n}\n.ant-table-filter-trigger {\n display: block;\n width: 2.3em;\n color: #bfbfbf;\n font-size: 12px;\n transition: color 0.3s;\n}\n.ant-table-filter-trigger .anticon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ant-table-filter-trigger-container-open .ant-table-filter-trigger,\n.ant-table-filter-trigger:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-table-filter-trigger.active {\n color: #5b5ce1;\n}\n.ant-table-filter-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n min-width: 120px;\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-table-filter-dropdown .ant-dropdown-menu {\n max-height: 264px;\n overflow-x: hidden;\n border: 0;\n box-shadow: none;\n}\n.ant-table-filter-dropdown-submenu > ul {\n max-height: calc(100vh - 130px);\n overflow-x: hidden;\n overflow-y: auto;\n}\n.ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {\n padding-left: 8px;\n}\n.ant-table-filter-dropdown-btns {\n display: flex;\n justify-content: space-between;\n padding: 7px 8px 7px 3px;\n overflow: hidden;\n background-color: inherit;\n border-top: 1px solid #f0f0f0;\n}\n.ant-table-selection-col {\n width: 32px;\n}\n.ant-table-bordered .ant-table-selection-col {\n width: 50px;\n}\ntable tr th.ant-table-selection-column,\ntable tr td.ant-table-selection-column {\n padding-right: 8px;\n padding-left: 8px;\n text-align: center;\n}\ntable tr th.ant-table-selection-column .ant-radio-wrapper,\ntable tr td.ant-table-selection-column .ant-radio-wrapper {\n margin-right: 0;\n}\n.ant-table-selection {\n position: relative;\n display: inline-flex;\n flex-direction: column;\n}\n.ant-table-selection-extra {\n position: absolute;\n top: 0;\n z-index: 1;\n cursor: pointer;\n transition: all 0.3s;\n margin-inline-start: 100%;\n padding-inline-start: 4px;\n}\n.ant-table-selection-extra .anticon {\n color: #bfbfbf;\n font-size: 10px;\n}\n.ant-table-selection-extra .anticon:hover {\n color: #a6a6a6;\n}\n.ant-table-expand-icon-col {\n width: 48px;\n}\n.ant-table-row-expand-icon-cell {\n text-align: center;\n}\n.ant-table-row-indent {\n float: left;\n height: 1px;\n}\n.ant-table-row-expand-icon {\n color: #5b5ce1;\n text-decoration: none;\n cursor: pointer;\n transition: color 0.3s;\n position: relative;\n display: inline-flex;\n float: left;\n box-sizing: border-box;\n width: 17px;\n height: 17px;\n padding: 0;\n color: inherit;\n line-height: 17px;\n background: #fff;\n border: 1px solid #f0f0f0;\n border-radius: 5px;\n outline: none;\n transform: scale(0.94117647);\n transform-origin: bottom;\n transition: all 0.3s;\n user-select: none;\n}\n.ant-table-row-expand-icon:focus,\n.ant-table-row-expand-icon:hover {\n color: #8588ed;\n}\n.ant-table-row-expand-icon:active {\n color: #4541ba;\n}\n.ant-table-row-expand-icon:focus,\n.ant-table-row-expand-icon:hover,\n.ant-table-row-expand-icon:active {\n border-color: currentColor;\n}\n.ant-table-row-expand-icon::before,\n.ant-table-row-expand-icon::after {\n position: absolute;\n background: currentColor;\n transition: transform 0.3s ease-out;\n content: '';\n}\n.ant-table-row-expand-icon::before {\n top: 7px;\n right: 3px;\n left: 3px;\n height: 1px;\n}\n.ant-table-row-expand-icon::after {\n top: 3px;\n bottom: 3px;\n left: 7px;\n width: 1px;\n transform: rotate(90deg);\n}\n.ant-table-row-expand-icon-collapsed::before {\n transform: rotate(-180deg);\n}\n.ant-table-row-expand-icon-collapsed::after {\n transform: rotate(0deg);\n}\n.ant-table-row-expand-icon-spaced {\n background: transparent;\n border: 0;\n visibility: hidden;\n}\n.ant-table-row-expand-icon-spaced::before,\n.ant-table-row-expand-icon-spaced::after {\n display: none;\n content: none;\n}\n.ant-table-row-indent + .ant-table-row-expand-icon {\n margin-top: 2.5005px;\n margin-right: 8px;\n}\ntr.ant-table-expanded-row > td,\ntr.ant-table-expanded-row:hover > td {\n background: #fbfbfb;\n}\ntr.ant-table-expanded-row .ant-descriptions-view {\n display: flex;\n}\ntr.ant-table-expanded-row .ant-descriptions-view table {\n flex: auto;\n width: auto;\n}\n.ant-table .ant-table-expanded-row-fixed {\n position: relative;\n margin: -16px -16px;\n padding: 16px 16px;\n}\n.ant-table-tbody > tr.ant-table-placeholder {\n text-align: center;\n}\n.ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-table-tbody > tr.ant-table-placeholder:hover > td {\n background: #fff;\n}\n.ant-table-cell-fix-left,\n.ant-table-cell-fix-right {\n position: -webkit-sticky !important;\n position: sticky !important;\n z-index: 2;\n background: #fff;\n}\n.ant-table-cell-fix-left-first::after,\n.ant-table-cell-fix-left-last::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: -1px;\n width: 30px;\n transform: translateX(100%);\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table-cell-fix-right-first::after,\n.ant-table-cell-fix-right-last::after {\n position: absolute;\n top: 0;\n bottom: -1px;\n left: 0;\n width: 30px;\n transform: translateX(-100%);\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table .ant-table-container::before,\n.ant-table .ant-table-container::after {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n width: 30px;\n transition: box-shadow 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-table .ant-table-container::before {\n left: 0;\n}\n.ant-table .ant-table-container::after {\n right: 0;\n}\n.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container {\n position: relative;\n}\n.ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container::before {\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-left .ant-table-cell-fix-left-first::after,\n.ant-table-ping-left .ant-table-cell-fix-left-last::after {\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container {\n position: relative;\n}\n.ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after {\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-ping-right .ant-table-cell-fix-right-first::after,\n.ant-table-ping-right .ant-table-cell-fix-right-last::after {\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);\n}\n.ant-table-sticky-header {\n position: sticky;\n z-index: calc(2 + 1);\n}\n.ant-table-sticky-scroll {\n position: sticky;\n bottom: 0;\n z-index: calc(2 + 1);\n display: flex;\n align-items: center;\n background: #ffffff;\n border-top: 1px solid #f0f0f0;\n opacity: 0.6;\n}\n.ant-table-sticky-scroll:hover {\n transform-origin: center bottom;\n}\n.ant-table-sticky-scroll-bar {\n height: 8px;\n background-color: rgba(0, 0, 0, 0.35);\n border-radius: 4px;\n}\n.ant-table-sticky-scroll-bar:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n.ant-table-sticky-scroll-bar-active {\n background-color: rgba(0, 0, 0, 0.8);\n}\n@media all and (-ms-high-contrast: none) {\n .ant-table-ping-left .ant-table-cell-fix-left-last::after {\n box-shadow: none !important;\n }\n .ant-table-ping-right .ant-table-cell-fix-right-first::after {\n box-shadow: none !important;\n }\n}\n.ant-table {\n /* title + table */\n /* table */\n /* table + footer */\n}\n.ant-table-title {\n border-radius: 5px 5px 0 0;\n}\n.ant-table-title + .ant-table-container {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {\n border-radius: 0;\n}\n.ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {\n border-radius: 0;\n}\n.ant-table-container {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n}\n.ant-table-container table > thead > tr:first-child th:first-child {\n border-top-left-radius: 5px;\n}\n.ant-table-container table > thead > tr:first-child th:last-child {\n border-top-right-radius: 5px;\n}\n.ant-table-footer {\n border-radius: 0 0 5px 5px;\n}\n.ant-table-wrapper-rtl {\n direction: rtl;\n}\n.ant-table-rtl {\n direction: rtl;\n}\n.ant-table-wrapper-rtl .ant-table table {\n text-align: right;\n}\n.ant-table-wrapper-rtl .ant-table-thead > tr > th[colspan]:not([colspan='1']) {\n text-align: center;\n}\n.ant-table-wrapper-rtl .ant-table-thead > tr > th {\n text-align: right;\n}\n.ant-table-tbody > tr .ant-table-wrapper:only-child .ant-table.ant-table-rtl {\n margin: -16px 33px -16px -16px;\n}\n.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-left {\n justify-content: flex-end;\n}\n.ant-table-wrapper.ant-table-wrapper-rtl .ant-table-pagination-right {\n justify-content: flex-start;\n}\n.ant-table-wrapper-rtl .ant-table-column-sorter {\n margin-right: 8px;\n margin-left: 0;\n}\n.ant-table-wrapper-rtl .ant-table-filter-column-title {\n padding: 16px 16px 16px 2.3em;\n}\n.ant-table-rtl .ant-table-thead tr th.ant-table-column-has-sorters .ant-table-filter-column-title {\n padding: 0 0 0 2.3em;\n}\n.ant-table-wrapper-rtl .ant-table-filter-trigger-container {\n right: auto;\n left: 0;\n}\n.ant-dropdown-rtl .ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-dropdown-rtl .ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span,\n.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown .ant-checkbox-wrapper + span,\n.ant-dropdown-menu-submenu-rtl.ant-table-filter-dropdown-submenu .ant-checkbox-wrapper + span {\n padding-right: 8px;\n padding-left: 0;\n}\n.ant-table-wrapper-rtl .ant-table-selection {\n text-align: center;\n}\n.ant-table-wrapper-rtl .ant-table-row-indent {\n float: right;\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon {\n float: right;\n}\n.ant-table-wrapper-rtl .ant-table-row-indent + .ant-table-row-expand-icon {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon::after {\n transform: rotate(-90deg);\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed::before {\n transform: rotate(180deg);\n}\n.ant-table-wrapper-rtl .ant-table-row-expand-icon-collapsed::after {\n transform: rotate(0deg);\n}\n.ant-tabs-small > .ant-tabs-nav .ant-tabs-tab {\n padding: 8px 0;\n font-size: 14px;\n}\n.ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {\n padding: 16px 0;\n font-size: 16px;\n}\n.ant-tabs-card.ant-tabs-small > .ant-tabs-nav .ant-tabs-tab {\n padding: 6px 16px;\n}\n.ant-tabs-card.ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {\n padding: 7px 16px 6px;\n}\n.ant-tabs-rtl {\n direction: rtl;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab {\n margin: 0 0 0 32px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab:last-of-type {\n margin-left: 0;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .anticon {\n margin-right: 0;\n margin-left: 12px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove {\n margin-right: 8px;\n margin-left: -4px;\n}\n.ant-tabs-rtl .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-remove .anticon {\n margin: 0;\n}\n.ant-tabs-rtl.ant-tabs-left > .ant-tabs-nav {\n order: 1;\n}\n.ant-tabs-rtl.ant-tabs-left > .ant-tabs-content-holder {\n order: 0;\n}\n.ant-tabs-rtl.ant-tabs-right > .ant-tabs-nav {\n order: 0;\n}\n.ant-tabs-rtl.ant-tabs-right > .ant-tabs-content-holder {\n order: 1;\n}\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-rtl.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-right: 0;\n margin-left: 2px;\n}\n.ant-tabs-dropdown-rtl {\n direction: rtl;\n}\n.ant-tabs-dropdown-rtl .ant-tabs-dropdown-menu-item {\n text-align: right;\n}\n.ant-tabs-top,\n.ant-tabs-bottom {\n flex-direction: column;\n}\n.ant-tabs-top > .ant-tabs-nav,\n.ant-tabs-bottom > .ant-tabs-nav,\n.ant-tabs-top > div > .ant-tabs-nav,\n.ant-tabs-bottom > div > .ant-tabs-nav {\n margin: 0 0 16px 0;\n}\n.ant-tabs-top > .ant-tabs-nav::before,\n.ant-tabs-bottom > .ant-tabs-nav::before,\n.ant-tabs-top > div > .ant-tabs-nav::before,\n.ant-tabs-bottom > div > .ant-tabs-nav::before {\n position: absolute;\n right: 0;\n left: 0;\n border-bottom: 1px solid #f0f0f0;\n content: '';\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar {\n height: 2px;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar-animated {\n transition: width 0.3s, left 0.3s, right 0.3s;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n top: 0;\n bottom: 0;\n width: 30px;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {\n left: 0;\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n right: 0;\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-left::before {\n opacity: 1;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-right::after {\n opacity: 1;\n}\n.ant-tabs-top > .ant-tabs-nav::before,\n.ant-tabs-top > div > .ant-tabs-nav::before {\n bottom: 0;\n}\n.ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-ink-bar {\n bottom: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav,\n.ant-tabs-bottom > div > .ant-tabs-nav {\n order: 1;\n margin-top: 16px;\n margin-bottom: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav::before,\n.ant-tabs-bottom > div > .ant-tabs-nav::before {\n top: 0;\n}\n.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-ink-bar {\n top: 0;\n}\n.ant-tabs-bottom > .ant-tabs-content-holder,\n.ant-tabs-bottom > div > .ant-tabs-content-holder {\n order: 0;\n}\n.ant-tabs-left > .ant-tabs-nav,\n.ant-tabs-right > .ant-tabs-nav,\n.ant-tabs-left > div > .ant-tabs-nav,\n.ant-tabs-right > div > .ant-tabs-nav {\n flex-direction: column;\n min-width: 50px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab {\n padding: 8px 24px;\n text-align: center;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin: 16px 0 0 0;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap {\n flex-direction: column;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n right: 0;\n left: 0;\n height: 30px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::before {\n top: 0;\n box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n bottom: 0;\n box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08);\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-top::before {\n opacity: 1;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-wrap.ant-tabs-nav-wrap-ping-bottom::after {\n opacity: 1;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar {\n width: 2px;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar-animated,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar-animated {\n transition: height 0.3s, top 0.3s;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-nav-operations {\n flex: 1 0 auto;\n flex-direction: column;\n}\n.ant-tabs-left > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-ink-bar {\n right: 0;\n}\n.ant-tabs-left > .ant-tabs-content-holder,\n.ant-tabs-left > div > .ant-tabs-content-holder {\n margin-left: -1px;\n border-left: 1px solid #f0f0f0;\n}\n.ant-tabs-left > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane,\n.ant-tabs-left > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-left: 24px;\n}\n.ant-tabs-right > .ant-tabs-nav,\n.ant-tabs-right > div > .ant-tabs-nav {\n order: 1;\n}\n.ant-tabs-right > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-ink-bar {\n left: 0;\n}\n.ant-tabs-right > .ant-tabs-content-holder,\n.ant-tabs-right > div > .ant-tabs-content-holder {\n order: 0;\n margin-right: -1px;\n border-right: 1px solid #f0f0f0;\n}\n.ant-tabs-right > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane,\n.ant-tabs-right > div > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-right: 24px;\n}\n.ant-tabs-dropdown {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n top: -9999px;\n left: -9999px;\n z-index: 1050;\n display: block;\n}\n.ant-tabs-dropdown-hidden {\n display: none;\n}\n.ant-tabs-dropdown-menu {\n max-height: 200px;\n margin: 0;\n padding: 4px 0;\n overflow-x: hidden;\n overflow-y: auto;\n text-align: left;\n list-style-type: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 5px;\n outline: none;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-tabs-dropdown-menu-item {\n min-width: 120px;\n margin: 0;\n padding: 5px 12px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n font-weight: normal;\n font-size: 14px;\n line-height: 22px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tabs-dropdown-menu-item:hover {\n background: #f5f5f5;\n}\n.ant-tabs-dropdown-menu-item-disabled,\n.ant-tabs-dropdown-menu-item-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n background: transparent;\n cursor: not-allowed;\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab {\n margin: 0;\n padding: 8px 16px;\n background: #fafafa;\n border: 1px solid #f0f0f0;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-tab-active {\n color: #5b5ce1;\n background: #fff;\n}\n.ant-tabs-card > .ant-tabs-nav .ant-tabs-ink-bar,\n.ant-tabs-card > div > .ant-tabs-nav .ant-tabs-ink-bar {\n visibility: hidden;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-left: 2px;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 5px 5px 0 0;\n}\n.ant-tabs-card.ant-tabs-top > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-top > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-bottom-color: #fff;\n}\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 0 0 5px 5px;\n}\n.ant-tabs-card.ant-tabs-bottom > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-bottom > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-top-color: #fff;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {\n margin-top: 2px;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 5px 0 0 5px;\n}\n.ant-tabs-card.ant-tabs-left > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-left > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-right-color: #fff;\n}\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab {\n border-radius: 0 5px 5px 0;\n}\n.ant-tabs-card.ant-tabs-right > .ant-tabs-nav .ant-tabs-tab-active,\n.ant-tabs-card.ant-tabs-right > div > .ant-tabs-nav .ant-tabs-tab-active {\n border-left-color: #fff;\n}\n.ant-tabs {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: flex;\n overflow: hidden;\n}\n.ant-tabs > .ant-tabs-nav,\n.ant-tabs > div > .ant-tabs-nav {\n position: relative;\n display: flex;\n flex: none;\n align-items: center;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap {\n position: relative;\n display: inline-block;\n display: flex;\n flex: auto;\n align-self: stretch;\n overflow: hidden;\n white-space: nowrap;\n transform: translate(0);\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap::before,\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap::after,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-wrap::after {\n position: absolute;\n z-index: 1;\n opacity: 0;\n transition: opacity 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-list,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-list {\n position: relative;\n display: flex;\n transition: transform 0.3s;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-operations,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-operations {\n display: flex;\n align-self: stretch;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-operations-hidden,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-operations-hidden {\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-more,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more {\n position: relative;\n padding: 8px 16px;\n background: transparent;\n border: 0;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-more::after,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-more::after {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 5px;\n transform: translateY(100%);\n content: '';\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add {\n min-width: 40px;\n padding: 0 8px;\n background: #fafafa;\n border: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n outline: none;\n cursor: pointer;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:hover,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:hover {\n color: #8588ed;\n}\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:active,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:active,\n.ant-tabs > .ant-tabs-nav .ant-tabs-nav-add:focus,\n.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-add:focus {\n color: #4541ba;\n}\n.ant-tabs-extra-content {\n flex: none;\n}\n.ant-tabs-centered > .ant-tabs-nav .ant-tabs-nav-wrap:not([class*='ant-tabs-nav-wrap-ping']),\n.ant-tabs-centered > div > .ant-tabs-nav .ant-tabs-nav-wrap:not([class*='ant-tabs-nav-wrap-ping']) {\n justify-content: center;\n}\n.ant-tabs-ink-bar {\n position: absolute;\n background: #5b5ce1;\n pointer-events: none;\n}\n.ant-tabs-tab {\n position: relative;\n display: inline-flex;\n align-items: center;\n padding: 12px 0;\n font-size: 14px;\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n}\n.ant-tabs-tab-btn:focus,\n.ant-tabs-tab-remove:focus,\n.ant-tabs-tab-btn:active,\n.ant-tabs-tab-remove:active {\n color: #4541ba;\n}\n.ant-tabs-tab-btn {\n outline: none;\n transition: all 0.3s;\n}\n.ant-tabs-tab-remove {\n flex: none;\n margin-right: -4px;\n margin-left: 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n background: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tabs-tab-remove:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tabs-tab:hover {\n color: #8588ed;\n}\n.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #5b5ce1;\n text-shadow: 0 0 0.25px currentColor;\n}\n.ant-tabs-tab.ant-tabs-tab-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:focus,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:focus,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn:active,\n.ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-remove:active {\n color: rgba(0, 0, 0, 0.25);\n}\n.ant-tabs-tab .ant-tabs-tab-remove .anticon {\n margin: 0;\n}\n.ant-tabs-tab .anticon {\n margin-right: 12px;\n}\n.ant-tabs-tab + .ant-tabs-tab {\n margin: 0 0 0 32px;\n}\n.ant-tabs-content {\n display: flex;\n width: 100%;\n}\n.ant-tabs-content-holder {\n flex: auto;\n min-width: 0;\n min-height: 0;\n}\n.ant-tabs-content-animated {\n transition: margin 0.3s;\n}\n.ant-tabs-tabpane {\n flex: none;\n width: 100%;\n outline: none;\n}\n.ant-tag {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n height: auto;\n margin-right: 8px;\n padding: 0 7px;\n font-size: 12px;\n line-height: 20px;\n white-space: nowrap;\n background: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n opacity: 1;\n transition: all 0.3s;\n}\n.ant-tag,\n.ant-tag a,\n.ant-tag a:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tag > a:first-child:last-child {\n display: inline-block;\n margin: 0 -8px;\n padding: 0 8px;\n}\n.ant-tag-close-icon {\n margin-left: 3px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-tag-close-icon:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-tag-has-color {\n border-color: transparent;\n}\n.ant-tag-has-color,\n.ant-tag-has-color a,\n.ant-tag-has-color a:hover,\n.ant-tag-has-color .anticon-close,\n.ant-tag-has-color .anticon-close:hover {\n color: #fff;\n}\n.ant-tag-checkable {\n background-color: transparent;\n border-color: transparent;\n cursor: pointer;\n}\n.ant-tag-checkable:not(.ant-tag-checkable-checked):hover {\n color: #5b5ce1;\n}\n.ant-tag-checkable:active,\n.ant-tag-checkable-checked {\n color: #fff;\n}\n.ant-tag-checkable-checked {\n background-color: #5b5ce1;\n}\n.ant-tag-checkable:active {\n background-color: #4541ba;\n}\n.ant-tag-hidden {\n display: none;\n}\n.ant-tag-pink {\n color: #c41d7f;\n background: #fff0f6;\n border-color: #ffadd2;\n}\n.ant-tag-pink-inverse {\n color: #fff;\n background: #eb2f96;\n border-color: #eb2f96;\n}\n.ant-tag-magenta {\n color: #c41d7f;\n background: #fff0f6;\n border-color: #ffadd2;\n}\n.ant-tag-magenta-inverse {\n color: #fff;\n background: #eb2f96;\n border-color: #eb2f96;\n}\n.ant-tag-red {\n color: #cf1322;\n background: #fff1f0;\n border-color: #ffa39e;\n}\n.ant-tag-red-inverse {\n color: #fff;\n background: #f5222d;\n border-color: #f5222d;\n}\n.ant-tag-volcano {\n color: #d4380d;\n background: #fff2e8;\n border-color: #ffbb96;\n}\n.ant-tag-volcano-inverse {\n color: #fff;\n background: #fa541c;\n border-color: #fa541c;\n}\n.ant-tag-orange {\n color: #d46b08;\n background: #fff7e6;\n border-color: #ffd591;\n}\n.ant-tag-orange-inverse {\n color: #fff;\n background: #fa8c16;\n border-color: #fa8c16;\n}\n.ant-tag-yellow {\n color: #d4b106;\n background: #feffe6;\n border-color: #fffb8f;\n}\n.ant-tag-yellow-inverse {\n color: #fff;\n background: #fadb14;\n border-color: #fadb14;\n}\n.ant-tag-gold {\n color: #d48806;\n background: #fffbe6;\n border-color: #ffe58f;\n}\n.ant-tag-gold-inverse {\n color: #fff;\n background: #faad14;\n border-color: #faad14;\n}\n.ant-tag-cyan {\n color: #08979c;\n background: #e6fffb;\n border-color: #87e8de;\n}\n.ant-tag-cyan-inverse {\n color: #fff;\n background: #13c2c2;\n border-color: #13c2c2;\n}\n.ant-tag-lime {\n color: #7cb305;\n background: #fcffe6;\n border-color: #eaff8f;\n}\n.ant-tag-lime-inverse {\n color: #fff;\n background: #a0d911;\n border-color: #a0d911;\n}\n.ant-tag-green {\n color: #389e0d;\n background: #f6ffed;\n border-color: #b7eb8f;\n}\n.ant-tag-green-inverse {\n color: #fff;\n background: #52c41a;\n border-color: #52c41a;\n}\n.ant-tag-blue {\n color: #096dd9;\n background: #e6f7ff;\n border-color: #91d5ff;\n}\n.ant-tag-blue-inverse {\n color: #fff;\n background: #1890ff;\n border-color: #1890ff;\n}\n.ant-tag-geekblue {\n color: #1d39c4;\n background: #f0f5ff;\n border-color: #adc6ff;\n}\n.ant-tag-geekblue-inverse {\n color: #fff;\n background: #2f54eb;\n border-color: #2f54eb;\n}\n.ant-tag-purple {\n color: #531dab;\n background: #f9f0ff;\n border-color: #d3adf7;\n}\n.ant-tag-purple-inverse {\n color: #fff;\n background: #722ed1;\n border-color: #722ed1;\n}\n.ant-tag-success {\n color: #52c41a;\n background: #f6ffed;\n border-color: #b7eb8f;\n}\n.ant-tag-processing {\n color: #1890ff;\n background: #e6f7ff;\n border-color: #91d5ff;\n}\n.ant-tag-error {\n color: #f5222d;\n background: #fff1f0;\n border-color: #ffa39e;\n}\n.ant-tag-warning {\n color: #fa8c16;\n background: #fff7e6;\n border-color: #ffd591;\n}\n.ant-tag > .anticon + span,\n.ant-tag > span + .anticon {\n margin-left: 7px;\n}\n.ant-tag.ant-tag-rtl {\n margin-right: 0;\n margin-left: 8px;\n direction: rtl;\n text-align: right;\n}\n.ant-tag-rtl .ant-tag-close-icon {\n margin-right: 3px;\n margin-left: 0;\n}\n.ant-tag-rtl.ant-tag > .anticon + span,\n.ant-tag-rtl.ant-tag > span + .anticon {\n margin-right: 7px;\n margin-left: 0;\n}\n.ant-timeline {\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n font-feature-settings: 'tnum';\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-timeline-item {\n position: relative;\n margin: 0;\n padding-bottom: 20px;\n font-size: 14px;\n list-style: none;\n}\n.ant-timeline-item-tail {\n position: absolute;\n top: 10px;\n left: 4px;\n height: calc(100% - 10px);\n border-left: 2px solid #f0f0f0;\n}\n.ant-timeline-item-pending .ant-timeline-item-head {\n font-size: 12px;\n background-color: transparent;\n}\n.ant-timeline-item-pending .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline-item-head {\n position: absolute;\n width: 10px;\n height: 10px;\n background-color: #fff;\n border: 2px solid transparent;\n border-radius: 100px;\n}\n.ant-timeline-item-head-blue {\n color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-timeline-item-head-red {\n color: #ff4d4f;\n border-color: #ff4d4f;\n}\n.ant-timeline-item-head-green {\n color: #52c41a;\n border-color: #52c41a;\n}\n.ant-timeline-item-head-gray {\n color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-timeline-item-head-custom {\n position: absolute;\n top: 5.5px;\n left: 5px;\n width: auto;\n height: auto;\n margin-top: 0;\n padding: 3px 1px;\n line-height: 1;\n text-align: center;\n border: 0;\n border-radius: 0;\n transform: translate(-50%, -50%);\n}\n.ant-timeline-item-content {\n position: relative;\n top: -7.001px;\n margin: 0 0 0 26px;\n word-break: break-word;\n}\n.ant-timeline-item-last > .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline-item-last > .ant-timeline-item-content {\n min-height: 48px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-right .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-label .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head,\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n left: 50%;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head {\n margin-left: -4px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n margin-left: 1px;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {\n left: calc(50% - 4px);\n width: calc(50% - 14px);\n text-align: left;\n}\n.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content {\n width: calc(50% - 12px);\n margin: 0;\n text-align: right;\n}\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom {\n left: calc(100% - 4px - 2px);\n}\n.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content {\n width: calc(100% - 18px);\n}\n.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {\n display: block;\n height: calc(100% - 14px);\n border-left: 2px dotted #f0f0f0;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-last .ant-timeline-item-tail {\n display: none;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {\n top: 15px;\n display: block;\n height: calc(100% - 15px);\n border-left: 2px dotted #f0f0f0;\n}\n.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-content {\n min-height: 48px;\n}\n.ant-timeline.ant-timeline-label .ant-timeline-item-label {\n position: absolute;\n top: -7.001px;\n width: calc(50% - 12px);\n text-align: right;\n}\n.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label {\n left: calc(50% + 14px);\n width: calc(50% - 14px);\n text-align: left;\n}\n.ant-timeline-rtl {\n direction: rtl;\n}\n.ant-timeline-rtl .ant-timeline-item-tail {\n right: 4px;\n left: auto;\n border-right: 2px solid #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl .ant-timeline-item-head-custom {\n right: 5px;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-timeline-rtl .ant-timeline-item-content {\n margin: 0 18px 0 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n right: 50%;\n left: auto;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head {\n margin-right: -4px;\n margin-left: 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-head-custom,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-head-custom {\n margin-right: 1px;\n margin-left: 0;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-left .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-left .ant-timeline-item-content {\n right: calc(50% - 4px);\n left: auto;\n text-align: right;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-alternate .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content,\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-content {\n text-align: left;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-tail,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head,\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-head-custom {\n right: 0;\n left: auto;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-right .ant-timeline-item-right .ant-timeline-item-content {\n width: 100%;\n margin-right: 18px;\n text-align: right;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-pending .ant-timeline-item-last .ant-timeline-item-tail {\n border-right: 2px dotted #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-reverse .ant-timeline-item-pending .ant-timeline-item-tail {\n border-right: 2px dotted #f0f0f0;\n border-left: none;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-label {\n text-align: left;\n}\n.ant-timeline-rtl.ant-timeline.ant-timeline-label .ant-timeline-item-right .ant-timeline-item-label {\n right: calc(50% + 14px);\n text-align: right;\n}\n.ant-tooltip {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: absolute;\n z-index: 1070;\n display: block;\n max-width: 250px;\n visibility: visible;\n}\n.ant-tooltip-hidden {\n display: none;\n}\n.ant-tooltip-placement-top,\n.ant-tooltip-placement-topLeft,\n.ant-tooltip-placement-topRight {\n padding-bottom: 8px;\n}\n.ant-tooltip-placement-right,\n.ant-tooltip-placement-rightTop,\n.ant-tooltip-placement-rightBottom {\n padding-left: 8px;\n}\n.ant-tooltip-placement-bottom,\n.ant-tooltip-placement-bottomLeft,\n.ant-tooltip-placement-bottomRight {\n padding-top: 8px;\n}\n.ant-tooltip-placement-left,\n.ant-tooltip-placement-leftTop,\n.ant-tooltip-placement-leftBottom {\n padding-right: 8px;\n}\n.ant-tooltip-inner {\n min-width: 30px;\n min-height: 32px;\n padding: 6px 8px;\n color: #fff;\n text-align: left;\n text-decoration: none;\n word-wrap: break-word;\n background-color: rgba(0, 0, 0, 0.75);\n border-radius: 5px;\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n}\n.ant-tooltip-arrow {\n position: absolute;\n display: block;\n width: 13.07106781px;\n height: 13.07106781px;\n overflow: hidden;\n background: transparent;\n pointer-events: none;\n}\n.ant-tooltip-arrow-content {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 5px;\n height: 5px;\n margin: auto;\n background-color: rgba(0, 0, 0, 0.75);\n content: '';\n pointer-events: auto;\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow,\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow,\n.ant-tooltip-placement-topRight .ant-tooltip-arrow {\n bottom: -5.07106781px;\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow-content,\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow-content,\n.ant-tooltip-placement-topRight .ant-tooltip-arrow-content {\n box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(-6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-top .ant-tooltip-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.ant-tooltip-placement-topLeft .ant-tooltip-arrow {\n left: 13px;\n}\n.ant-tooltip-placement-topRight .ant-tooltip-arrow {\n right: 13px;\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow,\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow,\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {\n left: -5.07106781px;\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow-content,\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow-content,\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {\n box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-right .ant-tooltip-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.ant-tooltip-placement-rightTop .ant-tooltip-arrow {\n top: 5px;\n}\n.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {\n bottom: 5px;\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow,\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow,\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {\n right: -5.07106781px;\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow-content,\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow-content,\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content {\n box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateX(-6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-left .ant-tooltip-arrow {\n top: 50%;\n transform: translateY(-50%);\n}\n.ant-tooltip-placement-leftTop .ant-tooltip-arrow {\n top: 5px;\n}\n.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {\n bottom: 5px;\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow,\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {\n top: -5.07106781px;\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow-content,\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content,\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content {\n box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);\n transform: translateY(6.53553391px) rotate(45deg);\n}\n.ant-tooltip-placement-bottom .ant-tooltip-arrow {\n left: 50%;\n transform: translateX(-50%);\n}\n.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow {\n left: 13px;\n}\n.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {\n right: 13px;\n}\n.ant-tooltip-pink .ant-tooltip-inner {\n background-color: #eb2f96;\n}\n.ant-tooltip-pink .ant-tooltip-arrow-content {\n background-color: #eb2f96;\n}\n.ant-tooltip-magenta .ant-tooltip-inner {\n background-color: #eb2f96;\n}\n.ant-tooltip-magenta .ant-tooltip-arrow-content {\n background-color: #eb2f96;\n}\n.ant-tooltip-red .ant-tooltip-inner {\n background-color: #f5222d;\n}\n.ant-tooltip-red .ant-tooltip-arrow-content {\n background-color: #f5222d;\n}\n.ant-tooltip-volcano .ant-tooltip-inner {\n background-color: #fa541c;\n}\n.ant-tooltip-volcano .ant-tooltip-arrow-content {\n background-color: #fa541c;\n}\n.ant-tooltip-orange .ant-tooltip-inner {\n background-color: #fa8c16;\n}\n.ant-tooltip-orange .ant-tooltip-arrow-content {\n background-color: #fa8c16;\n}\n.ant-tooltip-yellow .ant-tooltip-inner {\n background-color: #fadb14;\n}\n.ant-tooltip-yellow .ant-tooltip-arrow-content {\n background-color: #fadb14;\n}\n.ant-tooltip-gold .ant-tooltip-inner {\n background-color: #faad14;\n}\n.ant-tooltip-gold .ant-tooltip-arrow-content {\n background-color: #faad14;\n}\n.ant-tooltip-cyan .ant-tooltip-inner {\n background-color: #13c2c2;\n}\n.ant-tooltip-cyan .ant-tooltip-arrow-content {\n background-color: #13c2c2;\n}\n.ant-tooltip-lime .ant-tooltip-inner {\n background-color: #a0d911;\n}\n.ant-tooltip-lime .ant-tooltip-arrow-content {\n background-color: #a0d911;\n}\n.ant-tooltip-green .ant-tooltip-inner {\n background-color: #52c41a;\n}\n.ant-tooltip-green .ant-tooltip-arrow-content {\n background-color: #52c41a;\n}\n.ant-tooltip-blue .ant-tooltip-inner {\n background-color: #1890ff;\n}\n.ant-tooltip-blue .ant-tooltip-arrow-content {\n background-color: #1890ff;\n}\n.ant-tooltip-geekblue .ant-tooltip-inner {\n background-color: #2f54eb;\n}\n.ant-tooltip-geekblue .ant-tooltip-arrow-content {\n background-color: #2f54eb;\n}\n.ant-tooltip-purple .ant-tooltip-inner {\n background-color: #722ed1;\n}\n.ant-tooltip-purple .ant-tooltip-arrow-content {\n background-color: #722ed1;\n}\n.ant-tooltip-rtl {\n direction: rtl;\n}\n.ant-tooltip-rtl .ant-tooltip-inner {\n text-align: right;\n}\n.ant-transfer-customize-list .ant-transfer-list {\n flex: 1 1 50%;\n width: auto;\n height: auto;\n min-height: 200px;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small {\n border: 0;\n border-radius: 0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content > .ant-table-body > table > .ant-table-thead > tr > th {\n background: #fafafa;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small > .ant-table-content .ant-table-row:last-child td {\n border-bottom: 1px solid #f0f0f0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-body {\n margin: 0;\n}\n.ant-transfer-customize-list .ant-table-wrapper .ant-table-pagination.ant-pagination {\n margin: 16px 0 4px;\n}\n.ant-transfer-customize-list .ant-input[disabled] {\n background-color: transparent;\n}\n.ant-transfer {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: flex;\n align-items: stretch;\n}\n.ant-transfer-disabled .ant-transfer-list {\n background: #f5f5f5;\n}\n.ant-transfer-list {\n display: flex;\n flex-direction: column;\n width: 180px;\n height: 200px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-transfer-list-with-pagination {\n width: 250px;\n height: auto;\n}\n.ant-transfer-list-search {\n padding-right: 24px;\n padding-left: 8px;\n}\n.ant-transfer-list-search-action {\n position: absolute;\n top: 12px;\n right: 12px;\n bottom: 12px;\n width: 28px;\n color: rgba(0, 0, 0, 0.25);\n line-height: 32px;\n text-align: center;\n}\n.ant-transfer-list-search-action .anticon {\n color: rgba(0, 0, 0, 0.25);\n transition: all 0.3s;\n}\n.ant-transfer-list-search-action .anticon:hover {\n color: rgba(0, 0, 0, 0.45);\n}\nspan.ant-transfer-list-search-action {\n pointer-events: none;\n}\n.ant-transfer-list-header {\n display: flex;\n flex: none;\n align-items: center;\n height: 40px;\n padding: 8px 12px 9px;\n color: rgba(0, 0, 0, 0.85);\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n border-radius: 5px 5px 0 0;\n}\n.ant-transfer-list-header > *:not(:last-child) {\n margin-right: 4px;\n}\n.ant-transfer-list-header > * {\n flex: none;\n}\n.ant-transfer-list-header-title {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n}\n.ant-transfer-list-header-dropdown {\n font-size: 10px;\n transform: translateY(10%);\n cursor: pointer;\n}\n.ant-transfer-list-header-dropdown[disabled] {\n cursor: not-allowed;\n}\n.ant-transfer-list-body {\n display: flex;\n flex: auto;\n flex-direction: column;\n overflow: hidden;\n font-size: 14px;\n}\n.ant-transfer-list-body-search-wrapper {\n position: relative;\n flex: none;\n padding: 12px;\n}\n.ant-transfer-list-content {\n flex: auto;\n margin: 0;\n padding: 0;\n overflow: auto;\n list-style: none;\n}\n.ant-transfer-list-content-item {\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 6px 12px;\n line-height: 20px;\n transition: all 0.3s;\n}\n.ant-transfer-list-content-item > *:not(:last-child) {\n margin-right: 8px;\n}\n.ant-transfer-list-content-item > * {\n flex: none;\n}\n.ant-transfer-list-content-item-text {\n flex: auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-transfer-list-content-item-remove {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n position: relative;\n color: #d9d9d9;\n}\n.ant-transfer-list-content-item-remove:focus,\n.ant-transfer-list-content-item-remove:hover {\n color: #8588ed;\n}\n.ant-transfer-list-content-item-remove:active {\n color: #4541ba;\n}\n.ant-transfer-list-content-item-remove::after {\n position: absolute;\n top: -6px;\n right: -50%;\n bottom: -6px;\n left: -50%;\n content: '';\n}\n.ant-transfer-list-content-item-remove:hover {\n color: #8588ed;\n}\n.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {\n background-color: #f5f5f5;\n cursor: pointer;\n}\n.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover {\n background-color: #e6e9ff;\n}\n.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover {\n background: transparent;\n cursor: default;\n}\n.ant-transfer-list-content-item-checked {\n background-color: #f0f2ff;\n}\n.ant-transfer-list-content-item-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-transfer-list-pagination {\n padding: 8px 0;\n text-align: right;\n border-top: 1px solid #f0f0f0;\n}\n.ant-transfer-list-body-not-found {\n flex: none;\n width: 100%;\n margin: auto 0;\n color: rgba(0, 0, 0, 0.25);\n text-align: center;\n}\n.ant-transfer-list-footer {\n border-top: 1px solid #f0f0f0;\n}\n.ant-transfer-operation {\n display: flex;\n flex: none;\n flex-direction: column;\n align-self: center;\n margin: 0 8px;\n vertical-align: middle;\n}\n.ant-transfer-operation .ant-btn {\n display: block;\n}\n.ant-transfer-operation .ant-btn:first-child {\n margin-bottom: 4px;\n}\n.ant-transfer-operation .ant-btn .anticon {\n font-size: 12px;\n}\n.ant-transfer .ant-empty-image {\n max-height: -2px;\n}\n.ant-transfer-rtl {\n direction: rtl;\n}\n.ant-transfer-rtl .ant-transfer-list-search {\n padding-right: 8px;\n padding-left: 24px;\n}\n.ant-transfer-rtl .ant-transfer-list-search-action {\n right: auto;\n left: 12px;\n}\n.ant-transfer-rtl .ant-transfer-list-header > *:not(:last-child) {\n margin-right: 0;\n margin-left: 4px;\n}\n.ant-transfer-rtl .ant-transfer-list-header {\n right: 0;\n left: auto;\n}\n.ant-transfer-rtl .ant-transfer-list-header-title {\n text-align: left;\n}\n.ant-transfer-rtl .ant-transfer-list-content-item > *:not(:last-child) {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-transfer-rtl .ant-transfer-list-pagination {\n text-align: left;\n}\n.ant-transfer-rtl .ant-transfer-list-footer {\n right: 0;\n left: auto;\n}\n.ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode {\n position: relative;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 4px;\n left: 0;\n transition: background-color 0.3s;\n content: '';\n pointer-events: none;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode:hover::before {\n background: #f5f5f5;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode > * {\n z-index: 1;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-switcher {\n transition: color 0.3s;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper {\n border-radius: 0;\n user-select: none;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {\n color: #fff;\n background: transparent;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before,\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected::before {\n background: #5b5ce1;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher {\n color: #fff;\n}\n.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper {\n color: #fff;\n background: transparent;\n}\n.ant-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner,\n.ant-tree-checkbox:hover .ant-tree-checkbox-inner,\n.ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-tree-checkbox:hover::after,\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox::after {\n visibility: visible;\n}\n.ant-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-tree-checkbox-checked .ant-tree-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-input {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tree-checkbox-disabled:hover::after,\n.ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-tree-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-tree-checkbox-wrapper.ant-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item {\n margin-left: 0;\n}\n.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-tree-checkbox-rtl {\n direction: rtl;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-tree-checkbox-group-rtl .ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-tree-focused:not(:hover):not(.ant-tree-active-focused) {\n background: #f0f2ff;\n}\n.ant-tree-list-holder-inner {\n align-items: flex-start;\n}\n.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-tree.ant-tree-block-node .ant-tree-list-holder-inner .ant-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-tree .ant-tree-treenode {\n display: flex;\n align-items: flex-start;\n padding: 0 0 4px 0;\n outline: none;\n}\n.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-tree .ant-tree-treenode-active .ant-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.ant-tree .ant-tree-treenode:not(.ant-tree .ant-tree-treenode-disabled).filter-node .ant-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.ant-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.ant-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.ant-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.ant-tree-switcher .ant-tree-switcher-icon,\n.ant-tree-switcher .ant-select-tree-switcher-icon {\n display: inline-block;\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-tree-switcher .ant-tree-switcher-icon svg,\n.ant-tree-switcher .ant-select-tree-switcher-icon svg {\n transition: transform 0.3s;\n}\n.ant-tree-switcher-noop {\n cursor: default;\n}\n.ant-tree-switcher_close .ant-tree-switcher-icon svg {\n transform: rotate(-90deg);\n}\n.ant-tree-switcher-loading-icon {\n color: #5b5ce1;\n}\n.ant-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.ant-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-tree-checkbox {\n top: initial;\n margin: 4px 8px 0 0;\n}\n.ant-tree .ant-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 0;\n padding: 0 4px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.ant-tree .ant-tree-node-content-wrapper:hover {\n background-color: #f5f5f5;\n}\n.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {\n background-color: #f0f2ff;\n}\n.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n line-height: 24px;\n text-align: center;\n vertical-align: top;\n}\n.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle:empty {\n display: none;\n}\n.ant-tree-unselectable .ant-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.ant-tree-node-content-wrapper[draggable='true'] {\n line-height: 24px;\n user-select: none;\n}\n.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: #5b5ce1;\n border-radius: 1px;\n pointer-events: none;\n}\n.ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid #5b5ce1;\n border-radius: 50%;\n content: '';\n}\n.ant-tree .ant-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px #5b5ce1;\n}\n.ant-tree-show-line .ant-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.ant-tree-show-line .ant-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: '';\n}\n.ant-tree-show-line .ant-tree-indent-unit-end::before {\n display: none;\n}\n.ant-tree-show-line .ant-tree-switcher {\n background: #fff;\n}\n.ant-tree-show-line .ant-tree-switcher-line-icon {\n vertical-align: -0.225em;\n}\n.ant-tree-rtl {\n direction: rtl;\n}\n.ant-tree-rtl .ant-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.ant-tree .ant-tree-treenode-rtl {\n direction: rtl;\n}\n.ant-tree-rtl .ant-tree-switcher_close .ant-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.ant-tree-rtl.ant-tree-show-line .ant-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.ant-tree-rtl.ant-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n.ant-select-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,\n.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner,\n.ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner {\n border-color: #5b5ce1;\n}\n.ant-select-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid #5b5ce1;\n border-radius: 5px;\n visibility: hidden;\n animation: antCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: '';\n}\n.ant-select-tree-checkbox:hover::after,\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox::after {\n visibility: visible;\n}\n.ant-select-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.ant-select-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 22%;\n display: table;\n width: 5.71428571px;\n height: 9.14285714px;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: ' ';\n}\n.ant-select-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid #fff;\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: ' ';\n}\n.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner {\n background-color: #5b5ce1;\n border-color: #5b5ce1;\n}\n.ant-select-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.ant-select-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-disabled:hover::after,\n.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n.ant-select-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.ant-select-tree-checkbox-wrapper::after {\n display: inline-block;\n width: 0;\n overflow: hidden;\n content: '\\a0';\n}\n.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.ant-select-tree-checkbox-wrapper + .ant-select-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n.ant-select-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n.ant-select-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n display: inline-block;\n}\n.ant-select-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.ant-select-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.ant-select-tree-checkbox-group-item + .ant-select-tree-checkbox-group-item {\n margin-left: 0;\n}\n.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner {\n background-color: #fff;\n border-color: #d9d9d9;\n}\n.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 8px;\n background-color: #5b5ce1;\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: ' ';\n}\n.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n.ant-select-tree-checkbox-rtl {\n direction: rtl;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item {\n margin-right: 0;\n margin-left: 8px;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item:last-child {\n margin-left: 0 !important;\n}\n.ant-select-tree-checkbox-group-rtl .ant-select-tree-checkbox-group-item + .ant-select-tree-checkbox-group-item {\n margin-left: 8px;\n}\n.ant-tree-select-dropdown {\n padding: 8px 4px 0;\n}\n.ant-tree-select-dropdown-rtl {\n direction: rtl;\n}\n.ant-tree-select-dropdown .ant-select-tree {\n border-radius: 0;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode {\n padding-bottom: 8px;\n}\n.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-select-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n background: #fff;\n border-radius: 5px;\n transition: background-color 0.3s;\n}\n.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused) {\n background: #f0f2ff;\n}\n.ant-select-tree-list-holder-inner {\n align-items: flex-start;\n}\n.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner {\n align-items: stretch;\n}\n.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper {\n flex: auto;\n}\n.ant-select-tree .ant-select-tree-treenode {\n display: flex;\n align-items: flex-start;\n padding: 0 0 4px 0;\n outline: none;\n}\n.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.ant-select-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.ant-select-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.ant-select-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.ant-select-tree-switcher .ant-tree-switcher-icon,\n.ant-select-tree-switcher .ant-select-tree-switcher-icon {\n display: inline-block;\n font-size: 10px;\n vertical-align: baseline;\n}\n.ant-select-tree-switcher .ant-tree-switcher-icon svg,\n.ant-select-tree-switcher .ant-select-tree-switcher-icon svg {\n transition: transform 0.3s;\n}\n.ant-select-tree-switcher-noop {\n cursor: default;\n}\n.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg {\n transform: rotate(-90deg);\n}\n.ant-select-tree-switcher-loading-icon {\n color: #5b5ce1;\n}\n.ant-select-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.ant-select-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-select-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: ' ';\n}\n.ant-select-tree-checkbox {\n top: initial;\n margin: 4px 8px 0 0;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 0;\n padding: 0 4px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper:hover {\n background-color: #f5f5f5;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {\n background-color: #f0f2ff;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n line-height: 24px;\n text-align: center;\n vertical-align: top;\n}\n.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty {\n display: none;\n}\n.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] {\n line-height: 24px;\n user-select: none;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: #5b5ce1;\n border-radius: 1px;\n pointer-events: none;\n}\n.ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid #5b5ce1;\n border-radius: 50%;\n content: '';\n}\n.ant-select-tree .ant-select-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px #5b5ce1;\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: '';\n}\n.ant-select-tree-show-line .ant-select-tree-indent-unit-end::before {\n display: none;\n}\n.ant-select-tree-show-line .ant-select-tree-switcher {\n background: #fff;\n}\n.ant-select-tree-show-line .ant-select-tree-switcher-line-icon {\n vertical-align: -0.225em;\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon {\n transform: scaleY(-1);\n}\n.ant-typography {\n color: rgba(0, 0, 0, 0.85);\n overflow-wrap: break-word;\n}\n.ant-typography.ant-typography-secondary {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-typography.ant-typography-success {\n color: #52c41a;\n}\n.ant-typography.ant-typography-warning {\n color: #faad14;\n}\n.ant-typography.ant-typography-danger {\n color: #ff4d4f;\n}\na.ant-typography.ant-typography-danger:active,\na.ant-typography.ant-typography-danger:focus,\na.ant-typography.ant-typography-danger:hover {\n color: #ff7875;\n}\n.ant-typography.ant-typography-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n user-select: none;\n}\ndiv.ant-typography,\n.ant-typography p {\n margin-bottom: 1em;\n}\nh1.ant-typography,\n.ant-typography h1 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 38px;\n line-height: 1.23;\n}\nh2.ant-typography,\n.ant-typography h2 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 30px;\n line-height: 1.35;\n}\nh3.ant-typography,\n.ant-typography h3 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 24px;\n line-height: 1.35;\n}\nh4.ant-typography,\n.ant-typography h4 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 20px;\n line-height: 1.4;\n}\nh5.ant-typography,\n.ant-typography h5 {\n margin-bottom: 0.5em;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 600;\n font-size: 16px;\n line-height: 1.5;\n}\n.ant-typography + h1.ant-typography,\n.ant-typography + h2.ant-typography,\n.ant-typography + h3.ant-typography,\n.ant-typography + h4.ant-typography,\n.ant-typography + h5.ant-typography {\n margin-top: 1.2em;\n}\n.ant-typography div + h1,\n.ant-typography ul + h1,\n.ant-typography li + h1,\n.ant-typography p + h1,\n.ant-typography h1 + h1,\n.ant-typography h2 + h1,\n.ant-typography h3 + h1,\n.ant-typography h4 + h1,\n.ant-typography h5 + h1,\n.ant-typography div + h2,\n.ant-typography ul + h2,\n.ant-typography li + h2,\n.ant-typography p + h2,\n.ant-typography h1 + h2,\n.ant-typography h2 + h2,\n.ant-typography h3 + h2,\n.ant-typography h4 + h2,\n.ant-typography h5 + h2,\n.ant-typography div + h3,\n.ant-typography ul + h3,\n.ant-typography li + h3,\n.ant-typography p + h3,\n.ant-typography h1 + h3,\n.ant-typography h2 + h3,\n.ant-typography h3 + h3,\n.ant-typography h4 + h3,\n.ant-typography h5 + h3,\n.ant-typography div + h4,\n.ant-typography ul + h4,\n.ant-typography li + h4,\n.ant-typography p + h4,\n.ant-typography h1 + h4,\n.ant-typography h2 + h4,\n.ant-typography h3 + h4,\n.ant-typography h4 + h4,\n.ant-typography h5 + h4,\n.ant-typography div + h5,\n.ant-typography ul + h5,\n.ant-typography li + h5,\n.ant-typography p + h5,\n.ant-typography h1 + h5,\n.ant-typography h2 + h5,\n.ant-typography h3 + h5,\n.ant-typography h4 + h5,\n.ant-typography h5 + h5 {\n margin-top: 1.2em;\n}\na.ant-typography-ellipsis,\nspan.ant-typography-ellipsis {\n display: inline-block;\n}\na.ant-typography,\n.ant-typography a {\n color: #5b5ce1;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n text-decoration: none;\n}\na.ant-typography:focus,\n.ant-typography a:focus,\na.ant-typography:hover,\n.ant-typography a:hover {\n color: #8588ed;\n}\na.ant-typography:active,\n.ant-typography a:active {\n color: #4541ba;\n}\na.ant-typography:active,\n.ant-typography a:active,\na.ant-typography:hover,\n.ant-typography a:hover {\n text-decoration: none;\n}\na.ant-typography[disabled],\n.ant-typography a[disabled],\na.ant-typography.ant-typography-disabled,\n.ant-typography a.ant-typography-disabled {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\na.ant-typography[disabled]:active,\n.ant-typography a[disabled]:active,\na.ant-typography.ant-typography-disabled:active,\n.ant-typography a.ant-typography-disabled:active,\na.ant-typography[disabled]:hover,\n.ant-typography a[disabled]:hover,\na.ant-typography.ant-typography-disabled:hover,\n.ant-typography a.ant-typography-disabled:hover {\n color: rgba(0, 0, 0, 0.25);\n}\na.ant-typography[disabled]:active,\n.ant-typography a[disabled]:active,\na.ant-typography.ant-typography-disabled:active,\n.ant-typography a.ant-typography-disabled:active {\n pointer-events: none;\n}\n.ant-typography code {\n margin: 0 0.2em;\n padding: 0.2em 0.4em 0.1em;\n font-size: 85%;\n background: rgba(150, 150, 150, 0.1);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-radius: 3px;\n}\n.ant-typography kbd {\n margin: 0 0.2em;\n padding: 0.15em 0.4em 0.1em;\n font-size: 90%;\n background: rgba(150, 150, 150, 0.06);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-bottom-width: 2px;\n border-radius: 3px;\n}\n.ant-typography mark {\n padding: 0;\n background-color: #ffe58f;\n}\n.ant-typography u,\n.ant-typography ins {\n text-decoration: underline;\n text-decoration-skip-ink: auto;\n}\n.ant-typography s,\n.ant-typography del {\n text-decoration: line-through;\n}\n.ant-typography strong {\n font-weight: 600;\n}\n.ant-typography-expand,\n.ant-typography-edit,\n.ant-typography-copy {\n color: #5b5ce1;\n text-decoration: none;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n margin-left: 4px;\n}\n.ant-typography-expand:focus,\n.ant-typography-edit:focus,\n.ant-typography-copy:focus,\n.ant-typography-expand:hover,\n.ant-typography-edit:hover,\n.ant-typography-copy:hover {\n color: #8588ed;\n}\n.ant-typography-expand:active,\n.ant-typography-edit:active,\n.ant-typography-copy:active {\n color: #4541ba;\n}\n.ant-typography-copy-success,\n.ant-typography-copy-success:hover,\n.ant-typography-copy-success:focus {\n color: #52c41a;\n}\n.ant-typography-edit-content {\n position: relative;\n}\ndiv.ant-typography-edit-content {\n left: -12px;\n margin-top: -5px;\n margin-bottom: calc(1em - 4px - 1px);\n}\n.ant-typography-edit-content-confirm {\n position: absolute;\n right: 10px;\n bottom: 8px;\n color: rgba(0, 0, 0, 0.45);\n pointer-events: none;\n}\n.ant-typography-edit-content textarea {\n -moz-transition: none;\n}\n.ant-typography ul,\n.ant-typography ol {\n margin: 0 0 1em 0;\n padding: 0;\n}\n.ant-typography ul li,\n.ant-typography ol li {\n margin: 0 0 0 20px;\n padding: 0 0 0 4px;\n}\n.ant-typography ul {\n list-style-type: circle;\n}\n.ant-typography ul ul {\n list-style-type: disc;\n}\n.ant-typography ol {\n list-style-type: decimal;\n}\n.ant-typography pre,\n.ant-typography blockquote {\n margin: 1em 0;\n}\n.ant-typography pre {\n padding: 0.4em 0.6em;\n white-space: pre-wrap;\n word-wrap: break-word;\n background: rgba(150, 150, 150, 0.1);\n border: 1px solid rgba(100, 100, 100, 0.2);\n border-radius: 3px;\n}\n.ant-typography pre code {\n display: inline;\n margin: 0;\n padding: 0;\n font-size: inherit;\n font-family: inherit;\n background: transparent;\n border: 0;\n}\n.ant-typography blockquote {\n padding: 0 0 0 0.6em;\n border-left: 4px solid rgba(100, 100, 100, 0.2);\n opacity: 0.85;\n}\n.ant-typography-ellipsis-single-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\na.ant-typography-ellipsis-single-line,\nspan.ant-typography-ellipsis-single-line {\n vertical-align: bottom;\n}\n.ant-typography-ellipsis-multiple-line {\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 3;\n /*! autoprefixer: ignore next */\n -webkit-box-orient: vertical;\n}\n.ant-typography-rtl {\n direction: rtl;\n}\n.ant-typography-rtl .ant-typography-expand,\n.ant-typography-rtl .ant-typography-edit,\n.ant-typography-rtl .ant-typography-copy {\n margin-right: 4px;\n margin-left: 0;\n}\n.ant-typography-rtl .ant-typography-expand {\n float: left;\n}\ndiv.ant-typography-edit-content.ant-typography-rtl {\n right: -12px;\n left: auto;\n}\n.ant-typography-rtl .ant-typography-edit-content-confirm {\n right: auto;\n left: 10px;\n}\n.ant-typography-rtl.ant-typography ul li,\n.ant-typography-rtl.ant-typography ol li {\n margin: 0 20px 0 0;\n padding: 0 4px 0 0;\n}\n.ant-upload {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: 'tnum';\n outline: 0;\n}\n.ant-upload p {\n margin: 0;\n}\n.ant-upload-btn {\n display: block;\n width: 100%;\n outline: none;\n}\n.ant-upload input[type='file'] {\n cursor: pointer;\n}\n.ant-upload.ant-upload-select {\n display: inline-block;\n}\n.ant-upload.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-select-picture-card {\n width: 104px;\n height: 104px;\n margin-right: 8px;\n margin-bottom: 8px;\n text-align: center;\n vertical-align: top;\n background-color: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 5px;\n cursor: pointer;\n transition: border-color 0.3s;\n}\n.ant-upload.ant-upload-select-picture-card > .ant-upload {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n text-align: center;\n}\n.ant-upload.ant-upload-select-picture-card:hover {\n border-color: #5b5ce1;\n}\n.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {\n border-color: #d9d9d9;\n}\n.ant-upload.ant-upload-drag {\n position: relative;\n width: 100%;\n height: 100%;\n text-align: center;\n background: #fafafa;\n border: 1px dashed #d9d9d9;\n border-radius: 5px;\n cursor: pointer;\n transition: border-color 0.3s;\n}\n.ant-upload.ant-upload-drag .ant-upload {\n padding: 16px 0;\n}\n.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled) {\n border-color: #4541ba;\n}\n.ant-upload.ant-upload-drag.ant-upload-disabled {\n cursor: not-allowed;\n}\n.ant-upload.ant-upload-drag .ant-upload-btn {\n display: table;\n height: 100%;\n}\n.ant-upload.ant-upload-drag .ant-upload-drag-container {\n display: table-cell;\n vertical-align: middle;\n}\n.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {\n border-color: #8588ed;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon {\n margin-bottom: 20px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {\n color: #8588ed;\n font-size: 48px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-text {\n margin: 0 0 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-upload.ant-upload-drag p.ant-upload-hint {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload.ant-upload-drag .anticon-plus {\n color: rgba(0, 0, 0, 0.25);\n font-size: 30px;\n transition: all 0.3s;\n}\n.ant-upload.ant-upload-drag .anticon-plus:hover {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload.ant-upload-drag:hover .anticon-plus {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-picture-card-wrapper {\n display: inline-block;\n width: 100%;\n}\n.ant-upload-picture-card-wrapper::before {\n display: table;\n content: '';\n}\n.ant-upload-picture-card-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-picture-card-wrapper::before {\n display: table;\n content: '';\n}\n.ant-upload-picture-card-wrapper::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n list-style: none;\n font-feature-settings: 'tnum';\n line-height: 1.5715;\n}\n.ant-upload-list::before {\n display: table;\n content: '';\n}\n.ant-upload-list::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list::before {\n display: table;\n content: '';\n}\n.ant-upload-list::after {\n display: table;\n clear: both;\n content: '';\n}\n.ant-upload-list-item {\n position: relative;\n height: 22.001px;\n margin-top: 8px;\n font-size: 14px;\n}\n.ant-upload-list-item-name {\n display: inline-block;\n width: 100%;\n padding-left: 22px;\n overflow: hidden;\n line-height: 1.5715;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ant-upload-list-item-card-actions {\n position: absolute;\n right: 0;\n}\n.ant-upload-list-item-card-actions-btn {\n opacity: 0;\n}\n.ant-upload-list-item-card-actions-btn.ant-btn-sm {\n height: 20px;\n line-height: 1;\n}\n.ant-upload-list-item-card-actions.picture {\n top: 22px;\n line-height: 0;\n}\n.ant-upload-list-item-card-actions-btn:focus,\n.ant-upload-list-item-card-actions.picture .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-card-actions .anticon {\n color: rgba(0, 0, 0, 0.45);\n}\n.ant-upload-list-item-info {\n height: 100%;\n padding: 0 4px;\n transition: background-color 0.3s;\n}\n.ant-upload-list-item-info > span {\n display: block;\n width: 100%;\n height: 100%;\n}\n.ant-upload-list-item-info .anticon-loading .anticon,\n.ant-upload-list-item-info .ant-upload-text-icon .anticon {\n position: absolute;\n top: 5px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-upload-list-item .anticon-close {\n position: absolute;\n top: 6px;\n right: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 10px;\n line-height: 0;\n cursor: pointer;\n opacity: 0;\n transition: all 0.3s;\n}\n.ant-upload-list-item .anticon-close:hover {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-upload-list-item:hover .ant-upload-list-item-info {\n background-color: #f5f5f5;\n}\n.ant-upload-list-item:hover .anticon-close {\n opacity: 1;\n}\n.ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-error,\n.ant-upload-list-item-error .ant-upload-text-icon > .anticon,\n.ant-upload-list-item-error .ant-upload-list-item-name {\n color: #ff4d4f;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #ff4d4f;\n}\n.ant-upload-list-item-error .ant-upload-list-item-card-actions-btn {\n opacity: 1;\n}\n.ant-upload-list-item-progress {\n position: absolute;\n bottom: -12px;\n width: 100%;\n padding-left: 26px;\n font-size: 14px;\n line-height: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item,\n.ant-upload-list-picture-card .ant-upload-list-item {\n position: relative;\n height: 66px;\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover,\n.ant-upload-list-picture-card .ant-upload-list-item:hover {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #ff4d4f;\n}\n.ant-upload-list-picture .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n padding: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {\n background: transparent;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading {\n border-style: dashed;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail {\n width: 48px;\n height: 48px;\n line-height: 54px;\n text-align: center;\n opacity: 0.8;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail .anticon,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail .anticon {\n font-size: 26px;\n}\n.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'],\n.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {\n fill: #fff2f0;\n}\n.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'],\n.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {\n fill: #ff4d4f;\n}\n.ant-upload-list-picture .ant-upload-list-item-icon,\n.ant-upload-list-picture-card .ant-upload-list-item-icon {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 26px;\n transform: translate(-50%, -50%);\n}\n.ant-upload-list-picture .ant-upload-list-item-icon .anticon,\n.ant-upload-list-picture-card .ant-upload-list-item-icon .anticon {\n font-size: 26px;\n}\n.ant-upload-list-picture .ant-upload-list-item-image,\n.ant-upload-list-picture-card .ant-upload-list-item-image {\n max-width: 100%;\n}\n.ant-upload-list-picture .ant-upload-list-item-thumbnail img,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n display: block;\n width: 48px;\n height: 48px;\n overflow: hidden;\n}\n.ant-upload-list-picture .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: inline-block;\n box-sizing: border-box;\n max-width: 100%;\n margin: 0 0 0 8px;\n padding-right: 8px;\n padding-left: 48px;\n overflow: hidden;\n line-height: 44px;\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name {\n line-height: 28px;\n}\n.ant-upload-list-picture .ant-upload-list-item-progress,\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 14px;\n width: calc(100% - 24px);\n margin-top: 0;\n padding-left: 56px;\n}\n.ant-upload-list-picture .anticon-close,\n.ant-upload-list-picture-card .anticon-close {\n position: absolute;\n top: 8px;\n right: 8px;\n line-height: 1;\n opacity: 1;\n}\n.ant-upload-list-picture-card-container {\n display: inline-block;\n width: 104px;\n height: 104px;\n margin: 0 8px 8px 0;\n vertical-align: top;\n}\n.ant-upload-list-picture-card.ant-upload-list::after {\n display: none;\n}\n.ant-upload-list-picture-card .ant-upload-list-item {\n height: 100%;\n margin: 0;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info::before {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {\n z-index: 10;\n width: 16px;\n margin: 0 4px;\n color: rgba(255, 255, 255, 0.85);\n font-size: 16px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,\n.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {\n color: #fff;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-info:hover + .ant-upload-list-item-actions,\n.ant-upload-list-picture-card .ant-upload-list-item-actions:hover {\n opacity: 1;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,\n.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img {\n position: static;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-name {\n display: none;\n margin: 8px 0 0;\n padding: 0;\n line-height: 1.5715;\n text-align: center;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-file + .ant-upload-list-item-name {\n position: absolute;\n bottom: 10px;\n display: block;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {\n background-color: #fafafa;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info {\n height: auto;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye,\n.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete {\n display: none;\n}\n.ant-upload-list-picture-card .ant-upload-list-item-progress {\n bottom: 32px;\n width: calc(100% - 14px);\n padding-left: 0;\n}\n.ant-upload-list-text-container,\n.ant-upload-list-picture-container {\n transition: opacity 0.3s, height 0.3s;\n}\n.ant-upload-list-text-container::before,\n.ant-upload-list-picture-container::before {\n display: table;\n width: 0;\n height: 0;\n content: '';\n}\n.ant-upload-list-text-container .ant-upload-span,\n.ant-upload-list-picture-container .ant-upload-span {\n display: block;\n flex: auto;\n}\n.ant-upload-list-text .ant-upload-span,\n.ant-upload-list-picture .ant-upload-span {\n display: flex;\n align-items: center;\n}\n.ant-upload-list-text .ant-upload-span > *,\n.ant-upload-list-picture .ant-upload-span > * {\n flex: none;\n}\n.ant-upload-list-text .ant-upload-list-item-name,\n.ant-upload-list-picture .ant-upload-list-item-name {\n flex: auto;\n padding: 0 8px;\n}\n.ant-upload-list-text .ant-upload-list-item-card-actions,\n.ant-upload-list-picture .ant-upload-list-item-card-actions {\n position: static;\n}\n.ant-upload-list-text .ant-upload-text-icon .anticon {\n position: static;\n}\n.ant-upload-list .ant-upload-animate-inline-appear,\n.ant-upload-list .ant-upload-animate-inline-enter,\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-duration: 0.3s;\n animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-upload-list .ant-upload-animate-inline-appear,\n.ant-upload-list .ant-upload-animate-inline-enter {\n animation-name: uploadAnimateInlineIn;\n}\n.ant-upload-list .ant-upload-animate-inline-leave {\n animation-name: uploadAnimateInlineOut;\n}\n@keyframes uploadAnimateInlineIn {\n from {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n@keyframes uploadAnimateInlineOut {\n to {\n width: 0;\n height: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n }\n}\n.ant-upload-rtl {\n direction: rtl;\n}\n.ant-upload-rtl.ant-upload.ant-upload-select-picture-card {\n margin-right: auto;\n margin-left: 8px;\n}\n.ant-upload-list-rtl {\n direction: rtl;\n}\n.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1 {\n padding-right: 22px;\n padding-left: 14px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2 {\n padding-right: 22px;\n padding-left: 28px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-name {\n padding-right: 22px;\n padding-left: 0;\n}\n.ant-upload-list-rtl .ant-upload-list-item-name-icon-count-1 {\n padding-left: 14px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-card-actions {\n right: auto;\n left: 0;\n}\n.ant-upload-list-rtl .ant-upload-list-item-card-actions .anticon {\n padding-right: 0;\n padding-left: 5px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-info {\n padding: 0 4px 0 12px;\n}\n.ant-upload-list-rtl .ant-upload-list-item .anticon-close {\n right: auto;\n left: 4px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n padding-right: 0;\n padding-left: 5px;\n}\n.ant-upload-list-rtl .ant-upload-list-item-progress {\n padding-right: 26px;\n padding-left: 0;\n}\n.ant-upload-list-picture .ant-upload-list-item-info,\n.ant-upload-list-picture-card .ant-upload-list-item-info {\n padding: 0;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-thumbnail,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-thumbnail {\n right: 8px;\n left: auto;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-icon,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-icon {\n right: 50%;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name {\n margin: 0 8px 0 0;\n padding-right: 48px;\n padding-left: 8px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1 {\n padding-right: 48px;\n padding-left: 18px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2 {\n padding-right: 48px;\n padding-left: 36px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-progress,\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-progress {\n padding-right: 0;\n padding-left: 0;\n}\n.ant-upload-list-rtl.ant-upload-list-picture .anticon-close,\n.ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close {\n right: auto;\n left: 8px;\n}\n.ant-upload-list-rtl .ant-upload-list-picture-card-container {\n margin: 0 0 8px 8px;\n}\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-actions {\n right: 50%;\n left: auto;\n transform: translate(50%, -50%);\n}\n.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-file + .ant-upload-list-item-name {\n margin: 8px 0 0;\n padding: 0;\n}\n"]}]);
|
|
|
// Exports
|
|
|
module.exports = exports;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/css-loader/dist/runtime/api.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
/*
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
Author Tobias Koppers @sokra
|
|
|
*/
|
|
|
// css base code, injected by the css-loader
|
|
|
// eslint-disable-next-line func-names
|
|
|
module.exports = function (useSourceMap) {
|
|
|
var list = []; // return the list of modules as css string
|
|
|
|
|
|
list.toString = function toString() {
|
|
|
return this.map(function (item) {
|
|
|
var content = cssWithMappingToString(item, useSourceMap);
|
|
|
|
|
|
if (item[2]) {
|
|
|
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
|
}
|
|
|
|
|
|
return content;
|
|
|
}).join('');
|
|
|
}; // import a list of modules into the list
|
|
|
// eslint-disable-next-line func-names
|
|
|
|
|
|
|
|
|
list.i = function (modules, mediaQuery, dedupe) {
|
|
|
if (typeof modules === 'string') {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
modules = [[null, modules, '']];
|
|
|
}
|
|
|
|
|
|
var alreadyImportedModules = {};
|
|
|
|
|
|
if (dedupe) {
|
|
|
for (var i = 0; i < this.length; i++) {
|
|
|
// eslint-disable-next-line prefer-destructuring
|
|
|
var id = this[i][0];
|
|
|
|
|
|
if (id != null) {
|
|
|
alreadyImportedModules[id] = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (var _i = 0; _i < modules.length; _i++) {
|
|
|
var item = [].concat(modules[_i]);
|
|
|
|
|
|
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
|
// eslint-disable-next-line no-continue
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (mediaQuery) {
|
|
|
if (!item[2]) {
|
|
|
item[2] = mediaQuery;
|
|
|
} else {
|
|
|
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
list.push(item);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return list;
|
|
|
};
|
|
|
|
|
|
function cssWithMappingToString(item, useSourceMap) {
|
|
|
var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
|
|
|
|
|
|
var cssMapping = item[3];
|
|
|
|
|
|
if (!cssMapping) {
|
|
|
return content;
|
|
|
}
|
|
|
|
|
|
if (useSourceMap && typeof btoa === 'function') {
|
|
|
var sourceMapping = toComment(cssMapping);
|
|
|
var sourceURLs = cssMapping.sources.map(function (source) {
|
|
|
return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
|
|
|
});
|
|
|
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
|
|
}
|
|
|
|
|
|
return [content].join('\n');
|
|
|
} // Adapted from convert-source-map (MIT)
|
|
|
|
|
|
|
|
|
function toComment(sourceMap) {
|
|
|
// eslint-disable-next-line no-undef
|
|
|
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
|
|
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
|
return "/*# ".concat(data, " */");
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/dom-align/dist-web/index.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/dom-align/dist-web/index.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default, alignElement, alignPoint */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; });
|
|
|
function _typeof(obj) {
|
|
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
|
_typeof = function (obj) {
|
|
|
return typeof obj;
|
|
|
};
|
|
|
} else {
|
|
|
_typeof = function (obj) {
|
|
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return _typeof(obj);
|
|
|
}
|
|
|
|
|
|
function _defineProperty(obj, key, value) {
|
|
|
if (key in obj) {
|
|
|
Object.defineProperty(obj, key, {
|
|
|
value: value,
|
|
|
enumerable: true,
|
|
|
configurable: true,
|
|
|
writable: true
|
|
|
});
|
|
|
} else {
|
|
|
obj[key] = value;
|
|
|
}
|
|
|
|
|
|
return obj;
|
|
|
}
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) {
|
|
|
var keys = Object.keys(object);
|
|
|
|
|
|
if (Object.getOwnPropertySymbols) {
|
|
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
|
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
|
});
|
|
|
keys.push.apply(keys, symbols);
|
|
|
}
|
|
|
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
function _objectSpread2(target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
|
|
|
|
if (i % 2) {
|
|
|
ownKeys(source, true).forEach(function (key) {
|
|
|
_defineProperty(target, key, source[key]);
|
|
|
});
|
|
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
|
} else {
|
|
|
ownKeys(source).forEach(function (key) {
|
|
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
var vendorPrefix;
|
|
|
var jsCssMap = {
|
|
|
Webkit: '-webkit-',
|
|
|
Moz: '-moz-',
|
|
|
// IE did it wrong again ...
|
|
|
ms: '-ms-',
|
|
|
O: '-o-'
|
|
|
};
|
|
|
|
|
|
function getVendorPrefix() {
|
|
|
if (vendorPrefix !== undefined) {
|
|
|
return vendorPrefix;
|
|
|
}
|
|
|
|
|
|
vendorPrefix = '';
|
|
|
var style = document.createElement('p').style;
|
|
|
var testProp = 'Transform';
|
|
|
|
|
|
for (var key in jsCssMap) {
|
|
|
if (key + testProp in style) {
|
|
|
vendorPrefix = key;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return vendorPrefix;
|
|
|
}
|
|
|
|
|
|
function getTransitionName() {
|
|
|
return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty';
|
|
|
}
|
|
|
|
|
|
function getTransformName() {
|
|
|
return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform';
|
|
|
}
|
|
|
function setTransitionProperty(node, value) {
|
|
|
var name = getTransitionName();
|
|
|
|
|
|
if (name) {
|
|
|
node.style[name] = value;
|
|
|
|
|
|
if (name !== 'transitionProperty') {
|
|
|
node.style.transitionProperty = value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function setTransform(node, value) {
|
|
|
var name = getTransformName();
|
|
|
|
|
|
if (name) {
|
|
|
node.style[name] = value;
|
|
|
|
|
|
if (name !== 'transform') {
|
|
|
node.style.transform = value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getTransitionProperty(node) {
|
|
|
return node.style.transitionProperty || node.style[getTransitionName()];
|
|
|
}
|
|
|
function getTransformXY(node) {
|
|
|
var style = window.getComputedStyle(node, null);
|
|
|
var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
|
|
|
|
|
|
if (transform && transform !== 'none') {
|
|
|
var matrix = transform.replace(/[^0-9\-.,]/g, '').split(',');
|
|
|
return {
|
|
|
x: parseFloat(matrix[12] || matrix[4], 0),
|
|
|
y: parseFloat(matrix[13] || matrix[5], 0)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
x: 0,
|
|
|
y: 0
|
|
|
};
|
|
|
}
|
|
|
var matrix2d = /matrix\((.*)\)/;
|
|
|
var matrix3d = /matrix3d\((.*)\)/;
|
|
|
function setTransformXY(node, xy) {
|
|
|
var style = window.getComputedStyle(node, null);
|
|
|
var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
|
|
|
|
|
|
if (transform && transform !== 'none') {
|
|
|
var arr;
|
|
|
var match2d = transform.match(matrix2d);
|
|
|
|
|
|
if (match2d) {
|
|
|
match2d = match2d[1];
|
|
|
arr = match2d.split(',').map(function (item) {
|
|
|
return parseFloat(item, 10);
|
|
|
});
|
|
|
arr[4] = xy.x;
|
|
|
arr[5] = xy.y;
|
|
|
setTransform(node, "matrix(".concat(arr.join(','), ")"));
|
|
|
} else {
|
|
|
var match3d = transform.match(matrix3d)[1];
|
|
|
arr = match3d.split(',').map(function (item) {
|
|
|
return parseFloat(item, 10);
|
|
|
});
|
|
|
arr[12] = xy.x;
|
|
|
arr[13] = xy.y;
|
|
|
setTransform(node, "matrix3d(".concat(arr.join(','), ")"));
|
|
|
}
|
|
|
} else {
|
|
|
setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
|
|
|
var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605
|
|
|
|
|
|
function forceRelayout(elem) {
|
|
|
var originalStyle = elem.style.display;
|
|
|
elem.style.display = 'none';
|
|
|
elem.offsetHeight; // eslint-disable-line
|
|
|
|
|
|
elem.style.display = originalStyle;
|
|
|
}
|
|
|
|
|
|
function css(el, name, v) {
|
|
|
var value = v;
|
|
|
|
|
|
if (_typeof(name) === 'object') {
|
|
|
for (var i in name) {
|
|
|
if (name.hasOwnProperty(i)) {
|
|
|
css(el, i, name[i]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
if (typeof value !== 'undefined') {
|
|
|
if (typeof value === 'number') {
|
|
|
value = "".concat(value, "px");
|
|
|
}
|
|
|
|
|
|
el.style[name] = value;
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
return getComputedStyleX(el, name);
|
|
|
}
|
|
|
|
|
|
function getClientPosition(elem) {
|
|
|
var box;
|
|
|
var x;
|
|
|
var y;
|
|
|
var doc = elem.ownerDocument;
|
|
|
var body = doc.body;
|
|
|
var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
|
|
|
|
|
|
box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
|
|
|
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
|
|
|
// 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
|
|
|
|
|
|
x = box.left;
|
|
|
y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
|
|
|
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
|
|
|
// IE6 standards mode, this border can be overridden by setting the
|
|
|
// document element's border to zero -- thus, we cannot rely on the
|
|
|
// offset always being 2 pixels.
|
|
|
// In quirks mode, the offset can be determined by querying the body's
|
|
|
// clientLeft/clientTop, but in standards mode, it is found by querying
|
|
|
// the document element's clientLeft/clientTop. Since we already called
|
|
|
// getClientBoundingRect we have already forced a reflow, so it is not
|
|
|
// too expensive just to query them all.
|
|
|
// ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
|
|
|
// 窗口边框标准是设 documentElement ,quirks 时设置 body
|
|
|
// 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
|
|
|
// 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
|
|
|
// 标准 ie 下 docElem.clientTop 就是 border-top
|
|
|
// ie7 html 即窗口边框改变不了。永远为 2
|
|
|
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
|
|
|
|
|
|
x -= docElem.clientLeft || body.clientLeft || 0;
|
|
|
y -= docElem.clientTop || body.clientTop || 0;
|
|
|
return {
|
|
|
left: x,
|
|
|
top: y
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getScroll(w, top) {
|
|
|
var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
|
|
|
var method = "scroll".concat(top ? 'Top' : 'Left');
|
|
|
|
|
|
if (typeof ret !== 'number') {
|
|
|
var d = w.document; // ie6,7,8 standard mode
|
|
|
|
|
|
ret = d.documentElement[method];
|
|
|
|
|
|
if (typeof ret !== 'number') {
|
|
|
// quirks mode
|
|
|
ret = d.body[method];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
function getScrollLeft(w) {
|
|
|
return getScroll(w);
|
|
|
}
|
|
|
|
|
|
function getScrollTop(w) {
|
|
|
return getScroll(w, true);
|
|
|
}
|
|
|
|
|
|
function getOffset(el) {
|
|
|
var pos = getClientPosition(el);
|
|
|
var doc = el.ownerDocument;
|
|
|
var w = doc.defaultView || doc.parentWindow;
|
|
|
pos.left += getScrollLeft(w);
|
|
|
pos.top += getScrollTop(w);
|
|
|
return pos;
|
|
|
}
|
|
|
/**
|
|
|
* A crude way of determining if an object is a window
|
|
|
* @member util
|
|
|
*/
|
|
|
|
|
|
|
|
|
function isWindow(obj) {
|
|
|
// must use == for ie8
|
|
|
|
|
|
/* eslint eqeqeq:0 */
|
|
|
return obj !== null && obj !== undefined && obj == obj.window;
|
|
|
}
|
|
|
|
|
|
function getDocument(node) {
|
|
|
if (isWindow(node)) {
|
|
|
return node.document;
|
|
|
}
|
|
|
|
|
|
if (node.nodeType === 9) {
|
|
|
return node;
|
|
|
}
|
|
|
|
|
|
return node.ownerDocument;
|
|
|
}
|
|
|
|
|
|
function _getComputedStyle(elem, name, cs) {
|
|
|
var computedStyle = cs;
|
|
|
var val = '';
|
|
|
var d = getDocument(elem);
|
|
|
computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
|
|
|
|
|
|
if (computedStyle) {
|
|
|
val = computedStyle.getPropertyValue(name) || computedStyle[name];
|
|
|
}
|
|
|
|
|
|
return val;
|
|
|
}
|
|
|
|
|
|
var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
|
|
|
|
|
|
var RE_POS = /^(top|right|bottom|left)$/;
|
|
|
var CURRENT_STYLE = 'currentStyle';
|
|
|
var RUNTIME_STYLE = 'runtimeStyle';
|
|
|
var LEFT = 'left';
|
|
|
var PX = 'px';
|
|
|
|
|
|
function _getComputedStyleIE(elem, name) {
|
|
|
// currentStyle maybe null
|
|
|
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
|
|
|
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
|
|
|
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
|
|
|
// 在 ie 下不对,需要直接用 offset 方式
|
|
|
// borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
|
|
|
// From the awesome hack by Dean Edwards
|
|
|
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
|
|
|
// If we're not dealing with a regular pixel number
|
|
|
// but a number that has a weird ending, we need to convert it to pixels
|
|
|
// exclude left right for relativity
|
|
|
|
|
|
if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
|
|
|
// Remember the original values
|
|
|
var style = elem.style;
|
|
|
var left = style[LEFT];
|
|
|
var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
|
|
|
|
|
|
elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
|
|
|
|
|
|
style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
|
|
|
ret = style.pixelLeft + PX; // Revert the changed values
|
|
|
|
|
|
style[LEFT] = left;
|
|
|
elem[RUNTIME_STYLE][LEFT] = rsLeft;
|
|
|
}
|
|
|
|
|
|
return ret === '' ? 'auto' : ret;
|
|
|
}
|
|
|
|
|
|
if (typeof window !== 'undefined') {
|
|
|
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
|
|
|
}
|
|
|
|
|
|
function getOffsetDirection(dir, option) {
|
|
|
if (dir === 'left') {
|
|
|
return option.useCssRight ? 'right' : dir;
|
|
|
}
|
|
|
|
|
|
return option.useCssBottom ? 'bottom' : dir;
|
|
|
}
|
|
|
|
|
|
function oppositeOffsetDirection(dir) {
|
|
|
if (dir === 'left') {
|
|
|
return 'right';
|
|
|
} else if (dir === 'right') {
|
|
|
return 'left';
|
|
|
} else if (dir === 'top') {
|
|
|
return 'bottom';
|
|
|
} else if (dir === 'bottom') {
|
|
|
return 'top';
|
|
|
}
|
|
|
} // 设置 elem 相对 elem.ownerDocument 的坐标
|
|
|
|
|
|
|
|
|
function setLeftTop(elem, offset, option) {
|
|
|
// set position first, in-case top/left are set even on static elem
|
|
|
if (css(elem, 'position') === 'static') {
|
|
|
elem.style.position = 'relative';
|
|
|
}
|
|
|
|
|
|
var presetH = -999;
|
|
|
var presetV = -999;
|
|
|
var horizontalProperty = getOffsetDirection('left', option);
|
|
|
var verticalProperty = getOffsetDirection('top', option);
|
|
|
var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
|
|
|
var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
|
|
|
|
|
|
if (horizontalProperty !== 'left') {
|
|
|
presetH = 999;
|
|
|
}
|
|
|
|
|
|
if (verticalProperty !== 'top') {
|
|
|
presetV = 999;
|
|
|
}
|
|
|
|
|
|
var originalTransition = '';
|
|
|
var originalOffset = getOffset(elem);
|
|
|
|
|
|
if ('left' in offset || 'top' in offset) {
|
|
|
originalTransition = getTransitionProperty(elem) || '';
|
|
|
setTransitionProperty(elem, 'none');
|
|
|
}
|
|
|
|
|
|
if ('left' in offset) {
|
|
|
elem.style[oppositeHorizontalProperty] = '';
|
|
|
elem.style[horizontalProperty] = "".concat(presetH, "px");
|
|
|
}
|
|
|
|
|
|
if ('top' in offset) {
|
|
|
elem.style[oppositeVerticalProperty] = '';
|
|
|
elem.style[verticalProperty] = "".concat(presetV, "px");
|
|
|
} // force relayout
|
|
|
|
|
|
|
|
|
forceRelayout(elem);
|
|
|
var old = getOffset(elem);
|
|
|
var originalStyle = {};
|
|
|
|
|
|
for (var key in offset) {
|
|
|
if (offset.hasOwnProperty(key)) {
|
|
|
var dir = getOffsetDirection(key, option);
|
|
|
var preset = key === 'left' ? presetH : presetV;
|
|
|
var off = originalOffset[key] - old[key];
|
|
|
|
|
|
if (dir === key) {
|
|
|
originalStyle[dir] = preset + off;
|
|
|
} else {
|
|
|
originalStyle[dir] = preset - off;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
css(elem, originalStyle); // force relayout
|
|
|
|
|
|
forceRelayout(elem);
|
|
|
|
|
|
if ('left' in offset || 'top' in offset) {
|
|
|
setTransitionProperty(elem, originalTransition);
|
|
|
}
|
|
|
|
|
|
var ret = {};
|
|
|
|
|
|
for (var _key in offset) {
|
|
|
if (offset.hasOwnProperty(_key)) {
|
|
|
var _dir = getOffsetDirection(_key, option);
|
|
|
|
|
|
var _off = offset[_key] - originalOffset[_key];
|
|
|
|
|
|
if (_key === _dir) {
|
|
|
ret[_dir] = originalStyle[_dir] + _off;
|
|
|
} else {
|
|
|
ret[_dir] = originalStyle[_dir] - _off;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
css(elem, ret);
|
|
|
}
|
|
|
|
|
|
function setTransform$1(elem, offset) {
|
|
|
var originalOffset = getOffset(elem);
|
|
|
var originalXY = getTransformXY(elem);
|
|
|
var resultXY = {
|
|
|
x: originalXY.x,
|
|
|
y: originalXY.y
|
|
|
};
|
|
|
|
|
|
if ('left' in offset) {
|
|
|
resultXY.x = originalXY.x + offset.left - originalOffset.left;
|
|
|
}
|
|
|
|
|
|
if ('top' in offset) {
|
|
|
resultXY.y = originalXY.y + offset.top - originalOffset.top;
|
|
|
}
|
|
|
|
|
|
setTransformXY(elem, resultXY);
|
|
|
}
|
|
|
|
|
|
function setOffset(elem, offset, option) {
|
|
|
if (option.ignoreShake) {
|
|
|
var oriOffset = getOffset(elem);
|
|
|
var oLeft = oriOffset.left.toFixed(0);
|
|
|
var oTop = oriOffset.top.toFixed(0);
|
|
|
var tLeft = offset.left.toFixed(0);
|
|
|
var tTop = offset.top.toFixed(0);
|
|
|
|
|
|
if (oLeft === tLeft && oTop === tTop) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (option.useCssRight || option.useCssBottom) {
|
|
|
setLeftTop(elem, offset, option);
|
|
|
} else if (option.useCssTransform && getTransformName() in document.body.style) {
|
|
|
setTransform$1(elem, offset);
|
|
|
} else {
|
|
|
setLeftTop(elem, offset, option);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function each(arr, fn) {
|
|
|
for (var i = 0; i < arr.length; i++) {
|
|
|
fn(arr[i]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isBorderBoxFn(elem) {
|
|
|
return getComputedStyleX(elem, 'boxSizing') === 'border-box';
|
|
|
}
|
|
|
|
|
|
var BOX_MODELS = ['margin', 'border', 'padding'];
|
|
|
var CONTENT_INDEX = -1;
|
|
|
var PADDING_INDEX = 2;
|
|
|
var BORDER_INDEX = 1;
|
|
|
var MARGIN_INDEX = 0;
|
|
|
|
|
|
function swap(elem, options, callback) {
|
|
|
var old = {};
|
|
|
var style = elem.style;
|
|
|
var name; // Remember the old values, and insert the new ones
|
|
|
|
|
|
for (name in options) {
|
|
|
if (options.hasOwnProperty(name)) {
|
|
|
old[name] = style[name];
|
|
|
style[name] = options[name];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback.call(elem); // Revert the old values
|
|
|
|
|
|
for (name in options) {
|
|
|
if (options.hasOwnProperty(name)) {
|
|
|
style[name] = old[name];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getPBMWidth(elem, props, which) {
|
|
|
var value = 0;
|
|
|
var prop;
|
|
|
var j;
|
|
|
var i;
|
|
|
|
|
|
for (j = 0; j < props.length; j++) {
|
|
|
prop = props[j];
|
|
|
|
|
|
if (prop) {
|
|
|
for (i = 0; i < which.length; i++) {
|
|
|
var cssProp = void 0;
|
|
|
|
|
|
if (prop === 'border') {
|
|
|
cssProp = "".concat(prop).concat(which[i], "Width");
|
|
|
} else {
|
|
|
cssProp = prop + which[i];
|
|
|
}
|
|
|
|
|
|
value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
var domUtils = {
|
|
|
getParent: function getParent(element) {
|
|
|
var parent = element;
|
|
|
|
|
|
do {
|
|
|
if (parent.nodeType === 11 && parent.host) {
|
|
|
parent = parent.host;
|
|
|
} else {
|
|
|
parent = parent.parentNode;
|
|
|
}
|
|
|
} while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);
|
|
|
|
|
|
return parent;
|
|
|
}
|
|
|
};
|
|
|
each(['Width', 'Height'], function (name) {
|
|
|
domUtils["doc".concat(name)] = function (refWin) {
|
|
|
var d = refWin.document;
|
|
|
return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
|
|
|
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
|
|
|
d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
|
|
|
d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
|
|
|
};
|
|
|
|
|
|
domUtils["viewport".concat(name)] = function (win) {
|
|
|
// pc browser includes scrollbar in window.innerWidth
|
|
|
var prop = "client".concat(name);
|
|
|
var doc = win.document;
|
|
|
var body = doc.body;
|
|
|
var documentElement = doc.documentElement;
|
|
|
var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
|
|
|
// backcompat 取 body
|
|
|
|
|
|
return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
|
|
|
};
|
|
|
});
|
|
|
/*
|
|
|
得到元素的大小信息
|
|
|
@param elem
|
|
|
@param name
|
|
|
@param {String} [extra] 'padding' : (css width) + padding
|
|
|
'border' : (css width) + padding + border
|
|
|
'margin' : (css width) + padding + border + margin
|
|
|
*/
|
|
|
|
|
|
function getWH(elem, name, ex) {
|
|
|
var extra = ex;
|
|
|
|
|
|
if (isWindow(elem)) {
|
|
|
return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
|
|
|
} else if (elem.nodeType === 9) {
|
|
|
return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
|
|
|
}
|
|
|
|
|
|
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
|
|
|
var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
|
|
|
var computedStyle = getComputedStyleX(elem);
|
|
|
var isBorderBox = isBorderBoxFn(elem);
|
|
|
var cssBoxValue = 0;
|
|
|
|
|
|
if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
|
|
|
borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
|
|
|
|
|
|
cssBoxValue = getComputedStyleX(elem, name);
|
|
|
|
|
|
if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
|
|
|
cssBoxValue = elem.style[name] || 0;
|
|
|
} // Normalize '', auto, and prepare for extra
|
|
|
|
|
|
|
|
|
cssBoxValue = parseFloat(cssBoxValue) || 0;
|
|
|
}
|
|
|
|
|
|
if (extra === undefined) {
|
|
|
extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
|
|
|
}
|
|
|
|
|
|
var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
|
|
|
var val = borderBoxValue || cssBoxValue;
|
|
|
|
|
|
if (extra === CONTENT_INDEX) {
|
|
|
if (borderBoxValueOrIsBorderBox) {
|
|
|
return val - getPBMWidth(elem, ['border', 'padding'], which);
|
|
|
}
|
|
|
|
|
|
return cssBoxValue;
|
|
|
} else if (borderBoxValueOrIsBorderBox) {
|
|
|
if (extra === BORDER_INDEX) {
|
|
|
return val;
|
|
|
}
|
|
|
|
|
|
return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));
|
|
|
}
|
|
|
|
|
|
return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
|
|
|
}
|
|
|
|
|
|
var cssShow = {
|
|
|
position: 'absolute',
|
|
|
visibility: 'hidden',
|
|
|
display: 'block'
|
|
|
}; // fix #119 : https://github.com/kissyteam/kissy/issues/119
|
|
|
|
|
|
function getWHIgnoreDisplay() {
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
|
|
|
args[_key2] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
var val;
|
|
|
var elem = args[0]; // in case elem is window
|
|
|
// elem.offsetWidth === undefined
|
|
|
|
|
|
if (elem.offsetWidth !== 0) {
|
|
|
val = getWH.apply(undefined, args);
|
|
|
} else {
|
|
|
swap(elem, cssShow, function () {
|
|
|
val = getWH.apply(undefined, args);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return val;
|
|
|
}
|
|
|
|
|
|
each(['width', 'height'], function (name) {
|
|
|
var first = name.charAt(0).toUpperCase() + name.slice(1);
|
|
|
|
|
|
domUtils["outer".concat(first)] = function (el, includeMargin) {
|
|
|
return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
|
|
|
};
|
|
|
|
|
|
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
|
|
|
|
|
|
domUtils[name] = function (elem, v) {
|
|
|
var val = v;
|
|
|
|
|
|
if (val !== undefined) {
|
|
|
if (elem) {
|
|
|
var computedStyle = getComputedStyleX(elem);
|
|
|
var isBorderBox = isBorderBoxFn(elem);
|
|
|
|
|
|
if (isBorderBox) {
|
|
|
val += getPBMWidth(elem, ['padding', 'border'], which);
|
|
|
}
|
|
|
|
|
|
return css(elem, name, val);
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
|
|
|
};
|
|
|
});
|
|
|
|
|
|
function mix(to, from) {
|
|
|
for (var i in from) {
|
|
|
if (from.hasOwnProperty(i)) {
|
|
|
to[i] = from[i];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return to;
|
|
|
}
|
|
|
|
|
|
var utils = {
|
|
|
getWindow: function getWindow(node) {
|
|
|
if (node && node.document && node.setTimeout) {
|
|
|
return node;
|
|
|
}
|
|
|
|
|
|
var doc = node.ownerDocument || node;
|
|
|
return doc.defaultView || doc.parentWindow;
|
|
|
},
|
|
|
getDocument: getDocument,
|
|
|
offset: function offset(el, value, option) {
|
|
|
if (typeof value !== 'undefined') {
|
|
|
setOffset(el, value, option || {});
|
|
|
} else {
|
|
|
return getOffset(el);
|
|
|
}
|
|
|
},
|
|
|
isWindow: isWindow,
|
|
|
each: each,
|
|
|
css: css,
|
|
|
clone: function clone(obj) {
|
|
|
var i;
|
|
|
var ret = {};
|
|
|
|
|
|
for (i in obj) {
|
|
|
if (obj.hasOwnProperty(i)) {
|
|
|
ret[i] = obj[i];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var overflow = obj.overflow;
|
|
|
|
|
|
if (overflow) {
|
|
|
for (i in obj) {
|
|
|
if (obj.hasOwnProperty(i)) {
|
|
|
ret.overflow[i] = obj.overflow[i];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
},
|
|
|
mix: mix,
|
|
|
getWindowScrollLeft: function getWindowScrollLeft(w) {
|
|
|
return getScrollLeft(w);
|
|
|
},
|
|
|
getWindowScrollTop: function getWindowScrollTop(w) {
|
|
|
return getScrollTop(w);
|
|
|
},
|
|
|
merge: function merge() {
|
|
|
var ret = {};
|
|
|
|
|
|
for (var i = 0; i < arguments.length; i++) {
|
|
|
utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
},
|
|
|
viewportWidth: 0,
|
|
|
viewportHeight: 0
|
|
|
};
|
|
|
mix(utils, domUtils);
|
|
|
|
|
|
/**
|
|
|
* 得到会导致元素显示不全的祖先元素
|
|
|
*/
|
|
|
|
|
|
var getParent = utils.getParent;
|
|
|
|
|
|
function getOffsetParent(element) {
|
|
|
if (utils.isWindow(element) || element.nodeType === 9) {
|
|
|
return null;
|
|
|
} // ie 这个也不是完全可行
|
|
|
|
|
|
/*
|
|
|
<div style="width: 50px;height: 100px;overflow: hidden">
|
|
|
<div style="width: 50px;height: 100px;position: relative;" id="d6">
|
|
|
元素 6 高 100px 宽 50px<br/>
|
|
|
</div>
|
|
|
</div>
|
|
|
*/
|
|
|
// element.offsetParent does the right thing in ie7 and below. Return parent with layout!
|
|
|
// In other browsers it only includes elements with position absolute, relative or
|
|
|
// fixed, not elements with overflow set to auto or scroll.
|
|
|
// if (UA.ie && ieMode < 8) {
|
|
|
// return element.offsetParent;
|
|
|
// }
|
|
|
// 统一的 offsetParent 方法
|
|
|
|
|
|
|
|
|
var doc = utils.getDocument(element);
|
|
|
var body = doc.body;
|
|
|
var parent;
|
|
|
var positionStyle = utils.css(element, 'position');
|
|
|
var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
|
|
|
|
|
|
if (!skipStatic) {
|
|
|
return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
|
|
|
}
|
|
|
|
|
|
for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
|
|
|
positionStyle = utils.css(parent, 'position');
|
|
|
|
|
|
if (positionStyle !== 'static') {
|
|
|
return parent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var getParent$1 = utils.getParent;
|
|
|
function isAncestorFixed(element) {
|
|
|
if (utils.isWindow(element) || element.nodeType === 9) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var doc = utils.getDocument(element);
|
|
|
var body = doc.body;
|
|
|
var parent = null;
|
|
|
|
|
|
for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {
|
|
|
var positionStyle = utils.css(parent, 'position');
|
|
|
|
|
|
if (positionStyle === 'fixed') {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获得元素的显示部分的区域
|
|
|
*/
|
|
|
|
|
|
function getVisibleRectForElement(element, alwaysByViewport) {
|
|
|
var visibleRect = {
|
|
|
left: 0,
|
|
|
right: Infinity,
|
|
|
top: 0,
|
|
|
bottom: Infinity
|
|
|
};
|
|
|
var el = getOffsetParent(element);
|
|
|
var doc = utils.getDocument(element);
|
|
|
var win = doc.defaultView || doc.parentWindow;
|
|
|
var body = doc.body;
|
|
|
var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for
|
|
|
// all scrollable containers.
|
|
|
|
|
|
while (el) {
|
|
|
// clientWidth is zero for inline block elements in ie.
|
|
|
if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
|
|
|
// viewport. In some browsers, el.offsetParent may be
|
|
|
// document.documentElement, so check for that too.
|
|
|
el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
|
|
|
var pos = utils.offset(el); // add border
|
|
|
|
|
|
pos.left += el.clientLeft;
|
|
|
pos.top += el.clientTop;
|
|
|
visibleRect.top = Math.max(visibleRect.top, pos.top);
|
|
|
visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar
|
|
|
pos.left + el.clientWidth);
|
|
|
visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
|
|
|
visibleRect.left = Math.max(visibleRect.left, pos.left);
|
|
|
} else if (el === body || el === documentElement) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
el = getOffsetParent(el);
|
|
|
} // Set element position to fixed
|
|
|
// make sure absolute element itself don't affect it's visible area
|
|
|
// https://github.com/ant-design/ant-design/issues/7601
|
|
|
|
|
|
|
|
|
var originalPosition = null;
|
|
|
|
|
|
if (!utils.isWindow(element) && element.nodeType !== 9) {
|
|
|
originalPosition = element.style.position;
|
|
|
var position = utils.css(element, 'position');
|
|
|
|
|
|
if (position === 'absolute') {
|
|
|
element.style.position = 'fixed';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var scrollX = utils.getWindowScrollLeft(win);
|
|
|
var scrollY = utils.getWindowScrollTop(win);
|
|
|
var viewportWidth = utils.viewportWidth(win);
|
|
|
var viewportHeight = utils.viewportHeight(win);
|
|
|
var documentWidth = documentElement.scrollWidth;
|
|
|
var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
|
|
|
// We should cut this ourself.
|
|
|
|
|
|
var bodyStyle = window.getComputedStyle(body);
|
|
|
|
|
|
if (bodyStyle.overflowX === 'hidden') {
|
|
|
documentWidth = win.innerWidth;
|
|
|
}
|
|
|
|
|
|
if (bodyStyle.overflowY === 'hidden') {
|
|
|
documentHeight = win.innerHeight;
|
|
|
} // Reset element position after calculate the visible area
|
|
|
|
|
|
|
|
|
if (element.style) {
|
|
|
element.style.position = originalPosition;
|
|
|
}
|
|
|
|
|
|
if (alwaysByViewport || isAncestorFixed(element)) {
|
|
|
// Clip by viewport's size.
|
|
|
visibleRect.left = Math.max(visibleRect.left, scrollX);
|
|
|
visibleRect.top = Math.max(visibleRect.top, scrollY);
|
|
|
visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
|
|
|
visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
|
|
|
} else {
|
|
|
// Clip by document's size.
|
|
|
var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
|
|
|
visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
|
|
|
var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
|
|
|
visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
|
|
|
}
|
|
|
|
|
|
return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
|
|
|
}
|
|
|
|
|
|
function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
|
|
|
var pos = utils.clone(elFuturePos);
|
|
|
var size = {
|
|
|
width: elRegion.width,
|
|
|
height: elRegion.height
|
|
|
};
|
|
|
|
|
|
if (overflow.adjustX && pos.left < visibleRect.left) {
|
|
|
pos.left = visibleRect.left;
|
|
|
} // Left edge inside and right edge outside viewport, try to resize it.
|
|
|
|
|
|
|
|
|
if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
|
|
|
size.width -= pos.left + size.width - visibleRect.right;
|
|
|
} // Right edge outside viewport, try to move it.
|
|
|
|
|
|
|
|
|
if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
|
|
|
// 保证左边界和可视区域左边界对齐
|
|
|
pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
|
|
|
} // Top edge outside viewport, try to move it.
|
|
|
|
|
|
|
|
|
if (overflow.adjustY && pos.top < visibleRect.top) {
|
|
|
pos.top = visibleRect.top;
|
|
|
} // Top edge inside and bottom edge outside viewport, try to resize it.
|
|
|
|
|
|
|
|
|
if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
|
|
|
size.height -= pos.top + size.height - visibleRect.bottom;
|
|
|
} // Bottom edge outside viewport, try to move it.
|
|
|
|
|
|
|
|
|
if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
|
|
|
// 保证上边界和可视区域上边界对齐
|
|
|
pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
|
|
|
}
|
|
|
|
|
|
return utils.mix(pos, size);
|
|
|
}
|
|
|
|
|
|
function getRegion(node) {
|
|
|
var offset;
|
|
|
var w;
|
|
|
var h;
|
|
|
|
|
|
if (!utils.isWindow(node) && node.nodeType !== 9) {
|
|
|
offset = utils.offset(node);
|
|
|
w = utils.outerWidth(node);
|
|
|
h = utils.outerHeight(node);
|
|
|
} else {
|
|
|
var win = utils.getWindow(node);
|
|
|
offset = {
|
|
|
left: utils.getWindowScrollLeft(win),
|
|
|
top: utils.getWindowScrollTop(win)
|
|
|
};
|
|
|
w = utils.viewportWidth(win);
|
|
|
h = utils.viewportHeight(win);
|
|
|
}
|
|
|
|
|
|
offset.width = w;
|
|
|
offset.height = h;
|
|
|
return offset;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取 node 上的 align 对齐点 相对于页面的坐标
|
|
|
*/
|
|
|
function getAlignOffset(region, align) {
|
|
|
var V = align.charAt(0);
|
|
|
var H = align.charAt(1);
|
|
|
var w = region.width;
|
|
|
var h = region.height;
|
|
|
var x = region.left;
|
|
|
var y = region.top;
|
|
|
|
|
|
if (V === 'c') {
|
|
|
y += h / 2;
|
|
|
} else if (V === 'b') {
|
|
|
y += h;
|
|
|
}
|
|
|
|
|
|
if (H === 'c') {
|
|
|
x += w / 2;
|
|
|
} else if (H === 'r') {
|
|
|
x += w;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
left: x,
|
|
|
top: y
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
|
|
|
var p1 = getAlignOffset(refNodeRegion, points[1]);
|
|
|
var p2 = getAlignOffset(elRegion, points[0]);
|
|
|
var diff = [p2.left - p1.left, p2.top - p1.top];
|
|
|
return {
|
|
|
left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
|
|
|
top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* align dom node flexibly
|
|
|
* @author yiminghe@gmail.com
|
|
|
*/
|
|
|
|
|
|
function isFailX(elFuturePos, elRegion, visibleRect) {
|
|
|
return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
|
|
|
}
|
|
|
|
|
|
function isFailY(elFuturePos, elRegion, visibleRect) {
|
|
|
return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
|
|
|
}
|
|
|
|
|
|
function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
|
|
|
return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
|
|
|
}
|
|
|
|
|
|
function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
|
|
|
return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
|
|
|
}
|
|
|
|
|
|
function flip(points, reg, map) {
|
|
|
var ret = [];
|
|
|
utils.each(points, function (p) {
|
|
|
ret.push(p.replace(reg, function (m) {
|
|
|
return map[m];
|
|
|
}));
|
|
|
});
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
function flipOffset(offset, index) {
|
|
|
offset[index] = -offset[index];
|
|
|
return offset;
|
|
|
}
|
|
|
|
|
|
function convertOffset(str, offsetLen) {
|
|
|
var n;
|
|
|
|
|
|
if (/%$/.test(str)) {
|
|
|
n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
|
|
|
} else {
|
|
|
n = parseInt(str, 10);
|
|
|
}
|
|
|
|
|
|
return n || 0;
|
|
|
}
|
|
|
|
|
|
function normalizeOffset(offset, el) {
|
|
|
offset[0] = convertOffset(offset[0], el.width);
|
|
|
offset[1] = convertOffset(offset[1], el.height);
|
|
|
}
|
|
|
/**
|
|
|
* @param el
|
|
|
* @param tgtRegion 参照节点所占的区域: { left, top, width, height }
|
|
|
* @param align
|
|
|
*/
|
|
|
|
|
|
|
|
|
function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
var points = align.points;
|
|
|
var offset = align.offset || [0, 0];
|
|
|
var targetOffset = align.targetOffset || [0, 0];
|
|
|
var overflow = align.overflow;
|
|
|
var source = align.source || el;
|
|
|
offset = [].concat(offset);
|
|
|
targetOffset = [].concat(targetOffset);
|
|
|
overflow = overflow || {};
|
|
|
var newOverflowCfg = {};
|
|
|
var fail = 0;
|
|
|
var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域
|
|
|
|
|
|
var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height
|
|
|
|
|
|
var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比
|
|
|
|
|
|
normalizeOffset(offset, elRegion);
|
|
|
normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置
|
|
|
|
|
|
var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域
|
|
|
|
|
|
var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整
|
|
|
|
|
|
if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
|
|
|
if (overflow.adjustX) {
|
|
|
// 如果横向不能放下
|
|
|
if (isFailX(elFuturePos, elRegion, visibleRect)) {
|
|
|
// 对齐位置反下
|
|
|
var newPoints = flip(points, /[lr]/gi, {
|
|
|
l: 'r',
|
|
|
r: 'l'
|
|
|
}); // 偏移量也反下
|
|
|
|
|
|
var newOffset = flipOffset(offset, 0);
|
|
|
var newTargetOffset = flipOffset(targetOffset, 0);
|
|
|
var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
|
|
|
|
|
|
if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
|
|
|
fail = 1;
|
|
|
points = newPoints;
|
|
|
offset = newOffset;
|
|
|
targetOffset = newTargetOffset;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (overflow.adjustY) {
|
|
|
// 如果纵向不能放下
|
|
|
if (isFailY(elFuturePos, elRegion, visibleRect)) {
|
|
|
// 对齐位置反下
|
|
|
var _newPoints = flip(points, /[tb]/gi, {
|
|
|
t: 'b',
|
|
|
b: 't'
|
|
|
}); // 偏移量也反下
|
|
|
|
|
|
|
|
|
var _newOffset = flipOffset(offset, 1);
|
|
|
|
|
|
var _newTargetOffset = flipOffset(targetOffset, 1);
|
|
|
|
|
|
var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
|
|
|
|
|
|
if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
|
|
|
fail = 1;
|
|
|
points = _newPoints;
|
|
|
offset = _newOffset;
|
|
|
targetOffset = _newTargetOffset;
|
|
|
}
|
|
|
}
|
|
|
} // 如果失败,重新计算当前节点将要被放置的位置
|
|
|
|
|
|
|
|
|
if (fail) {
|
|
|
elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
|
|
|
utils.mix(newElRegion, elFuturePos);
|
|
|
}
|
|
|
|
|
|
var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
|
|
|
var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:
|
|
|
// 1. 复原修改过的定位参数
|
|
|
|
|
|
if (isStillFailX || isStillFailY) {
|
|
|
var _newPoints2 = points; // 重置对应部分的翻转逻辑
|
|
|
|
|
|
if (isStillFailX) {
|
|
|
_newPoints2 = flip(points, /[lr]/gi, {
|
|
|
l: 'r',
|
|
|
r: 'l'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (isStillFailY) {
|
|
|
_newPoints2 = flip(points, /[tb]/gi, {
|
|
|
t: 'b',
|
|
|
b: 't'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
points = _newPoints2;
|
|
|
offset = align.offset || [0, 0];
|
|
|
targetOffset = align.targetOffset || [0, 0];
|
|
|
} // 2. 只有指定了可以调整当前方向才调整
|
|
|
|
|
|
|
|
|
newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
|
|
|
newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度
|
|
|
|
|
|
if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
|
|
|
newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
|
|
|
}
|
|
|
} // need judge to in case set fixed with in css on height auto element
|
|
|
|
|
|
|
|
|
if (newElRegion.width !== elRegion.width) {
|
|
|
utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
|
|
|
}
|
|
|
|
|
|
if (newElRegion.height !== elRegion.height) {
|
|
|
utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
|
|
|
} // https://github.com/kissyteam/kissy/issues/190
|
|
|
// 相对于屏幕位置没变,而 left/top 变了
|
|
|
// 例如 <div 'relative'><el absolute></div>
|
|
|
|
|
|
|
|
|
utils.offset(source, {
|
|
|
left: newElRegion.left,
|
|
|
top: newElRegion.top
|
|
|
}, {
|
|
|
useCssRight: align.useCssRight,
|
|
|
useCssBottom: align.useCssBottom,
|
|
|
useCssTransform: align.useCssTransform,
|
|
|
ignoreShake: align.ignoreShake
|
|
|
});
|
|
|
return {
|
|
|
points: points,
|
|
|
offset: offset,
|
|
|
targetOffset: targetOffset,
|
|
|
overflow: newOverflowCfg
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* 2012-04-26 yiminghe@gmail.com
|
|
|
* - 优化智能对齐算法
|
|
|
* - 慎用 resizeXX
|
|
|
*
|
|
|
* 2011-07-13 yiminghe@gmail.com note:
|
|
|
* - 增加智能对齐,以及大小调整选项
|
|
|
**/
|
|
|
|
|
|
function isOutOfVisibleRect(target, alwaysByViewport) {
|
|
|
var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
|
|
|
var targetRegion = getRegion(target);
|
|
|
return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
|
|
|
}
|
|
|
|
|
|
function alignElement(el, refNode, align) {
|
|
|
var target = align.target || refNode;
|
|
|
var refNodeRegion = getRegion(target);
|
|
|
var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
|
|
|
return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
|
|
|
}
|
|
|
|
|
|
alignElement.__getOffsetParent = getOffsetParent;
|
|
|
alignElement.__getVisibleRectForElement = getVisibleRectForElement;
|
|
|
|
|
|
/**
|
|
|
* `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
|
|
|
* If client position provided, will internal convert to page position.
|
|
|
*/
|
|
|
|
|
|
function alignPoint(el, tgtPoint, align) {
|
|
|
var pageX;
|
|
|
var pageY;
|
|
|
var doc = utils.getDocument(el);
|
|
|
var win = doc.defaultView || doc.parentWindow;
|
|
|
var scrollX = utils.getWindowScrollLeft(win);
|
|
|
var scrollY = utils.getWindowScrollTop(win);
|
|
|
var viewportWidth = utils.viewportWidth(win);
|
|
|
var viewportHeight = utils.viewportHeight(win);
|
|
|
|
|
|
if ('pageX' in tgtPoint) {
|
|
|
pageX = tgtPoint.pageX;
|
|
|
} else {
|
|
|
pageX = scrollX + tgtPoint.clientX;
|
|
|
}
|
|
|
|
|
|
if ('pageY' in tgtPoint) {
|
|
|
pageY = tgtPoint.pageY;
|
|
|
} else {
|
|
|
pageY = scrollY + tgtPoint.clientY;
|
|
|
}
|
|
|
|
|
|
var tgtRegion = {
|
|
|
left: pageX,
|
|
|
top: pageY,
|
|
|
width: 0,
|
|
|
height: 0
|
|
|
};
|
|
|
var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point
|
|
|
|
|
|
var points = [align.points[0], 'cc'];
|
|
|
return doAlign(el, tgtRegion, _objectSpread2({}, align, {
|
|
|
points: points
|
|
|
}), pointInView);
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (alignElement);
|
|
|
|
|
|
//# sourceMappingURL=index.js.map
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
|
|
|
/*!**********************************************************************************!*\
|
|
|
!*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
|
|
|
\**********************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
|
|
|
/**
|
|
|
* Copyright 2015, Yahoo! Inc.
|
|
|
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
|
*/
|
|
|
var REACT_STATICS = {
|
|
|
childContextTypes: true,
|
|
|
contextType: true,
|
|
|
contextTypes: true,
|
|
|
defaultProps: true,
|
|
|
displayName: true,
|
|
|
getDefaultProps: true,
|
|
|
getDerivedStateFromError: true,
|
|
|
getDerivedStateFromProps: true,
|
|
|
mixins: true,
|
|
|
propTypes: true,
|
|
|
type: true
|
|
|
};
|
|
|
var KNOWN_STATICS = {
|
|
|
name: true,
|
|
|
length: true,
|
|
|
prototype: true,
|
|
|
caller: true,
|
|
|
callee: true,
|
|
|
arguments: true,
|
|
|
arity: true
|
|
|
};
|
|
|
var FORWARD_REF_STATICS = {
|
|
|
'$$typeof': true,
|
|
|
render: true,
|
|
|
defaultProps: true,
|
|
|
displayName: true,
|
|
|
propTypes: true
|
|
|
};
|
|
|
var MEMO_STATICS = {
|
|
|
'$$typeof': true,
|
|
|
compare: true,
|
|
|
defaultProps: true,
|
|
|
displayName: true,
|
|
|
propTypes: true,
|
|
|
type: true
|
|
|
};
|
|
|
var TYPE_STATICS = {};
|
|
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
|
|
|
|
function getStatics(component) {
|
|
|
// React v16.11 and below
|
|
|
if (reactIs.isMemo(component)) {
|
|
|
return MEMO_STATICS;
|
|
|
} // React v16.12 and above
|
|
|
|
|
|
|
|
|
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
|
}
|
|
|
|
|
|
var defineProperty = Object.defineProperty;
|
|
|
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
|
var objectPrototype = Object.prototype;
|
|
|
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
if (typeof sourceComponent !== 'string') {
|
|
|
// don't hoist over string (html) components
|
|
|
if (objectPrototype) {
|
|
|
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
|
|
|
|
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var keys = getOwnPropertyNames(sourceComponent);
|
|
|
|
|
|
if (getOwnPropertySymbols) {
|
|
|
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
|
}
|
|
|
|
|
|
var targetStatics = getStatics(targetComponent);
|
|
|
var sourceStatics = getStatics(sourceComponent);
|
|
|
|
|
|
for (var i = 0; i < keys.length; ++i) {
|
|
|
var key = keys[i];
|
|
|
|
|
|
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
|
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
|
|
|
|
try {
|
|
|
// Avoid failures from read-only properties
|
|
|
defineProperty(targetComponent, key, descriptor);
|
|
|
} catch (e) {}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return targetComponent;
|
|
|
}
|
|
|
|
|
|
module.exports = hoistNonReactStatics;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_DataView.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_DataView.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
|
|
|
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var DataView = getNative(root, 'DataView');
|
|
|
|
|
|
module.exports = DataView;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Hash.js":
|
|
|
/*!**************************************!*\
|
|
|
!*** ./node_modules/lodash/_Hash.js ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
|
|
|
hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
|
|
|
hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
|
|
|
hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
|
|
|
hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
|
|
|
|
|
|
/**
|
|
|
* Creates a hash object.
|
|
|
*
|
|
|
* @private
|
|
|
* @constructor
|
|
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
|
*/
|
|
|
function Hash(entries) {
|
|
|
var index = -1,
|
|
|
length = entries == null ? 0 : entries.length;
|
|
|
|
|
|
this.clear();
|
|
|
while (++index < length) {
|
|
|
var entry = entries[index];
|
|
|
this.set(entry[0], entry[1]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Add methods to `Hash`.
|
|
|
Hash.prototype.clear = hashClear;
|
|
|
Hash.prototype['delete'] = hashDelete;
|
|
|
Hash.prototype.get = hashGet;
|
|
|
Hash.prototype.has = hashHas;
|
|
|
Hash.prototype.set = hashSet;
|
|
|
|
|
|
module.exports = Hash;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_ListCache.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_ListCache.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
|
|
|
listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
|
|
|
listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
|
|
|
listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
|
|
|
listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
|
|
|
|
|
|
/**
|
|
|
* Creates an list cache object.
|
|
|
*
|
|
|
* @private
|
|
|
* @constructor
|
|
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
|
*/
|
|
|
function ListCache(entries) {
|
|
|
var index = -1,
|
|
|
length = entries == null ? 0 : entries.length;
|
|
|
|
|
|
this.clear();
|
|
|
while (++index < length) {
|
|
|
var entry = entries[index];
|
|
|
this.set(entry[0], entry[1]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Add methods to `ListCache`.
|
|
|
ListCache.prototype.clear = listCacheClear;
|
|
|
ListCache.prototype['delete'] = listCacheDelete;
|
|
|
ListCache.prototype.get = listCacheGet;
|
|
|
ListCache.prototype.has = listCacheHas;
|
|
|
ListCache.prototype.set = listCacheSet;
|
|
|
|
|
|
module.exports = ListCache;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Map.js":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./node_modules/lodash/_Map.js ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
|
|
|
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var Map = getNative(root, 'Map');
|
|
|
|
|
|
module.exports = Map;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_MapCache.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_MapCache.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
|
|
|
mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
|
|
|
mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
|
|
|
mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
|
|
|
mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
|
|
|
|
|
|
/**
|
|
|
* Creates a map cache object to store key-value pairs.
|
|
|
*
|
|
|
* @private
|
|
|
* @constructor
|
|
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
|
*/
|
|
|
function MapCache(entries) {
|
|
|
var index = -1,
|
|
|
length = entries == null ? 0 : entries.length;
|
|
|
|
|
|
this.clear();
|
|
|
while (++index < length) {
|
|
|
var entry = entries[index];
|
|
|
this.set(entry[0], entry[1]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Add methods to `MapCache`.
|
|
|
MapCache.prototype.clear = mapCacheClear;
|
|
|
MapCache.prototype['delete'] = mapCacheDelete;
|
|
|
MapCache.prototype.get = mapCacheGet;
|
|
|
MapCache.prototype.has = mapCacheHas;
|
|
|
MapCache.prototype.set = mapCacheSet;
|
|
|
|
|
|
module.exports = MapCache;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Promise.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_Promise.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
|
|
|
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var Promise = getNative(root, 'Promise');
|
|
|
|
|
|
module.exports = Promise;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Set.js":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./node_modules/lodash/_Set.js ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
|
|
|
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var Set = getNative(root, 'Set');
|
|
|
|
|
|
module.exports = Set;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_SetCache.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_SetCache.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
|
|
|
setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
|
|
|
setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* Creates an array cache object to store unique values.
|
|
|
*
|
|
|
* @private
|
|
|
* @constructor
|
|
|
* @param {Array} [values] The values to cache.
|
|
|
*/
|
|
|
function SetCache(values) {
|
|
|
var index = -1,
|
|
|
length = values == null ? 0 : values.length;
|
|
|
|
|
|
this.__data__ = new MapCache;
|
|
|
while (++index < length) {
|
|
|
this.add(values[index]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Add methods to `SetCache`.
|
|
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
|
SetCache.prototype.has = setCacheHas;
|
|
|
|
|
|
module.exports = SetCache;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Stack.js":
|
|
|
/*!***************************************!*\
|
|
|
!*** ./node_modules/lodash/_Stack.js ***!
|
|
|
\***************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
|
|
|
stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
|
|
|
stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
|
|
|
stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
|
|
|
stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
|
|
|
stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
|
|
|
|
|
|
/**
|
|
|
* Creates a stack cache object to store key-value pairs.
|
|
|
*
|
|
|
* @private
|
|
|
* @constructor
|
|
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
|
*/
|
|
|
function Stack(entries) {
|
|
|
var data = this.__data__ = new ListCache(entries);
|
|
|
this.size = data.size;
|
|
|
}
|
|
|
|
|
|
// Add methods to `Stack`.
|
|
|
Stack.prototype.clear = stackClear;
|
|
|
Stack.prototype['delete'] = stackDelete;
|
|
|
Stack.prototype.get = stackGet;
|
|
|
Stack.prototype.has = stackHas;
|
|
|
Stack.prototype.set = stackSet;
|
|
|
|
|
|
module.exports = Stack;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Symbol.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/lodash/_Symbol.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var Symbol = root.Symbol;
|
|
|
|
|
|
module.exports = Symbol;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_Uint8Array.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_Uint8Array.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var Uint8Array = root.Uint8Array;
|
|
|
|
|
|
module.exports = Uint8Array;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_WeakMap.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_WeakMap.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
|
|
|
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var WeakMap = getNative(root, 'WeakMap');
|
|
|
|
|
|
module.exports = WeakMap;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_arrayFilter.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_arrayFilter.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `_.filter` for arrays without support for
|
|
|
* iteratee shorthands.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Array} [array] The array to iterate over.
|
|
|
* @param {Function} predicate The function invoked per iteration.
|
|
|
* @returns {Array} Returns the new filtered array.
|
|
|
*/
|
|
|
function arrayFilter(array, predicate) {
|
|
|
var index = -1,
|
|
|
length = array == null ? 0 : array.length,
|
|
|
resIndex = 0,
|
|
|
result = [];
|
|
|
|
|
|
while (++index < length) {
|
|
|
var value = array[index];
|
|
|
if (predicate(value, index, array)) {
|
|
|
result[resIndex++] = value;
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = arrayFilter;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_arrayLikeKeys.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/lodash/_arrayLikeKeys.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
|
|
|
isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
|
|
|
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
|
|
|
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
|
|
|
isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
|
|
|
isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to query.
|
|
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
|
* @returns {Array} Returns the array of property names.
|
|
|
*/
|
|
|
function arrayLikeKeys(value, inherited) {
|
|
|
var isArr = isArray(value),
|
|
|
isArg = !isArr && isArguments(value),
|
|
|
isBuff = !isArr && !isArg && isBuffer(value),
|
|
|
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
|
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
|
length = result.length;
|
|
|
|
|
|
for (var key in value) {
|
|
|
if ((inherited || hasOwnProperty.call(value, key)) &&
|
|
|
!(skipIndexes && (
|
|
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
|
key == 'length' ||
|
|
|
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
|
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
|
// Skip index properties.
|
|
|
isIndex(key, length)
|
|
|
))) {
|
|
|
result.push(key);
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = arrayLikeKeys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_arrayPush.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_arrayPush.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Appends the elements of `values` to `array`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Array} array The array to modify.
|
|
|
* @param {Array} values The values to append.
|
|
|
* @returns {Array} Returns `array`.
|
|
|
*/
|
|
|
function arrayPush(array, values) {
|
|
|
var index = -1,
|
|
|
length = values.length,
|
|
|
offset = array.length;
|
|
|
|
|
|
while (++index < length) {
|
|
|
array[offset + index] = values[index];
|
|
|
}
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
module.exports = arrayPush;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_arraySome.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_arraySome.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
|
* shorthands.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Array} [array] The array to iterate over.
|
|
|
* @param {Function} predicate The function invoked per iteration.
|
|
|
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
|
* else `false`.
|
|
|
*/
|
|
|
function arraySome(array, predicate) {
|
|
|
var index = -1,
|
|
|
length = array == null ? 0 : array.length;
|
|
|
|
|
|
while (++index < length) {
|
|
|
if (predicate(array[index], index, array)) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
module.exports = arraySome;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_assocIndexOf.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_assocIndexOf.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Array} array The array to inspect.
|
|
|
* @param {*} key The key to search for.
|
|
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
|
*/
|
|
|
function assocIndexOf(array, key) {
|
|
|
var length = array.length;
|
|
|
while (length--) {
|
|
|
if (eq(array[length][0], key)) {
|
|
|
return length;
|
|
|
}
|
|
|
}
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
module.exports = assocIndexOf;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseGetAllKeys.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseGetAllKeys.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
|
|
|
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
|
* symbols of `object`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to query.
|
|
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
|
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
|
* @returns {Array} Returns the array of property names and symbols.
|
|
|
*/
|
|
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
var result = keysFunc(object);
|
|
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
|
}
|
|
|
|
|
|
module.exports = baseGetAllKeys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseGetTag.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseGetTag.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
|
|
|
getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
|
|
|
objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var nullTag = '[object Null]',
|
|
|
undefinedTag = '[object Undefined]';
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to query.
|
|
|
* @returns {string} Returns the `toStringTag`.
|
|
|
*/
|
|
|
function baseGetTag(value) {
|
|
|
if (value == null) {
|
|
|
return value === undefined ? undefinedTag : nullTag;
|
|
|
}
|
|
|
return (symToStringTag && symToStringTag in Object(value))
|
|
|
? getRawTag(value)
|
|
|
: objectToString(value);
|
|
|
}
|
|
|
|
|
|
module.exports = baseGetTag;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseIsArguments.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseIsArguments.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
|
|
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var argsTag = '[object Arguments]';
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.isArguments`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
|
*/
|
|
|
function baseIsArguments(value) {
|
|
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
|
}
|
|
|
|
|
|
module.exports = baseIsArguments;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseIsEqual.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseIsEqual.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
|
|
|
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
|
* and tracks traversed objects.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to compare.
|
|
|
* @param {*} other The other value to compare.
|
|
|
* @param {boolean} bitmask The bitmask flags.
|
|
|
* 1 - Unordered comparison
|
|
|
* 2 - Partial comparison
|
|
|
* @param {Function} [customizer] The function to customize comparisons.
|
|
|
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
|
*/
|
|
|
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
|
if (value === other) {
|
|
|
return true;
|
|
|
}
|
|
|
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
|
return value !== value && other !== other;
|
|
|
}
|
|
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
|
}
|
|
|
|
|
|
module.exports = baseIsEqual;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
|
|
|
equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
|
|
|
equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
|
|
|
equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
|
|
|
getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
|
|
|
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
|
|
|
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
|
|
|
isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
|
|
|
|
|
|
/** Used to compose bitmasks for value comparisons. */
|
|
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var argsTag = '[object Arguments]',
|
|
|
arrayTag = '[object Array]',
|
|
|
objectTag = '[object Object]';
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
|
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
|
* references to be compared.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to compare.
|
|
|
* @param {Object} other The other object to compare.
|
|
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
|
* @param {Function} customizer The function to customize comparisons.
|
|
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
|
*/
|
|
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
var objIsArr = isArray(object),
|
|
|
othIsArr = isArray(other),
|
|
|
objTag = objIsArr ? arrayTag : getTag(object),
|
|
|
othTag = othIsArr ? arrayTag : getTag(other);
|
|
|
|
|
|
objTag = objTag == argsTag ? objectTag : objTag;
|
|
|
othTag = othTag == argsTag ? objectTag : othTag;
|
|
|
|
|
|
var objIsObj = objTag == objectTag,
|
|
|
othIsObj = othTag == objectTag,
|
|
|
isSameTag = objTag == othTag;
|
|
|
|
|
|
if (isSameTag && isBuffer(object)) {
|
|
|
if (!isBuffer(other)) {
|
|
|
return false;
|
|
|
}
|
|
|
objIsArr = true;
|
|
|
objIsObj = false;
|
|
|
}
|
|
|
if (isSameTag && !objIsObj) {
|
|
|
stack || (stack = new Stack);
|
|
|
return (objIsArr || isTypedArray(object))
|
|
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
|
}
|
|
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
|
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
|
|
|
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
|
|
|
|
|
|
if (objIsWrapped || othIsWrapped) {
|
|
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
|
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
|
|
|
|
stack || (stack = new Stack);
|
|
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
|
}
|
|
|
}
|
|
|
if (!isSameTag) {
|
|
|
return false;
|
|
|
}
|
|
|
stack || (stack = new Stack);
|
|
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
|
}
|
|
|
|
|
|
module.exports = baseIsEqualDeep;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseIsNative.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseIsNative.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
|
|
|
isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
|
|
|
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
|
|
|
toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
|
|
|
|
|
|
/**
|
|
|
* Used to match `RegExp`
|
|
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
|
*/
|
|
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
|
|
|
|
/** Used to detect host constructors (Safari). */
|
|
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var funcProto = Function.prototype,
|
|
|
objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to resolve the decompiled source of functions. */
|
|
|
var funcToString = funcProto.toString;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/** Used to detect if a method is native. */
|
|
|
var reIsNative = RegExp('^' +
|
|
|
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
|
);
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.isNative` without bad shim checks.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
|
* else `false`.
|
|
|
*/
|
|
|
function baseIsNative(value) {
|
|
|
if (!isObject(value) || isMasked(value)) {
|
|
|
return false;
|
|
|
}
|
|
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
|
return pattern.test(toSource(value));
|
|
|
}
|
|
|
|
|
|
module.exports = baseIsNative;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseIsTypedArray.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseIsTypedArray.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
|
|
isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
|
|
|
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var argsTag = '[object Arguments]',
|
|
|
arrayTag = '[object Array]',
|
|
|
boolTag = '[object Boolean]',
|
|
|
dateTag = '[object Date]',
|
|
|
errorTag = '[object Error]',
|
|
|
funcTag = '[object Function]',
|
|
|
mapTag = '[object Map]',
|
|
|
numberTag = '[object Number]',
|
|
|
objectTag = '[object Object]',
|
|
|
regexpTag = '[object RegExp]',
|
|
|
setTag = '[object Set]',
|
|
|
stringTag = '[object String]',
|
|
|
weakMapTag = '[object WeakMap]';
|
|
|
|
|
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
|
dataViewTag = '[object DataView]',
|
|
|
float32Tag = '[object Float32Array]',
|
|
|
float64Tag = '[object Float64Array]',
|
|
|
int8Tag = '[object Int8Array]',
|
|
|
int16Tag = '[object Int16Array]',
|
|
|
int32Tag = '[object Int32Array]',
|
|
|
uint8Tag = '[object Uint8Array]',
|
|
|
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
|
uint16Tag = '[object Uint16Array]',
|
|
|
uint32Tag = '[object Uint32Array]';
|
|
|
|
|
|
/** Used to identify `toStringTag` values of typed arrays. */
|
|
|
var typedArrayTags = {};
|
|
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
|
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
|
typedArrayTags[uint32Tag] = true;
|
|
|
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
|
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
|
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
|
|
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
|
|
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
|
|
typedArrayTags[weakMapTag] = false;
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
|
*/
|
|
|
function baseIsTypedArray(value) {
|
|
|
return isObjectLike(value) &&
|
|
|
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
|
}
|
|
|
|
|
|
module.exports = baseIsTypedArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseKeys.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseKeys.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
|
|
|
nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to query.
|
|
|
* @returns {Array} Returns the array of property names.
|
|
|
*/
|
|
|
function baseKeys(object) {
|
|
|
if (!isPrototype(object)) {
|
|
|
return nativeKeys(object);
|
|
|
}
|
|
|
var result = [];
|
|
|
for (var key in Object(object)) {
|
|
|
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
|
|
result.push(key);
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = baseKeys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseTimes.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseTimes.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
|
* or max array length checks.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {number} n The number of times to invoke `iteratee`.
|
|
|
* @param {Function} iteratee The function invoked per iteration.
|
|
|
* @returns {Array} Returns the array of results.
|
|
|
*/
|
|
|
function baseTimes(n, iteratee) {
|
|
|
var index = -1,
|
|
|
result = Array(n);
|
|
|
|
|
|
while (++index < n) {
|
|
|
result[index] = iteratee(index);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = baseTimes;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseTrim.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseTrim.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");
|
|
|
|
|
|
/** Used to match leading whitespace. */
|
|
|
var reTrimStart = /^\s+/;
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.trim`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {string} string The string to trim.
|
|
|
* @returns {string} Returns the trimmed string.
|
|
|
*/
|
|
|
function baseTrim(string) {
|
|
|
return string
|
|
|
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
|
: string;
|
|
|
}
|
|
|
|
|
|
module.exports = baseTrim;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_baseUnary.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_baseUnary.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Function} func The function to cap arguments for.
|
|
|
* @returns {Function} Returns the new capped function.
|
|
|
*/
|
|
|
function baseUnary(func) {
|
|
|
return function(value) {
|
|
|
return func(value);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = baseUnary;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_cacheHas.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_cacheHas.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if a `cache` value for `key` exists.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} cache The cache to query.
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
*/
|
|
|
function cacheHas(cache, key) {
|
|
|
return cache.has(key);
|
|
|
}
|
|
|
|
|
|
module.exports = cacheHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_coreJsData.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_coreJsData.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/** Used to detect overreaching core-js shims. */
|
|
|
var coreJsData = root['__core-js_shared__'];
|
|
|
|
|
|
module.exports = coreJsData;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_equalArrays.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_equalArrays.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
|
|
|
arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
|
|
|
cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
|
|
|
|
|
|
/** Used to compose bitmasks for value comparisons. */
|
|
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
|
COMPARE_UNORDERED_FLAG = 2;
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
|
* partial deep comparisons.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Array} array The array to compare.
|
|
|
* @param {Array} other The other array to compare.
|
|
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
|
* @param {Function} customizer The function to customize comparisons.
|
|
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
|
*/
|
|
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
|
arrLength = array.length,
|
|
|
othLength = other.length;
|
|
|
|
|
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
|
return false;
|
|
|
}
|
|
|
// 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 ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
|
|
|
Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
|
|
|
eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
|
|
|
equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
|
|
|
mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
|
|
|
setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
|
|
|
|
|
|
/** Used to compose bitmasks for value comparisons. */
|
|
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
|
COMPARE_UNORDERED_FLAG = 2;
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var boolTag = '[object Boolean]',
|
|
|
dateTag = '[object Date]',
|
|
|
errorTag = '[object Error]',
|
|
|
mapTag = '[object Map]',
|
|
|
numberTag = '[object Number]',
|
|
|
regexpTag = '[object RegExp]',
|
|
|
setTag = '[object Set]',
|
|
|
stringTag = '[object String]',
|
|
|
symbolTag = '[object Symbol]';
|
|
|
|
|
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
|
dataViewTag = '[object DataView]';
|
|
|
|
|
|
/** Used to convert symbols to primitives and strings. */
|
|
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
|
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
|
* the same `toStringTag`.
|
|
|
*
|
|
|
* **Note:** This function only supports comparing values with tags of
|
|
|
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to compare.
|
|
|
* @param {Object} other The other object to compare.
|
|
|
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
|
* @param {Function} customizer The function to customize comparisons.
|
|
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
|
*/
|
|
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
switch (tag) {
|
|
|
case dataViewTag:
|
|
|
if ((object.byteLength != other.byteLength) ||
|
|
|
(object.byteOffset != other.byteOffset)) {
|
|
|
return false;
|
|
|
}
|
|
|
object = object.buffer;
|
|
|
other = other.buffer;
|
|
|
|
|
|
case arrayBufferTag:
|
|
|
if ((object.byteLength != other.byteLength) ||
|
|
|
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
|
|
|
case boolTag:
|
|
|
case dateTag:
|
|
|
case numberTag:
|
|
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
|
// Invalid dates are coerced to `NaN`.
|
|
|
return eq(+object, +other);
|
|
|
|
|
|
case errorTag:
|
|
|
return object.name == other.name && object.message == other.message;
|
|
|
|
|
|
case regexpTag:
|
|
|
case stringTag:
|
|
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
|
// for more details.
|
|
|
return object == (other + '');
|
|
|
|
|
|
case mapTag:
|
|
|
var convert = mapToArray;
|
|
|
|
|
|
case setTag:
|
|
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
|
convert || (convert = setToArray);
|
|
|
|
|
|
if (object.size != other.size && !isPartial) {
|
|
|
return false;
|
|
|
}
|
|
|
// Assume cyclic values are equal.
|
|
|
var stacked = stack.get(object);
|
|
|
if (stacked) {
|
|
|
return stacked == other;
|
|
|
}
|
|
|
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
|
|
|
|
// Recursively compare objects (susceptible to call stack limits).
|
|
|
stack.set(object, other);
|
|
|
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
|
stack['delete'](object);
|
|
|
return result;
|
|
|
|
|
|
case symbolTag:
|
|
|
if (symbolValueOf) {
|
|
|
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
module.exports = equalByTag;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_equalObjects.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_equalObjects.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
|
|
|
|
|
|
/** Used to compose bitmasks for value comparisons. */
|
|
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
|
* partial deep comparisons.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to compare.
|
|
|
* @param {Object} other The other object to compare.
|
|
|
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
|
* @param {Function} customizer The function to customize comparisons.
|
|
|
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
|
*/
|
|
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
|
objProps = getAllKeys(object),
|
|
|
objLength = objProps.length,
|
|
|
othProps = getAllKeys(other),
|
|
|
othLength = othProps.length;
|
|
|
|
|
|
if (objLength != othLength && !isPartial) {
|
|
|
return false;
|
|
|
}
|
|
|
var index = objLength;
|
|
|
while (index--) {
|
|
|
var key = objProps[index];
|
|
|
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
// 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 ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
|
|
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
|
|
|
|
module.exports = freeGlobal;
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getAllKeys.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_getAllKeys.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
|
|
|
getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
|
|
|
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
|
|
|
|
|
|
/**
|
|
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to query.
|
|
|
* @returns {Array} Returns the array of property names and symbols.
|
|
|
*/
|
|
|
function getAllKeys(object) {
|
|
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
|
}
|
|
|
|
|
|
module.exports = getAllKeys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getMapData.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_getMapData.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the data for `map`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} map The map to query.
|
|
|
* @param {string} key The reference key.
|
|
|
* @returns {*} Returns the map data.
|
|
|
*/
|
|
|
function getMapData(map, key) {
|
|
|
var data = map.__data__;
|
|
|
return isKeyable(key)
|
|
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
|
: data.map;
|
|
|
}
|
|
|
|
|
|
module.exports = getMapData;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getNative.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_getNative.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
|
|
|
getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the native function at `key` of `object`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to query.
|
|
|
* @param {string} key The key of the method to get.
|
|
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
|
*/
|
|
|
function getNative(object, key) {
|
|
|
var value = getValue(object, key);
|
|
|
return baseIsNative(value) ? value : undefined;
|
|
|
}
|
|
|
|
|
|
module.exports = getNative;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getRawTag.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_getRawTag.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* Used to resolve the
|
|
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
|
* of values.
|
|
|
*/
|
|
|
var nativeObjectToString = objectProto.toString;
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
|
|
|
|
/**
|
|
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to query.
|
|
|
* @returns {string} Returns the raw `toStringTag`.
|
|
|
*/
|
|
|
function getRawTag(value) {
|
|
|
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
|
tag = value[symToStringTag];
|
|
|
|
|
|
try {
|
|
|
value[symToStringTag] = undefined;
|
|
|
var unmasked = true;
|
|
|
} catch (e) {}
|
|
|
|
|
|
var result = nativeObjectToString.call(value);
|
|
|
if (unmasked) {
|
|
|
if (isOwn) {
|
|
|
value[symToStringTag] = tag;
|
|
|
} else {
|
|
|
delete value[symToStringTag];
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = getRawTag;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getSymbols.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_getSymbols.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
|
|
|
stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
|
|
|
/**
|
|
|
* Creates an array of the own enumerable symbols of `object`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} object The object to query.
|
|
|
* @returns {Array} Returns the array of symbols.
|
|
|
*/
|
|
|
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
if (object == null) {
|
|
|
return [];
|
|
|
}
|
|
|
object = Object(object);
|
|
|
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
|
return propertyIsEnumerable.call(object, symbol);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = getSymbols;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getTag.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/lodash/_getTag.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
|
|
|
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
|
|
|
Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
|
|
|
Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
|
|
|
WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
|
|
|
baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
|
|
toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var mapTag = '[object Map]',
|
|
|
objectTag = '[object Object]',
|
|
|
promiseTag = '[object Promise]',
|
|
|
setTag = '[object Set]',
|
|
|
weakMapTag = '[object WeakMap]';
|
|
|
|
|
|
var dataViewTag = '[object DataView]';
|
|
|
|
|
|
/** Used to detect maps, sets, and weakmaps. */
|
|
|
var dataViewCtorString = toSource(DataView),
|
|
|
mapCtorString = toSource(Map),
|
|
|
promiseCtorString = toSource(Promise),
|
|
|
setCtorString = toSource(Set),
|
|
|
weakMapCtorString = toSource(WeakMap);
|
|
|
|
|
|
/**
|
|
|
* Gets the `toStringTag` of `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to query.
|
|
|
* @returns {string} Returns the `toStringTag`.
|
|
|
*/
|
|
|
var getTag = baseGetTag;
|
|
|
|
|
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
|
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
(Map && getTag(new Map) != mapTag) ||
|
|
|
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
|
|
(Set && getTag(new Set) != setTag) ||
|
|
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
|
getTag = function(value) {
|
|
|
var result = baseGetTag(value),
|
|
|
Ctor = result == objectTag ? value.constructor : undefined,
|
|
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
|
|
|
|
if (ctorString) {
|
|
|
switch (ctorString) {
|
|
|
case dataViewCtorString: return dataViewTag;
|
|
|
case mapCtorString: return mapTag;
|
|
|
case promiseCtorString: return promiseTag;
|
|
|
case setCtorString: return setTag;
|
|
|
case weakMapCtorString: return weakMapTag;
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = getTag;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_getValue.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_getValue.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Gets the value at `key` of `object`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} [object] The object to query.
|
|
|
* @param {string} key The key of the property to get.
|
|
|
* @returns {*} Returns the property value.
|
|
|
*/
|
|
|
function getValue(object, key) {
|
|
|
return object == null ? undefined : object[key];
|
|
|
}
|
|
|
|
|
|
module.exports = getValue;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_hashClear.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_hashClear.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
|
|
|
|
|
|
/**
|
|
|
* Removes all key-value entries from the hash.
|
|
|
*
|
|
|
* @private
|
|
|
* @name clear
|
|
|
* @memberOf Hash
|
|
|
*/
|
|
|
function hashClear() {
|
|
|
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
|
this.size = 0;
|
|
|
}
|
|
|
|
|
|
module.exports = hashClear;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_hashDelete.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_hashDelete.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Removes `key` and its value from the hash.
|
|
|
*
|
|
|
* @private
|
|
|
* @name delete
|
|
|
* @memberOf Hash
|
|
|
* @param {Object} hash The hash to modify.
|
|
|
* @param {string} key The key of the value to remove.
|
|
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
|
*/
|
|
|
function hashDelete(key) {
|
|
|
var result = this.has(key) && delete this.__data__[key];
|
|
|
this.size -= result ? 1 : 0;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = hashDelete;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_hashGet.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_hashGet.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
|
|
|
|
|
|
/** Used to stand-in for `undefined` hash values. */
|
|
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* Gets the hash value for `key`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name get
|
|
|
* @memberOf Hash
|
|
|
* @param {string} key The key of the value to get.
|
|
|
* @returns {*} Returns the entry value.
|
|
|
*/
|
|
|
function hashGet(key) {
|
|
|
var data = this.__data__;
|
|
|
if (nativeCreate) {
|
|
|
var result = data[key];
|
|
|
return result === HASH_UNDEFINED ? undefined : result;
|
|
|
}
|
|
|
return hasOwnProperty.call(data, key) ? data[key] : undefined;
|
|
|
}
|
|
|
|
|
|
module.exports = hashGet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_hashHas.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_hashHas.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/**
|
|
|
* Checks if a hash value for `key` exists.
|
|
|
*
|
|
|
* @private
|
|
|
* @name has
|
|
|
* @memberOf Hash
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
*/
|
|
|
function hashHas(key) {
|
|
|
var data = this.__data__;
|
|
|
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
|
}
|
|
|
|
|
|
module.exports = hashHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_hashSet.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_hashSet.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
|
|
|
|
|
|
/** Used to stand-in for `undefined` hash values. */
|
|
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
|
|
|
/**
|
|
|
* Sets the hash `key` to `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name set
|
|
|
* @memberOf Hash
|
|
|
* @param {string} key The key of the value to set.
|
|
|
* @param {*} value The value to set.
|
|
|
* @returns {Object} Returns the hash instance.
|
|
|
*/
|
|
|
function hashSet(key, value) {
|
|
|
var data = this.__data__;
|
|
|
this.size += this.has(key) ? 0 : 1;
|
|
|
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
module.exports = hashSet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_isIndex.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_isIndex.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used as references for various `Number` constants. */
|
|
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
|
|
|
/** Used to detect unsigned integer values. */
|
|
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is a valid array-like index.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
|
*/
|
|
|
function isIndex(value, length) {
|
|
|
var type = typeof value;
|
|
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
|
|
|
|
return !!length &&
|
|
|
(type == 'number' ||
|
|
|
(type != 'symbol' && reIsUint.test(value))) &&
|
|
|
(value > -1 && value % 1 == 0 && value < length);
|
|
|
}
|
|
|
|
|
|
module.exports = isIndex;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_isKeyable.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/_isKeyable.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is suitable for use as unique object key.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
|
*/
|
|
|
function isKeyable(value) {
|
|
|
var type = typeof value;
|
|
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
|
? (value !== '__proto__')
|
|
|
: (value === null);
|
|
|
}
|
|
|
|
|
|
module.exports = isKeyable;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_isMasked.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_isMasked.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
|
|
|
|
|
|
/** Used to detect methods masquerading as native. */
|
|
|
var maskSrcKey = (function() {
|
|
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
|
}());
|
|
|
|
|
|
/**
|
|
|
* Checks if `func` has its source masked.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Function} func The function to check.
|
|
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
|
*/
|
|
|
function isMasked(func) {
|
|
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
|
}
|
|
|
|
|
|
module.exports = isMasked;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_isPrototype.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_isPrototype.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is likely a prototype object.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
|
*/
|
|
|
function isPrototype(value) {
|
|
|
var Ctor = value && value.constructor,
|
|
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
|
|
|
|
return value === proto;
|
|
|
}
|
|
|
|
|
|
module.exports = isPrototype;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_listCacheClear.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/lodash/_listCacheClear.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Removes all key-value entries from the list cache.
|
|
|
*
|
|
|
* @private
|
|
|
* @name clear
|
|
|
* @memberOf ListCache
|
|
|
*/
|
|
|
function listCacheClear() {
|
|
|
this.__data__ = [];
|
|
|
this.size = 0;
|
|
|
}
|
|
|
|
|
|
module.exports = listCacheClear;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_listCacheDelete.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/lodash/_listCacheDelete.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var arrayProto = Array.prototype;
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var splice = arrayProto.splice;
|
|
|
|
|
|
/**
|
|
|
* Removes `key` and its value from the list cache.
|
|
|
*
|
|
|
* @private
|
|
|
* @name delete
|
|
|
* @memberOf ListCache
|
|
|
* @param {string} key The key of the value to remove.
|
|
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
|
*/
|
|
|
function listCacheDelete(key) {
|
|
|
var data = this.__data__,
|
|
|
index = assocIndexOf(data, key);
|
|
|
|
|
|
if (index < 0) {
|
|
|
return false;
|
|
|
}
|
|
|
var lastIndex = data.length - 1;
|
|
|
if (index == lastIndex) {
|
|
|
data.pop();
|
|
|
} else {
|
|
|
splice.call(data, index, 1);
|
|
|
}
|
|
|
--this.size;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
module.exports = listCacheDelete;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_listCacheGet.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_listCacheGet.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the list cache value for `key`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name get
|
|
|
* @memberOf ListCache
|
|
|
* @param {string} key The key of the value to get.
|
|
|
* @returns {*} Returns the entry value.
|
|
|
*/
|
|
|
function listCacheGet(key) {
|
|
|
var data = this.__data__,
|
|
|
index = assocIndexOf(data, key);
|
|
|
|
|
|
return index < 0 ? undefined : data[index][1];
|
|
|
}
|
|
|
|
|
|
module.exports = listCacheGet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_listCacheHas.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_listCacheHas.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
|
|
|
|
|
|
/**
|
|
|
* Checks if a list cache value for `key` exists.
|
|
|
*
|
|
|
* @private
|
|
|
* @name has
|
|
|
* @memberOf ListCache
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
*/
|
|
|
function listCacheHas(key) {
|
|
|
return assocIndexOf(this.__data__, key) > -1;
|
|
|
}
|
|
|
|
|
|
module.exports = listCacheHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_listCacheSet.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_listCacheSet.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
|
|
|
|
|
|
/**
|
|
|
* Sets the list cache `key` to `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name set
|
|
|
* @memberOf ListCache
|
|
|
* @param {string} key The key of the value to set.
|
|
|
* @param {*} value The value to set.
|
|
|
* @returns {Object} Returns the list cache instance.
|
|
|
*/
|
|
|
function listCacheSet(key, value) {
|
|
|
var data = this.__data__,
|
|
|
index = assocIndexOf(data, key);
|
|
|
|
|
|
if (index < 0) {
|
|
|
++this.size;
|
|
|
data.push([key, value]);
|
|
|
} else {
|
|
|
data[index][1] = value;
|
|
|
}
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
module.exports = listCacheSet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapCacheClear.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapCacheClear.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
|
|
|
ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
|
|
|
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
|
|
|
|
|
|
/**
|
|
|
* Removes all key-value entries from the map.
|
|
|
*
|
|
|
* @private
|
|
|
* @name clear
|
|
|
* @memberOf MapCache
|
|
|
*/
|
|
|
function mapCacheClear() {
|
|
|
this.size = 0;
|
|
|
this.__data__ = {
|
|
|
'hash': new Hash,
|
|
|
'map': new (Map || ListCache),
|
|
|
'string': new Hash
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = mapCacheClear;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapCacheDelete.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapCacheDelete.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
|
|
|
|
|
|
/**
|
|
|
* Removes `key` and its value from the map.
|
|
|
*
|
|
|
* @private
|
|
|
* @name delete
|
|
|
* @memberOf MapCache
|
|
|
* @param {string} key The key of the value to remove.
|
|
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
|
*/
|
|
|
function mapCacheDelete(key) {
|
|
|
var result = getMapData(this, key)['delete'](key);
|
|
|
this.size -= result ? 1 : 0;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = mapCacheDelete;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapCacheGet.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapCacheGet.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the map value for `key`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name get
|
|
|
* @memberOf MapCache
|
|
|
* @param {string} key The key of the value to get.
|
|
|
* @returns {*} Returns the entry value.
|
|
|
*/
|
|
|
function mapCacheGet(key) {
|
|
|
return getMapData(this, key).get(key);
|
|
|
}
|
|
|
|
|
|
module.exports = mapCacheGet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapCacheHas.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapCacheHas.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
|
|
|
|
|
|
/**
|
|
|
* Checks if a map value for `key` exists.
|
|
|
*
|
|
|
* @private
|
|
|
* @name has
|
|
|
* @memberOf MapCache
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
*/
|
|
|
function mapCacheHas(key) {
|
|
|
return getMapData(this, key).has(key);
|
|
|
}
|
|
|
|
|
|
module.exports = mapCacheHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapCacheSet.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapCacheSet.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
|
|
|
|
|
|
/**
|
|
|
* Sets the map `key` to `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name set
|
|
|
* @memberOf MapCache
|
|
|
* @param {string} key The key of the value to set.
|
|
|
* @param {*} value The value to set.
|
|
|
* @returns {Object} Returns the map cache instance.
|
|
|
*/
|
|
|
function mapCacheSet(key, value) {
|
|
|
var data = getMapData(this, key),
|
|
|
size = data.size;
|
|
|
|
|
|
data.set(key, value);
|
|
|
this.size += data.size == size ? 0 : 1;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
module.exports = mapCacheSet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_mapToArray.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_mapToArray.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Converts `map` to its key-value pairs.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} map The map to convert.
|
|
|
* @returns {Array} Returns the key-value pairs.
|
|
|
*/
|
|
|
function mapToArray(map) {
|
|
|
var index = -1,
|
|
|
result = Array(map.size);
|
|
|
|
|
|
map.forEach(function(value, key) {
|
|
|
result[++index] = [key, value];
|
|
|
});
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = mapToArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_nativeCreate.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/lodash/_nativeCreate.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
|
|
|
|
|
|
/* Built-in method references that are verified to be native. */
|
|
|
var nativeCreate = getNative(Object, 'create');
|
|
|
|
|
|
module.exports = nativeCreate;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_nativeKeys.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_nativeKeys.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
|
|
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
|
var nativeKeys = overArg(Object.keys, Object);
|
|
|
|
|
|
module.exports = nativeKeys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_nodeUtil.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_nodeUtil.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
|
|
|
|
|
|
/** Detect free variable `exports`. */
|
|
|
var freeExports = true && exports && !exports.nodeType && exports;
|
|
|
|
|
|
/** Detect free variable `module`. */
|
|
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
|
|
|
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
|
|
|
|
/** Detect free variable `process` from Node.js. */
|
|
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
|
|
|
|
/** Used to access faster Node.js helpers. */
|
|
|
var nodeUtil = (function() {
|
|
|
try {
|
|
|
// Use `util.types` for Node.js 10+.
|
|
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
|
|
|
|
if (types) {
|
|
|
return types;
|
|
|
}
|
|
|
|
|
|
// Legacy `process.binding('util')` for Node.js < 10.
|
|
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
|
} catch (e) {}
|
|
|
}());
|
|
|
|
|
|
module.exports = nodeUtil;
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_objectToString.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/lodash/_objectToString.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/**
|
|
|
* Used to resolve the
|
|
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
|
* of values.
|
|
|
*/
|
|
|
var nativeObjectToString = objectProto.toString;
|
|
|
|
|
|
/**
|
|
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {*} value The value to convert.
|
|
|
* @returns {string} Returns the converted string.
|
|
|
*/
|
|
|
function objectToString(value) {
|
|
|
return nativeObjectToString.call(value);
|
|
|
}
|
|
|
|
|
|
module.exports = objectToString;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_overArg.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/_overArg.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Function} func The function to wrap.
|
|
|
* @param {Function} transform The argument transform.
|
|
|
* @returns {Function} Returns the new function.
|
|
|
*/
|
|
|
function overArg(func, transform) {
|
|
|
return function(arg) {
|
|
|
return func(transform(arg));
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = overArg;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_root.js":
|
|
|
/*!**************************************!*\
|
|
|
!*** ./node_modules/lodash/_root.js ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
|
|
|
|
|
|
/** Detect free variable `self`. */
|
|
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
|
|
|
|
/** Used as a reference to the global object. */
|
|
|
var root = freeGlobal || freeSelf || Function('return this')();
|
|
|
|
|
|
module.exports = root;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_setCacheAdd.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_setCacheAdd.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used to stand-in for `undefined` hash values. */
|
|
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
|
|
|
/**
|
|
|
* Adds `value` to the array cache.
|
|
|
*
|
|
|
* @private
|
|
|
* @name add
|
|
|
* @memberOf SetCache
|
|
|
* @alias push
|
|
|
* @param {*} value The value to cache.
|
|
|
* @returns {Object} Returns the cache instance.
|
|
|
*/
|
|
|
function setCacheAdd(value) {
|
|
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
module.exports = setCacheAdd;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_setCacheHas.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_setCacheHas.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is in the array cache.
|
|
|
*
|
|
|
* @private
|
|
|
* @name has
|
|
|
* @memberOf SetCache
|
|
|
* @param {*} value The value to search for.
|
|
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
|
*/
|
|
|
function setCacheHas(value) {
|
|
|
return this.__data__.has(value);
|
|
|
}
|
|
|
|
|
|
module.exports = setCacheHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_setToArray.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_setToArray.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Converts `set` to an array of its values.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Object} set The set to convert.
|
|
|
* @returns {Array} Returns the values.
|
|
|
*/
|
|
|
function setToArray(set) {
|
|
|
var index = -1,
|
|
|
result = Array(set.size);
|
|
|
|
|
|
set.forEach(function(value) {
|
|
|
result[++index] = value;
|
|
|
});
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = setToArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_stackClear.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/_stackClear.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
|
|
|
|
|
|
/**
|
|
|
* Removes all key-value entries from the stack.
|
|
|
*
|
|
|
* @private
|
|
|
* @name clear
|
|
|
* @memberOf Stack
|
|
|
*/
|
|
|
function stackClear() {
|
|
|
this.__data__ = new ListCache;
|
|
|
this.size = 0;
|
|
|
}
|
|
|
|
|
|
module.exports = stackClear;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_stackDelete.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/_stackDelete.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Removes `key` and its value from the stack.
|
|
|
*
|
|
|
* @private
|
|
|
* @name delete
|
|
|
* @memberOf Stack
|
|
|
* @param {string} key The key of the value to remove.
|
|
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
|
*/
|
|
|
function stackDelete(key) {
|
|
|
var data = this.__data__,
|
|
|
result = data['delete'](key);
|
|
|
|
|
|
this.size = data.size;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
module.exports = stackDelete;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_stackGet.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_stackGet.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Gets the stack value for `key`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name get
|
|
|
* @memberOf Stack
|
|
|
* @param {string} key The key of the value to get.
|
|
|
* @returns {*} Returns the entry value.
|
|
|
*/
|
|
|
function stackGet(key) {
|
|
|
return this.__data__.get(key);
|
|
|
}
|
|
|
|
|
|
module.exports = stackGet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_stackHas.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_stackHas.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if a stack value for `key` exists.
|
|
|
*
|
|
|
* @private
|
|
|
* @name has
|
|
|
* @memberOf Stack
|
|
|
* @param {string} key The key of the entry to check.
|
|
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
|
*/
|
|
|
function stackHas(key) {
|
|
|
return this.__data__.has(key);
|
|
|
}
|
|
|
|
|
|
module.exports = stackHas;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_stackSet.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_stackSet.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
|
|
|
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
|
|
|
MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
|
|
|
|
|
|
/** Used as the size to enable large array optimizations. */
|
|
|
var LARGE_ARRAY_SIZE = 200;
|
|
|
|
|
|
/**
|
|
|
* Sets the stack `key` to `value`.
|
|
|
*
|
|
|
* @private
|
|
|
* @name set
|
|
|
* @memberOf Stack
|
|
|
* @param {string} key The key of the value to set.
|
|
|
* @param {*} value The value to set.
|
|
|
* @returns {Object} Returns the stack cache instance.
|
|
|
*/
|
|
|
function stackSet(key, value) {
|
|
|
var data = this.__data__;
|
|
|
if (data instanceof ListCache) {
|
|
|
var pairs = data.__data__;
|
|
|
if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
|
pairs.push([key, value]);
|
|
|
this.size = ++data.size;
|
|
|
return this;
|
|
|
}
|
|
|
data = this.__data__ = new MapCache(pairs);
|
|
|
}
|
|
|
data.set(key, value);
|
|
|
this.size = data.size;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
module.exports = stackSet;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_toSource.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/_toSource.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var funcProto = Function.prototype;
|
|
|
|
|
|
/** Used to resolve the decompiled source of functions. */
|
|
|
var funcToString = funcProto.toString;
|
|
|
|
|
|
/**
|
|
|
* Converts `func` to its source code.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {Function} func The function to convert.
|
|
|
* @returns {string} Returns the source code.
|
|
|
*/
|
|
|
function toSource(func) {
|
|
|
if (func != null) {
|
|
|
try {
|
|
|
return funcToString.call(func);
|
|
|
} catch (e) {}
|
|
|
try {
|
|
|
return (func + '');
|
|
|
} catch (e) {}
|
|
|
}
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
module.exports = toSource;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/_trimmedEndIndex.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/lodash/_trimmedEndIndex.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used to match a single whitespace character. */
|
|
|
var reWhitespace = /\s/;
|
|
|
|
|
|
/**
|
|
|
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
|
* character of `string`.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {string} string The string to inspect.
|
|
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
|
*/
|
|
|
function trimmedEndIndex(string) {
|
|
|
var index = string.length;
|
|
|
|
|
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
|
return index;
|
|
|
}
|
|
|
|
|
|
module.exports = trimmedEndIndex;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/debounce.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/debounce.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
|
|
|
now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
|
|
|
toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
|
|
|
|
|
|
/** Error message constants. */
|
|
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
|
var nativeMax = Math.max,
|
|
|
nativeMin = Math.min;
|
|
|
|
|
|
/**
|
|
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
|
* milliseconds have elapsed since the last time the debounced function was
|
|
|
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
|
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
|
* Provide `options` to indicate whether `func` should be invoked on the
|
|
|
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
|
* with the last arguments provided to the debounced function. Subsequent
|
|
|
* calls to the debounced function return the result of the last `func`
|
|
|
* invocation.
|
|
|
*
|
|
|
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
|
* invoked on the trailing edge of the timeout only if the debounced function
|
|
|
* is invoked more than once during the `wait` timeout.
|
|
|
*
|
|
|
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
|
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
|
*
|
|
|
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
|
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Function
|
|
|
* @param {Function} func The function to debounce.
|
|
|
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
|
* @param {Object} [options={}] The options object.
|
|
|
* @param {boolean} [options.leading=false]
|
|
|
* Specify invoking on the leading edge of the timeout.
|
|
|
* @param {number} [options.maxWait]
|
|
|
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
|
* @param {boolean} [options.trailing=true]
|
|
|
* Specify invoking on the trailing edge of the timeout.
|
|
|
* @returns {Function} Returns the new debounced function.
|
|
|
* @example
|
|
|
*
|
|
|
* // Avoid costly calculations while the window size is in flux.
|
|
|
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
|
*
|
|
|
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
|
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
|
* 'leading': true,
|
|
|
* 'trailing': false
|
|
|
* }));
|
|
|
*
|
|
|
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
|
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
|
* var source = new EventSource('/stream');
|
|
|
* jQuery(source).on('message', debounced);
|
|
|
*
|
|
|
* // Cancel the trailing debounced invocation.
|
|
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
|
*/
|
|
|
function debounce(func, wait, options) {
|
|
|
var lastArgs,
|
|
|
lastThis,
|
|
|
maxWait,
|
|
|
result,
|
|
|
timerId,
|
|
|
lastCallTime,
|
|
|
lastInvokeTime = 0,
|
|
|
leading = false,
|
|
|
maxing = false,
|
|
|
trailing = true;
|
|
|
|
|
|
if (typeof func != 'function') {
|
|
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
|
}
|
|
|
wait = toNumber(wait) || 0;
|
|
|
if (isObject(options)) {
|
|
|
leading = !!options.leading;
|
|
|
maxing = 'maxWait' in options;
|
|
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
|
}
|
|
|
|
|
|
function invokeFunc(time) {
|
|
|
var args = lastArgs,
|
|
|
thisArg = lastThis;
|
|
|
|
|
|
lastArgs = lastThis = undefined;
|
|
|
lastInvokeTime = time;
|
|
|
result = func.apply(thisArg, args);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
function leadingEdge(time) {
|
|
|
// Reset any `maxWait` timer.
|
|
|
lastInvokeTime = time;
|
|
|
// Start the timer for the trailing edge.
|
|
|
timerId = setTimeout(timerExpired, wait);
|
|
|
// Invoke the leading edge.
|
|
|
return leading ? invokeFunc(time) : result;
|
|
|
}
|
|
|
|
|
|
function remainingWait(time) {
|
|
|
var timeSinceLastCall = time - lastCallTime,
|
|
|
timeSinceLastInvoke = time - lastInvokeTime,
|
|
|
timeWaiting = wait - timeSinceLastCall;
|
|
|
|
|
|
return maxing
|
|
|
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
|
: timeWaiting;
|
|
|
}
|
|
|
|
|
|
function shouldInvoke(time) {
|
|
|
var timeSinceLastCall = time - lastCallTime,
|
|
|
timeSinceLastInvoke = time - lastInvokeTime;
|
|
|
|
|
|
// Either this is the first call, activity has stopped and we're at the
|
|
|
// trailing edge, the system time has gone backwards and we're treating
|
|
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
|
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
|
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
|
}
|
|
|
|
|
|
function timerExpired() {
|
|
|
var time = now();
|
|
|
if (shouldInvoke(time)) {
|
|
|
return trailingEdge(time);
|
|
|
}
|
|
|
// Restart the timer.
|
|
|
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
|
}
|
|
|
|
|
|
function trailingEdge(time) {
|
|
|
timerId = undefined;
|
|
|
|
|
|
// Only invoke if we have `lastArgs` which means `func` has been
|
|
|
// debounced at least once.
|
|
|
if (trailing && lastArgs) {
|
|
|
return invokeFunc(time);
|
|
|
}
|
|
|
lastArgs = lastThis = undefined;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
function cancel() {
|
|
|
if (timerId !== undefined) {
|
|
|
clearTimeout(timerId);
|
|
|
}
|
|
|
lastInvokeTime = 0;
|
|
|
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
|
}
|
|
|
|
|
|
function flush() {
|
|
|
return timerId === undefined ? result : trailingEdge(now());
|
|
|
}
|
|
|
|
|
|
function debounced() {
|
|
|
var time = now(),
|
|
|
isInvoking = shouldInvoke(time);
|
|
|
|
|
|
lastArgs = arguments;
|
|
|
lastThis = this;
|
|
|
lastCallTime = time;
|
|
|
|
|
|
if (isInvoking) {
|
|
|
if (timerId === undefined) {
|
|
|
return leadingEdge(lastCallTime);
|
|
|
}
|
|
|
if (maxing) {
|
|
|
// Handle invocations in a tight loop.
|
|
|
clearTimeout(timerId);
|
|
|
timerId = setTimeout(timerExpired, wait);
|
|
|
return invokeFunc(lastCallTime);
|
|
|
}
|
|
|
}
|
|
|
if (timerId === undefined) {
|
|
|
timerId = setTimeout(timerExpired, wait);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
debounced.cancel = cancel;
|
|
|
debounced.flush = flush;
|
|
|
return debounced;
|
|
|
}
|
|
|
|
|
|
module.exports = debounce;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/eq.js":
|
|
|
/*!***********************************!*\
|
|
|
!*** ./node_modules/lodash/eq.js ***!
|
|
|
\***********************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Performs a
|
|
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
|
* comparison between two values to determine if they are equivalent.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to compare.
|
|
|
* @param {*} other The other value to compare.
|
|
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* var object = { 'a': 1 };
|
|
|
* var other = { 'a': 1 };
|
|
|
*
|
|
|
* _.eq(object, object);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.eq(object, other);
|
|
|
* // => false
|
|
|
*
|
|
|
* _.eq('a', 'a');
|
|
|
* // => true
|
|
|
*
|
|
|
* _.eq('a', Object('a'));
|
|
|
* // => false
|
|
|
*
|
|
|
* _.eq(NaN, NaN);
|
|
|
* // => true
|
|
|
*/
|
|
|
function eq(value, other) {
|
|
|
return value === other || (value !== value && other !== other);
|
|
|
}
|
|
|
|
|
|
module.exports = eq;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isArguments.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/isArguments.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
|
|
|
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
|
|
|
|
|
/** Used for built-in method references. */
|
|
|
var objectProto = Object.prototype;
|
|
|
|
|
|
/** Used to check objects for own properties. */
|
|
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is likely an `arguments` object.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
|
* else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isArguments(function() { return arguments; }());
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isArguments([1, 2, 3]);
|
|
|
* // => false
|
|
|
*/
|
|
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
|
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
|
!propertyIsEnumerable.call(value, 'callee');
|
|
|
};
|
|
|
|
|
|
module.exports = isArguments;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isArray.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/lodash/isArray.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is classified as an `Array` object.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isArray([1, 2, 3]);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isArray(document.body.children);
|
|
|
* // => false
|
|
|
*
|
|
|
* _.isArray('abc');
|
|
|
* // => false
|
|
|
*
|
|
|
* _.isArray(_.noop);
|
|
|
* // => false
|
|
|
*/
|
|
|
var isArray = Array.isArray;
|
|
|
|
|
|
module.exports = isArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isArrayLike.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/lodash/isArrayLike.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
|
|
|
isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
|
* not a function and has a `value.length` that's an integer greater than or
|
|
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isArrayLike([1, 2, 3]);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isArrayLike(document.body.children);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isArrayLike('abc');
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isArrayLike(_.noop);
|
|
|
* // => false
|
|
|
*/
|
|
|
function isArrayLike(value) {
|
|
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
|
}
|
|
|
|
|
|
module.exports = isArrayLike;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isBuffer.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/isBuffer.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
|
|
|
stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
|
|
|
|
|
|
/** Detect free variable `exports`. */
|
|
|
var freeExports = true && exports && !exports.nodeType && exports;
|
|
|
|
|
|
/** Detect free variable `module`. */
|
|
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
|
|
|
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
|
|
|
|
/** Built-in value references. */
|
|
|
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
|
|
|
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is a buffer.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.3.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isBuffer(new Buffer(2));
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isBuffer(new Uint8Array(2));
|
|
|
* // => false
|
|
|
*/
|
|
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
|
|
|
|
module.exports = isBuffer;
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isEqual.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/lodash/isEqual.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
|
|
|
|
|
|
/**
|
|
|
* Performs a deep comparison between two values to determine if they are
|
|
|
* equivalent.
|
|
|
*
|
|
|
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
|
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
|
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
|
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
|
* nodes are compared by strict equality, i.e. `===`.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to compare.
|
|
|
* @param {*} other The other value to compare.
|
|
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* var object = { 'a': 1 };
|
|
|
* var other = { 'a': 1 };
|
|
|
*
|
|
|
* _.isEqual(object, other);
|
|
|
* // => true
|
|
|
*
|
|
|
* object === other;
|
|
|
* // => false
|
|
|
*/
|
|
|
function isEqual(value, other) {
|
|
|
return baseIsEqual(value, other);
|
|
|
}
|
|
|
|
|
|
module.exports = isEqual;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isFunction.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/lodash/isFunction.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
|
|
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var asyncTag = '[object AsyncFunction]',
|
|
|
funcTag = '[object Function]',
|
|
|
genTag = '[object GeneratorFunction]',
|
|
|
proxyTag = '[object Proxy]';
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is classified as a `Function` object.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isFunction(_);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isFunction(/abc/);
|
|
|
* // => false
|
|
|
*/
|
|
|
function isFunction(value) {
|
|
|
if (!isObject(value)) {
|
|
|
return false;
|
|
|
}
|
|
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
|
var tag = baseGetTag(value);
|
|
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
|
}
|
|
|
|
|
|
module.exports = isFunction;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isLength.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/isLength.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/** Used as references for various `Number` constants. */
|
|
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is a valid array-like length.
|
|
|
*
|
|
|
* **Note:** This method is loosely based on
|
|
|
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isLength(3);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isLength(Number.MIN_VALUE);
|
|
|
* // => false
|
|
|
*
|
|
|
* _.isLength(Infinity);
|
|
|
* // => false
|
|
|
*
|
|
|
* _.isLength('3');
|
|
|
* // => false
|
|
|
*/
|
|
|
function isLength(value) {
|
|
|
return typeof value == 'number' &&
|
|
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
|
}
|
|
|
|
|
|
module.exports = isLength;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isObject.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/isObject.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is the
|
|
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 0.1.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isObject({});
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isObject([1, 2, 3]);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isObject(_.noop);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isObject(null);
|
|
|
* // => false
|
|
|
*/
|
|
|
function isObject(value) {
|
|
|
var type = typeof value;
|
|
|
return value != null && (type == 'object' || type == 'function');
|
|
|
}
|
|
|
|
|
|
module.exports = isObject;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isObjectLike.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/isObjectLike.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
|
* and has a `typeof` result of "object".
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isObjectLike({});
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isObjectLike([1, 2, 3]);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isObjectLike(_.noop);
|
|
|
* // => false
|
|
|
*
|
|
|
* _.isObjectLike(null);
|
|
|
* // => false
|
|
|
*/
|
|
|
function isObjectLike(value) {
|
|
|
return value != null && typeof value == 'object';
|
|
|
}
|
|
|
|
|
|
module.exports = isObjectLike;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isSymbol.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/isSymbol.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
|
|
|
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
|
|
|
|
|
|
/** `Object#toString` result references. */
|
|
|
var symbolTag = '[object Symbol]';
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isSymbol(Symbol.iterator);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isSymbol('abc');
|
|
|
* // => false
|
|
|
*/
|
|
|
function isSymbol(value) {
|
|
|
return typeof value == 'symbol' ||
|
|
|
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
|
}
|
|
|
|
|
|
module.exports = isSymbol;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/isTypedArray.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/lodash/isTypedArray.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
|
|
|
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
|
|
|
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
|
|
|
|
|
|
/* Node.js helper references. */
|
|
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
|
|
|
/**
|
|
|
* Checks if `value` is classified as a typed array.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 3.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to check.
|
|
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.isTypedArray(new Uint8Array);
|
|
|
* // => true
|
|
|
*
|
|
|
* _.isTypedArray([]);
|
|
|
* // => false
|
|
|
*/
|
|
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
|
|
|
|
module.exports = isTypedArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/keys.js":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./node_modules/lodash/keys.js ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
|
|
|
baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
|
|
|
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
|
|
|
|
|
|
/**
|
|
|
* Creates an array of the own enumerable property names of `object`.
|
|
|
*
|
|
|
* **Note:** Non-object values are coerced to objects. See the
|
|
|
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
|
* for more details.
|
|
|
*
|
|
|
* @static
|
|
|
* @since 0.1.0
|
|
|
* @memberOf _
|
|
|
* @category Object
|
|
|
* @param {Object} object The object to query.
|
|
|
* @returns {Array} Returns the array of property names.
|
|
|
* @example
|
|
|
*
|
|
|
* function Foo() {
|
|
|
* this.a = 1;
|
|
|
* this.b = 2;
|
|
|
* }
|
|
|
*
|
|
|
* Foo.prototype.c = 3;
|
|
|
*
|
|
|
* _.keys(new Foo);
|
|
|
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
|
*
|
|
|
* _.keys('hi');
|
|
|
* // => ['0', '1']
|
|
|
*/
|
|
|
function keys(object) {
|
|
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
|
}
|
|
|
|
|
|
module.exports = keys;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/now.js":
|
|
|
/*!************************************!*\
|
|
|
!*** ./node_modules/lodash/now.js ***!
|
|
|
\************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
|
|
|
|
|
|
/**
|
|
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 2.4.0
|
|
|
* @category Date
|
|
|
* @returns {number} Returns the timestamp.
|
|
|
* @example
|
|
|
*
|
|
|
* _.defer(function(stamp) {
|
|
|
* console.log(_.now() - stamp);
|
|
|
* }, _.now());
|
|
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
|
*/
|
|
|
var now = function() {
|
|
|
return root.Date.now();
|
|
|
};
|
|
|
|
|
|
module.exports = now;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/stubArray.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/stubArray.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* This method returns a new empty array.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.13.0
|
|
|
* @category Util
|
|
|
* @returns {Array} Returns the new empty array.
|
|
|
* @example
|
|
|
*
|
|
|
* var arrays = _.times(2, _.stubArray);
|
|
|
*
|
|
|
* console.log(arrays);
|
|
|
* // => [[], []]
|
|
|
*
|
|
|
* console.log(arrays[0] === arrays[1]);
|
|
|
* // => false
|
|
|
*/
|
|
|
function stubArray() {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
module.exports = stubArray;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/stubFalse.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/lodash/stubFalse.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
/**
|
|
|
* This method returns `false`.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.13.0
|
|
|
* @category Util
|
|
|
* @returns {boolean} Returns `false`.
|
|
|
* @example
|
|
|
*
|
|
|
* _.times(2, _.stubFalse);
|
|
|
* // => [false, false]
|
|
|
*/
|
|
|
function stubFalse() {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
module.exports = stubFalse;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/lodash/toNumber.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/lodash/toNumber.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
|
|
|
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
|
|
|
isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
|
|
|
|
|
|
/** Used as references for various `Number` constants. */
|
|
|
var NAN = 0 / 0;
|
|
|
|
|
|
/** Used to detect bad signed hexadecimal string values. */
|
|
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
|
|
|
|
/** Used to detect binary string values. */
|
|
|
var reIsBinary = /^0b[01]+$/i;
|
|
|
|
|
|
/** Used to detect octal string values. */
|
|
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
|
|
|
|
/** Built-in method references without a dependency on `root`. */
|
|
|
var freeParseInt = parseInt;
|
|
|
|
|
|
/**
|
|
|
* Converts `value` to a number.
|
|
|
*
|
|
|
* @static
|
|
|
* @memberOf _
|
|
|
* @since 4.0.0
|
|
|
* @category Lang
|
|
|
* @param {*} value The value to process.
|
|
|
* @returns {number} Returns the number.
|
|
|
* @example
|
|
|
*
|
|
|
* _.toNumber(3.2);
|
|
|
* // => 3.2
|
|
|
*
|
|
|
* _.toNumber(Number.MIN_VALUE);
|
|
|
* // => 5e-324
|
|
|
*
|
|
|
* _.toNumber(Infinity);
|
|
|
* // => Infinity
|
|
|
*
|
|
|
* _.toNumber('3.2');
|
|
|
* // => 3.2
|
|
|
*/
|
|
|
function toNumber(value) {
|
|
|
if (typeof value == 'number') {
|
|
|
return value;
|
|
|
}
|
|
|
if (isSymbol(value)) {
|
|
|
return NAN;
|
|
|
}
|
|
|
if (isObject(value)) {
|
|
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
|
value = isObject(other) ? (other + '') : other;
|
|
|
}
|
|
|
if (typeof value != 'string') {
|
|
|
return value === 0 ? value : +value;
|
|
|
}
|
|
|
value = baseTrim(value);
|
|
|
var isBinary = reIsBinary.test(value);
|
|
|
return (isBinary || reIsOctal.test(value))
|
|
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
|
: (reIsBadHex.test(value) ? NAN : +value);
|
|
|
}
|
|
|
|
|
|
module.exports = toNumber;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/mini-store/esm/Provider.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/mini-store/esm/Provider.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: MiniStoreContext, Provider */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MiniStoreContext", function() { return MiniStoreContext; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return Provider; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
var extendStatics = function (d, b) {
|
|
|
extendStatics = Object.setPrototypeOf ||
|
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
return extendStatics(d, b);
|
|
|
};
|
|
|
return function (d, b) {
|
|
|
extendStatics(d, b);
|
|
|
function __() { this.constructor = d; }
|
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
};
|
|
|
})();
|
|
|
|
|
|
var MiniStoreContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"](null);
|
|
|
var Provider = /** @class */ (function (_super) {
|
|
|
__extends(Provider, _super);
|
|
|
function Provider() {
|
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
|
}
|
|
|
Provider.prototype.render = function () {
|
|
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](MiniStoreContext.Provider, { value: this.props.store }, this.props.children));
|
|
|
};
|
|
|
return Provider;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/mini-store/esm/connect.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/mini-store/esm/connect.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: connect */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return connect; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
|
|
|
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var _Provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Provider */ "./node_modules/mini-store/esm/Provider.js");
|
|
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
|
var extendStatics = function (d, b) {
|
|
|
extendStatics = Object.setPrototypeOf ||
|
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
return extendStatics(d, b);
|
|
|
};
|
|
|
return function (d, b) {
|
|
|
extendStatics(d, b);
|
|
|
function __() { this.constructor = d; }
|
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
};
|
|
|
})();
|
|
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
|
__assign = Object.assign || function(t) {
|
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
|
s = arguments[i];
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
|
t[p] = s[p];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
return __assign.apply(this, arguments);
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getDisplayName(WrappedComponent) {
|
|
|
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
|
}
|
|
|
var defaultMapStateToProps = function () { return ({}); };
|
|
|
function connect(mapStateToProps, options) {
|
|
|
if (options === void 0) { options = {}; }
|
|
|
var shouldSubscribe = !!mapStateToProps;
|
|
|
var finalMapStateToProps = mapStateToProps || defaultMapStateToProps;
|
|
|
return function wrapWithConnect(WrappedComponent) {
|
|
|
var Connect = /** @class */ (function (_super) {
|
|
|
__extends(Connect, _super);
|
|
|
function Connect(props, context) {
|
|
|
var _this = _super.call(this, props, context) || this;
|
|
|
_this.unsubscribe = null;
|
|
|
_this.handleChange = function () {
|
|
|
if (!_this.unsubscribe) {
|
|
|
return;
|
|
|
}
|
|
|
var nextState = finalMapStateToProps(_this.store.getState(), _this.props);
|
|
|
_this.setState({ subscribed: nextState });
|
|
|
};
|
|
|
_this.store = _this.context;
|
|
|
_this.state = {
|
|
|
subscribed: finalMapStateToProps(_this.store.getState(), props),
|
|
|
store: _this.store,
|
|
|
props: props,
|
|
|
};
|
|
|
return _this;
|
|
|
}
|
|
|
Connect.getDerivedStateFromProps = function (props, prevState) {
|
|
|
// using ownProps
|
|
|
if (mapStateToProps && mapStateToProps.length === 2 && props !== prevState.props) {
|
|
|
return {
|
|
|
subscribed: finalMapStateToProps(prevState.store.getState(), props),
|
|
|
props: props,
|
|
|
};
|
|
|
}
|
|
|
return { props: props };
|
|
|
};
|
|
|
Connect.prototype.componentDidMount = function () {
|
|
|
this.trySubscribe();
|
|
|
};
|
|
|
Connect.prototype.componentWillUnmount = function () {
|
|
|
this.tryUnsubscribe();
|
|
|
};
|
|
|
Connect.prototype.shouldComponentUpdate = function (nextProps, nextState) {
|
|
|
return (!shallowequal__WEBPACK_IMPORTED_MODULE_1___default()(this.props, nextProps) ||
|
|
|
!shallowequal__WEBPACK_IMPORTED_MODULE_1___default()(this.state.subscribed, nextState.subscribed));
|
|
|
};
|
|
|
Connect.prototype.trySubscribe = function () {
|
|
|
if (shouldSubscribe) {
|
|
|
this.unsubscribe = this.store.subscribe(this.handleChange);
|
|
|
this.handleChange();
|
|
|
}
|
|
|
};
|
|
|
Connect.prototype.tryUnsubscribe = function () {
|
|
|
if (this.unsubscribe) {
|
|
|
this.unsubscribe();
|
|
|
this.unsubscribe = null;
|
|
|
}
|
|
|
};
|
|
|
Connect.prototype.render = function () {
|
|
|
var props = __assign(__assign(__assign({}, this.props), this.state.subscribed), { store: this.store });
|
|
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrappedComponent, __assign({}, props, { ref: this.props.miniStoreForwardedRef }));
|
|
|
};
|
|
|
Connect.displayName = "Connect(" + getDisplayName(WrappedComponent) + ")";
|
|
|
Connect.contextType = _Provider__WEBPACK_IMPORTED_MODULE_3__["MiniStoreContext"];
|
|
|
return Connect;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));
|
|
|
if (options.forwardRef) {
|
|
|
var forwarded = react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (props, ref) {
|
|
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Connect, __assign({}, props, { miniStoreForwardedRef: ref }));
|
|
|
});
|
|
|
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(forwarded, WrappedComponent);
|
|
|
}
|
|
|
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_2___default()(Connect, WrappedComponent);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/mini-store/esm/create.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/mini-store/esm/create.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: create */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "create", function() { return create; });
|
|
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
|
__assign = Object.assign || function(t) {
|
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
|
s = arguments[i];
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
|
t[p] = s[p];
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
return __assign.apply(this, arguments);
|
|
|
};
|
|
|
function create(initialState) {
|
|
|
var state = initialState;
|
|
|
var listeners = [];
|
|
|
function setState(partial) {
|
|
|
state = __assign(__assign({}, state), partial);
|
|
|
for (var i = 0; i < listeners.length; i++) {
|
|
|
listeners[i]();
|
|
|
}
|
|
|
}
|
|
|
function getState() {
|
|
|
return state;
|
|
|
}
|
|
|
function subscribe(listener) {
|
|
|
listeners.push(listener);
|
|
|
return function unsubscribe() {
|
|
|
var index = listeners.indexOf(listener);
|
|
|
listeners.splice(index, 1);
|
|
|
};
|
|
|
}
|
|
|
return {
|
|
|
setState: setState,
|
|
|
getState: getState,
|
|
|
subscribe: subscribe,
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/mini-store/esm/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/mini-store/esm/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: Provider, connect, create */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Provider */ "./node_modules/mini-store/esm/Provider.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return _Provider__WEBPACK_IMPORTED_MODULE_0__["Provider"]; });
|
|
|
|
|
|
/* harmony import */ var _connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./connect */ "./node_modules/mini-store/esm/connect.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _connect__WEBPACK_IMPORTED_MODULE_1__["connect"]; });
|
|
|
|
|
|
/* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create */ "./node_modules/mini-store/esm/create.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_2__["create"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/object-assign/index.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/object-assign/index.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/*
|
|
|
object-assign
|
|
|
(c) Sindre Sorhus
|
|
|
@license MIT
|
|
|
*/
|
|
|
|
|
|
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
|
|
|
|
function toObject(val) {
|
|
|
if (val === null || val === undefined) {
|
|
|
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
|
}
|
|
|
|
|
|
return Object(val);
|
|
|
}
|
|
|
|
|
|
function shouldUseNative() {
|
|
|
try {
|
|
|
if (!Object.assign) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// Detect buggy property enumeration order in older V8 versions.
|
|
|
|
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
|
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
|
test1[5] = 'de';
|
|
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
|
var test2 = {};
|
|
|
for (var i = 0; i < 10; i++) {
|
|
|
test2['_' + String.fromCharCode(i)] = i;
|
|
|
}
|
|
|
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
|
return test2[n];
|
|
|
});
|
|
|
if (order2.join('') !== '0123456789') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
|
var test3 = {};
|
|
|
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
|
test3[letter] = letter;
|
|
|
});
|
|
|
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
|
'abcdefghijklmnopqrst') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
} catch (err) {
|
|
|
// We don't expect any of the above to throw, but better to be safe.
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
var from;
|
|
|
var to = toObject(target);
|
|
|
var symbols;
|
|
|
|
|
|
for (var s = 1; s < arguments.length; s++) {
|
|
|
from = Object(arguments[s]);
|
|
|
|
|
|
for (var key in from) {
|
|
|
if (hasOwnProperty.call(from, key)) {
|
|
|
to[key] = from[key];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (getOwnPropertySymbols) {
|
|
|
symbols = getOwnPropertySymbols(from);
|
|
|
for (var i = 0; i < symbols.length; i++) {
|
|
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
|
to[symbols[i]] = from[symbols[i]];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return to;
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/process/browser.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/process/browser.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
// shim for using process in browser
|
|
|
var process = module.exports = {};
|
|
|
|
|
|
// cached from whatever global is present so that test runners that stub it
|
|
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
|
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
|
// function because try/catches deoptimize in certain engines.
|
|
|
|
|
|
var cachedSetTimeout;
|
|
|
var cachedClearTimeout;
|
|
|
|
|
|
function defaultSetTimout() {
|
|
|
throw new Error('setTimeout has not been defined');
|
|
|
}
|
|
|
function defaultClearTimeout () {
|
|
|
throw new Error('clearTimeout has not been defined');
|
|
|
}
|
|
|
(function () {
|
|
|
try {
|
|
|
if (typeof setTimeout === 'function') {
|
|
|
cachedSetTimeout = setTimeout;
|
|
|
} else {
|
|
|
cachedSetTimeout = defaultSetTimout;
|
|
|
}
|
|
|
} catch (e) {
|
|
|
cachedSetTimeout = defaultSetTimout;
|
|
|
}
|
|
|
try {
|
|
|
if (typeof clearTimeout === 'function') {
|
|
|
cachedClearTimeout = clearTimeout;
|
|
|
} else {
|
|
|
cachedClearTimeout = defaultClearTimeout;
|
|
|
}
|
|
|
} catch (e) {
|
|
|
cachedClearTimeout = defaultClearTimeout;
|
|
|
}
|
|
|
} ())
|
|
|
function runTimeout(fun) {
|
|
|
if (cachedSetTimeout === setTimeout) {
|
|
|
//normal enviroments in sane situations
|
|
|
return setTimeout(fun, 0);
|
|
|
}
|
|
|
// if setTimeout wasn't available but was latter defined
|
|
|
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
|
cachedSetTimeout = setTimeout;
|
|
|
return setTimeout(fun, 0);
|
|
|
}
|
|
|
try {
|
|
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
|
return cachedSetTimeout(fun, 0);
|
|
|
} catch(e){
|
|
|
try {
|
|
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
|
return cachedSetTimeout.call(null, fun, 0);
|
|
|
} catch(e){
|
|
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
|
return cachedSetTimeout.call(this, fun, 0);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
function runClearTimeout(marker) {
|
|
|
if (cachedClearTimeout === clearTimeout) {
|
|
|
//normal enviroments in sane situations
|
|
|
return clearTimeout(marker);
|
|
|
}
|
|
|
// if clearTimeout wasn't available but was latter defined
|
|
|
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
|
cachedClearTimeout = clearTimeout;
|
|
|
return clearTimeout(marker);
|
|
|
}
|
|
|
try {
|
|
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
|
return cachedClearTimeout(marker);
|
|
|
} catch (e){
|
|
|
try {
|
|
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
|
return cachedClearTimeout.call(null, marker);
|
|
|
} catch (e){
|
|
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
|
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
|
return cachedClearTimeout.call(this, marker);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
var queue = [];
|
|
|
var draining = false;
|
|
|
var currentQueue;
|
|
|
var queueIndex = -1;
|
|
|
|
|
|
function cleanUpNextTick() {
|
|
|
if (!draining || !currentQueue) {
|
|
|
return;
|
|
|
}
|
|
|
draining = false;
|
|
|
if (currentQueue.length) {
|
|
|
queue = currentQueue.concat(queue);
|
|
|
} else {
|
|
|
queueIndex = -1;
|
|
|
}
|
|
|
if (queue.length) {
|
|
|
drainQueue();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function drainQueue() {
|
|
|
if (draining) {
|
|
|
return;
|
|
|
}
|
|
|
var timeout = runTimeout(cleanUpNextTick);
|
|
|
draining = true;
|
|
|
|
|
|
var len = queue.length;
|
|
|
while(len) {
|
|
|
currentQueue = queue;
|
|
|
queue = [];
|
|
|
while (++queueIndex < len) {
|
|
|
if (currentQueue) {
|
|
|
currentQueue[queueIndex].run();
|
|
|
}
|
|
|
}
|
|
|
queueIndex = -1;
|
|
|
len = queue.length;
|
|
|
}
|
|
|
currentQueue = null;
|
|
|
draining = false;
|
|
|
runClearTimeout(timeout);
|
|
|
}
|
|
|
|
|
|
process.nextTick = function (fun) {
|
|
|
var args = new Array(arguments.length - 1);
|
|
|
if (arguments.length > 1) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
args[i - 1] = arguments[i];
|
|
|
}
|
|
|
}
|
|
|
queue.push(new Item(fun, args));
|
|
|
if (queue.length === 1 && !draining) {
|
|
|
runTimeout(drainQueue);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
// v8 likes predictible objects
|
|
|
function Item(fun, array) {
|
|
|
this.fun = fun;
|
|
|
this.array = array;
|
|
|
}
|
|
|
Item.prototype.run = function () {
|
|
|
this.fun.apply(null, this.array);
|
|
|
};
|
|
|
process.title = 'browser';
|
|
|
process.browser = true;
|
|
|
process.env = {};
|
|
|
process.argv = [];
|
|
|
process.version = ''; // empty string to avoid regexp issues
|
|
|
process.versions = {};
|
|
|
|
|
|
function noop() {}
|
|
|
|
|
|
process.on = noop;
|
|
|
process.addListener = noop;
|
|
|
process.once = noop;
|
|
|
process.off = noop;
|
|
|
process.removeListener = noop;
|
|
|
process.removeAllListeners = noop;
|
|
|
process.emit = noop;
|
|
|
process.prependListener = noop;
|
|
|
process.prependOnceListener = noop;
|
|
|
|
|
|
process.listeners = function (name) { return [] }
|
|
|
|
|
|
process.binding = function (name) {
|
|
|
throw new Error('process.binding is not supported');
|
|
|
};
|
|
|
|
|
|
process.cwd = function () { return '/' };
|
|
|
process.chdir = function (dir) {
|
|
|
throw new Error('process.chdir is not supported');
|
|
|
};
|
|
|
process.umask = function() { return 0; };
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/prop-types/checkPropTypes.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/**
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
var printWarning = function() {};
|
|
|
|
|
|
if (true) {
|
|
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
|
var loggedTypeFailures = {};
|
|
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
|
|
|
|
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] + '`.'
|
|
|
);
|
|
|
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 ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/**
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
var 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 checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
|
|
|
|
|
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
|
var printWarning = function() {};
|
|
|
|
|
|
if (true) {
|
|
|
printWarning = function(text) {
|
|
|
var message = 'Warning: ' + text;
|
|
|
if (typeof console !== 'undefined') {
|
|
|
console.error(message);
|
|
|
}
|
|
|
try {
|
|
|
// --- Welcome to debugging React ---
|
|
|
// This error was thrown as a convenience so that you can use this stack
|
|
|
// to find the callsite that caused this warning to fire.
|
|
|
throw new Error(message);
|
|
|
} catch (x) {}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function emptyFunctionThatReturnsNull() {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
/* global Symbol */
|
|
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
|
|
|
|
/**
|
|
|
* Returns the iterator method function contained on the iterable object.
|
|
|
*
|
|
|
* Be sure to invoke the function with the iterable as context:
|
|
|
*
|
|
|
* var iteratorFn = getIteratorFn(myIterable);
|
|
|
* if (iteratorFn) {
|
|
|
* var iterator = iteratorFn.call(myIterable);
|
|
|
* ...
|
|
|
* }
|
|
|
*
|
|
|
* @param {?object} maybeIterable
|
|
|
* @return {?function}
|
|
|
*/
|
|
|
function getIteratorFn(maybeIterable) {
|
|
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
|
if (typeof iteratorFn === 'function') {
|
|
|
return iteratorFn;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Collection of methods that allow declaration and validation of props that are
|
|
|
* supplied to React components. Example usage:
|
|
|
*
|
|
|
* var Props = require('ReactPropTypes');
|
|
|
* var MyArticle = React.createClass({
|
|
|
* propTypes: {
|
|
|
* // An optional string prop named "description".
|
|
|
* description: Props.string,
|
|
|
*
|
|
|
* // A required enum prop named "category".
|
|
|
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
|
*
|
|
|
* // A prop named "dialog" that requires an instance of Dialog.
|
|
|
* dialog: Props.instanceOf(Dialog).isRequired
|
|
|
* },
|
|
|
* render: function() { ... }
|
|
|
* });
|
|
|
*
|
|
|
* A more formal specification of how these methods are used:
|
|
|
*
|
|
|
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
|
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
|
*
|
|
|
* Each and every declaration produces a function with the same signature. This
|
|
|
* allows the creation of custom validation functions. For example:
|
|
|
*
|
|
|
* var MyLink = React.createClass({
|
|
|
* propTypes: {
|
|
|
* // An optional string or URI prop named "href".
|
|
|
* href: function(props, propName, componentName) {
|
|
|
* var propValue = props[propName];
|
|
|
* if (propValue != null && typeof propValue !== 'string' &&
|
|
|
* !(propValue instanceof URI)) {
|
|
|
* return new Error(
|
|
|
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
|
* componentName
|
|
|
* );
|
|
|
* }
|
|
|
* }
|
|
|
* },
|
|
|
* render: function() {...}
|
|
|
* });
|
|
|
*
|
|
|
* @internal
|
|
|
*/
|
|
|
|
|
|
var ANONYMOUS = '<<anonymous>>';
|
|
|
|
|
|
// Important!
|
|
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
|
var ReactPropTypes = {
|
|
|
array: createPrimitiveTypeChecker('array'),
|
|
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
|
func: createPrimitiveTypeChecker('function'),
|
|
|
number: createPrimitiveTypeChecker('number'),
|
|
|
object: createPrimitiveTypeChecker('object'),
|
|
|
string: createPrimitiveTypeChecker('string'),
|
|
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
|
|
|
|
any: createAnyTypeChecker(),
|
|
|
arrayOf: createArrayOfTypeChecker,
|
|
|
element: createElementTypeChecker(),
|
|
|
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) {
|
|
|
this.message = message;
|
|
|
this.stack = '';
|
|
|
}
|
|
|
// Make `instanceof Error` still work for returned errors.
|
|
|
PropTypeError.prototype = Error.prototype;
|
|
|
|
|
|
function createChainableTypeChecker(validate) {
|
|
|
if (true) {
|
|
|
var manualPropTypeCallCache = {};
|
|
|
var manualPropTypeWarningCount = 0;
|
|
|
}
|
|
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
|
componentName = componentName || ANONYMOUS;
|
|
|
propFullName = propFullName || propName;
|
|
|
|
|
|
if (secret !== ReactPropTypesSecret) {
|
|
|
if (throwOnDirectAccess) {
|
|
|
// New behavior only for users of `prop-types` package
|
|
|
var err = new Error(
|
|
|
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
|
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
|
'Read more at http://fb.me/use-check-prop-types'
|
|
|
);
|
|
|
err.name = 'Invariant Violation';
|
|
|
throw err;
|
|
|
} else if ( true && typeof console !== 'undefined') {
|
|
|
// Old behavior for people using React.PropTypes
|
|
|
var cacheKey = componentName + ':' + propName;
|
|
|
if (
|
|
|
!manualPropTypeCallCache[cacheKey] &&
|
|
|
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
|
manualPropTypeWarningCount < 3
|
|
|
) {
|
|
|
printWarning(
|
|
|
'You are manually calling a React.PropTypes validation ' +
|
|
|
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
|
'and will throw in the standalone `prop-types` package. ' +
|
|
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
|
);
|
|
|
manualPropTypeCallCache[cacheKey] = true;
|
|
|
manualPropTypeWarningCount++;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if (props[propName] == null) {
|
|
|
if (isRequired) {
|
|
|
if (props[propName] === null) {
|
|
|
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
|
}
|
|
|
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
|
}
|
|
|
return null;
|
|
|
} else {
|
|
|
return validate(props, propName, componentName, location, propFullName);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var chainedCheckType = checkType.bind(null, false);
|
|
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
|
|
|
|
return chainedCheckType;
|
|
|
}
|
|
|
|
|
|
function createPrimitiveTypeChecker(expectedType) {
|
|
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
|
var propValue = props[propName];
|
|
|
var propType = getPropType(propValue);
|
|
|
if (propType !== expectedType) {
|
|
|
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
|
// check, but we can offer a more precise error message here rather than
|
|
|
// 'of type `object`'.
|
|
|
var preciseType = getPreciseType(propValue);
|
|
|
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function createAnyTypeChecker() {
|
|
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
|
}
|
|
|
|
|
|
function createArrayOfTypeChecker(typeChecker) {
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
if (typeof typeChecker !== 'function') {
|
|
|
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
|
}
|
|
|
var propValue = props[propName];
|
|
|
if (!Array.isArray(propValue)) {
|
|
|
var propType = getPropType(propValue);
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
|
}
|
|
|
for (var i = 0; i < propValue.length; i++) {
|
|
|
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
|
if (error instanceof Error) {
|
|
|
return error;
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function createElementTypeChecker() {
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
var propValue = props[propName];
|
|
|
if (!isValidElement(propValue)) {
|
|
|
var propType = getPropType(propValue);
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function 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.') : undefined;
|
|
|
return emptyFunctionThatReturnsNull;
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
|
var checker = arrayOfTypeCheckers[i];
|
|
|
if (typeof checker !== 'function') {
|
|
|
printWarning(
|
|
|
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
|
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
|
);
|
|
|
return emptyFunctionThatReturnsNull;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
|
var checker = arrayOfTypeCheckers[i];
|
|
|
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function createNodeChecker() {
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
if (!isNode(props[propName])) {
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function createShapeTypeChecker(shapeTypes) {
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
var propValue = props[propName];
|
|
|
var propType = getPropType(propValue);
|
|
|
if (propType !== 'object') {
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
|
}
|
|
|
for (var key in shapeTypes) {
|
|
|
var checker = shapeTypes[key];
|
|
|
if (!checker) {
|
|
|
continue;
|
|
|
}
|
|
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
|
if (error) {
|
|
|
return error;
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
|
function validate(props, propName, componentName, location, propFullName) {
|
|
|
var propValue = props[propName];
|
|
|
var propType = getPropType(propValue);
|
|
|
if (propType !== 'object') {
|
|
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
|
}
|
|
|
// We need to check all keys in case some are required but missing from
|
|
|
// props.
|
|
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
|
for (var key in allKeys) {
|
|
|
var checker = shapeTypes[key];
|
|
|
if (!checker) {
|
|
|
return new PropTypeError(
|
|
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
|
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
|
);
|
|
|
}
|
|
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
|
if (error) {
|
|
|
return error;
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return createChainableTypeChecker(validate);
|
|
|
}
|
|
|
|
|
|
function isNode(propValue) {
|
|
|
switch (typeof propValue) {
|
|
|
case 'number':
|
|
|
case 'string':
|
|
|
case 'undefined':
|
|
|
return true;
|
|
|
case 'boolean':
|
|
|
return !propValue;
|
|
|
case 'object':
|
|
|
if (Array.isArray(propValue)) {
|
|
|
return propValue.every(isNode);
|
|
|
}
|
|
|
if (propValue === null || isValidElement(propValue)) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var iteratorFn = getIteratorFn(propValue);
|
|
|
if (iteratorFn) {
|
|
|
var iterator = iteratorFn.call(propValue);
|
|
|
var step;
|
|
|
if (iteratorFn !== propValue.entries) {
|
|
|
while (!(step = iterator.next()).done) {
|
|
|
if (!isNode(step.value)) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// Iterator will provide entry [k,v] tuples rather than values.
|
|
|
while (!(step = iterator.next()).done) {
|
|
|
var entry = step.value;
|
|
|
if (entry) {
|
|
|
if (!isNode(entry[1])) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isSymbol(propType, propValue) {
|
|
|
// Native Symbol.
|
|
|
if (propType === 'symbol') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
// 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 ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
/**
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
if (true) {
|
|
|
var 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 ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/**
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
|
|
|
module.exports = ReactPropTypesSecret;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-align/es/Align.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-align/es/Align.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_isVisible__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/Dom/isVisible */ "./node_modules/rc-util/es/Dom/isVisible.js");
|
|
|
/* harmony import */ var dom_align__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-align */ "./node_modules/dom-align/dist-web/index.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/Dom/addEventListener */ "./node_modules/rc-util/es/Dom/addEventListener.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./node_modules/rc-align/es/util.js");
|
|
|
/* harmony import */ var _hooks_useBuffer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./hooks/useBuffer */ "./node_modules/rc-align/es/hooks/useBuffer.js");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Removed props:
|
|
|
* - childrenProps
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getElement(func) {
|
|
|
if (typeof func !== 'function') return null;
|
|
|
return func();
|
|
|
}
|
|
|
|
|
|
function getPoint(point) {
|
|
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(point) !== 'object' || !point) return null;
|
|
|
return point;
|
|
|
}
|
|
|
|
|
|
var Align = function Align(_ref, ref) {
|
|
|
var children = _ref.children,
|
|
|
disabled = _ref.disabled,
|
|
|
target = _ref.target,
|
|
|
align = _ref.align,
|
|
|
onAlign = _ref.onAlign,
|
|
|
monitorWindowResize = _ref.monitorWindowResize,
|
|
|
_ref$monitorBufferTim = _ref.monitorBufferTime,
|
|
|
monitorBufferTime = _ref$monitorBufferTim === void 0 ? 0 : _ref$monitorBufferTim;
|
|
|
var cacheRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef({});
|
|
|
var nodeRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef();
|
|
|
var childNode = react__WEBPACK_IMPORTED_MODULE_2___default.a.Children.only(children); // ===================== Align ======================
|
|
|
// We save the props here to avoid closure makes props ood
|
|
|
|
|
|
var forceAlignPropsRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef({});
|
|
|
forceAlignPropsRef.current.disabled = disabled;
|
|
|
forceAlignPropsRef.current.target = target;
|
|
|
forceAlignPropsRef.current.onAlign = onAlign;
|
|
|
|
|
|
var _useBuffer = Object(_hooks_useBuffer__WEBPACK_IMPORTED_MODULE_8__["default"])(function () {
|
|
|
var _forceAlignPropsRef$c = forceAlignPropsRef.current,
|
|
|
latestDisabled = _forceAlignPropsRef$c.disabled,
|
|
|
latestTarget = _forceAlignPropsRef$c.target,
|
|
|
latestOnAlign = _forceAlignPropsRef$c.onAlign;
|
|
|
|
|
|
if (!latestDisabled && latestTarget) {
|
|
|
var source = nodeRef.current;
|
|
|
var result;
|
|
|
var element = getElement(latestTarget);
|
|
|
var point = getPoint(latestTarget);
|
|
|
cacheRef.current.element = element;
|
|
|
cacheRef.current.point = point; // IE lose focus after element realign
|
|
|
// We should record activeElement and restore later
|
|
|
|
|
|
var _document = document,
|
|
|
activeElement = _document.activeElement; // We only align when element is visible
|
|
|
|
|
|
if (element && Object(rc_util_es_Dom_isVisible__WEBPACK_IMPORTED_MODULE_4__["default"])(element)) {
|
|
|
result = Object(dom_align__WEBPACK_IMPORTED_MODULE_5__["alignElement"])(source, element, align);
|
|
|
} else if (point) {
|
|
|
result = Object(dom_align__WEBPACK_IMPORTED_MODULE_5__["alignPoint"])(source, point, align);
|
|
|
}
|
|
|
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_7__["restoreFocus"])(activeElement, source);
|
|
|
|
|
|
if (latestOnAlign && result) {
|
|
|
latestOnAlign(source, result);
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}, monitorBufferTime),
|
|
|
_useBuffer2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useBuffer, 2),
|
|
|
_forceAlign = _useBuffer2[0],
|
|
|
cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
|
|
|
// Listen for target updated
|
|
|
|
|
|
|
|
|
var resizeMonitor = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef({
|
|
|
cancel: function cancel() {}
|
|
|
}); // Listen for source updated
|
|
|
|
|
|
var sourceResizeMonitor = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef({
|
|
|
cancel: function cancel() {}
|
|
|
});
|
|
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.useEffect(function () {
|
|
|
var element = getElement(target);
|
|
|
var point = getPoint(target);
|
|
|
|
|
|
if (nodeRef.current !== sourceResizeMonitor.current.element) {
|
|
|
sourceResizeMonitor.current.cancel();
|
|
|
sourceResizeMonitor.current.element = nodeRef.current;
|
|
|
sourceResizeMonitor.current.cancel = Object(_util__WEBPACK_IMPORTED_MODULE_7__["monitorResize"])(nodeRef.current, _forceAlign);
|
|
|
}
|
|
|
|
|
|
if (cacheRef.current.element !== element || !Object(_util__WEBPACK_IMPORTED_MODULE_7__["isSamePoint"])(cacheRef.current.point, point)) {
|
|
|
_forceAlign(); // Add resize observer
|
|
|
|
|
|
|
|
|
if (resizeMonitor.current.element !== element) {
|
|
|
resizeMonitor.current.cancel();
|
|
|
resizeMonitor.current.element = element;
|
|
|
resizeMonitor.current.cancel = Object(_util__WEBPACK_IMPORTED_MODULE_7__["monitorResize"])(element, _forceAlign);
|
|
|
}
|
|
|
}
|
|
|
}); // Listen for disabled change
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.useEffect(function () {
|
|
|
if (!disabled) {
|
|
|
_forceAlign();
|
|
|
} else {
|
|
|
cancelForceAlign();
|
|
|
}
|
|
|
}, [disabled]); // Listen for window resize
|
|
|
|
|
|
var winResizeRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.useRef(null);
|
|
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.useEffect(function () {
|
|
|
if (monitorWindowResize) {
|
|
|
if (!winResizeRef.current) {
|
|
|
winResizeRef.current = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__["default"])(window, 'resize', _forceAlign);
|
|
|
}
|
|
|
} else if (winResizeRef.current) {
|
|
|
winResizeRef.current.remove();
|
|
|
winResizeRef.current = null;
|
|
|
}
|
|
|
}, [monitorWindowResize]); // Clear all if unmount
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.useEffect(function () {
|
|
|
return function () {
|
|
|
resizeMonitor.current.cancel();
|
|
|
sourceResizeMonitor.current.cancel();
|
|
|
if (winResizeRef.current) winResizeRef.current.remove();
|
|
|
cancelForceAlign();
|
|
|
};
|
|
|
}, []); // ====================== Ref =======================
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.useImperativeHandle(ref, function () {
|
|
|
return {
|
|
|
forceAlign: function forceAlign() {
|
|
|
return _forceAlign(true);
|
|
|
}
|
|
|
};
|
|
|
}); // ===================== Render =====================
|
|
|
|
|
|
if (react__WEBPACK_IMPORTED_MODULE_2___default.a.isValidElement(childNode)) {
|
|
|
childNode = react__WEBPACK_IMPORTED_MODULE_2___default.a.cloneElement(childNode, {
|
|
|
ref: Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_3__["composeRef"])(childNode.ref, nodeRef)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return childNode;
|
|
|
};
|
|
|
|
|
|
var RefAlign = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef(Align);
|
|
|
RefAlign.displayName = 'Align';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (RefAlign);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-align/es/hooks/useBuffer.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-align/es/hooks/useBuffer.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (callback, buffer) {
|
|
|
var calledRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.useRef(false);
|
|
|
var timeoutRef = react__WEBPACK_IMPORTED_MODULE_0___default.a.useRef(null);
|
|
|
|
|
|
function cancelTrigger() {
|
|
|
window.clearTimeout(timeoutRef.current);
|
|
|
}
|
|
|
|
|
|
function trigger(force) {
|
|
|
if (!calledRef.current || force === true) {
|
|
|
if (callback() === false) {
|
|
|
// Not delay since callback cancelled self
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
calledRef.current = true;
|
|
|
cancelTrigger();
|
|
|
timeoutRef.current = window.setTimeout(function () {
|
|
|
calledRef.current = false;
|
|
|
}, buffer);
|
|
|
} else {
|
|
|
cancelTrigger();
|
|
|
timeoutRef.current = window.setTimeout(function () {
|
|
|
calledRef.current = false;
|
|
|
trigger();
|
|
|
}, buffer);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [trigger, function () {
|
|
|
calledRef.current = false;
|
|
|
cancelTrigger();
|
|
|
}];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-align/es/index.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-align/es/index.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Align */ "./node_modules/rc-align/es/Align.js");
|
|
|
// export this package's api
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Align__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-align/es/util.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/rc-align/es/util.js ***!
|
|
|
\******************************************/
|
|
|
/*! exports provided: isSamePoint, restoreFocus, monitorResize */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSamePoint", function() { return isSamePoint; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "restoreFocus", function() { return restoreFocus; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monitorResize", function() { return monitorResize; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/Dom/contains */ "./node_modules/rc-util/es/Dom/contains.js");
|
|
|
|
|
|
|
|
|
|
|
|
function isSamePoint(prev, next) {
|
|
|
if (prev === next) return true;
|
|
|
if (!prev || !next) return false;
|
|
|
|
|
|
if ('pageX' in next && 'pageY' in next) {
|
|
|
return prev.pageX === next.pageX && prev.pageY === next.pageY;
|
|
|
}
|
|
|
|
|
|
if ('clientX' in next && 'clientY' in next) {
|
|
|
return prev.clientX === next.clientX && prev.clientY === next.clientY;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
function restoreFocus(activeElement, container) {
|
|
|
// Focus back if is in the container
|
|
|
if (activeElement !== document.activeElement && Object(rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_2__["default"])(container, activeElement) && typeof activeElement.focus === 'function') {
|
|
|
activeElement.focus();
|
|
|
}
|
|
|
}
|
|
|
function monitorResize(element, callback) {
|
|
|
var prevWidth = null;
|
|
|
var prevHeight = null;
|
|
|
|
|
|
function onResize(_ref) {
|
|
|
var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 1),
|
|
|
target = _ref2[0].target;
|
|
|
|
|
|
if (!document.documentElement.contains(target)) return;
|
|
|
|
|
|
var _target$getBoundingCl = target.getBoundingClientRect(),
|
|
|
width = _target$getBoundingCl.width,
|
|
|
height = _target$getBoundingCl.height;
|
|
|
|
|
|
var fixedWidth = Math.floor(width);
|
|
|
var fixedHeight = Math.floor(height);
|
|
|
|
|
|
if (prevWidth !== fixedWidth || prevHeight !== fixedHeight) {
|
|
|
// https://webkit.org/blog/9997/resizeobserver-in-webkit/
|
|
|
Promise.resolve().then(function () {
|
|
|
callback({
|
|
|
width: fixedWidth,
|
|
|
height: fixedHeight
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
prevWidth = fixedWidth;
|
|
|
prevHeight = fixedHeight;
|
|
|
}
|
|
|
|
|
|
var resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_1__["default"](onResize);
|
|
|
|
|
|
if (element) {
|
|
|
resizeObserver.observe(element);
|
|
|
}
|
|
|
|
|
|
return function () {
|
|
|
resizeObserver.disconnect();
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-checkbox/es/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-checkbox/es/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
|
|
|
|
|
|
|
|
|
|
var Checkbox = /*#__PURE__*/function (_Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(Checkbox, _Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__["default"])(Checkbox);
|
|
|
|
|
|
function Checkbox(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__["default"])(this, Checkbox);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.handleChange = function (e) {
|
|
|
var _this$props = _this.props,
|
|
|
disabled = _this$props.disabled,
|
|
|
onChange = _this$props.onChange;
|
|
|
|
|
|
if (disabled) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!('checked' in _this.props)) {
|
|
|
_this.setState({
|
|
|
checked: e.target.checked
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (onChange) {
|
|
|
onChange({
|
|
|
target: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, _this.props), {}, {
|
|
|
checked: e.target.checked
|
|
|
}),
|
|
|
stopPropagation: function stopPropagation() {
|
|
|
e.stopPropagation();
|
|
|
},
|
|
|
preventDefault: function preventDefault() {
|
|
|
e.preventDefault();
|
|
|
},
|
|
|
nativeEvent: e.nativeEvent
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.saveInput = function (node) {
|
|
|
_this.input = node;
|
|
|
};
|
|
|
|
|
|
var checked = 'checked' in props ? props.checked : props.defaultChecked;
|
|
|
_this.state = {
|
|
|
checked: checked
|
|
|
};
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__["default"])(Checkbox, [{
|
|
|
key: "focus",
|
|
|
value: function focus() {
|
|
|
this.input.focus();
|
|
|
}
|
|
|
}, {
|
|
|
key: "blur",
|
|
|
value: function blur() {
|
|
|
this.input.blur();
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _classNames;
|
|
|
|
|
|
var _this$props2 = this.props,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
className = _this$props2.className,
|
|
|
style = _this$props2.style,
|
|
|
name = _this$props2.name,
|
|
|
id = _this$props2.id,
|
|
|
type = _this$props2.type,
|
|
|
disabled = _this$props2.disabled,
|
|
|
readOnly = _this$props2.readOnly,
|
|
|
tabIndex = _this$props2.tabIndex,
|
|
|
onClick = _this$props2.onClick,
|
|
|
onFocus = _this$props2.onFocus,
|
|
|
onBlur = _this$props2.onBlur,
|
|
|
onKeyDown = _this$props2.onKeyDown,
|
|
|
onKeyPress = _this$props2.onKeyPress,
|
|
|
onKeyUp = _this$props2.onKeyUp,
|
|
|
autoFocus = _this$props2.autoFocus,
|
|
|
value = _this$props2.value,
|
|
|
required = _this$props2.required,
|
|
|
others = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_this$props2, ["prefixCls", "className", "style", "name", "id", "type", "disabled", "readOnly", "tabIndex", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyPress", "onKeyUp", "autoFocus", "value", "required"]);
|
|
|
|
|
|
var globalProps = Object.keys(others).reduce(function (prev, key) {
|
|
|
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
prev[key] = others[key];
|
|
|
}
|
|
|
|
|
|
return prev;
|
|
|
}, {});
|
|
|
var checked = this.state.checked;
|
|
|
var classString = classnames__WEBPACK_IMPORTED_MODULE_9___default()(prefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-checked"), checked), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
|
|
|
className: classString,
|
|
|
style: style
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("input", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
name: name,
|
|
|
id: id,
|
|
|
type: type,
|
|
|
required: required,
|
|
|
readOnly: readOnly,
|
|
|
disabled: disabled,
|
|
|
tabIndex: tabIndex,
|
|
|
className: "".concat(prefixCls, "-input"),
|
|
|
checked: !!checked,
|
|
|
onClick: onClick,
|
|
|
onFocus: onFocus,
|
|
|
onBlur: onBlur,
|
|
|
onKeyUp: onKeyUp,
|
|
|
onKeyDown: onKeyDown,
|
|
|
onKeyPress: onKeyPress,
|
|
|
onChange: this.handleChange,
|
|
|
autoFocus: autoFocus,
|
|
|
ref: this.saveInput,
|
|
|
value: value
|
|
|
}, globalProps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-inner")
|
|
|
}));
|
|
|
}
|
|
|
}], [{
|
|
|
key: "getDerivedStateFromProps",
|
|
|
value: function getDerivedStateFromProps(props, state) {
|
|
|
if ('checked' in props) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, state), {}, {
|
|
|
checked: props.checked
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Checkbox;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
|
|
|
|
Checkbox.defaultProps = {
|
|
|
prefixCls: 'rc-checkbox',
|
|
|
className: '',
|
|
|
style: {},
|
|
|
type: 'checkbox',
|
|
|
defaultChecked: false,
|
|
|
onFocus: function onFocus() {},
|
|
|
onBlur: function onBlur() {},
|
|
|
onChange: function onChange() {},
|
|
|
onKeyDown: function onKeyDown() {},
|
|
|
onKeyPress: function onKeyPress() {},
|
|
|
onKeyUp: function onKeyUp() {}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Checkbox);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-dropdown/es/Dropdown.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-dropdown/es/Dropdown.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_trigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-trigger */ "./node_modules/rc-trigger/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placements */ "./node_modules/rc-dropdown/es/placements.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Dropdown(props, ref) {
|
|
|
var _props$arrow = props.arrow,
|
|
|
arrow = _props$arrow === void 0 ? false : _props$arrow,
|
|
|
_props$prefixCls = props.prefixCls,
|
|
|
prefixCls = _props$prefixCls === void 0 ? 'rc-dropdown' : _props$prefixCls,
|
|
|
transitionName = props.transitionName,
|
|
|
animation = props.animation,
|
|
|
align = props.align,
|
|
|
_props$placement = props.placement,
|
|
|
placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
|
|
|
_props$placements = props.placements,
|
|
|
placements = _props$placements === void 0 ? _placements__WEBPACK_IMPORTED_MODULE_6__["default"] : _props$placements,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
showAction = props.showAction,
|
|
|
hideAction = props.hideAction,
|
|
|
overlayClassName = props.overlayClassName,
|
|
|
overlayStyle = props.overlayStyle,
|
|
|
visible = props.visible,
|
|
|
_props$trigger = props.trigger,
|
|
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
|
otherProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger"]);
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"](),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_React$useState, 2),
|
|
|
triggerVisible = _React$useState2[0],
|
|
|
setTriggerVisible = _React$useState2[1];
|
|
|
|
|
|
var mergedVisible = 'visible' in props ? visible : triggerVisible;
|
|
|
var triggerRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null);
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useImperativeHandle"](ref, function () {
|
|
|
return triggerRef.current;
|
|
|
});
|
|
|
|
|
|
var getOverlayElement = function getOverlayElement() {
|
|
|
var overlay = props.overlay;
|
|
|
var overlayElement;
|
|
|
|
|
|
if (typeof overlay === 'function') {
|
|
|
overlayElement = overlay();
|
|
|
} else {
|
|
|
overlayElement = overlay;
|
|
|
}
|
|
|
|
|
|
return overlayElement;
|
|
|
};
|
|
|
|
|
|
var onClick = function onClick(e) {
|
|
|
var onOverlayClick = props.onOverlayClick;
|
|
|
var overlayProps = getOverlayElement().props;
|
|
|
setTriggerVisible(false);
|
|
|
|
|
|
if (onOverlayClick) {
|
|
|
onOverlayClick(e);
|
|
|
}
|
|
|
|
|
|
if (overlayProps.onClick) {
|
|
|
overlayProps.onClick(e);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onVisibleChange = function onVisibleChange(visible) {
|
|
|
var onVisibleChange = props.onVisibleChange;
|
|
|
setTriggerVisible(visible);
|
|
|
|
|
|
if (typeof onVisibleChange === 'function') {
|
|
|
onVisibleChange(visible);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var getMenuElement = function getMenuElement() {
|
|
|
var overlayElement = getOverlayElement();
|
|
|
var extraOverlayProps = {
|
|
|
prefixCls: "".concat(prefixCls, "-menu"),
|
|
|
onClick: onClick
|
|
|
};
|
|
|
|
|
|
if (typeof overlayElement.type === 'string') {
|
|
|
delete extraOverlayProps.prefixCls;
|
|
|
}
|
|
|
|
|
|
return react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, arrow && react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-arrow")
|
|
|
}), react__WEBPACK_IMPORTED_MODULE_3__["cloneElement"](overlayElement, extraOverlayProps));
|
|
|
};
|
|
|
|
|
|
var getMenuElementOrLambda = function getMenuElementOrLambda() {
|
|
|
var overlay = props.overlay;
|
|
|
|
|
|
if (typeof overlay === 'function') {
|
|
|
return getMenuElement;
|
|
|
}
|
|
|
|
|
|
return getMenuElement();
|
|
|
};
|
|
|
|
|
|
var getMinOverlayWidthMatchTrigger = function getMinOverlayWidthMatchTrigger() {
|
|
|
var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
|
|
|
alignPoint = props.alignPoint;
|
|
|
|
|
|
if ('minOverlayWidthMatchTrigger' in props) {
|
|
|
return minOverlayWidthMatchTrigger;
|
|
|
}
|
|
|
|
|
|
return !alignPoint;
|
|
|
};
|
|
|
|
|
|
var getOpenClassName = function getOpenClassName() {
|
|
|
var openClassName = props.openClassName;
|
|
|
|
|
|
if (openClassName !== undefined) {
|
|
|
return openClassName;
|
|
|
}
|
|
|
|
|
|
return "".concat(prefixCls, "-open");
|
|
|
};
|
|
|
|
|
|
var renderChildren = function renderChildren() {
|
|
|
var children = props.children;
|
|
|
var childrenProps = children.props ? children.props : {};
|
|
|
var childClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(childrenProps.className, getOpenClassName());
|
|
|
return triggerVisible && children ? react__WEBPACK_IMPORTED_MODULE_3__["cloneElement"](children, {
|
|
|
className: childClassName
|
|
|
}) : children;
|
|
|
};
|
|
|
|
|
|
var triggerHideAction = hideAction;
|
|
|
|
|
|
if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) {
|
|
|
triggerHideAction = ['click'];
|
|
|
}
|
|
|
|
|
|
return react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_trigger__WEBPACK_IMPORTED_MODULE_4__["default"], Object.assign({}, otherProps, {
|
|
|
prefixCls: prefixCls,
|
|
|
ref: triggerRef,
|
|
|
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_5___default()(overlayClassName, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(prefixCls, "-show-arrow"), arrow)),
|
|
|
popupStyle: overlayStyle,
|
|
|
builtinPlacements: placements,
|
|
|
action: trigger,
|
|
|
showAction: showAction,
|
|
|
hideAction: triggerHideAction || [],
|
|
|
popupPlacement: placement,
|
|
|
popupAlign: align,
|
|
|
popupTransitionName: transitionName,
|
|
|
popupAnimation: animation,
|
|
|
popupVisible: mergedVisible,
|
|
|
stretch: getMinOverlayWidthMatchTrigger() ? 'minWidth' : '',
|
|
|
popup: getMenuElementOrLambda(),
|
|
|
onPopupVisibleChange: onVisibleChange,
|
|
|
getPopupContainer: getPopupContainer
|
|
|
}), renderChildren());
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](Dropdown));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-dropdown/es/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-dropdown/es/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./node_modules/rc-dropdown/es/Dropdown.js");
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-dropdown/es/placements.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-dropdown/es/placements.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
var autoAdjustOverflow = {
|
|
|
adjustX: 1,
|
|
|
adjustY: 1
|
|
|
};
|
|
|
var targetOffset = [0, 0];
|
|
|
var placements = {
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topCenter: {
|
|
|
points: ['bc', 'tc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topRight: {
|
|
|
points: ['br', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomCenter: {
|
|
|
points: ['tc', 'bc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomRight: {
|
|
|
points: ['tr', 'br'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (placements);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/Field.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/Field.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
|
|
|
/* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
|
|
|
/* harmony import */ var _utils_typeUtil__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utils/typeUtil */ "./node_modules/rc-field-form/es/utils/typeUtil.js");
|
|
|
/* harmony import */ var _utils_validateUtil__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils/validateUtil */ "./node_modules/rc-field-form/es/utils/validateUtil.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
|
|
|
if (typeof shouldUpdate === 'function') {
|
|
|
return shouldUpdate(prev, next, 'source' in info ? {
|
|
|
source: info.source
|
|
|
} : {});
|
|
|
}
|
|
|
|
|
|
return prevValue !== nextValue;
|
|
|
} // We use Class instead of Hooks here since it will cost much code by using Hooks.
|
|
|
|
|
|
|
|
|
var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_8__["default"])(Field, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_9__["default"])(Field);
|
|
|
|
|
|
// ============================== Subscriptions ==============================
|
|
|
function Field(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__["default"])(this, Field);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
_this.state = {
|
|
|
resetCount: 0
|
|
|
};
|
|
|
_this.cancelRegisterFunc = null;
|
|
|
_this.mounted = false;
|
|
|
/**
|
|
|
* Follow state should not management in State since it will async update by React.
|
|
|
* This makes first render of form can not get correct state value.
|
|
|
*/
|
|
|
|
|
|
_this.touched = false;
|
|
|
/** Mark when touched & validated. Currently only used for `dependencies` */
|
|
|
|
|
|
_this.dirty = false;
|
|
|
_this.validatePromise = null;
|
|
|
_this.errors = [];
|
|
|
|
|
|
_this.cancelRegister = function () {
|
|
|
var _this$props = _this.props,
|
|
|
preserve = _this$props.preserve,
|
|
|
isListField = _this$props.isListField,
|
|
|
name = _this$props.name;
|
|
|
|
|
|
if (_this.cancelRegisterFunc) {
|
|
|
_this.cancelRegisterFunc(isListField, preserve, Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["getNamePath"])(name));
|
|
|
}
|
|
|
|
|
|
_this.cancelRegisterFunc = null;
|
|
|
}; // ================================== Utils ==================================
|
|
|
|
|
|
|
|
|
_this.getNamePath = function () {
|
|
|
var _this$props2 = _this.props,
|
|
|
name = _this$props2.name,
|
|
|
fieldContext = _this$props2.fieldContext;
|
|
|
var _fieldContext$prefixN = fieldContext.prefixName,
|
|
|
prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
|
|
|
return name !== undefined ? [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__["default"])(prefixName), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__["default"])(name)) : [];
|
|
|
};
|
|
|
|
|
|
_this.getRules = function () {
|
|
|
var _this$props3 = _this.props,
|
|
|
_this$props3$rules = _this$props3.rules,
|
|
|
rules = _this$props3$rules === void 0 ? [] : _this$props3$rules,
|
|
|
fieldContext = _this$props3.fieldContext;
|
|
|
return rules.map(function (rule) {
|
|
|
if (typeof rule === 'function') {
|
|
|
return rule(fieldContext);
|
|
|
}
|
|
|
|
|
|
return rule;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.refresh = function () {
|
|
|
if (!_this.mounted) return;
|
|
|
/**
|
|
|
* Clean up current node.
|
|
|
*/
|
|
|
|
|
|
_this.setState(function (_ref) {
|
|
|
var resetCount = _ref.resetCount;
|
|
|
return {
|
|
|
resetCount: resetCount + 1
|
|
|
};
|
|
|
});
|
|
|
}; // ========================= Field Entity Interfaces =========================
|
|
|
// Trigger by store update. Check if need update the component
|
|
|
|
|
|
|
|
|
_this.onStoreChange = function (prevStore, namePathList, info) {
|
|
|
var _this$props4 = _this.props,
|
|
|
shouldUpdate = _this$props4.shouldUpdate,
|
|
|
_this$props4$dependen = _this$props4.dependencies,
|
|
|
dependencies = _this$props4$dependen === void 0 ? [] : _this$props4$dependen,
|
|
|
onReset = _this$props4.onReset;
|
|
|
var store = info.store;
|
|
|
|
|
|
var namePath = _this.getNamePath();
|
|
|
|
|
|
var prevValue = _this.getValue(prevStore);
|
|
|
|
|
|
var curValue = _this.getValue(store);
|
|
|
|
|
|
var namePathMatch = namePathList && Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["containsNamePath"])(namePathList, namePath); // `setFieldsValue` is a quick access to update related status
|
|
|
|
|
|
if (info.type === 'valueUpdate' && info.source === 'external' && prevValue !== curValue) {
|
|
|
_this.touched = true;
|
|
|
_this.dirty = true;
|
|
|
_this.validatePromise = null;
|
|
|
_this.errors = [];
|
|
|
}
|
|
|
|
|
|
switch (info.type) {
|
|
|
case 'reset':
|
|
|
if (!namePathList || namePathMatch) {
|
|
|
// Clean up state
|
|
|
_this.touched = false;
|
|
|
_this.dirty = false;
|
|
|
_this.validatePromise = null;
|
|
|
_this.errors = [];
|
|
|
|
|
|
if (onReset) {
|
|
|
onReset();
|
|
|
}
|
|
|
|
|
|
_this.refresh();
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 'setField':
|
|
|
{
|
|
|
if (namePathMatch) {
|
|
|
var data = info.data;
|
|
|
|
|
|
if ('touched' in data) {
|
|
|
_this.touched = data.touched;
|
|
|
}
|
|
|
|
|
|
if ('validating' in data && !('originRCField' in data)) {
|
|
|
_this.validatePromise = data.validating ? Promise.resolve([]) : null;
|
|
|
}
|
|
|
|
|
|
if ('errors' in data) {
|
|
|
_this.errors = data.errors || [];
|
|
|
}
|
|
|
|
|
|
_this.dirty = true;
|
|
|
|
|
|
_this.reRender();
|
|
|
|
|
|
return;
|
|
|
} // Handle update by `setField` with `shouldUpdate`
|
|
|
|
|
|
|
|
|
if (shouldUpdate && !namePath.length && requireUpdate(shouldUpdate, prevStore, store, prevValue, curValue, info)) {
|
|
|
_this.reRender();
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'dependenciesUpdate':
|
|
|
{
|
|
|
/**
|
|
|
* Trigger when marked `dependencies` updated. Related fields will all update
|
|
|
*/
|
|
|
var dependencyList = dependencies.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["getNamePath"]); // No need for `namePathMath` check and `shouldUpdate` check, since `valueUpdate` will be
|
|
|
// emitted earlier and they will work there
|
|
|
// If set it may cause unnecessary twice rerendering
|
|
|
|
|
|
if (dependencyList.some(function (dependency) {
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["containsNamePath"])(info.relatedFields, dependency);
|
|
|
})) {
|
|
|
_this.reRender();
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
// 1. If `namePath` exists in `namePathList`, means it's related value and should update
|
|
|
// For example <List name="list"><Field name={['list', 0]}></List>
|
|
|
// If `namePathList` is [['list']] (List value update), Field should be updated
|
|
|
// If `namePathList` is [['list', 0]] (Field value update), List shouldn't be updated
|
|
|
// 2.
|
|
|
// 2.1 If `dependencies` is set, `name` is not set and `shouldUpdate` is not set,
|
|
|
// don't use `shouldUpdate`. `dependencies` is view as a shortcut if `shouldUpdate`
|
|
|
// is not provided
|
|
|
// 2.2 If `shouldUpdate` provided, use customize logic to update the field
|
|
|
// else to check if value changed
|
|
|
if (namePathMatch || (!dependencies.length || namePath.length || shouldUpdate) && requireUpdate(shouldUpdate, prevStore, store, prevValue, curValue, info)) {
|
|
|
_this.reRender();
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (shouldUpdate === true) {
|
|
|
_this.reRender();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.validateRules = function (options) {
|
|
|
// We should fixed namePath & value to avoid developer change then by form function
|
|
|
var namePath = _this.getNamePath();
|
|
|
|
|
|
var currentValue = _this.getValue(); // Force change to async to avoid rule OOD under renderProps field
|
|
|
|
|
|
|
|
|
var rootPromise = Promise.resolve().then(function () {
|
|
|
if (!_this.mounted) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
var _this$props5 = _this.props,
|
|
|
_this$props5$validate = _this$props5.validateFirst,
|
|
|
validateFirst = _this$props5$validate === void 0 ? false : _this$props5$validate,
|
|
|
messageVariables = _this$props5.messageVariables;
|
|
|
|
|
|
var _ref2 = options || {},
|
|
|
triggerName = _ref2.triggerName;
|
|
|
|
|
|
var filteredRules = _this.getRules();
|
|
|
|
|
|
if (triggerName) {
|
|
|
filteredRules = filteredRules.filter(function (rule) {
|
|
|
var validateTrigger = rule.validateTrigger;
|
|
|
|
|
|
if (!validateTrigger) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var triggerList = Object(_utils_typeUtil__WEBPACK_IMPORTED_MODULE_14__["toArray"])(validateTrigger);
|
|
|
return triggerList.includes(triggerName);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var promise = Object(_utils_validateUtil__WEBPACK_IMPORTED_MODULE_15__["validateRules"])(namePath, currentValue, filteredRules, options, validateFirst, messageVariables);
|
|
|
promise.catch(function (e) {
|
|
|
return e;
|
|
|
}).then(function () {
|
|
|
var errors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
|
|
|
if (_this.validatePromise === rootPromise) {
|
|
|
_this.validatePromise = null;
|
|
|
_this.errors = errors;
|
|
|
|
|
|
_this.reRender();
|
|
|
}
|
|
|
});
|
|
|
return promise;
|
|
|
});
|
|
|
_this.validatePromise = rootPromise;
|
|
|
_this.dirty = true;
|
|
|
_this.errors = []; // Force trigger re-render since we need sync renderProps with new meta
|
|
|
|
|
|
_this.reRender();
|
|
|
|
|
|
return rootPromise;
|
|
|
};
|
|
|
|
|
|
_this.isFieldValidating = function () {
|
|
|
return !!_this.validatePromise;
|
|
|
};
|
|
|
|
|
|
_this.isFieldTouched = function () {
|
|
|
return _this.touched;
|
|
|
};
|
|
|
|
|
|
_this.isFieldDirty = function () {
|
|
|
return _this.dirty;
|
|
|
};
|
|
|
|
|
|
_this.getErrors = function () {
|
|
|
return _this.errors;
|
|
|
};
|
|
|
|
|
|
_this.isListField = function () {
|
|
|
return _this.props.isListField;
|
|
|
};
|
|
|
|
|
|
_this.isList = function () {
|
|
|
return _this.props.isList;
|
|
|
};
|
|
|
|
|
|
_this.isPreserve = function () {
|
|
|
return _this.props.preserve;
|
|
|
}; // ============================= Child Component =============================
|
|
|
|
|
|
|
|
|
_this.getMeta = function () {
|
|
|
// Make error & validating in cache to save perf
|
|
|
_this.prevValidating = _this.isFieldValidating();
|
|
|
var meta = {
|
|
|
touched: _this.isFieldTouched(),
|
|
|
validating: _this.prevValidating,
|
|
|
errors: _this.errors,
|
|
|
name: _this.getNamePath()
|
|
|
};
|
|
|
return meta;
|
|
|
}; // Only return validate child node. If invalidate, will do nothing about field.
|
|
|
|
|
|
|
|
|
_this.getOnlyChild = function (children) {
|
|
|
// Support render props
|
|
|
if (typeof children === 'function') {
|
|
|
var meta = _this.getMeta();
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
|
|
|
isFunction: true
|
|
|
});
|
|
|
} // Filed element only
|
|
|
|
|
|
|
|
|
var childList = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_10__["default"])(children);
|
|
|
|
|
|
if (childList.length !== 1 || ! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["isValidElement"](childList[0])) {
|
|
|
return {
|
|
|
child: childList,
|
|
|
isFunction: false
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
child: childList[0],
|
|
|
isFunction: false
|
|
|
};
|
|
|
}; // ============================== Field Control ==============================
|
|
|
|
|
|
|
|
|
_this.getValue = function (store) {
|
|
|
var getFieldsValue = _this.props.fieldContext.getFieldsValue;
|
|
|
|
|
|
var namePath = _this.getNamePath();
|
|
|
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["getValue"])(store || getFieldsValue(true), namePath);
|
|
|
};
|
|
|
|
|
|
_this.getControlled = function () {
|
|
|
var childProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
var _this$props6 = _this.props,
|
|
|
trigger = _this$props6.trigger,
|
|
|
validateTrigger = _this$props6.validateTrigger,
|
|
|
getValueFromEvent = _this$props6.getValueFromEvent,
|
|
|
normalize = _this$props6.normalize,
|
|
|
valuePropName = _this$props6.valuePropName,
|
|
|
getValueProps = _this$props6.getValueProps,
|
|
|
fieldContext = _this$props6.fieldContext;
|
|
|
var mergedValidateTrigger = validateTrigger !== undefined ? validateTrigger : fieldContext.validateTrigger;
|
|
|
|
|
|
var namePath = _this.getNamePath();
|
|
|
|
|
|
var getInternalHooks = fieldContext.getInternalHooks,
|
|
|
getFieldsValue = fieldContext.getFieldsValue;
|
|
|
|
|
|
var _getInternalHooks = getInternalHooks(_FieldContext__WEBPACK_IMPORTED_MODULE_13__["HOOK_MARK"]),
|
|
|
dispatch = _getInternalHooks.dispatch;
|
|
|
|
|
|
var value = _this.getValue();
|
|
|
|
|
|
var mergedGetValueProps = getValueProps || function (val) {
|
|
|
return Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, valuePropName, val);
|
|
|
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
|
|
|
|
var originTriggerFunc = childProps[trigger];
|
|
|
|
|
|
var control = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, childProps), mergedGetValueProps(value)); // Add trigger
|
|
|
|
|
|
|
|
|
control[trigger] = function () {
|
|
|
// Mark as touched
|
|
|
_this.touched = true;
|
|
|
_this.dirty = true;
|
|
|
var newValue;
|
|
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
if (getValueFromEvent) {
|
|
|
newValue = getValueFromEvent.apply(void 0, args);
|
|
|
} else {
|
|
|
newValue = _utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["defaultGetValueFromEvent"].apply(void 0, [valuePropName].concat(args));
|
|
|
}
|
|
|
|
|
|
if (normalize) {
|
|
|
newValue = normalize(newValue, value, getFieldsValue(true));
|
|
|
}
|
|
|
|
|
|
dispatch({
|
|
|
type: 'updateValue',
|
|
|
namePath: namePath,
|
|
|
value: newValue
|
|
|
});
|
|
|
|
|
|
if (originTriggerFunc) {
|
|
|
originTriggerFunc.apply(void 0, args);
|
|
|
}
|
|
|
}; // Add validateTrigger
|
|
|
|
|
|
|
|
|
var validateTriggerList = Object(_utils_typeUtil__WEBPACK_IMPORTED_MODULE_14__["toArray"])(mergedValidateTrigger || []);
|
|
|
validateTriggerList.forEach(function (triggerName) {
|
|
|
// Wrap additional function of component, so that we can get latest value from store
|
|
|
var originTrigger = control[triggerName];
|
|
|
|
|
|
control[triggerName] = function () {
|
|
|
if (originTrigger) {
|
|
|
originTrigger.apply(void 0, arguments);
|
|
|
} // Always use latest rules
|
|
|
|
|
|
|
|
|
var rules = _this.props.rules;
|
|
|
|
|
|
if (rules && rules.length) {
|
|
|
// We dispatch validate to root,
|
|
|
// since it will update related data with other field with same name
|
|
|
dispatch({
|
|
|
type: 'validateField',
|
|
|
namePath: namePath,
|
|
|
triggerName: triggerName
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
return control;
|
|
|
}; // Register on init
|
|
|
|
|
|
|
|
|
if (props.fieldContext) {
|
|
|
var getInternalHooks = props.fieldContext.getInternalHooks;
|
|
|
|
|
|
var _getInternalHooks2 = getInternalHooks(_FieldContext__WEBPACK_IMPORTED_MODULE_13__["HOOK_MARK"]),
|
|
|
initEntityValue = _getInternalHooks2.initEntityValue;
|
|
|
|
|
|
initEntityValue(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__["default"])(_this));
|
|
|
}
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__["default"])(Field, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
var _this$props7 = this.props,
|
|
|
shouldUpdate = _this$props7.shouldUpdate,
|
|
|
fieldContext = _this$props7.fieldContext;
|
|
|
this.mounted = true; // Register on init
|
|
|
|
|
|
if (fieldContext) {
|
|
|
var getInternalHooks = fieldContext.getInternalHooks;
|
|
|
|
|
|
var _getInternalHooks3 = getInternalHooks(_FieldContext__WEBPACK_IMPORTED_MODULE_13__["HOOK_MARK"]),
|
|
|
registerField = _getInternalHooks3.registerField;
|
|
|
|
|
|
this.cancelRegisterFunc = registerField(this);
|
|
|
} // One more render for component in case fields not ready
|
|
|
|
|
|
|
|
|
if (shouldUpdate === true) {
|
|
|
this.reRender();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.cancelRegister();
|
|
|
this.mounted = false;
|
|
|
}
|
|
|
}, {
|
|
|
key: "reRender",
|
|
|
value: function reRender() {
|
|
|
if (!this.mounted) return;
|
|
|
this.forceUpdate();
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var resetCount = this.state.resetCount;
|
|
|
var children = this.props.children;
|
|
|
|
|
|
var _this$getOnlyChild = this.getOnlyChild(children),
|
|
|
child = _this$getOnlyChild.child,
|
|
|
isFunction = _this$getOnlyChild.isFunction; // Not need to `cloneElement` since user can handle this in render function self
|
|
|
|
|
|
|
|
|
var returnChildNode;
|
|
|
|
|
|
if (isFunction) {
|
|
|
returnChildNode = child;
|
|
|
} else if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["isValidElement"](child)) {
|
|
|
returnChildNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["cloneElement"](child, this.getControlled(child.props));
|
|
|
} else {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_11__["default"])(!child, '`children` of Field is not validate ReactElement.');
|
|
|
returnChildNode = child;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](react__WEBPACK_IMPORTED_MODULE_12__["Fragment"], {
|
|
|
key: resetCount
|
|
|
}, returnChildNode);
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Field;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_12__["Component"]);
|
|
|
|
|
|
Field.contextType = _FieldContext__WEBPACK_IMPORTED_MODULE_13__["default"];
|
|
|
Field.defaultProps = {
|
|
|
trigger: 'onChange',
|
|
|
valuePropName: 'value'
|
|
|
};
|
|
|
|
|
|
function WrapperField(_ref4) {
|
|
|
var name = _ref4.name,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref4, ["name"]);
|
|
|
|
|
|
var fieldContext = react__WEBPACK_IMPORTED_MODULE_12__["useContext"](_FieldContext__WEBPACK_IMPORTED_MODULE_13__["default"]);
|
|
|
var namePath = name !== undefined ? Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_16__["getNamePath"])(name) : undefined;
|
|
|
var key = 'keep';
|
|
|
|
|
|
if (!restProps.isListField) {
|
|
|
key = "_".concat((namePath || []).join('_'));
|
|
|
} // Warning if it's a directly list field.
|
|
|
// We can still support multiple level field preserve.
|
|
|
|
|
|
|
|
|
if ( true && restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_11__["default"])(false, '`preserve` should not apply on Form.List fields.');
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](Field, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
key: key,
|
|
|
name: namePath
|
|
|
}, restProps, {
|
|
|
fieldContext: fieldContext
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (WrapperField);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/FieldContext.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/FieldContext.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: HOOK_MARK, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HOOK_MARK", function() { return HOOK_MARK; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
|
|
|
|
|
|
var HOOK_MARK = 'RC_FORM_INTERNAL_HOOKS'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
|
var warningFunc = function warningFunc() {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_1__["default"])(false, 'Can not find FormContext. Please make sure you wrap Field under Form.');
|
|
|
};
|
|
|
|
|
|
var Context = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"]({
|
|
|
getFieldValue: warningFunc,
|
|
|
getFieldsValue: warningFunc,
|
|
|
getFieldError: warningFunc,
|
|
|
getFieldsError: warningFunc,
|
|
|
isFieldsTouched: warningFunc,
|
|
|
isFieldTouched: warningFunc,
|
|
|
isFieldValidating: warningFunc,
|
|
|
isFieldsValidating: warningFunc,
|
|
|
resetFields: warningFunc,
|
|
|
setFields: warningFunc,
|
|
|
setFieldsValue: warningFunc,
|
|
|
validateFields: warningFunc,
|
|
|
submit: warningFunc,
|
|
|
getInternalHooks: function getInternalHooks() {
|
|
|
warningFunc();
|
|
|
return {
|
|
|
dispatch: warningFunc,
|
|
|
initEntityValue: warningFunc,
|
|
|
registerField: warningFunc,
|
|
|
useSubscribe: warningFunc,
|
|
|
setInitialValues: warningFunc,
|
|
|
setCallbacks: warningFunc,
|
|
|
getFields: warningFunc,
|
|
|
setValidateMessages: warningFunc,
|
|
|
setPreserve: warningFunc
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Context);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/Form.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/Form.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var _useForm__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useForm */ "./node_modules/rc-field-form/es/useForm.js");
|
|
|
/* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
|
|
|
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormContext */ "./node_modules/rc-field-form/es/FormContext.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Form = function Form(_ref, ref) {
|
|
|
var name = _ref.name,
|
|
|
initialValues = _ref.initialValues,
|
|
|
fields = _ref.fields,
|
|
|
form = _ref.form,
|
|
|
preserve = _ref.preserve,
|
|
|
children = _ref.children,
|
|
|
_ref$component = _ref.component,
|
|
|
Component = _ref$component === void 0 ? 'form' : _ref$component,
|
|
|
validateMessages = _ref.validateMessages,
|
|
|
_ref$validateTrigger = _ref.validateTrigger,
|
|
|
validateTrigger = _ref$validateTrigger === void 0 ? 'onChange' : _ref$validateTrigger,
|
|
|
onValuesChange = _ref.onValuesChange,
|
|
|
_onFieldsChange = _ref.onFieldsChange,
|
|
|
_onFinish = _ref.onFinish,
|
|
|
onFinishFailed = _ref.onFinishFailed,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_ref, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]);
|
|
|
|
|
|
var formContext = react__WEBPACK_IMPORTED_MODULE_4__["useContext"](_FormContext__WEBPACK_IMPORTED_MODULE_7__["default"]); // We customize handle event since Context will makes all the consumer re-render:
|
|
|
// https://reactjs.org/docs/context.html#contextprovider
|
|
|
|
|
|
var _useForm = Object(_useForm__WEBPACK_IMPORTED_MODULE_5__["default"])(form),
|
|
|
_useForm2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useForm, 1),
|
|
|
formInstance = _useForm2[0];
|
|
|
|
|
|
var _formInstance$getInte = formInstance.getInternalHooks(_FieldContext__WEBPACK_IMPORTED_MODULE_6__["HOOK_MARK"]),
|
|
|
useSubscribe = _formInstance$getInte.useSubscribe,
|
|
|
setInitialValues = _formInstance$getInte.setInitialValues,
|
|
|
setCallbacks = _formInstance$getInte.setCallbacks,
|
|
|
setValidateMessages = _formInstance$getInte.setValidateMessages,
|
|
|
setPreserve = _formInstance$getInte.setPreserve; // Pass ref with form instance
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useImperativeHandle"](ref, function () {
|
|
|
return formInstance;
|
|
|
}); // Register form into Context
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
|
|
|
formContext.registerForm(name, formInstance);
|
|
|
return function () {
|
|
|
formContext.unregisterForm(name);
|
|
|
};
|
|
|
}, [formContext, formInstance, name]); // Pass props to store
|
|
|
|
|
|
setValidateMessages(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formContext.validateMessages), validateMessages));
|
|
|
setCallbacks({
|
|
|
onValuesChange: onValuesChange,
|
|
|
onFieldsChange: function onFieldsChange(changedFields) {
|
|
|
formContext.triggerFormChange(name, changedFields);
|
|
|
|
|
|
if (_onFieldsChange) {
|
|
|
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
|
rest[_key - 1] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
_onFieldsChange.apply(void 0, [changedFields].concat(rest));
|
|
|
}
|
|
|
},
|
|
|
onFinish: function onFinish(values) {
|
|
|
formContext.triggerFormFinish(name, values);
|
|
|
|
|
|
if (_onFinish) {
|
|
|
_onFinish(values);
|
|
|
}
|
|
|
},
|
|
|
onFinishFailed: onFinishFailed
|
|
|
});
|
|
|
setPreserve(preserve); // Set initial value, init store value when first mount
|
|
|
|
|
|
var mountRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](null);
|
|
|
setInitialValues(initialValues, !mountRef.current);
|
|
|
|
|
|
if (!mountRef.current) {
|
|
|
mountRef.current = true;
|
|
|
} // Prepare children by `children` type
|
|
|
|
|
|
|
|
|
var childrenNode = children;
|
|
|
var childrenRenderProps = typeof children === 'function';
|
|
|
|
|
|
if (childrenRenderProps) {
|
|
|
var values = formInstance.getFieldsValue(true);
|
|
|
childrenNode = children(values, formInstance);
|
|
|
} // Not use subscribe when using render props
|
|
|
|
|
|
|
|
|
useSubscribe(!childrenRenderProps); // Listen if fields provided. We use ref to save prev data here to avoid additional render
|
|
|
|
|
|
var prevFieldsRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"]();
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
|
|
|
if (!Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__["isSimilar"])(prevFieldsRef.current || [], fields || [])) {
|
|
|
formInstance.setFields(fields || []);
|
|
|
}
|
|
|
|
|
|
prevFieldsRef.current = fields;
|
|
|
}, [fields, formInstance]);
|
|
|
var formContextValue = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formInstance), {}, {
|
|
|
validateTrigger: validateTrigger
|
|
|
});
|
|
|
}, [formInstance, validateTrigger]);
|
|
|
var wrapperNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_FieldContext__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
|
|
|
value: formContextValue
|
|
|
}, childrenNode);
|
|
|
|
|
|
if (Component === false) {
|
|
|
return wrapperNode;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, restProps, {
|
|
|
onSubmit: function onSubmit(event) {
|
|
|
event.preventDefault();
|
|
|
event.stopPropagation();
|
|
|
formInstance.submit();
|
|
|
},
|
|
|
onReset: function onReset(event) {
|
|
|
var _restProps$onReset;
|
|
|
|
|
|
event.preventDefault();
|
|
|
formInstance.resetFields();
|
|
|
(_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 ? void 0 : _restProps$onReset.call(restProps, event);
|
|
|
}
|
|
|
}), wrapperNode);
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Form);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/FormContext.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/FormContext.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: FormProvider, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProvider", function() { return FormProvider; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
|
|
|
|
|
|
var FormContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createContext"]({
|
|
|
triggerFormChange: function triggerFormChange() {},
|
|
|
triggerFormFinish: function triggerFormFinish() {},
|
|
|
registerForm: function registerForm() {},
|
|
|
unregisterForm: function unregisterForm() {}
|
|
|
});
|
|
|
|
|
|
var FormProvider = function FormProvider(_ref) {
|
|
|
var validateMessages = _ref.validateMessages,
|
|
|
onFormChange = _ref.onFormChange,
|
|
|
onFormFinish = _ref.onFormFinish,
|
|
|
children = _ref.children;
|
|
|
var formContext = react__WEBPACK_IMPORTED_MODULE_2__["useContext"](FormContext);
|
|
|
var formsRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"]({});
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](FormContext.Provider, {
|
|
|
value: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formContext), {}, {
|
|
|
validateMessages: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formContext.validateMessages), validateMessages),
|
|
|
// =========================================================
|
|
|
// = Global Form Control =
|
|
|
// =========================================================
|
|
|
triggerFormChange: function triggerFormChange(name, changedFields) {
|
|
|
if (onFormChange) {
|
|
|
onFormChange(name, {
|
|
|
changedFields: changedFields,
|
|
|
forms: formsRef.current
|
|
|
});
|
|
|
}
|
|
|
|
|
|
formContext.triggerFormChange(name, changedFields);
|
|
|
},
|
|
|
triggerFormFinish: function triggerFormFinish(name, values) {
|
|
|
if (onFormFinish) {
|
|
|
onFormFinish(name, {
|
|
|
values: values,
|
|
|
forms: formsRef.current
|
|
|
});
|
|
|
}
|
|
|
|
|
|
formContext.triggerFormFinish(name, values);
|
|
|
},
|
|
|
registerForm: function registerForm(name, form) {
|
|
|
if (name) {
|
|
|
formsRef.current = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formsRef.current), {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, name, form));
|
|
|
}
|
|
|
|
|
|
formContext.registerForm(name, form);
|
|
|
},
|
|
|
unregisterForm: function unregisterForm(name) {
|
|
|
var newForms = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, formsRef.current);
|
|
|
|
|
|
delete newForms[name];
|
|
|
formsRef.current = newForms;
|
|
|
formContext.unregisterForm(name);
|
|
|
}
|
|
|
})
|
|
|
}, children);
|
|
|
};
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (FormContext);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/List.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/List.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
|
|
|
/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Field */ "./node_modules/rc-field-form/es/Field.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var List = function List(_ref) {
|
|
|
var name = _ref.name,
|
|
|
initialValue = _ref.initialValue,
|
|
|
children = _ref.children,
|
|
|
rules = _ref.rules,
|
|
|
validateTrigger = _ref.validateTrigger;
|
|
|
var context = react__WEBPACK_IMPORTED_MODULE_2__["useContext"](_FieldContext__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
|
var keyRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"]({
|
|
|
keys: [],
|
|
|
id: 0
|
|
|
});
|
|
|
var keyManager = keyRef.current; // User should not pass `children` as other type.
|
|
|
|
|
|
if (typeof children !== 'function') {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, 'Form.List only accepts function as children.');
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var parentPrefixName = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_6__["getNamePath"])(context.prefixName) || [];
|
|
|
var prefixName = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(parentPrefixName), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_6__["getNamePath"])(name)));
|
|
|
|
|
|
var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
|
|
|
var source = _ref2.source;
|
|
|
|
|
|
if (source === 'internal') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return prevValue !== nextValue;
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_FieldContext__WEBPACK_IMPORTED_MODULE_4__["default"].Provider, {
|
|
|
value: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, context), {}, {
|
|
|
prefixName: prefixName
|
|
|
})
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_Field__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
name: [],
|
|
|
shouldUpdate: shouldUpdate,
|
|
|
rules: rules,
|
|
|
validateTrigger: validateTrigger,
|
|
|
initialValue: initialValue,
|
|
|
isList: true
|
|
|
}, function (_ref3, meta) {
|
|
|
var _ref3$value = _ref3.value,
|
|
|
value = _ref3$value === void 0 ? [] : _ref3$value,
|
|
|
onChange = _ref3.onChange;
|
|
|
var getFieldValue = context.getFieldValue;
|
|
|
|
|
|
var getNewValue = function getNewValue() {
|
|
|
var values = getFieldValue(prefixName || []);
|
|
|
return values || [];
|
|
|
};
|
|
|
/**
|
|
|
* Always get latest value in case user update fields by `form` api.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var operations = {
|
|
|
add: function add(defaultValue, index) {
|
|
|
// Mapping keys
|
|
|
var newValue = getNewValue();
|
|
|
|
|
|
if (index >= 0 && index <= newValue.length) {
|
|
|
keyManager.keys = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(keyManager.keys.slice(0, index)), [keyManager.id], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(keyManager.keys.slice(index)));
|
|
|
onChange([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(newValue.slice(0, index)), [defaultValue], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(newValue.slice(index))));
|
|
|
} else {
|
|
|
if ( true && (index < 0 || index > newValue.length)) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, 'The second parameter of the add function should be a valid positive number.');
|
|
|
}
|
|
|
|
|
|
keyManager.keys = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(keyManager.keys), [keyManager.id]);
|
|
|
onChange([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(newValue), [defaultValue]));
|
|
|
}
|
|
|
|
|
|
keyManager.id += 1;
|
|
|
},
|
|
|
remove: function remove(index) {
|
|
|
var newValue = getNewValue();
|
|
|
var indexSet = new Set(Array.isArray(index) ? index : [index]);
|
|
|
|
|
|
if (indexSet.size <= 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
keyManager.keys = keyManager.keys.filter(function (_, keysIndex) {
|
|
|
return !indexSet.has(keysIndex);
|
|
|
}); // Trigger store change
|
|
|
|
|
|
onChange(newValue.filter(function (_, valueIndex) {
|
|
|
return !indexSet.has(valueIndex);
|
|
|
}));
|
|
|
},
|
|
|
move: function move(from, to) {
|
|
|
if (from === to) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newValue = getNewValue(); // Do not handle out of range
|
|
|
|
|
|
if (from < 0 || from >= newValue.length || to < 0 || to >= newValue.length) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
keyManager.keys = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_6__["move"])(keyManager.keys, from, to); // Trigger store change
|
|
|
|
|
|
onChange(Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_6__["move"])(newValue, from, to));
|
|
|
}
|
|
|
};
|
|
|
var listValue = value || [];
|
|
|
|
|
|
if (!Array.isArray(listValue)) {
|
|
|
listValue = [];
|
|
|
|
|
|
if (true) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, "Current value of '".concat(prefixName.join(' > '), "' is not an array type."));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return children(listValue.map(function (__, index) {
|
|
|
var key = keyManager.keys[index];
|
|
|
|
|
|
if (key === undefined) {
|
|
|
keyManager.keys[index] = keyManager.id;
|
|
|
key = keyManager.keys[index];
|
|
|
keyManager.id += 1;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
name: index,
|
|
|
key: key,
|
|
|
isListField: true
|
|
|
};
|
|
|
}), operations, meta);
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (List);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: Field, List, useForm, FormProvider, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Field */ "./node_modules/rc-field-form/es/Field.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Field", function() { return _Field__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./List */ "./node_modules/rc-field-form/es/List.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _List__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _useForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useForm */ "./node_modules/rc-field-form/es/useForm.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "useForm", function() { return _useForm__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Form */ "./node_modules/rc-field-form/es/Form.js");
|
|
|
/* harmony import */ var _FormContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormContext */ "./node_modules/rc-field-form/es/FormContext.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProvider", function() { return _FormContext__WEBPACK_IMPORTED_MODULE_5__["FormProvider"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var InternalForm = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](_Form__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
|
var RefForm = InternalForm;
|
|
|
RefForm.FormProvider = _FormContext__WEBPACK_IMPORTED_MODULE_5__["FormProvider"];
|
|
|
RefForm.Field = _Field__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
|
RefForm.List = _List__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
|
RefForm.useForm = _useForm__WEBPACK_IMPORTED_MODULE_3__["default"];
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (RefForm);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/useForm.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/useForm.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: FormStore, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormStore", function() { return FormStore; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var _FieldContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FieldContext */ "./node_modules/rc-field-form/es/FieldContext.js");
|
|
|
/* harmony import */ var _utils_asyncUtil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/asyncUtil */ "./node_modules/rc-field-form/es/utils/asyncUtil.js");
|
|
|
/* harmony import */ var _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/NameMap */ "./node_modules/rc-field-form/es/utils/NameMap.js");
|
|
|
/* harmony import */ var _utils_messages__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/messages */ "./node_modules/rc-field-form/es/utils/messages.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FormStore = function FormStore(forceRootUpdate) {
|
|
|
var _this = this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__["default"])(this, FormStore);
|
|
|
|
|
|
this.formHooked = false;
|
|
|
this.subscribable = true;
|
|
|
this.store = {};
|
|
|
this.fieldEntities = [];
|
|
|
this.initialValues = {};
|
|
|
this.callbacks = {};
|
|
|
this.validateMessages = null;
|
|
|
this.preserve = null;
|
|
|
this.lastValidatePromise = null;
|
|
|
|
|
|
this.getForm = function () {
|
|
|
return {
|
|
|
getFieldValue: _this.getFieldValue,
|
|
|
getFieldsValue: _this.getFieldsValue,
|
|
|
getFieldError: _this.getFieldError,
|
|
|
getFieldsError: _this.getFieldsError,
|
|
|
isFieldsTouched: _this.isFieldsTouched,
|
|
|
isFieldTouched: _this.isFieldTouched,
|
|
|
isFieldValidating: _this.isFieldValidating,
|
|
|
isFieldsValidating: _this.isFieldsValidating,
|
|
|
resetFields: _this.resetFields,
|
|
|
setFields: _this.setFields,
|
|
|
setFieldsValue: _this.setFieldsValue,
|
|
|
validateFields: _this.validateFields,
|
|
|
submit: _this.submit,
|
|
|
getInternalHooks: _this.getInternalHooks
|
|
|
};
|
|
|
}; // ======================== Internal Hooks ========================
|
|
|
|
|
|
|
|
|
this.getInternalHooks = function (key) {
|
|
|
if (key === _FieldContext__WEBPACK_IMPORTED_MODULE_7__["HOOK_MARK"]) {
|
|
|
_this.formHooked = true;
|
|
|
return {
|
|
|
dispatch: _this.dispatch,
|
|
|
initEntityValue: _this.initEntityValue,
|
|
|
registerField: _this.registerField,
|
|
|
useSubscribe: _this.useSubscribe,
|
|
|
setInitialValues: _this.setInitialValues,
|
|
|
setCallbacks: _this.setCallbacks,
|
|
|
setValidateMessages: _this.setValidateMessages,
|
|
|
getFields: _this.getFields,
|
|
|
setPreserve: _this.setPreserve
|
|
|
};
|
|
|
}
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, '`getInternalHooks` is internal usage. Should not call directly.');
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
this.useSubscribe = function (subscribable) {
|
|
|
_this.subscribable = subscribable;
|
|
|
};
|
|
|
/**
|
|
|
* First time `setInitialValues` should update store with initial value
|
|
|
*/
|
|
|
|
|
|
|
|
|
this.setInitialValues = function (initialValues, init) {
|
|
|
_this.initialValues = initialValues || {};
|
|
|
|
|
|
if (init) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValues"])({}, initialValues, _this.store);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
this.getInitialValue = function (namePath) {
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getValue"])(_this.initialValues, namePath);
|
|
|
};
|
|
|
|
|
|
this.setCallbacks = function (callbacks) {
|
|
|
_this.callbacks = callbacks;
|
|
|
};
|
|
|
|
|
|
this.setValidateMessages = function (validateMessages) {
|
|
|
_this.validateMessages = validateMessages;
|
|
|
};
|
|
|
|
|
|
this.setPreserve = function (preserve) {
|
|
|
_this.preserve = preserve;
|
|
|
}; // ========================== Dev Warning =========================
|
|
|
|
|
|
|
|
|
this.timeoutId = null;
|
|
|
|
|
|
this.warningUnhooked = function () {
|
|
|
if ( true && !_this.timeoutId && typeof window !== 'undefined') {
|
|
|
_this.timeoutId = window.setTimeout(function () {
|
|
|
_this.timeoutId = null;
|
|
|
|
|
|
if (!_this.formHooked) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}; // ============================ Fields ============================
|
|
|
|
|
|
/**
|
|
|
* Get registered field entities.
|
|
|
* @param pure Only return field which has a `name`. Default: false
|
|
|
*/
|
|
|
|
|
|
|
|
|
this.getFieldEntities = function () {
|
|
|
var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
|
|
|
|
if (!pure) {
|
|
|
return _this.fieldEntities;
|
|
|
}
|
|
|
|
|
|
return _this.fieldEntities.filter(function (field) {
|
|
|
return field.getNamePath().length;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.getFieldsMap = function () {
|
|
|
var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
|
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
|
|
|
|
_this.getFieldEntities(pure).forEach(function (field) {
|
|
|
var namePath = field.getNamePath();
|
|
|
cache.set(namePath, field);
|
|
|
});
|
|
|
|
|
|
return cache;
|
|
|
};
|
|
|
|
|
|
this.getFieldEntitiesForNamePathList = function (nameList) {
|
|
|
if (!nameList) {
|
|
|
return _this.getFieldEntities(true);
|
|
|
}
|
|
|
|
|
|
var cache = _this.getFieldsMap(true);
|
|
|
|
|
|
return nameList.map(function (name) {
|
|
|
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name);
|
|
|
return cache.get(namePath) || {
|
|
|
INVALIDATE_NAME_PATH: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name)
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.getFieldsValue = function (nameList, filterFunc) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
if (nameList === true && !filterFunc) {
|
|
|
return _this.store;
|
|
|
}
|
|
|
|
|
|
var fieldEntities = _this.getFieldEntitiesForNamePathList(Array.isArray(nameList) ? nameList : null);
|
|
|
|
|
|
var filteredNameList = [];
|
|
|
fieldEntities.forEach(function (entity) {
|
|
|
var _entity$isListField;
|
|
|
|
|
|
var namePath = 'INVALIDATE_NAME_PATH' in entity ? entity.INVALIDATE_NAME_PATH : entity.getNamePath(); // Ignore when it's a list item and not specific the namePath,
|
|
|
// since parent field is already take in count
|
|
|
|
|
|
if (!nameList && ((_entity$isListField = entity.isListField) === null || _entity$isListField === void 0 ? void 0 : _entity$isListField.call(entity))) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!filterFunc) {
|
|
|
filteredNameList.push(namePath);
|
|
|
} else {
|
|
|
var meta = 'getMeta' in entity ? entity.getMeta() : null;
|
|
|
|
|
|
if (filterFunc(meta)) {
|
|
|
filteredNameList.push(namePath);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["cloneByNamePathList"])(_this.store, filteredNameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]));
|
|
|
};
|
|
|
|
|
|
this.getFieldValue = function (name) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name);
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getValue"])(_this.store, namePath);
|
|
|
};
|
|
|
|
|
|
this.getFieldsError = function (nameList) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var fieldEntities = _this.getFieldEntitiesForNamePathList(nameList);
|
|
|
|
|
|
return fieldEntities.map(function (entity, index) {
|
|
|
if (entity && !('INVALIDATE_NAME_PATH' in entity)) {
|
|
|
return {
|
|
|
name: entity.getNamePath(),
|
|
|
errors: entity.getErrors()
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
name: Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(nameList[index]),
|
|
|
errors: []
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.getFieldError = function (name) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name);
|
|
|
|
|
|
var fieldError = _this.getFieldsError([namePath])[0];
|
|
|
|
|
|
return fieldError.errors;
|
|
|
};
|
|
|
|
|
|
this.isFieldsTouched = function () {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
var arg0 = args[0],
|
|
|
arg1 = args[1];
|
|
|
var namePathList;
|
|
|
var isAllFieldsTouched = false;
|
|
|
|
|
|
if (args.length === 0) {
|
|
|
namePathList = null;
|
|
|
} else if (args.length === 1) {
|
|
|
if (Array.isArray(arg0)) {
|
|
|
namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]);
|
|
|
isAllFieldsTouched = false;
|
|
|
} else {
|
|
|
namePathList = null;
|
|
|
isAllFieldsTouched = arg0;
|
|
|
}
|
|
|
} else {
|
|
|
namePathList = arg0.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]);
|
|
|
isAllFieldsTouched = arg1;
|
|
|
}
|
|
|
|
|
|
var fieldEntities = _this.getFieldEntities(true);
|
|
|
|
|
|
var isFieldTouched = function isFieldTouched(field) {
|
|
|
return field.isFieldTouched();
|
|
|
}; // ===== Will get fully compare when not config namePathList =====
|
|
|
|
|
|
|
|
|
if (!namePathList) {
|
|
|
return isAllFieldsTouched ? fieldEntities.every(isFieldTouched) : fieldEntities.some(isFieldTouched);
|
|
|
} // Generate a nest tree for validate
|
|
|
|
|
|
|
|
|
var map = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
|
namePathList.forEach(function (shortNamePath) {
|
|
|
map.set(shortNamePath, []);
|
|
|
});
|
|
|
fieldEntities.forEach(function (field) {
|
|
|
var fieldNamePath = field.getNamePath(); // Find matched entity and put into list
|
|
|
|
|
|
namePathList.forEach(function (shortNamePath) {
|
|
|
if (shortNamePath.every(function (nameUnit, i) {
|
|
|
return fieldNamePath[i] === nameUnit;
|
|
|
})) {
|
|
|
map.update(shortNamePath, function (list) {
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(list), [field]);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}); // Check if NameMap value is touched
|
|
|
|
|
|
var isNamePathListTouched = function isNamePathListTouched(entities) {
|
|
|
return entities.some(isFieldTouched);
|
|
|
};
|
|
|
|
|
|
var namePathListEntities = map.map(function (_ref) {
|
|
|
var value = _ref.value;
|
|
|
return value;
|
|
|
});
|
|
|
return isAllFieldsTouched ? namePathListEntities.every(isNamePathListTouched) : namePathListEntities.some(isNamePathListTouched);
|
|
|
};
|
|
|
|
|
|
this.isFieldTouched = function (name) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
return _this.isFieldsTouched([name]);
|
|
|
};
|
|
|
|
|
|
this.isFieldsValidating = function (nameList) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var fieldEntities = _this.getFieldEntities();
|
|
|
|
|
|
if (!nameList) {
|
|
|
return fieldEntities.some(function (testField) {
|
|
|
return testField.isFieldValidating();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]);
|
|
|
return fieldEntities.some(function (testField) {
|
|
|
var fieldNamePath = testField.getNamePath();
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["containsNamePath"])(namePathList, fieldNamePath) && testField.isFieldValidating();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.isFieldValidating = function (name) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
return _this.isFieldsValidating([name]);
|
|
|
};
|
|
|
/**
|
|
|
* Reset Field with field `initialValue` prop.
|
|
|
* Can pass `entities` or `namePathList` or just nothing.
|
|
|
*/
|
|
|
|
|
|
|
|
|
this.resetWithFieldInitialValue = function () {
|
|
|
var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
|
// Create cache
|
|
|
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
|
|
|
|
var fieldEntities = _this.getFieldEntities(true);
|
|
|
|
|
|
fieldEntities.forEach(function (field) {
|
|
|
var initialValue = field.props.initialValue;
|
|
|
var namePath = field.getNamePath(); // Record only if has `initialValue`
|
|
|
|
|
|
if (initialValue !== undefined) {
|
|
|
var records = cache.get(namePath) || new Set();
|
|
|
records.add({
|
|
|
entity: field,
|
|
|
value: initialValue
|
|
|
});
|
|
|
cache.set(namePath, records);
|
|
|
}
|
|
|
}); // Reset
|
|
|
|
|
|
var resetWithFields = function resetWithFields(entities) {
|
|
|
entities.forEach(function (field) {
|
|
|
var initialValue = field.props.initialValue;
|
|
|
|
|
|
if (initialValue !== undefined) {
|
|
|
var namePath = field.getNamePath();
|
|
|
|
|
|
var formInitialValue = _this.getInitialValue(namePath);
|
|
|
|
|
|
if (formInitialValue !== undefined) {
|
|
|
// Warning if conflict with form initialValues and do not modify value
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
|
|
|
} else {
|
|
|
var records = cache.get(namePath);
|
|
|
|
|
|
if (records && records.size > 1) {
|
|
|
// Warning if multiple field set `initialValue`and do not modify value
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
|
|
|
} else if (records) {
|
|
|
var originValue = _this.getFieldValue(namePath); // Set `initialValue`
|
|
|
|
|
|
|
|
|
if (!info.skipExist || originValue === undefined) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records)[0].value);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var requiredFieldEntities;
|
|
|
|
|
|
if (info.entities) {
|
|
|
requiredFieldEntities = info.entities;
|
|
|
} else if (info.namePathList) {
|
|
|
requiredFieldEntities = [];
|
|
|
info.namePathList.forEach(function (namePath) {
|
|
|
var records = cache.get(namePath);
|
|
|
|
|
|
if (records) {
|
|
|
var _requiredFieldEntitie;
|
|
|
|
|
|
(_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(records).map(function (r) {
|
|
|
return r.entity;
|
|
|
})));
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
requiredFieldEntities = fieldEntities;
|
|
|
}
|
|
|
|
|
|
resetWithFields(requiredFieldEntities);
|
|
|
};
|
|
|
|
|
|
this.resetFields = function (nameList) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var prevStore = _this.store;
|
|
|
|
|
|
if (!nameList) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValues"])({}, _this.initialValues);
|
|
|
|
|
|
_this.resetWithFieldInitialValue();
|
|
|
|
|
|
_this.notifyObservers(prevStore, null, {
|
|
|
type: 'reset'
|
|
|
});
|
|
|
|
|
|
return;
|
|
|
} // Reset by `nameList`
|
|
|
|
|
|
|
|
|
var namePathList = nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]);
|
|
|
namePathList.forEach(function (namePath) {
|
|
|
var initialValue = _this.getInitialValue(namePath);
|
|
|
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, initialValue);
|
|
|
});
|
|
|
|
|
|
_this.resetWithFieldInitialValue({
|
|
|
namePathList: namePathList
|
|
|
});
|
|
|
|
|
|
_this.notifyObservers(prevStore, namePathList, {
|
|
|
type: 'reset'
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.setFields = function (fields) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var prevStore = _this.store;
|
|
|
fields.forEach(function (fieldData) {
|
|
|
var name = fieldData.name,
|
|
|
errors = fieldData.errors,
|
|
|
data = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(fieldData, ["name", "errors"]);
|
|
|
|
|
|
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name); // Value
|
|
|
|
|
|
if ('value' in data) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, data.value);
|
|
|
}
|
|
|
|
|
|
_this.notifyObservers(prevStore, [namePath], {
|
|
|
type: 'setField',
|
|
|
data: fieldData
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.getFields = function () {
|
|
|
var entities = _this.getFieldEntities(true);
|
|
|
|
|
|
var fields = entities.map(function (field) {
|
|
|
var namePath = field.getNamePath();
|
|
|
var meta = field.getMeta();
|
|
|
|
|
|
var fieldData = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, meta), {}, {
|
|
|
name: namePath,
|
|
|
value: _this.getFieldValue(namePath)
|
|
|
});
|
|
|
|
|
|
Object.defineProperty(fieldData, 'originRCField', {
|
|
|
value: true
|
|
|
});
|
|
|
return fieldData;
|
|
|
});
|
|
|
return fields;
|
|
|
}; // =========================== Observer ===========================
|
|
|
|
|
|
/**
|
|
|
* This only trigger when a field is on constructor to avoid we get initialValue too late
|
|
|
*/
|
|
|
|
|
|
|
|
|
this.initEntityValue = function (entity) {
|
|
|
var initialValue = entity.props.initialValue;
|
|
|
|
|
|
if (initialValue !== undefined) {
|
|
|
var namePath = entity.getNamePath();
|
|
|
var prevValue = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getValue"])(_this.store, namePath);
|
|
|
|
|
|
if (prevValue === undefined) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, initialValue);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
this.registerField = function (entity) {
|
|
|
_this.fieldEntities.push(entity); // Set initial values
|
|
|
|
|
|
|
|
|
if (entity.props.initialValue !== undefined) {
|
|
|
var prevStore = _this.store;
|
|
|
|
|
|
_this.resetWithFieldInitialValue({
|
|
|
entities: [entity],
|
|
|
skipExist: true
|
|
|
});
|
|
|
|
|
|
_this.notifyObservers(prevStore, [entity.getNamePath()], {
|
|
|
type: 'valueUpdate',
|
|
|
source: 'internal'
|
|
|
});
|
|
|
} // un-register field callback
|
|
|
|
|
|
|
|
|
return function (isListField, preserve) {
|
|
|
var subNamePath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
|
_this.fieldEntities = _this.fieldEntities.filter(function (item) {
|
|
|
return item !== entity;
|
|
|
}); // Clean up store value if not preserve
|
|
|
|
|
|
var mergedPreserve = preserve !== undefined ? preserve : _this.preserve;
|
|
|
|
|
|
if (mergedPreserve === false && (!isListField || subNamePath.length > 1)) {
|
|
|
var namePath = entity.getNamePath();
|
|
|
var defaultValue = isListField ? undefined : Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getValue"])(_this.initialValues, namePath);
|
|
|
|
|
|
if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function (field) {
|
|
|
return (// Only reset when no namePath exist
|
|
|
!Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["matchNamePath"])(field.getNamePath(), namePath)
|
|
|
);
|
|
|
})) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, defaultValue, true);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
|
|
|
this.dispatch = function (action) {
|
|
|
switch (action.type) {
|
|
|
case 'updateValue':
|
|
|
{
|
|
|
var namePath = action.namePath,
|
|
|
value = action.value;
|
|
|
|
|
|
_this.updateValue(namePath, value);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'validateField':
|
|
|
{
|
|
|
var _namePath = action.namePath,
|
|
|
triggerName = action.triggerName;
|
|
|
|
|
|
_this.validateFields([_namePath], {
|
|
|
triggerName: triggerName
|
|
|
});
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default: // Currently we don't have other action. Do nothing.
|
|
|
|
|
|
}
|
|
|
};
|
|
|
|
|
|
this.notifyObservers = function (prevStore, namePathList, info) {
|
|
|
if (_this.subscribable) {
|
|
|
var mergedInfo = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, info), {}, {
|
|
|
store: _this.getFieldsValue(true)
|
|
|
});
|
|
|
|
|
|
_this.getFieldEntities().forEach(function (_ref2) {
|
|
|
var onStoreChange = _ref2.onStoreChange;
|
|
|
onStoreChange(prevStore, namePathList, mergedInfo);
|
|
|
});
|
|
|
} else {
|
|
|
_this.forceRootUpdate();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
this.updateValue = function (name, value) {
|
|
|
var namePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(name);
|
|
|
var prevStore = _this.store;
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValue"])(_this.store, namePath, value);
|
|
|
|
|
|
_this.notifyObservers(prevStore, [namePath], {
|
|
|
type: 'valueUpdate',
|
|
|
source: 'internal'
|
|
|
}); // Notify dependencies children with parent update
|
|
|
// We need delay to trigger validate in case Field is under render props
|
|
|
|
|
|
|
|
|
var childrenFields = _this.getDependencyChildrenFields(namePath);
|
|
|
|
|
|
if (childrenFields.length) {
|
|
|
_this.validateFields(childrenFields);
|
|
|
}
|
|
|
|
|
|
_this.notifyObservers(prevStore, childrenFields, {
|
|
|
type: 'dependenciesUpdate',
|
|
|
relatedFields: [namePath].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(childrenFields))
|
|
|
}); // trigger callback function
|
|
|
|
|
|
|
|
|
var onValuesChange = _this.callbacks.onValuesChange;
|
|
|
|
|
|
if (onValuesChange) {
|
|
|
var changedValues = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["cloneByNamePathList"])(_this.store, [namePath]);
|
|
|
onValuesChange(changedValues, _this.getFieldsValue());
|
|
|
}
|
|
|
|
|
|
_this.triggerOnFieldsChange([namePath].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(childrenFields)));
|
|
|
}; // Let all child Field get update.
|
|
|
|
|
|
|
|
|
this.setFieldsValue = function (store) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var prevStore = _this.store;
|
|
|
|
|
|
if (store) {
|
|
|
_this.store = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["setValues"])(_this.store, store);
|
|
|
}
|
|
|
|
|
|
_this.notifyObservers(prevStore, null, {
|
|
|
type: 'valueUpdate',
|
|
|
source: 'external'
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.getDependencyChildrenFields = function (rootNamePath) {
|
|
|
var children = new Set();
|
|
|
var childrenFields = [];
|
|
|
var dependencies2fields = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
|
/**
|
|
|
* Generate maps
|
|
|
* Can use cache to save perf if user report performance issue with this
|
|
|
*/
|
|
|
|
|
|
_this.getFieldEntities().forEach(function (field) {
|
|
|
var dependencies = field.props.dependencies;
|
|
|
(dependencies || []).forEach(function (dependency) {
|
|
|
var dependencyNamePath = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"])(dependency);
|
|
|
dependencies2fields.update(dependencyNamePath, function () {
|
|
|
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
|
|
|
fields.add(field);
|
|
|
return fields;
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
|
|
|
var fillChildren = function fillChildren(namePath) {
|
|
|
var fields = dependencies2fields.get(namePath) || new Set();
|
|
|
fields.forEach(function (field) {
|
|
|
if (!children.has(field)) {
|
|
|
children.add(field);
|
|
|
var fieldNamePath = field.getNamePath();
|
|
|
|
|
|
if (field.isFieldDirty() && fieldNamePath.length) {
|
|
|
childrenFields.push(fieldNamePath);
|
|
|
fillChildren(fieldNamePath);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
fillChildren(rootNamePath);
|
|
|
return childrenFields;
|
|
|
};
|
|
|
|
|
|
this.triggerOnFieldsChange = function (namePathList, filedErrors) {
|
|
|
var onFieldsChange = _this.callbacks.onFieldsChange;
|
|
|
|
|
|
if (onFieldsChange) {
|
|
|
var fields = _this.getFields();
|
|
|
/**
|
|
|
* Fill errors since `fields` may be replaced by controlled fields
|
|
|
*/
|
|
|
|
|
|
|
|
|
if (filedErrors) {
|
|
|
var cache = new _utils_NameMap__WEBPACK_IMPORTED_MODULE_9__["default"]();
|
|
|
filedErrors.forEach(function (_ref3) {
|
|
|
var name = _ref3.name,
|
|
|
errors = _ref3.errors;
|
|
|
cache.set(name, errors);
|
|
|
});
|
|
|
fields.forEach(function (field) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
field.errors = cache.get(field.name) || field.errors;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var changedFields = fields.filter(function (_ref4) {
|
|
|
var fieldName = _ref4.name;
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["containsNamePath"])(namePathList, fieldName);
|
|
|
});
|
|
|
onFieldsChange(changedFields, fields);
|
|
|
}
|
|
|
}; // =========================== Validate ===========================
|
|
|
|
|
|
|
|
|
this.validateFields = function (nameList, options) {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
var provideNameList = !!nameList;
|
|
|
var namePathList = provideNameList ? nameList.map(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["getNamePath"]) : []; // Collect result in promise list
|
|
|
|
|
|
var promiseList = [];
|
|
|
|
|
|
_this.getFieldEntities(true).forEach(function (field) {
|
|
|
// Add field if not provide `nameList`
|
|
|
if (!provideNameList) {
|
|
|
namePathList.push(field.getNamePath());
|
|
|
}
|
|
|
/**
|
|
|
* Recursive validate if configured.
|
|
|
* TODO: perf improvement @zombieJ
|
|
|
*/
|
|
|
|
|
|
|
|
|
if ((options === null || options === void 0 ? void 0 : options.recursive) && provideNameList) {
|
|
|
var namePath = field.getNamePath();
|
|
|
|
|
|
if ( // nameList[i] === undefined 说明是以 nameList 开头的
|
|
|
// ['name'] -> ['name','list']
|
|
|
namePath.every(function (nameUnit, i) {
|
|
|
return nameList[i] === nameUnit || nameList[i] === undefined;
|
|
|
})) {
|
|
|
namePathList.push(namePath);
|
|
|
}
|
|
|
} // Skip if without rule
|
|
|
|
|
|
|
|
|
if (!field.props.rules || !field.props.rules.length) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var fieldNamePath = field.getNamePath(); // Add field validate rule in to promise list
|
|
|
|
|
|
if (!provideNameList || Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_11__["containsNamePath"])(namePathList, fieldNamePath)) {
|
|
|
var promise = field.validateRules(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
validateMessages: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, _utils_messages__WEBPACK_IMPORTED_MODULE_10__["defaultValidateMessages"]), _this.validateMessages)
|
|
|
}, options)); // Wrap promise with field
|
|
|
|
|
|
promiseList.push(promise.then(function () {
|
|
|
return {
|
|
|
name: fieldNamePath,
|
|
|
errors: []
|
|
|
};
|
|
|
}).catch(function (errors) {
|
|
|
return Promise.reject({
|
|
|
name: fieldNamePath,
|
|
|
errors: errors
|
|
|
});
|
|
|
}));
|
|
|
}
|
|
|
});
|
|
|
|
|
|
var summaryPromise = Object(_utils_asyncUtil__WEBPACK_IMPORTED_MODULE_8__["allPromiseFinish"])(promiseList);
|
|
|
_this.lastValidatePromise = summaryPromise; // Notify fields with rule that validate has finished and need update
|
|
|
|
|
|
summaryPromise.catch(function (results) {
|
|
|
return results;
|
|
|
}).then(function (results) {
|
|
|
var resultNamePathList = results.map(function (_ref5) {
|
|
|
var name = _ref5.name;
|
|
|
return name;
|
|
|
});
|
|
|
|
|
|
_this.notifyObservers(_this.store, resultNamePathList, {
|
|
|
type: 'validateFinish'
|
|
|
});
|
|
|
|
|
|
_this.triggerOnFieldsChange(resultNamePathList, results);
|
|
|
});
|
|
|
var returnPromise = summaryPromise.then(function () {
|
|
|
if (_this.lastValidatePromise === summaryPromise) {
|
|
|
return Promise.resolve(_this.getFieldsValue(namePathList));
|
|
|
}
|
|
|
|
|
|
return Promise.reject([]);
|
|
|
}).catch(function (results) {
|
|
|
var errorList = results.filter(function (result) {
|
|
|
return result && result.errors.length;
|
|
|
});
|
|
|
return Promise.reject({
|
|
|
values: _this.getFieldsValue(namePathList),
|
|
|
errorFields: errorList,
|
|
|
outOfDate: _this.lastValidatePromise !== summaryPromise
|
|
|
});
|
|
|
}); // Do not throw in console
|
|
|
|
|
|
returnPromise.catch(function (e) {
|
|
|
return e;
|
|
|
});
|
|
|
return returnPromise;
|
|
|
}; // ============================ Submit ============================
|
|
|
|
|
|
|
|
|
this.submit = function () {
|
|
|
_this.warningUnhooked();
|
|
|
|
|
|
_this.validateFields().then(function (values) {
|
|
|
var onFinish = _this.callbacks.onFinish;
|
|
|
|
|
|
if (onFinish) {
|
|
|
try {
|
|
|
onFinish(values);
|
|
|
} catch (err) {
|
|
|
// Should print error if user `onFinish` callback failed
|
|
|
console.error(err);
|
|
|
}
|
|
|
}
|
|
|
}).catch(function (e) {
|
|
|
var onFinishFailed = _this.callbacks.onFinishFailed;
|
|
|
|
|
|
if (onFinishFailed) {
|
|
|
onFinishFailed(e);
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
this.forceRootUpdate = forceRootUpdate;
|
|
|
};
|
|
|
|
|
|
function useForm(form) {
|
|
|
var formRef = react__WEBPACK_IMPORTED_MODULE_5__["useRef"]();
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_5__["useState"]({}),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
forceUpdate = _React$useState2[1];
|
|
|
|
|
|
if (!formRef.current) {
|
|
|
if (form) {
|
|
|
formRef.current = form;
|
|
|
} else {
|
|
|
// Create a new FormStore if not provided
|
|
|
var forceReRender = function forceReRender() {
|
|
|
forceUpdate({});
|
|
|
};
|
|
|
|
|
|
var formStore = new FormStore(forceReRender);
|
|
|
formRef.current = formStore.getForm();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [formRef.current];
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (useForm);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/NameMap.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/NameMap.js ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SPLIT = '__@field_split__';
|
|
|
/**
|
|
|
* Convert name path into string to fast the fetch speed of Map.
|
|
|
*/
|
|
|
|
|
|
function normalize(namePath) {
|
|
|
return namePath.map(function (cell) {
|
|
|
return "".concat(Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__["default"])(cell), ":").concat(cell);
|
|
|
}) // Magic split
|
|
|
.join(SPLIT);
|
|
|
}
|
|
|
/**
|
|
|
* NameMap like a `Map` but accepts `string[]` as key.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var NameMap = /*#__PURE__*/function () {
|
|
|
function NameMap() {
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, NameMap);
|
|
|
|
|
|
this.kvs = new Map();
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(NameMap, [{
|
|
|
key: "set",
|
|
|
value: function set(key, value) {
|
|
|
this.kvs.set(normalize(key), value);
|
|
|
}
|
|
|
}, {
|
|
|
key: "get",
|
|
|
value: function get(key) {
|
|
|
return this.kvs.get(normalize(key));
|
|
|
}
|
|
|
}, {
|
|
|
key: "update",
|
|
|
value: function update(key, updater) {
|
|
|
var origin = this.get(key);
|
|
|
var next = updater(origin);
|
|
|
|
|
|
if (!next) {
|
|
|
this.delete(key);
|
|
|
} else {
|
|
|
this.set(key, next);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "delete",
|
|
|
value: function _delete(key) {
|
|
|
this.kvs.delete(normalize(key));
|
|
|
} // Since we only use this in test, let simply realize this
|
|
|
|
|
|
}, {
|
|
|
key: "map",
|
|
|
value: function map(callback) {
|
|
|
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(this.kvs.entries()).map(function (_ref) {
|
|
|
var _ref2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref, 2),
|
|
|
key = _ref2[0],
|
|
|
value = _ref2[1];
|
|
|
|
|
|
var cells = key.split(SPLIT);
|
|
|
return callback({
|
|
|
key: cells.map(function (cell) {
|
|
|
var _cell$match = cell.match(/^([^:]*):(.*)$/),
|
|
|
_cell$match2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_cell$match, 3),
|
|
|
type = _cell$match2[1],
|
|
|
unit = _cell$match2[2];
|
|
|
|
|
|
return type === 'number' ? Number(unit) : unit;
|
|
|
}),
|
|
|
value: value
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
key: "toJSON",
|
|
|
value: function toJSON() {
|
|
|
var json = {};
|
|
|
this.map(function (_ref3) {
|
|
|
var key = _ref3.key,
|
|
|
value = _ref3.value;
|
|
|
json[key.join('.')] = value;
|
|
|
return null;
|
|
|
});
|
|
|
return json;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return NameMap;
|
|
|
}();
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (NameMap);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/asyncUtil.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/asyncUtil.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: allPromiseFinish */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "allPromiseFinish", function() { return allPromiseFinish; });
|
|
|
function allPromiseFinish(promiseList) {
|
|
|
var hasError = false;
|
|
|
var count = promiseList.length;
|
|
|
var results = [];
|
|
|
|
|
|
if (!promiseList.length) {
|
|
|
return Promise.resolve([]);
|
|
|
}
|
|
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
promiseList.forEach(function (promise, index) {
|
|
|
promise.catch(function (e) {
|
|
|
hasError = true;
|
|
|
return e;
|
|
|
}).then(function (result) {
|
|
|
count -= 1;
|
|
|
results[index] = result;
|
|
|
|
|
|
if (count > 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (hasError) {
|
|
|
reject(results);
|
|
|
}
|
|
|
|
|
|
resolve(results);
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/messages.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/messages.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: defaultValidateMessages */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultValidateMessages", function() { return defaultValidateMessages; });
|
|
|
var typeTemplate = "'${name}' is not a valid ${type}";
|
|
|
var defaultValidateMessages = {
|
|
|
default: "Validation error on field '${name}'",
|
|
|
required: "'${name}' is required",
|
|
|
enum: "'${name}' must be one of [${enum}]",
|
|
|
whitespace: "'${name}' cannot be empty",
|
|
|
date: {
|
|
|
format: "'${name}' is invalid for format date",
|
|
|
parse: "'${name}' could not be parsed as date",
|
|
|
invalid: "'${name}' is invalid date"
|
|
|
},
|
|
|
types: {
|
|
|
string: typeTemplate,
|
|
|
method: typeTemplate,
|
|
|
array: typeTemplate,
|
|
|
object: typeTemplate,
|
|
|
number: typeTemplate,
|
|
|
date: typeTemplate,
|
|
|
boolean: typeTemplate,
|
|
|
integer: typeTemplate,
|
|
|
float: typeTemplate,
|
|
|
regexp: typeTemplate,
|
|
|
email: typeTemplate,
|
|
|
url: typeTemplate,
|
|
|
hex: typeTemplate
|
|
|
},
|
|
|
string: {
|
|
|
len: "'${name}' must be exactly ${len} characters",
|
|
|
min: "'${name}' must be at least ${min} characters",
|
|
|
max: "'${name}' cannot be longer than ${max} characters",
|
|
|
range: "'${name}' must be between ${min} and ${max} characters"
|
|
|
},
|
|
|
number: {
|
|
|
len: "'${name}' must equal ${len}",
|
|
|
min: "'${name}' cannot be less than ${min}",
|
|
|
max: "'${name}' cannot be greater than ${max}",
|
|
|
range: "'${name}' must be between ${min} and ${max}"
|
|
|
},
|
|
|
array: {
|
|
|
len: "'${name}' must be exactly ${len} in length",
|
|
|
min: "'${name}' cannot be less than ${min} in length",
|
|
|
max: "'${name}' cannot be greater than ${max} in length",
|
|
|
range: "'${name}' must be between ${min} and ${max} in length"
|
|
|
},
|
|
|
pattern: {
|
|
|
mismatch: "'${name}' does not match pattern ${pattern}"
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/typeUtil.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/typeUtil.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: toArray */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
|
|
|
function toArray(value) {
|
|
|
if (value === undefined || value === null) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return Array.isArray(value) ? value : [value];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/validateUtil.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/validateUtil.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: validateRules */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateRules", function() { return validateRules; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var _valueUtil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./valueUtil */ "./node_modules/rc-field-form/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./messages */ "./node_modules/rc-field-form/es/utils/messages.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Remove incorrect original ts define
|
|
|
|
|
|
var AsyncValidator = async_validator__WEBPACK_IMPORTED_MODULE_6__["default"];
|
|
|
/**
|
|
|
* Replace with template.
|
|
|
* `I'm ${name}` + { name: 'bamboo' } = I'm bamboo
|
|
|
*/
|
|
|
|
|
|
function replaceMessage(template, kv) {
|
|
|
return template.replace(/\$\{\w+\}/g, function (str) {
|
|
|
var key = str.slice(2, -1);
|
|
|
return kv[key];
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* We use `async-validator` to validate rules. So have to hot replace the message with validator.
|
|
|
* { required: '${name} is required' } => { required: () => 'field is required' }
|
|
|
*/
|
|
|
|
|
|
|
|
|
function convertMessages(messages, name, rule, messageVariables) {
|
|
|
var kv = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])({}, rule), {}, {
|
|
|
name: name,
|
|
|
enum: (rule.enum || []).join(', ')
|
|
|
});
|
|
|
|
|
|
var replaceFunc = function replaceFunc(template, additionalKV) {
|
|
|
return function () {
|
|
|
return replaceMessage(template, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])({}, kv), additionalKV));
|
|
|
};
|
|
|
};
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
|
|
|
|
|
|
function fillTemplate(source) {
|
|
|
var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
Object.keys(source).forEach(function (ruleName) {
|
|
|
var value = source[ruleName];
|
|
|
|
|
|
if (typeof value === 'string') {
|
|
|
target[ruleName] = replaceFunc(value, messageVariables);
|
|
|
} else if (value && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__["default"])(value) === 'object') {
|
|
|
target[ruleName] = {};
|
|
|
fillTemplate(value, target[ruleName]);
|
|
|
} else {
|
|
|
target[ruleName] = value;
|
|
|
}
|
|
|
});
|
|
|
return target;
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
return fillTemplate(Object(_valueUtil__WEBPACK_IMPORTED_MODULE_9__["setValues"])({}, _messages__WEBPACK_IMPORTED_MODULE_10__["defaultValidateMessages"], messages));
|
|
|
}
|
|
|
|
|
|
function validateRule(_x, _x2, _x3, _x4, _x5) {
|
|
|
return _validateRule.apply(this, arguments);
|
|
|
}
|
|
|
/**
|
|
|
* We use `async-validator` to validate the value.
|
|
|
* But only check one value in a time to avoid namePath validate issue.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function _validateRule() {
|
|
|
_validateRule = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee2(name, value, rule, options, messageVariables) {
|
|
|
var cloneRule, subRuleField, validator, messages, result, subResults;
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee2$(_context2) {
|
|
|
while (1) {
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
case 0:
|
|
|
cloneRule = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])({}, rule); // We should special handle array validate
|
|
|
|
|
|
subRuleField = null;
|
|
|
|
|
|
if (cloneRule && cloneRule.type === 'array' && cloneRule.defaultField) {
|
|
|
subRuleField = cloneRule.defaultField;
|
|
|
delete cloneRule.defaultField;
|
|
|
}
|
|
|
|
|
|
validator = new AsyncValidator(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, name, [cloneRule]));
|
|
|
messages = convertMessages(options.validateMessages, name, cloneRule, messageVariables);
|
|
|
validator.messages(messages);
|
|
|
result = [];
|
|
|
_context2.prev = 7;
|
|
|
_context2.next = 10;
|
|
|
return Promise.resolve(validator.validate(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, name, value), Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])({}, options)));
|
|
|
|
|
|
case 10:
|
|
|
_context2.next = 15;
|
|
|
break;
|
|
|
|
|
|
case 12:
|
|
|
_context2.prev = 12;
|
|
|
_context2.t0 = _context2["catch"](7);
|
|
|
|
|
|
if (_context2.t0.errors) {
|
|
|
result = _context2.t0.errors.map(function (_ref2, index) {
|
|
|
var message = _ref2.message;
|
|
|
return (// Wrap ReactNode with `key`
|
|
|
|
|
|
/*#__PURE__*/
|
|
|
react__WEBPACK_IMPORTED_MODULE_7__["isValidElement"](message) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"](message, {
|
|
|
key: "error_".concat(index)
|
|
|
}) : message
|
|
|
);
|
|
|
});
|
|
|
} else {
|
|
|
console.error(_context2.t0);
|
|
|
result = [messages.default()];
|
|
|
}
|
|
|
|
|
|
case 15:
|
|
|
if (!(!result.length && subRuleField)) {
|
|
|
_context2.next = 20;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
_context2.next = 18;
|
|
|
return Promise.all(value.map(function (subValue, i) {
|
|
|
return validateRule("".concat(name, ".").concat(i), subValue, subRuleField, options, messageVariables);
|
|
|
}));
|
|
|
|
|
|
case 18:
|
|
|
subResults = _context2.sent;
|
|
|
return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(prev), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(errors));
|
|
|
}, []));
|
|
|
|
|
|
case 20:
|
|
|
return _context2.abrupt("return", result);
|
|
|
|
|
|
case 21:
|
|
|
case "end":
|
|
|
return _context2.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee2, null, [[7, 12]]);
|
|
|
}));
|
|
|
return _validateRule.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function validateRules(namePath, value, rules, options, validateFirst, messageVariables) {
|
|
|
var name = namePath.join('.'); // Fill rule with context
|
|
|
|
|
|
var filledRules = rules.map(function (currentRule) {
|
|
|
var originValidatorFunc = currentRule.validator;
|
|
|
|
|
|
if (!originValidatorFunc) {
|
|
|
return currentRule;
|
|
|
}
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_5__["default"])({}, currentRule), {}, {
|
|
|
validator: function validator(rule, val, callback) {
|
|
|
var hasPromise = false; // Wrap callback only accept when promise not provided
|
|
|
|
|
|
var wrappedCallback = function wrappedCallback() {
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
// Wait a tick to make sure return type is a promise
|
|
|
Promise.resolve().then(function () {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!hasPromise, 'Your validator function has already return a promise. `callback` will be ignored.');
|
|
|
|
|
|
if (!hasPromise) {
|
|
|
callback.apply(void 0, args);
|
|
|
}
|
|
|
});
|
|
|
}; // Get promise
|
|
|
|
|
|
|
|
|
var promise = originValidatorFunc(rule, val, wrappedCallback);
|
|
|
hasPromise = promise && typeof promise.then === 'function' && typeof promise.catch === 'function';
|
|
|
/**
|
|
|
* 1. Use promise as the first priority.
|
|
|
* 2. If promise not exist, use callback with warning instead
|
|
|
*/
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(hasPromise, '`callback` is deprecated. Please return a promise instead.');
|
|
|
|
|
|
if (hasPromise) {
|
|
|
promise.then(function () {
|
|
|
callback();
|
|
|
}).catch(function (err) {
|
|
|
callback(err || ' ');
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
var summaryPromise;
|
|
|
|
|
|
if (validateFirst === true) {
|
|
|
// >>>>> Validate by serialization
|
|
|
summaryPromise = new Promise( /*#__PURE__*/function () {
|
|
|
var _ref = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee(resolve, reject) {
|
|
|
var i, errors;
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
i = 0;
|
|
|
|
|
|
case 1:
|
|
|
if (!(i < filledRules.length)) {
|
|
|
_context.next = 11;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
_context.next = 4;
|
|
|
return validateRule(name, value, filledRules[i], options, messageVariables);
|
|
|
|
|
|
case 4:
|
|
|
errors = _context.sent;
|
|
|
|
|
|
if (!errors.length) {
|
|
|
_context.next = 8;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
reject(errors);
|
|
|
return _context.abrupt("return");
|
|
|
|
|
|
case 8:
|
|
|
i += 1;
|
|
|
_context.next = 1;
|
|
|
break;
|
|
|
|
|
|
case 11:
|
|
|
/* eslint-enable */
|
|
|
resolve([]);
|
|
|
|
|
|
case 12:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee);
|
|
|
}));
|
|
|
|
|
|
return function (_x6, _x7) {
|
|
|
return _ref.apply(this, arguments);
|
|
|
};
|
|
|
}());
|
|
|
} else {
|
|
|
// >>>>> Validate by parallel
|
|
|
var rulePromises = filledRules.map(function (rule) {
|
|
|
return validateRule(name, value, rule, options, messageVariables);
|
|
|
});
|
|
|
summaryPromise = (validateFirst ? finishOnFirstFailed(rulePromises) : finishOnAllFailed(rulePromises)).then(function (errors) {
|
|
|
if (!errors.length) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return Promise.reject(errors);
|
|
|
});
|
|
|
} // Internal catch error to avoid console error log.
|
|
|
|
|
|
|
|
|
summaryPromise.catch(function (e) {
|
|
|
return e;
|
|
|
});
|
|
|
return summaryPromise;
|
|
|
}
|
|
|
|
|
|
function finishOnAllFailed(_x8) {
|
|
|
return _finishOnAllFailed.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function _finishOnAllFailed() {
|
|
|
_finishOnAllFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee3(rulePromises) {
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee3$(_context3) {
|
|
|
while (1) {
|
|
|
switch (_context3.prev = _context3.next) {
|
|
|
case 0:
|
|
|
return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
|
|
|
var _ref3;
|
|
|
|
|
|
var errors = (_ref3 = []).concat.apply(_ref3, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(errorsList));
|
|
|
|
|
|
return errors;
|
|
|
}));
|
|
|
|
|
|
case 1:
|
|
|
case "end":
|
|
|
return _context3.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee3);
|
|
|
}));
|
|
|
return _finishOnAllFailed.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function finishOnFirstFailed(_x9) {
|
|
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function _finishOnFirstFailed() {
|
|
|
_finishOnFirstFailed = Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.mark(function _callee4(rulePromises) {
|
|
|
var count;
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default.a.wrap(function _callee4$(_context4) {
|
|
|
while (1) {
|
|
|
switch (_context4.prev = _context4.next) {
|
|
|
case 0:
|
|
|
count = 0;
|
|
|
return _context4.abrupt("return", new Promise(function (resolve) {
|
|
|
rulePromises.forEach(function (promise) {
|
|
|
promise.then(function (errors) {
|
|
|
if (errors.length) {
|
|
|
resolve(errors);
|
|
|
}
|
|
|
|
|
|
count += 1;
|
|
|
|
|
|
if (count === rulePromises.length) {
|
|
|
resolve([]);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}));
|
|
|
|
|
|
case 2:
|
|
|
case "end":
|
|
|
return _context4.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee4);
|
|
|
}));
|
|
|
return _finishOnFirstFailed.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-field-form/es/utils/valueUtil.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-field-form/es/utils/valueUtil.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: getNamePath, getValue, setValue, cloneByNamePathList, containsNamePath, setValues, matchNamePath, isSimilar, defaultGetValueFromEvent, move */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNamePath", function() { return getNamePath; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValue", function() { return getValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setValue", function() { return setValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneByNamePathList", function() { return cloneByNamePathList; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "containsNamePath", function() { return containsNamePath; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setValues", function() { return setValues; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "matchNamePath", function() { return matchNamePath; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSimilar", function() { return isSimilar; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultGetValueFromEvent", function() { return defaultGetValueFromEvent; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "move", function() { return move; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/utils/get */ "./node_modules/rc-util/es/utils/get.js");
|
|
|
/* harmony import */ var rc_util_es_utils_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/utils/set */ "./node_modules/rc-util/es/utils/set.js");
|
|
|
/* harmony import */ var _typeUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./typeUtil */ "./node_modules/rc-field-form/es/utils/typeUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Convert name to internal supported format.
|
|
|
* This function should keep since we still thinking if need support like `a.b.c` format.
|
|
|
* 'a' => ['a']
|
|
|
* 123 => [123]
|
|
|
* ['a', 123] => ['a', 123]
|
|
|
*/
|
|
|
|
|
|
function getNamePath(path) {
|
|
|
return Object(_typeUtil__WEBPACK_IMPORTED_MODULE_5__["toArray"])(path);
|
|
|
}
|
|
|
function getValue(store, namePath) {
|
|
|
var value = Object(rc_util_es_utils_get__WEBPACK_IMPORTED_MODULE_3__["default"])(store, namePath);
|
|
|
return value;
|
|
|
}
|
|
|
function setValue(store, namePath, value) {
|
|
|
var removeIfUndefined = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
|
var newStore = Object(rc_util_es_utils_set__WEBPACK_IMPORTED_MODULE_4__["default"])(store, namePath, value, removeIfUndefined);
|
|
|
return newStore;
|
|
|
}
|
|
|
function cloneByNamePathList(store, namePathList) {
|
|
|
var newStore = {};
|
|
|
namePathList.forEach(function (namePath) {
|
|
|
var value = getValue(store, namePath);
|
|
|
newStore = setValue(newStore, namePath, value);
|
|
|
});
|
|
|
return newStore;
|
|
|
}
|
|
|
function containsNamePath(namePathList, namePath) {
|
|
|
return namePathList && namePathList.some(function (path) {
|
|
|
return matchNamePath(path, namePath);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function isObject(obj) {
|
|
|
return Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
|
}
|
|
|
/**
|
|
|
* Copy values into store and return a new values object
|
|
|
* ({ a: 1, b: { c: 2 } }, { a: 4, b: { d: 5 } }) => { a: 4, b: { c: 2, d: 5 } }
|
|
|
*/
|
|
|
|
|
|
|
|
|
function internalSetValues(store, values) {
|
|
|
var newStore = Array.isArray(store) ? Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(store) : Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store);
|
|
|
|
|
|
if (!values) {
|
|
|
return newStore;
|
|
|
}
|
|
|
|
|
|
Object.keys(values).forEach(function (key) {
|
|
|
var prevValue = newStore[key];
|
|
|
var value = values[key]; // If both are object (but target is not array), we use recursion to set deep value
|
|
|
|
|
|
var recursive = isObject(prevValue) && isObject(value);
|
|
|
newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : value;
|
|
|
});
|
|
|
return newStore;
|
|
|
}
|
|
|
|
|
|
function setValues(store) {
|
|
|
for (var _len = arguments.length, restValues = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
|
restValues[_key - 1] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
return restValues.reduce(function (current, newStore) {
|
|
|
return internalSetValues(current, newStore);
|
|
|
}, store);
|
|
|
}
|
|
|
function matchNamePath(namePath, changedNamePath) {
|
|
|
if (!namePath || !changedNamePath || namePath.length !== changedNamePath.length) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return namePath.every(function (nameUnit, i) {
|
|
|
return changedNamePath[i] === nameUnit;
|
|
|
});
|
|
|
}
|
|
|
function isSimilar(source, target) {
|
|
|
if (source === target) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (!source && target || source && !target) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (!source || !target || Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(source) !== 'object' || Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__["default"])(target) !== 'object') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var sourceKeys = Object.keys(source);
|
|
|
var targetKeys = Object.keys(target);
|
|
|
var keys = new Set([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(sourceKeys), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(targetKeys)));
|
|
|
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(keys).every(function (key) {
|
|
|
var sourceValue = source[key];
|
|
|
var targetValue = target[key];
|
|
|
|
|
|
if (typeof sourceValue === 'function' && typeof targetValue === 'function') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return sourceValue === targetValue;
|
|
|
});
|
|
|
}
|
|
|
function defaultGetValueFromEvent(valuePropName) {
|
|
|
var event = arguments.length <= 1 ? undefined : arguments[1];
|
|
|
|
|
|
if (event && event.target && valuePropName in event.target) {
|
|
|
return event.target[valuePropName];
|
|
|
}
|
|
|
|
|
|
return event;
|
|
|
}
|
|
|
/**
|
|
|
* Moves an array item from one position in an array to another.
|
|
|
*
|
|
|
* Note: This is a pure function so a new array will be returned, instead
|
|
|
* of altering the array argument.
|
|
|
*
|
|
|
* @param array Array in which to move an item. (required)
|
|
|
* @param moveIndex The index of the item to move. (required)
|
|
|
* @param toIndex The index to move item at moveIndex to. (required)
|
|
|
*/
|
|
|
|
|
|
function move(array, moveIndex, toIndex) {
|
|
|
var length = array.length;
|
|
|
|
|
|
if (moveIndex < 0 || moveIndex >= length || toIndex < 0 || toIndex >= length) {
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
var item = array[moveIndex];
|
|
|
var diff = moveIndex - toIndex;
|
|
|
|
|
|
if (diff > 0) {
|
|
|
// move left
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(0, toIndex)), [item], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(toIndex, moveIndex)), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(moveIndex + 1, length)));
|
|
|
}
|
|
|
|
|
|
if (diff < 0) {
|
|
|
// move right
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(0, moveIndex)), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(moveIndex + 1, toIndex + 1)), [item], Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(array.slice(toIndex + 1, length)));
|
|
|
}
|
|
|
|
|
|
return array;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/DOMWrap.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/DOMWrap.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
|
|
|
/* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SubMenu */ "./node_modules/rc-menu/es/SubMenu.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';
|
|
|
var FLOAT_PRECISION_ADJUST = 0.5;
|
|
|
|
|
|
var DOMWrap = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(DOMWrap, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__["default"])(DOMWrap);
|
|
|
|
|
|
function DOMWrap() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__["default"])(this, DOMWrap);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.resizeObserver = null;
|
|
|
_this.mutationObserver = null; // original scroll size of the list
|
|
|
|
|
|
_this.originalTotalWidth = 0; // copy of overflowed items
|
|
|
|
|
|
_this.overflowedItems = []; // cache item of the original items (so we can track the size and order)
|
|
|
|
|
|
_this.menuItemSizes = [];
|
|
|
_this.cancelFrameId = null;
|
|
|
_this.state = {
|
|
|
lastVisibleIndex: undefined
|
|
|
};
|
|
|
_this.childRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createRef"](); // get all valid menuItem nodes
|
|
|
|
|
|
_this.getMenuItemNodes = function () {
|
|
|
var prefixCls = _this.props.prefixCls;
|
|
|
var ul = _this.childRef.current;
|
|
|
|
|
|
if (!ul) {
|
|
|
return [];
|
|
|
} // filter out all overflowed indicator placeholder
|
|
|
|
|
|
|
|
|
return [].slice.call(ul.children).filter(function (node) {
|
|
|
return node.className.split(' ').indexOf("".concat(prefixCls, "-overflowed-submenu")) < 0;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.getOverflowedSubMenuItem = function (keyPrefix, overflowedItems, renderPlaceholder) {
|
|
|
var _this$props = _this.props,
|
|
|
overflowedIndicator = _this$props.overflowedIndicator,
|
|
|
level = _this$props.level,
|
|
|
mode = _this$props.mode,
|
|
|
prefixCls = _this$props.prefixCls,
|
|
|
theme = _this$props.theme;
|
|
|
|
|
|
if (level !== 1 || mode !== 'horizontal') {
|
|
|
return null;
|
|
|
} // put all the overflowed item inside a submenu
|
|
|
// with a title of overflow indicator ('...')
|
|
|
|
|
|
|
|
|
var copy = _this.props.children[0];
|
|
|
|
|
|
var _copy$props = copy.props,
|
|
|
throwAway = _copy$props.children,
|
|
|
title = _copy$props.title,
|
|
|
propStyle = _copy$props.style,
|
|
|
rest = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_copy$props, ["children", "title", "style"]);
|
|
|
|
|
|
var style = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, propStyle);
|
|
|
|
|
|
var key = "".concat(keyPrefix, "-overflowed-indicator");
|
|
|
var eventKey = "".concat(keyPrefix, "-overflowed-indicator");
|
|
|
|
|
|
if (overflowedItems.length === 0 && renderPlaceholder !== true) {
|
|
|
style = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), {}, {
|
|
|
display: 'none'
|
|
|
});
|
|
|
} else if (renderPlaceholder) {
|
|
|
style = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, style), {}, {
|
|
|
visibility: 'hidden',
|
|
|
// prevent from taking normal dom space
|
|
|
position: 'absolute'
|
|
|
});
|
|
|
key = "".concat(key, "-placeholder");
|
|
|
eventKey = "".concat(eventKey, "-placeholder");
|
|
|
}
|
|
|
|
|
|
var popupClassName = theme ? "".concat(prefixCls, "-").concat(theme) : '';
|
|
|
var props = {};
|
|
|
_util__WEBPACK_IMPORTED_MODULE_11__["menuAllProps"].forEach(function (k) {
|
|
|
if (rest[k] !== undefined) {
|
|
|
props[k] = rest[k];
|
|
|
}
|
|
|
});
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_SubMenu__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
title: overflowedIndicator,
|
|
|
className: "".concat(prefixCls, "-overflowed-submenu"),
|
|
|
popupClassName: popupClassName
|
|
|
}, props, {
|
|
|
key: key,
|
|
|
eventKey: eventKey,
|
|
|
disabled: false,
|
|
|
style: style
|
|
|
}), overflowedItems);
|
|
|
}; // memorize rendered menuSize
|
|
|
|
|
|
|
|
|
_this.setChildrenWidthAndResize = function () {
|
|
|
if (_this.props.mode !== 'horizontal') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var ul = _this.childRef.current;
|
|
|
|
|
|
if (!ul) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var ulChildrenNodes = ul.children;
|
|
|
|
|
|
if (!ulChildrenNodes || ulChildrenNodes.length === 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1]; // need last overflowed indicator for calculating length;
|
|
|
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_11__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');
|
|
|
|
|
|
var menuItemNodes = _this.getMenuItemNodes(); // reset display attribute for all hidden elements caused by overflow to calculate updated width
|
|
|
// and then reset to original state after width calculation
|
|
|
|
|
|
|
|
|
var overflowedItems = menuItemNodes.filter(function (c) {
|
|
|
return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;
|
|
|
});
|
|
|
overflowedItems.forEach(function (c) {
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_11__["setStyle"])(c, 'display', 'inline-block');
|
|
|
});
|
|
|
_this.menuItemSizes = menuItemNodes.map(function (c) {
|
|
|
return Object(_util__WEBPACK_IMPORTED_MODULE_11__["getWidth"])(c, true);
|
|
|
});
|
|
|
overflowedItems.forEach(function (c) {
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_11__["setStyle"])(c, 'display', 'none');
|
|
|
});
|
|
|
_this.overflowedIndicatorWidth = Object(_util__WEBPACK_IMPORTED_MODULE_11__["getWidth"])(ul.children[ul.children.length - 1], true);
|
|
|
_this.originalTotalWidth = _this.menuItemSizes.reduce(function (acc, cur) {
|
|
|
return acc + cur;
|
|
|
}, 0);
|
|
|
|
|
|
_this.handleResize(); // prevent the overflowed indicator from taking space;
|
|
|
|
|
|
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_11__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'none');
|
|
|
};
|
|
|
|
|
|
_this.handleResize = function () {
|
|
|
if (_this.props.mode !== 'horizontal') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var ul = _this.childRef.current;
|
|
|
|
|
|
if (!ul) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var width = Object(_util__WEBPACK_IMPORTED_MODULE_11__["getWidth"])(ul);
|
|
|
_this.overflowedItems = [];
|
|
|
var currentSumWidth = 0; // index for last visible child in horizontal mode
|
|
|
|
|
|
var lastVisibleIndex; // float number comparison could be problematic
|
|
|
// e.g. 0.1 + 0.2 > 0.3 =====> true
|
|
|
// thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
|
|
|
|
|
|
if (_this.originalTotalWidth > width + FLOAT_PRECISION_ADJUST) {
|
|
|
lastVisibleIndex = -1;
|
|
|
|
|
|
_this.menuItemSizes.forEach(function (liWidth) {
|
|
|
currentSumWidth += liWidth;
|
|
|
|
|
|
if (currentSumWidth + _this.overflowedIndicatorWidth <= width) {
|
|
|
lastVisibleIndex += 1;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
_this.setState({
|
|
|
lastVisibleIndex: lastVisibleIndex
|
|
|
});
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_5__["default"])(DOMWrap, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
this.setChildrenWidthAndResize();
|
|
|
|
|
|
if (this.props.level === 1 && this.props.mode === 'horizontal') {
|
|
|
var menuUl = this.childRef.current;
|
|
|
|
|
|
if (!menuUl) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_9__["default"](function (entries) {
|
|
|
entries.forEach(function () {
|
|
|
var cancelFrameId = _this2.cancelFrameId;
|
|
|
cancelAnimationFrame(cancelFrameId);
|
|
|
_this2.cancelFrameId = requestAnimationFrame(_this2.setChildrenWidthAndResize);
|
|
|
});
|
|
|
});
|
|
|
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
|
|
|
_this2.resizeObserver.observe(el);
|
|
|
});
|
|
|
|
|
|
if (typeof MutationObserver !== 'undefined') {
|
|
|
this.mutationObserver = new MutationObserver(function () {
|
|
|
_this2.resizeObserver.disconnect();
|
|
|
|
|
|
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
|
|
|
_this2.resizeObserver.observe(el);
|
|
|
});
|
|
|
|
|
|
_this2.setChildrenWidthAndResize();
|
|
|
});
|
|
|
this.mutationObserver.observe(menuUl, {
|
|
|
attributes: false,
|
|
|
childList: true,
|
|
|
subTree: false
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
if (this.resizeObserver) {
|
|
|
this.resizeObserver.disconnect();
|
|
|
}
|
|
|
|
|
|
if (this.mutationObserver) {
|
|
|
this.mutationObserver.disconnect();
|
|
|
}
|
|
|
|
|
|
cancelAnimationFrame(this.cancelFrameId);
|
|
|
}
|
|
|
}, {
|
|
|
key: "renderChildren",
|
|
|
value: function renderChildren(children) {
|
|
|
var _this3 = this;
|
|
|
|
|
|
// need to take care of overflowed items in horizontal mode
|
|
|
var lastVisibleIndex = this.state.lastVisibleIndex;
|
|
|
return (children || []).reduce(function (acc, childNode, index) {
|
|
|
var item = childNode;
|
|
|
|
|
|
if (_this3.props.mode === 'horizontal') {
|
|
|
var overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, []);
|
|
|
|
|
|
if (lastVisibleIndex !== undefined && _this3.props.className.indexOf("".concat(_this3.props.prefixCls, "-root")) !== -1) {
|
|
|
if (index > lastVisibleIndex) {
|
|
|
item = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"](childNode, // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
|
|
|
{
|
|
|
style: {
|
|
|
display: 'none'
|
|
|
},
|
|
|
eventKey: "".concat(childNode.props.eventKey, "-hidden"),
|
|
|
|
|
|
/**
|
|
|
* Legacy code. Here `className` never used:
|
|
|
* https://github.com/react-component/menu/commit/4cd6b49fce9d116726f4ea00dda85325d6f26500#diff-e2fa48f75c2dd2318295cde428556a76R240
|
|
|
*/
|
|
|
className: "".concat(MENUITEM_OVERFLOWED_CLASSNAME)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (index === lastVisibleIndex + 1) {
|
|
|
_this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"](c, // children[index].key will become '.$key' in clone by default,
|
|
|
// we have to overwrite with the correct key explicitly
|
|
|
{
|
|
|
key: c.props.eventKey,
|
|
|
mode: 'vertical-left'
|
|
|
});
|
|
|
});
|
|
|
overflowed = _this3.getOverflowedSubMenuItem(childNode.props.eventKey, _this3.overflowedItems);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var ret = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(acc), [overflowed, item]);
|
|
|
|
|
|
if (index === children.length - 1) {
|
|
|
// need a placeholder for calculating overflowed indicator width
|
|
|
ret.push(_this3.getOverflowedSubMenuItem(childNode.props.eventKey, [], true));
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(acc), [item]);
|
|
|
}, []);
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this$props2 = this.props,
|
|
|
visible = _this$props2.visible,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
overflowedIndicator = _this$props2.overflowedIndicator,
|
|
|
mode = _this$props2.mode,
|
|
|
level = _this$props2.level,
|
|
|
tag = _this$props2.tag,
|
|
|
children = _this$props2.children,
|
|
|
theme = _this$props2.theme,
|
|
|
rest = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_this$props2, ["visible", "prefixCls", "overflowedIndicator", "mode", "level", "tag", "children", "theme"]);
|
|
|
|
|
|
var Tag = tag;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](Tag, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
ref: this.childRef
|
|
|
}, rest), this.renderChildren(children));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return DOMWrap;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
|
|
|
|
DOMWrap.defaultProps = {
|
|
|
tag: 'div',
|
|
|
className: ''
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (DOMWrap);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/Divider.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/Divider.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
|
|
|
var Divider = function Divider(_ref) {
|
|
|
var className = _ref.className,
|
|
|
rootPrefixCls = _ref.rootPrefixCls,
|
|
|
style = _ref.style;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("li", {
|
|
|
className: "".concat(className, " ").concat(rootPrefixCls, "-item-divider"),
|
|
|
style: style
|
|
|
});
|
|
|
};
|
|
|
|
|
|
Divider.defaultProps = {
|
|
|
// To fix keyboard UX.
|
|
|
disabled: true,
|
|
|
className: '',
|
|
|
style: {}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Divider);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/Menu.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/Menu.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var mini_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! mini-store */ "./node_modules/mini-store/esm/index.js");
|
|
|
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/omit */ "./node_modules/rc-util/es/omit.js");
|
|
|
/* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SubPopupMenu */ "./node_modules/rc-menu/es/SubPopupMenu.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-menu/es/utils/legacyUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(Menu, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__["default"])(Menu);
|
|
|
|
|
|
function Menu(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Menu);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.onSelect = function (selectInfo) {
|
|
|
var _assertThisInitialize = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this),
|
|
|
props = _assertThisInitialize.props;
|
|
|
|
|
|
if (props.selectable) {
|
|
|
// root menu
|
|
|
var _this$store$getState = _this.store.getState(),
|
|
|
_selectedKeys = _this$store$getState.selectedKeys;
|
|
|
|
|
|
var selectedKey = selectInfo.key;
|
|
|
|
|
|
if (props.multiple) {
|
|
|
_selectedKeys = _selectedKeys.concat([selectedKey]);
|
|
|
} else {
|
|
|
_selectedKeys = [selectedKey];
|
|
|
}
|
|
|
|
|
|
if (!('selectedKeys' in props)) {
|
|
|
_this.store.setState({
|
|
|
selectedKeys: _selectedKeys
|
|
|
});
|
|
|
}
|
|
|
|
|
|
props.onSelect(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, selectInfo), {}, {
|
|
|
selectedKeys: _selectedKeys
|
|
|
}));
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onClick = function (e) {
|
|
|
var mode = _this.getRealMenuMode();
|
|
|
|
|
|
var _assertThisInitialize2 = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this),
|
|
|
store = _assertThisInitialize2.store,
|
|
|
onOpenChange = _assertThisInitialize2.props.onOpenChange;
|
|
|
|
|
|
if (mode !== 'inline' && !('openKeys' in _this.props)) {
|
|
|
// closing vertical popup submenu after click it
|
|
|
store.setState({
|
|
|
openKeys: []
|
|
|
});
|
|
|
onOpenChange([]);
|
|
|
}
|
|
|
|
|
|
_this.props.onClick(e);
|
|
|
}; // onKeyDown needs to be exposed as a instance method
|
|
|
// e.g., in rc-select, we need to navigate menu item while
|
|
|
// current active item is rc-select input box rather than the menu itself
|
|
|
|
|
|
|
|
|
_this.onKeyDown = function (e, callback) {
|
|
|
_this.innerMenu.getWrappedInstance().onKeyDown(e, callback);
|
|
|
};
|
|
|
|
|
|
_this.onOpenChange = function (event) {
|
|
|
var _assertThisInitialize3 = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this),
|
|
|
props = _assertThisInitialize3.props;
|
|
|
|
|
|
var openKeys = _this.store.getState().openKeys.concat();
|
|
|
|
|
|
var changed = false;
|
|
|
|
|
|
var processSingle = function processSingle(e) {
|
|
|
var oneChanged = false;
|
|
|
|
|
|
if (e.open) {
|
|
|
oneChanged = openKeys.indexOf(e.key) === -1;
|
|
|
|
|
|
if (oneChanged) {
|
|
|
openKeys.push(e.key);
|
|
|
}
|
|
|
} else {
|
|
|
var index = openKeys.indexOf(e.key);
|
|
|
oneChanged = index !== -1;
|
|
|
|
|
|
if (oneChanged) {
|
|
|
openKeys.splice(index, 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
changed = changed || oneChanged;
|
|
|
};
|
|
|
|
|
|
if (Array.isArray(event)) {
|
|
|
// batch change call
|
|
|
event.forEach(processSingle);
|
|
|
} else {
|
|
|
processSingle(event);
|
|
|
}
|
|
|
|
|
|
if (changed) {
|
|
|
if (!('openKeys' in _this.props)) {
|
|
|
_this.store.setState({
|
|
|
openKeys: openKeys
|
|
|
});
|
|
|
}
|
|
|
|
|
|
props.onOpenChange(openKeys);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onDeselect = function (selectInfo) {
|
|
|
var _assertThisInitialize4 = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this),
|
|
|
props = _assertThisInitialize4.props;
|
|
|
|
|
|
if (props.selectable) {
|
|
|
var _selectedKeys2 = _this.store.getState().selectedKeys.concat();
|
|
|
|
|
|
var selectedKey = selectInfo.key;
|
|
|
|
|
|
var index = _selectedKeys2.indexOf(selectedKey);
|
|
|
|
|
|
if (index !== -1) {
|
|
|
_selectedKeys2.splice(index, 1);
|
|
|
}
|
|
|
|
|
|
if (!('selectedKeys' in props)) {
|
|
|
_this.store.setState({
|
|
|
selectedKeys: _selectedKeys2
|
|
|
});
|
|
|
}
|
|
|
|
|
|
props.onDeselect(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, selectInfo), {}, {
|
|
|
selectedKeys: _selectedKeys2
|
|
|
}));
|
|
|
}
|
|
|
}; // Restore vertical mode when menu is collapsed responsively when mounted
|
|
|
// https://github.com/ant-design/ant-design/issues/13104
|
|
|
// TODO: not a perfect solution,
|
|
|
// looking a new way to avoid setting switchingModeFromInline in this situation
|
|
|
|
|
|
|
|
|
_this.onMouseEnter = function (e) {
|
|
|
_this.restoreModeVerticalFromInline();
|
|
|
|
|
|
var onMouseEnter = _this.props.onMouseEnter;
|
|
|
|
|
|
if (onMouseEnter) {
|
|
|
onMouseEnter(e);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onTransitionEnd = function (e) {
|
|
|
// when inlineCollapsed menu width animation finished
|
|
|
// https://github.com/ant-design/ant-design/issues/12864
|
|
|
var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget; // Fix SVGElement e.target.className.indexOf is not a function
|
|
|
// https://github.com/ant-design/ant-design/issues/15699
|
|
|
|
|
|
var className = e.target.className; // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal,
|
|
|
// unless during an animation.
|
|
|
|
|
|
var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className; // Fix for <Menu style={{ width: '100%' }} />,
|
|
|
// the width transition won't trigger when menu is collapsed
|
|
|
// https://github.com/ant-design/ant-design-pro/issues/2783
|
|
|
|
|
|
var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
|
|
|
|
|
|
if (widthCollapsed || iconScaled) {
|
|
|
_this.restoreModeVerticalFromInline();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.setInnerMenu = function (node) {
|
|
|
_this.innerMenu = node;
|
|
|
};
|
|
|
|
|
|
_this.isRootMenu = true;
|
|
|
var selectedKeys = props.defaultSelectedKeys;
|
|
|
var openKeys = props.defaultOpenKeys;
|
|
|
|
|
|
if ('selectedKeys' in props) {
|
|
|
selectedKeys = props.selectedKeys || [];
|
|
|
}
|
|
|
|
|
|
if ('openKeys' in props) {
|
|
|
openKeys = props.openKeys || [];
|
|
|
}
|
|
|
|
|
|
_this.store = Object(mini_store__WEBPACK_IMPORTED_MODULE_8__["create"])({
|
|
|
selectedKeys: selectedKeys,
|
|
|
openKeys: openKeys,
|
|
|
activeKey: {
|
|
|
'0-menu-': Object(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_10__["getActiveKey"])(props, props.activeKey)
|
|
|
}
|
|
|
});
|
|
|
_this.state = {
|
|
|
switchingModeFromInline: false,
|
|
|
prevProps: props,
|
|
|
inlineOpenKeys: [],
|
|
|
store: _this.store
|
|
|
};
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(Menu, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.updateMiniStore();
|
|
|
this.updateMenuDisplay();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
var _this$props = this.props,
|
|
|
siderCollapsed = _this$props.siderCollapsed,
|
|
|
inlineCollapsed = _this$props.inlineCollapsed,
|
|
|
onOpenChange = _this$props.onOpenChange;
|
|
|
|
|
|
if (!prevProps.inlineCollapsed && inlineCollapsed || !prevProps.siderCollapsed && siderCollapsed) {
|
|
|
onOpenChange([]);
|
|
|
}
|
|
|
|
|
|
this.updateMiniStore();
|
|
|
this.updateMenuDisplay();
|
|
|
}
|
|
|
}, {
|
|
|
key: "updateMenuDisplay",
|
|
|
value: function updateMenuDisplay() {
|
|
|
var collapsedWidth = this.props.collapsedWidth,
|
|
|
store = this.store,
|
|
|
prevOpenKeys = this.prevOpenKeys; // https://github.com/ant-design/ant-design/issues/8587
|
|
|
|
|
|
var hideMenu = this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
|
|
|
|
|
|
if (hideMenu) {
|
|
|
this.prevOpenKeys = store.getState().openKeys.concat();
|
|
|
this.store.setState({
|
|
|
openKeys: []
|
|
|
});
|
|
|
} else if (prevOpenKeys) {
|
|
|
this.store.setState({
|
|
|
openKeys: prevOpenKeys
|
|
|
});
|
|
|
this.prevOpenKeys = null;
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "getRealMenuMode",
|
|
|
value: function getRealMenuMode() {
|
|
|
var mode = this.props.mode;
|
|
|
var switchingModeFromInline = this.state.switchingModeFromInline;
|
|
|
var inlineCollapsed = this.getInlineCollapsed();
|
|
|
|
|
|
if (switchingModeFromInline && inlineCollapsed) {
|
|
|
return 'inline';
|
|
|
}
|
|
|
|
|
|
return inlineCollapsed ? 'vertical' : mode;
|
|
|
}
|
|
|
}, {
|
|
|
key: "getInlineCollapsed",
|
|
|
value: function getInlineCollapsed() {
|
|
|
var _this$props2 = this.props,
|
|
|
inlineCollapsed = _this$props2.inlineCollapsed,
|
|
|
siderCollapsed = _this$props2.siderCollapsed;
|
|
|
|
|
|
if (siderCollapsed !== undefined) {
|
|
|
return siderCollapsed;
|
|
|
}
|
|
|
|
|
|
return inlineCollapsed;
|
|
|
}
|
|
|
}, {
|
|
|
key: "restoreModeVerticalFromInline",
|
|
|
value: function restoreModeVerticalFromInline() {
|
|
|
var switchingModeFromInline = this.state.switchingModeFromInline;
|
|
|
|
|
|
if (switchingModeFromInline) {
|
|
|
this.setState({
|
|
|
switchingModeFromInline: false
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "updateMiniStore",
|
|
|
value: function updateMiniStore() {
|
|
|
if ('selectedKeys' in this.props) {
|
|
|
this.store.setState({
|
|
|
selectedKeys: this.props.selectedKeys || []
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ('openKeys' in this.props) {
|
|
|
this.store.setState({
|
|
|
openKeys: this.props.openKeys || []
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var props = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(rc_util_es_omit__WEBPACK_IMPORTED_MODULE_9__["default"])(this.props, ['collapsedWidth', 'siderCollapsed', 'defaultMotions']));
|
|
|
|
|
|
var mode = this.getRealMenuMode();
|
|
|
props.className += " ".concat(props.prefixCls, "-root");
|
|
|
|
|
|
if (props.direction === 'rtl') {
|
|
|
props.className += " ".concat(props.prefixCls, "-rtl");
|
|
|
}
|
|
|
|
|
|
props = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props), {}, {
|
|
|
mode: mode,
|
|
|
onClick: this.onClick,
|
|
|
onOpenChange: this.onOpenChange,
|
|
|
onDeselect: this.onDeselect,
|
|
|
onSelect: this.onSelect,
|
|
|
onMouseEnter: this.onMouseEnter,
|
|
|
onTransitionEnd: this.onTransitionEnd,
|
|
|
parentMenu: this,
|
|
|
motion: Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_12__["getMotion"])(this.props, this.state, mode)
|
|
|
});
|
|
|
delete props.openAnimation;
|
|
|
delete props.openTransitionName;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](mini_store__WEBPACK_IMPORTED_MODULE_8__["Provider"], {
|
|
|
store: this.store
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_SubPopupMenu__WEBPACK_IMPORTED_MODULE_10__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
ref: this.setInnerMenu
|
|
|
}), this.props.children));
|
|
|
}
|
|
|
}], [{
|
|
|
key: "getDerivedStateFromProps",
|
|
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
|
var prevProps = prevState.prevProps,
|
|
|
store = prevState.store;
|
|
|
var prevStoreState = store.getState();
|
|
|
var newStoreState = {};
|
|
|
var newState = {
|
|
|
prevProps: nextProps
|
|
|
};
|
|
|
|
|
|
if (prevProps.mode === 'inline' && nextProps.mode !== 'inline') {
|
|
|
newState.switchingModeFromInline = true;
|
|
|
}
|
|
|
|
|
|
if ('openKeys' in nextProps) {
|
|
|
newStoreState.openKeys = nextProps.openKeys || [];
|
|
|
} else {
|
|
|
// [Legacy] Old code will return after `openKeys` changed.
|
|
|
// Not sure the reason, we should keep this logic still.
|
|
|
if (nextProps.inlineCollapsed && !prevProps.inlineCollapsed || nextProps.siderCollapsed && !prevProps.siderCollapsed) {
|
|
|
newState.switchingModeFromInline = true;
|
|
|
newState.inlineOpenKeys = prevStoreState.openKeys;
|
|
|
newStoreState.openKeys = [];
|
|
|
}
|
|
|
|
|
|
if (!nextProps.inlineCollapsed && prevProps.inlineCollapsed || !nextProps.siderCollapsed && prevProps.siderCollapsed) {
|
|
|
newStoreState.openKeys = prevState.inlineOpenKeys;
|
|
|
newState.inlineOpenKeys = [];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (Object.keys(newStoreState).length) {
|
|
|
store.setState(newStoreState);
|
|
|
}
|
|
|
|
|
|
return newState;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Menu;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
|
|
|
|
|
Menu.defaultProps = {
|
|
|
selectable: true,
|
|
|
onClick: _util__WEBPACK_IMPORTED_MODULE_11__["noop"],
|
|
|
onSelect: _util__WEBPACK_IMPORTED_MODULE_11__["noop"],
|
|
|
onOpenChange: _util__WEBPACK_IMPORTED_MODULE_11__["noop"],
|
|
|
onDeselect: _util__WEBPACK_IMPORTED_MODULE_11__["noop"],
|
|
|
defaultSelectedKeys: [],
|
|
|
defaultOpenKeys: [],
|
|
|
subMenuOpenDelay: 0.1,
|
|
|
subMenuCloseDelay: 0.1,
|
|
|
triggerSubMenuAction: 'hover',
|
|
|
prefixCls: 'rc-menu',
|
|
|
className: '',
|
|
|
mode: 'vertical',
|
|
|
style: {},
|
|
|
builtinPlacements: {},
|
|
|
overflowedIndicator: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"]("span", null, "\xB7\xB7\xB7")
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Menu);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/MenuItem.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/MenuItem.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: MenuItem, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return MenuItem; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);
|
|
|
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ "./node_modules/rc-util/es/omit.js");
|
|
|
/* harmony import */ var mini_store__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! mini-store */ "./node_modules/mini-store/esm/index.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_6__["default"])(MenuItem, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_7__["default"])(MenuItem);
|
|
|
|
|
|
function MenuItem() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, MenuItem);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
|
|
|
_this.onKeyDown = function (e) {
|
|
|
var keyCode = e.keyCode;
|
|
|
|
|
|
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER) {
|
|
|
_this.onClick(e);
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
};
|
|
|
|
|
|
_this.onMouseLeave = function (e) {
|
|
|
var _this$props = _this.props,
|
|
|
eventKey = _this$props.eventKey,
|
|
|
onItemHover = _this$props.onItemHover,
|
|
|
onMouseLeave = _this$props.onMouseLeave;
|
|
|
onItemHover({
|
|
|
key: eventKey,
|
|
|
hover: false
|
|
|
});
|
|
|
onMouseLeave({
|
|
|
key: eventKey,
|
|
|
domEvent: e
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onMouseEnter = function (e) {
|
|
|
var _this$props2 = _this.props,
|
|
|
eventKey = _this$props2.eventKey,
|
|
|
onItemHover = _this$props2.onItemHover,
|
|
|
onMouseEnter = _this$props2.onMouseEnter;
|
|
|
onItemHover({
|
|
|
key: eventKey,
|
|
|
hover: true
|
|
|
});
|
|
|
onMouseEnter({
|
|
|
key: eventKey,
|
|
|
domEvent: e
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onClick = function (e) {
|
|
|
var _this$props3 = _this.props,
|
|
|
eventKey = _this$props3.eventKey,
|
|
|
multiple = _this$props3.multiple,
|
|
|
onClick = _this$props3.onClick,
|
|
|
onSelect = _this$props3.onSelect,
|
|
|
onDeselect = _this$props3.onDeselect,
|
|
|
isSelected = _this$props3.isSelected;
|
|
|
var info = {
|
|
|
key: eventKey,
|
|
|
keyPath: [eventKey],
|
|
|
item: Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__["default"])(_this),
|
|
|
domEvent: e
|
|
|
};
|
|
|
onClick(info);
|
|
|
|
|
|
if (multiple) {
|
|
|
if (isSelected) {
|
|
|
onDeselect(info);
|
|
|
} else {
|
|
|
onSelect(info);
|
|
|
}
|
|
|
} else if (!isSelected) {
|
|
|
onSelect(info);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.saveNode = function (node) {
|
|
|
_this.node = node;
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(MenuItem, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
// invoke customized ref to expose component to mixin
|
|
|
this.callRef();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
this.callRef();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
var props = this.props;
|
|
|
|
|
|
if (props.onDestroy) {
|
|
|
props.onDestroy(props.eventKey);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "getPrefixCls",
|
|
|
value: function getPrefixCls() {
|
|
|
return "".concat(this.props.rootPrefixCls, "-item");
|
|
|
}
|
|
|
}, {
|
|
|
key: "getActiveClassName",
|
|
|
value: function getActiveClassName() {
|
|
|
return "".concat(this.getPrefixCls(), "-active");
|
|
|
}
|
|
|
}, {
|
|
|
key: "getSelectedClassName",
|
|
|
value: function getSelectedClassName() {
|
|
|
return "".concat(this.getPrefixCls(), "-selected");
|
|
|
}
|
|
|
}, {
|
|
|
key: "getDisabledClassName",
|
|
|
value: function getDisabledClassName() {
|
|
|
return "".concat(this.getPrefixCls(), "-disabled");
|
|
|
}
|
|
|
}, {
|
|
|
key: "callRef",
|
|
|
value: function callRef() {
|
|
|
if (this.props.manualRef) {
|
|
|
this.props.manualRef(this);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _classNames;
|
|
|
|
|
|
var props = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, this.props);
|
|
|
|
|
|
var className = classnames__WEBPACK_IMPORTED_MODULE_10___default()(this.getPrefixCls(), props.className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, this.getActiveClassName(), !props.disabled && props.active), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, this.getSelectedClassName(), props.isSelected), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames, this.getDisabledClassName(), props.disabled), _classNames));
|
|
|
|
|
|
var attrs = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props.attribute), {}, {
|
|
|
title: typeof props.title === 'string' ? props.title : undefined,
|
|
|
className: className,
|
|
|
// set to menuitem by default
|
|
|
role: props.role || 'menuitem',
|
|
|
'aria-disabled': props.disabled
|
|
|
});
|
|
|
|
|
|
if (props.role === 'option') {
|
|
|
// overwrite to option
|
|
|
attrs = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, attrs), {}, {
|
|
|
role: 'option',
|
|
|
'aria-selected': props.isSelected
|
|
|
});
|
|
|
} else if (props.role === null || props.role === 'none') {
|
|
|
// sometimes we want to specify role inside <li/> element
|
|
|
// <li><a role='menuitem'>Link</a></li> would be a good example
|
|
|
// in this case the role on <li/> should be "none" to
|
|
|
// remove the implied listitem role.
|
|
|
// https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
|
|
|
attrs.role = 'none';
|
|
|
} // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
|
|
|
|
|
|
|
|
|
var mouseEvent = {
|
|
|
onClick: props.disabled ? null : this.onClick,
|
|
|
onMouseLeave: props.disabled ? null : this.onMouseLeave,
|
|
|
onMouseEnter: props.disabled ? null : this.onMouseEnter
|
|
|
};
|
|
|
|
|
|
var style = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props.style);
|
|
|
|
|
|
if (props.mode === 'inline') {
|
|
|
if (props.direction === 'rtl') {
|
|
|
style.paddingRight = props.inlineIndent * props.level;
|
|
|
} else {
|
|
|
style.paddingLeft = props.inlineIndent * props.level;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_util__WEBPACK_IMPORTED_MODULE_13__["menuAllProps"].forEach(function (key) {
|
|
|
return delete props[key];
|
|
|
});
|
|
|
delete props.direction;
|
|
|
var icon = this.props.itemIcon;
|
|
|
|
|
|
if (typeof this.props.itemIcon === 'function') {
|
|
|
// TODO: This is a bug which should fixed after TS refactor
|
|
|
icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](this.props.itemIcon, this.props);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("li", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__["default"])(props, ['onClick', 'onMouseEnter', 'onMouseLeave', 'onSelect']), attrs, mouseEvent, {
|
|
|
style: style,
|
|
|
ref: this.saveNode
|
|
|
}), props.children, icon);
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return MenuItem;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
|
MenuItem.isMenuItem = true;
|
|
|
MenuItem.defaultProps = {
|
|
|
onSelect: _util__WEBPACK_IMPORTED_MODULE_13__["noop"],
|
|
|
onMouseEnter: _util__WEBPACK_IMPORTED_MODULE_13__["noop"],
|
|
|
onMouseLeave: _util__WEBPACK_IMPORTED_MODULE_13__["noop"],
|
|
|
manualRef: _util__WEBPACK_IMPORTED_MODULE_13__["noop"]
|
|
|
};
|
|
|
var connected = Object(mini_store__WEBPACK_IMPORTED_MODULE_12__["connect"])(function (_ref, _ref2) {
|
|
|
var activeKey = _ref.activeKey,
|
|
|
selectedKeys = _ref.selectedKeys;
|
|
|
var eventKey = _ref2.eventKey,
|
|
|
subMenuKey = _ref2.subMenuKey;
|
|
|
return {
|
|
|
active: activeKey[subMenuKey] === eventKey,
|
|
|
// selectedKeys should be array in any circumstance
|
|
|
// when it is not, we have fallback logic for https://github.com/ant-design/ant-design/issues/29430
|
|
|
isSelected: Array.isArray(selectedKeys) ? selectedKeys.indexOf(eventKey) !== -1 : selectedKeys === eventKey
|
|
|
};
|
|
|
})(MenuItem);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (connected);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/MenuItemGroup.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/MenuItemGroup.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MenuItemGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(MenuItemGroup, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__["default"])(MenuItemGroup);
|
|
|
|
|
|
function MenuItemGroup() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, MenuItemGroup);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
|
|
|
_this.renderInnerMenuItem = function (item) {
|
|
|
var _this$props = _this.props,
|
|
|
renderMenuItem = _this$props.renderMenuItem,
|
|
|
index = _this$props.index;
|
|
|
return renderMenuItem(item, index, _this.props.subMenuKey);
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(MenuItemGroup, [{
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props);
|
|
|
|
|
|
var _props$className = props.className,
|
|
|
className = _props$className === void 0 ? '' : _props$className,
|
|
|
rootPrefixCls = props.rootPrefixCls;
|
|
|
var titleClassName = "".concat(rootPrefixCls, "-item-group-title");
|
|
|
var listClassName = "".concat(rootPrefixCls, "-item-group-list");
|
|
|
var title = props.title,
|
|
|
children = props.children;
|
|
|
_util__WEBPACK_IMPORTED_MODULE_6__["menuAllProps"].forEach(function (key) {
|
|
|
return delete props[key];
|
|
|
});
|
|
|
delete props.direction;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("li", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
},
|
|
|
className: "".concat(className, " ").concat(rootPrefixCls, "-item-group")
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", {
|
|
|
className: titleClassName,
|
|
|
title: typeof title === 'string' ? title : undefined
|
|
|
}, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("ul", {
|
|
|
className: listClassName
|
|
|
}, react__WEBPACK_IMPORTED_MODULE_5__["Children"].map(children, this.renderInnerMenuItem)));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return MenuItemGroup;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_5__["Component"]);
|
|
|
|
|
|
MenuItemGroup.isMenuItemGroup = true;
|
|
|
MenuItemGroup.defaultProps = {
|
|
|
disabled: true
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MenuItemGroup);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/SubMenu.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/SubMenu.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: SubMenu, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return SubMenu; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
/* harmony import */ var rc_trigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-trigger */ "./node_modules/rc-trigger/es/index.js");
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);
|
|
|
/* harmony import */ var mini_store__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! mini-store */ "./node_modules/mini-store/esm/index.js");
|
|
|
/* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SubPopupMenu */ "./node_modules/rc-menu/es/SubPopupMenu.js");
|
|
|
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./placements */ "./node_modules/rc-menu/es/placements.js");
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var guid = 0;
|
|
|
var popupPlacementMap = {
|
|
|
horizontal: 'bottomLeft',
|
|
|
vertical: 'rightTop',
|
|
|
'vertical-left': 'rightTop',
|
|
|
'vertical-right': 'leftTop'
|
|
|
};
|
|
|
|
|
|
var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {
|
|
|
var menuId = Object(_util__WEBPACK_IMPORTED_MODULE_18__["getMenuIdFromSubMenuEventKey"])(eventKey);
|
|
|
var state = store.getState();
|
|
|
store.setState({
|
|
|
defaultActiveFirst: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, state.defaultActiveFirst), {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])({}, menuId, defaultActiveFirst))
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var SubMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(SubMenu, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__["default"])(SubMenu);
|
|
|
|
|
|
function SubMenu(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, SubMenu);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.onDestroy = function (key) {
|
|
|
_this.props.onDestroy(key);
|
|
|
};
|
|
|
/**
|
|
|
* note:
|
|
|
* This legacy code that `onKeyDown` is called by parent instead of dom self.
|
|
|
* which need return code to check if this event is handled
|
|
|
*/
|
|
|
|
|
|
|
|
|
_this.onKeyDown = function (e) {
|
|
|
var keyCode = e.keyCode;
|
|
|
var menu = _this.menuInstance;
|
|
|
var store = _this.props.store;
|
|
|
|
|
|
var visible = _this.getVisible();
|
|
|
|
|
|
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].ENTER) {
|
|
|
_this.onTitleClick(e);
|
|
|
|
|
|
updateDefaultActiveFirst(store, _this.props.eventKey, true);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].RIGHT) {
|
|
|
if (visible) {
|
|
|
menu.onKeyDown(e);
|
|
|
} else {
|
|
|
_this.triggerOpenChange(true); // need to update current menu's defaultActiveFirst value
|
|
|
|
|
|
|
|
|
updateDefaultActiveFirst(store, _this.props.eventKey, true);
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].LEFT) {
|
|
|
var handled;
|
|
|
|
|
|
if (visible) {
|
|
|
handled = menu.onKeyDown(e);
|
|
|
} else {
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
if (!handled) {
|
|
|
_this.triggerOpenChange(false);
|
|
|
|
|
|
handled = true;
|
|
|
}
|
|
|
|
|
|
return handled;
|
|
|
}
|
|
|
|
|
|
if (visible && (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].UP || keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].DOWN)) {
|
|
|
return menu.onKeyDown(e);
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
};
|
|
|
|
|
|
_this.onOpenChange = function (e) {
|
|
|
_this.props.onOpenChange(e);
|
|
|
};
|
|
|
|
|
|
_this.onPopupVisibleChange = function (visible) {
|
|
|
_this.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');
|
|
|
};
|
|
|
|
|
|
_this.onMouseEnter = function (e) {
|
|
|
var _this$props = _this.props,
|
|
|
key = _this$props.eventKey,
|
|
|
onMouseEnter = _this$props.onMouseEnter,
|
|
|
store = _this$props.store;
|
|
|
updateDefaultActiveFirst(store, _this.props.eventKey, false);
|
|
|
onMouseEnter({
|
|
|
key: key,
|
|
|
domEvent: e
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onMouseLeave = function (e) {
|
|
|
var _this$props2 = _this.props,
|
|
|
parentMenu = _this$props2.parentMenu,
|
|
|
eventKey = _this$props2.eventKey,
|
|
|
onMouseLeave = _this$props2.onMouseLeave;
|
|
|
parentMenu.subMenuInstance = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this);
|
|
|
onMouseLeave({
|
|
|
key: eventKey,
|
|
|
domEvent: e
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onTitleMouseEnter = function (domEvent) {
|
|
|
var _this$props3 = _this.props,
|
|
|
key = _this$props3.eventKey,
|
|
|
onItemHover = _this$props3.onItemHover,
|
|
|
onTitleMouseEnter = _this$props3.onTitleMouseEnter;
|
|
|
onItemHover({
|
|
|
key: key,
|
|
|
hover: true
|
|
|
});
|
|
|
onTitleMouseEnter({
|
|
|
key: key,
|
|
|
domEvent: domEvent
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onTitleMouseLeave = function (e) {
|
|
|
var _this$props4 = _this.props,
|
|
|
parentMenu = _this$props4.parentMenu,
|
|
|
eventKey = _this$props4.eventKey,
|
|
|
onItemHover = _this$props4.onItemHover,
|
|
|
onTitleMouseLeave = _this$props4.onTitleMouseLeave;
|
|
|
parentMenu.subMenuInstance = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this);
|
|
|
onItemHover({
|
|
|
key: eventKey,
|
|
|
hover: false
|
|
|
});
|
|
|
onTitleMouseLeave({
|
|
|
key: eventKey,
|
|
|
domEvent: e
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.onTitleClick = function (e) {
|
|
|
var _assertThisInitialize = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
props = _assertThisInitialize.props;
|
|
|
|
|
|
props.onTitleClick({
|
|
|
key: props.eventKey,
|
|
|
domEvent: e
|
|
|
});
|
|
|
|
|
|
if (props.triggerSubMenuAction === 'hover') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.triggerOpenChange(!_this.getVisible(), 'click');
|
|
|
|
|
|
updateDefaultActiveFirst(props.store, _this.props.eventKey, false);
|
|
|
};
|
|
|
|
|
|
_this.onSubMenuClick = function (info) {
|
|
|
// in the case of overflowed submenu
|
|
|
// onClick is not copied over
|
|
|
if (typeof _this.props.onClick === 'function') {
|
|
|
_this.props.onClick(_this.addKeyPath(info));
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onSelect = function (info) {
|
|
|
_this.props.onSelect(info);
|
|
|
};
|
|
|
|
|
|
_this.onDeselect = function (info) {
|
|
|
_this.props.onDeselect(info);
|
|
|
};
|
|
|
|
|
|
_this.getPrefixCls = function () {
|
|
|
return "".concat(_this.props.rootPrefixCls, "-submenu");
|
|
|
};
|
|
|
|
|
|
_this.getActiveClassName = function () {
|
|
|
return "".concat(_this.getPrefixCls(), "-active");
|
|
|
};
|
|
|
|
|
|
_this.getDisabledClassName = function () {
|
|
|
return "".concat(_this.getPrefixCls(), "-disabled");
|
|
|
};
|
|
|
|
|
|
_this.getSelectedClassName = function () {
|
|
|
return "".concat(_this.getPrefixCls(), "-selected");
|
|
|
};
|
|
|
|
|
|
_this.getOpenClassName = function () {
|
|
|
return "".concat(_this.props.rootPrefixCls, "-submenu-open");
|
|
|
};
|
|
|
|
|
|
_this.getVisible = function () {
|
|
|
return _this.state.isOpen;
|
|
|
};
|
|
|
|
|
|
_this.getMode = function () {
|
|
|
return _this.state.mode;
|
|
|
};
|
|
|
|
|
|
_this.saveMenuInstance = function (c) {
|
|
|
// children menu instance
|
|
|
_this.menuInstance = c;
|
|
|
};
|
|
|
|
|
|
_this.addKeyPath = function (info) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, info), {}, {
|
|
|
keyPath: (info.keyPath || []).concat(_this.props.eventKey)
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.triggerOpenChange = function (open, type) {
|
|
|
var key = _this.props.eventKey;
|
|
|
|
|
|
var openChange = function openChange() {
|
|
|
_this.onOpenChange({
|
|
|
key: key,
|
|
|
item: Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
trigger: type,
|
|
|
open: open
|
|
|
});
|
|
|
};
|
|
|
|
|
|
if (type === 'mouseenter') {
|
|
|
// make sure mouseenter happen after other menu item's mouseleave
|
|
|
_this.mouseenterTimeout = setTimeout(function () {
|
|
|
openChange();
|
|
|
}, 0);
|
|
|
} else {
|
|
|
openChange();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.isChildrenSelected = function () {
|
|
|
var ret = {
|
|
|
find: false
|
|
|
};
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_18__["loopMenuItemRecursively"])(_this.props.children, _this.props.selectedKeys, ret);
|
|
|
return ret.find;
|
|
|
};
|
|
|
|
|
|
_this.isInlineMode = function () {
|
|
|
return _this.getMode() === 'inline';
|
|
|
};
|
|
|
|
|
|
_this.adjustWidth = function () {
|
|
|
/* istanbul ignore if */
|
|
|
if (!_this.subMenuTitle || !_this.menuInstance) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var popupMenu = react_dom__WEBPACK_IMPORTED_MODULE_9__["findDOMNode"](_this.menuInstance);
|
|
|
|
|
|
if (popupMenu.offsetWidth >= _this.subMenuTitle.offsetWidth) {
|
|
|
return;
|
|
|
}
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
|
|
|
popupMenu.style.minWidth = "".concat(_this.subMenuTitle.offsetWidth, "px");
|
|
|
};
|
|
|
|
|
|
_this.saveSubMenuTitle = function (subMenuTitle) {
|
|
|
_this.subMenuTitle = subMenuTitle;
|
|
|
};
|
|
|
|
|
|
_this.getBaseProps = function () {
|
|
|
var _assertThisInitialize2 = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
props = _assertThisInitialize2.props;
|
|
|
|
|
|
var mergedMode = _this.getMode();
|
|
|
|
|
|
return {
|
|
|
mode: mergedMode === 'horizontal' ? 'vertical' : mergedMode,
|
|
|
visible: _this.getVisible(),
|
|
|
level: props.level + 1,
|
|
|
inlineIndent: props.inlineIndent,
|
|
|
focusable: false,
|
|
|
onClick: _this.onSubMenuClick,
|
|
|
onSelect: _this.onSelect,
|
|
|
onDeselect: _this.onDeselect,
|
|
|
onDestroy: _this.onDestroy,
|
|
|
selectedKeys: props.selectedKeys,
|
|
|
eventKey: "".concat(props.eventKey, "-menu-"),
|
|
|
openKeys: props.openKeys,
|
|
|
motion: props.motion,
|
|
|
onOpenChange: _this.onOpenChange,
|
|
|
subMenuOpenDelay: props.subMenuOpenDelay,
|
|
|
parentMenu: Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
subMenuCloseDelay: props.subMenuCloseDelay,
|
|
|
forceSubMenuRender: props.forceSubMenuRender,
|
|
|
triggerSubMenuAction: props.triggerSubMenuAction,
|
|
|
builtinPlacements: props.builtinPlacements,
|
|
|
defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(_util__WEBPACK_IMPORTED_MODULE_18__["getMenuIdFromSubMenuEventKey"])(props.eventKey)],
|
|
|
multiple: props.multiple,
|
|
|
prefixCls: props.rootPrefixCls,
|
|
|
id: _this.internalMenuId,
|
|
|
manualRef: _this.saveMenuInstance,
|
|
|
itemIcon: props.itemIcon,
|
|
|
expandIcon: props.expandIcon,
|
|
|
direction: props.direction
|
|
|
};
|
|
|
};
|
|
|
|
|
|
_this.getMotion = function (mode, visible) {
|
|
|
var _assertThisInitialize3 = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
haveRendered = _assertThisInitialize3.haveRendered;
|
|
|
|
|
|
var _this$props5 = _this.props,
|
|
|
motion = _this$props5.motion,
|
|
|
rootPrefixCls = _this$props5.rootPrefixCls; // don't show transition on first rendering (no animation for opened menu)
|
|
|
// show appear transition if it's not visible (not sure why)
|
|
|
// show appear transition if it's not inline mode
|
|
|
|
|
|
var mergedMotion = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, motion), {}, {
|
|
|
leavedClassName: "".concat(rootPrefixCls, "-hidden"),
|
|
|
removeOnLeave: false,
|
|
|
motionAppear: haveRendered || !visible || mode !== 'inline'
|
|
|
});
|
|
|
|
|
|
return mergedMotion;
|
|
|
};
|
|
|
|
|
|
var store = props.store,
|
|
|
eventKey = props.eventKey;
|
|
|
|
|
|
var _store$getState = store.getState(),
|
|
|
defaultActiveFirst = _store$getState.defaultActiveFirst;
|
|
|
|
|
|
_this.isRootMenu = false;
|
|
|
var value = false;
|
|
|
|
|
|
if (defaultActiveFirst) {
|
|
|
value = defaultActiveFirst[eventKey];
|
|
|
}
|
|
|
|
|
|
updateDefaultActiveFirst(store, eventKey, value);
|
|
|
_this.state = {
|
|
|
mode: props.mode,
|
|
|
isOpen: props.isOpen
|
|
|
};
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(SubMenu, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.componentDidUpdate();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var _this$props6 = this.props,
|
|
|
mode = _this$props6.mode,
|
|
|
parentMenu = _this$props6.parentMenu,
|
|
|
manualRef = _this$props6.manualRef,
|
|
|
isOpen = _this$props6.isOpen;
|
|
|
|
|
|
var updateState = function updateState() {
|
|
|
_this2.setState({
|
|
|
mode: mode,
|
|
|
isOpen: isOpen
|
|
|
});
|
|
|
}; // Delay sync when mode changed in case openKeys change not sync
|
|
|
|
|
|
|
|
|
var isOpenChanged = isOpen !== this.state.isOpen;
|
|
|
var isModeChanged = mode !== this.state.mode;
|
|
|
|
|
|
if (isModeChanged || isOpenChanged) {
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_11__["default"].cancel(this.updateStateRaf);
|
|
|
|
|
|
if (isModeChanged) {
|
|
|
this.updateStateRaf = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_11__["default"])(updateState);
|
|
|
} else {
|
|
|
updateState();
|
|
|
}
|
|
|
} // invoke customized ref to expose component to mixin
|
|
|
|
|
|
|
|
|
if (manualRef) {
|
|
|
manualRef(this);
|
|
|
}
|
|
|
|
|
|
if (mode !== 'horizontal' || !(parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.isRootMenu) || !isOpen) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.minWidthTimeout = setTimeout(function () {
|
|
|
return _this2.adjustWidth();
|
|
|
}, 0);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
var _this$props7 = this.props,
|
|
|
onDestroy = _this$props7.onDestroy,
|
|
|
eventKey = _this$props7.eventKey;
|
|
|
|
|
|
if (onDestroy) {
|
|
|
onDestroy(eventKey);
|
|
|
}
|
|
|
/* istanbul ignore if */
|
|
|
|
|
|
|
|
|
if (this.minWidthTimeout) {
|
|
|
clearTimeout(this.minWidthTimeout);
|
|
|
}
|
|
|
/* istanbul ignore if */
|
|
|
|
|
|
|
|
|
if (this.mouseenterTimeout) {
|
|
|
clearTimeout(this.mouseenterTimeout);
|
|
|
}
|
|
|
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_11__["default"].cancel(this.updateStateRaf);
|
|
|
}
|
|
|
}, {
|
|
|
key: "renderPopupMenu",
|
|
|
value: function renderPopupMenu(className, style) {
|
|
|
var baseProps = this.getBaseProps();
|
|
|
/**
|
|
|
* zombiej: Why SubPopupMenu here?
|
|
|
* Seems whatever popup or inline mode both will render SubPopupMenu.
|
|
|
* It's controlled by Trigger for popup or not.
|
|
|
*/
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_SubPopupMenu__WEBPACK_IMPORTED_MODULE_16__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, baseProps, {
|
|
|
id: this.internalMenuId,
|
|
|
className: className,
|
|
|
style: style
|
|
|
}), this.props.children);
|
|
|
}
|
|
|
}, {
|
|
|
key: "renderChildren",
|
|
|
value: function renderChildren() {
|
|
|
var _this3 = this;
|
|
|
|
|
|
var baseProps = this.getBaseProps();
|
|
|
var mode = baseProps.mode,
|
|
|
visible = baseProps.visible,
|
|
|
forceSubMenuRender = baseProps.forceSubMenuRender,
|
|
|
direction = baseProps.direction; // [Legacy] getMotion must be called before `haveRendered`
|
|
|
|
|
|
var mergedMotion = this.getMotion(mode, visible);
|
|
|
this.haveRendered = true;
|
|
|
this.haveOpened = this.haveOpened || visible || forceSubMenuRender; // never rendered not planning to, don't render
|
|
|
|
|
|
if (!this.haveOpened) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", null);
|
|
|
}
|
|
|
|
|
|
var sharedClassName = classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(baseProps.prefixCls, "-sub"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])({}, "".concat(baseProps.prefixCls, "-rtl"), direction === 'rtl'));
|
|
|
|
|
|
if (!this.isInlineMode()) {
|
|
|
return this.renderPopupMenu(sharedClassName);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_13__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
visible: baseProps.visible
|
|
|
}, mergedMotion), function (_ref) {
|
|
|
var className = _ref.className,
|
|
|
style = _ref.style;
|
|
|
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_14___default()(sharedClassName, className);
|
|
|
return _this3.renderPopupMenu(mergedClassName, style);
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _classNames2, _props$parentMenu, _classNames3;
|
|
|
|
|
|
var props = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, this.props);
|
|
|
|
|
|
var visible = this.getVisible();
|
|
|
var prefixCls = this.getPrefixCls();
|
|
|
var inline = this.isInlineMode();
|
|
|
var mergedMode = this.getMode();
|
|
|
var className = classnames__WEBPACK_IMPORTED_MODULE_14___default()(prefixCls, "".concat(prefixCls, "-").concat(mergedMode), (_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames2, props.className, !!props.className), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames2, this.getOpenClassName(), visible), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames2, this.getActiveClassName(), props.active || visible && !inline), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames2, this.getDisabledClassName(), props.disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames2, this.getSelectedClassName(), this.isChildrenSelected()), _classNames2));
|
|
|
|
|
|
if (!this.internalMenuId) {
|
|
|
if (props.eventKey) {
|
|
|
this.internalMenuId = "".concat(props.eventKey, "$Menu");
|
|
|
} else {
|
|
|
guid += 1;
|
|
|
this.internalMenuId = "$__$".concat(guid, "$Menu");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var mouseEvents = {};
|
|
|
var titleClickEvents = {};
|
|
|
var titleMouseEvents = {};
|
|
|
|
|
|
if (!props.disabled) {
|
|
|
mouseEvents = {
|
|
|
onMouseLeave: this.onMouseLeave,
|
|
|
onMouseEnter: this.onMouseEnter
|
|
|
}; // only works in title, not outer li
|
|
|
|
|
|
titleClickEvents = {
|
|
|
onClick: this.onTitleClick
|
|
|
};
|
|
|
titleMouseEvents = {
|
|
|
onMouseEnter: this.onTitleMouseEnter,
|
|
|
onMouseLeave: this.onTitleMouseLeave
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var style = {};
|
|
|
var direction = props.direction;
|
|
|
var isRTL = direction === 'rtl';
|
|
|
|
|
|
if (inline) {
|
|
|
if (isRTL) {
|
|
|
style.paddingRight = props.inlineIndent * props.level;
|
|
|
} else {
|
|
|
style.paddingLeft = props.inlineIndent * props.level;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var ariaOwns = {}; // only set aria-owns when menu is open
|
|
|
// otherwise it would be an invalid aria-owns value
|
|
|
// since corresponding node cannot be found
|
|
|
|
|
|
if (this.getVisible()) {
|
|
|
ariaOwns = {
|
|
|
'aria-owns': this.internalMenuId
|
|
|
};
|
|
|
} // expand custom icon should NOT be displayed in menu with horizontal mode.
|
|
|
|
|
|
|
|
|
var icon = null;
|
|
|
|
|
|
if (mergedMode !== 'horizontal') {
|
|
|
icon = this.props.expandIcon; // ReactNode
|
|
|
|
|
|
if (typeof this.props.expandIcon === 'function') {
|
|
|
icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](this.props.expandIcon, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, this.props));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
ref: this.saveSubMenuTitle,
|
|
|
style: style,
|
|
|
className: "".concat(prefixCls, "-title"),
|
|
|
role: "button"
|
|
|
}, titleMouseEvents, titleClickEvents, {
|
|
|
"aria-expanded": visible
|
|
|
}, ariaOwns, {
|
|
|
"aria-haspopup": "true",
|
|
|
title: typeof props.title === 'string' ? props.title : undefined
|
|
|
}), props.title, icon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("i", {
|
|
|
className: "".concat(prefixCls, "-arrow")
|
|
|
}));
|
|
|
var children = this.renderChildren();
|
|
|
var getPopupContainer = ((_props$parentMenu = props.parentMenu) === null || _props$parentMenu === void 0 ? void 0 : _props$parentMenu.isRootMenu) ? props.parentMenu.props.getPopupContainer : function (triggerNode) {
|
|
|
return triggerNode.parentNode;
|
|
|
};
|
|
|
var popupPlacement = popupPlacementMap[mergedMode];
|
|
|
var popupAlign = props.popupOffset ? {
|
|
|
offset: props.popupOffset
|
|
|
} : {};
|
|
|
var popupClassName = classnames__WEBPACK_IMPORTED_MODULE_14___default()((_classNames3 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames3, props.popupClassName, props.popupClassName && !inline), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])(_classNames3, "".concat(prefixCls, "-rtl"), isRTL), _classNames3));
|
|
|
var disabled = props.disabled,
|
|
|
triggerSubMenuAction = props.triggerSubMenuAction,
|
|
|
subMenuOpenDelay = props.subMenuOpenDelay,
|
|
|
forceSubMenuRender = props.forceSubMenuRender,
|
|
|
subMenuCloseDelay = props.subMenuCloseDelay,
|
|
|
builtinPlacements = props.builtinPlacements;
|
|
|
_util__WEBPACK_IMPORTED_MODULE_18__["menuAllProps"].forEach(function (key) {
|
|
|
return delete props[key];
|
|
|
}); // Set onClick to null, to ignore propagated onClick event
|
|
|
|
|
|
delete props.onClick;
|
|
|
var placement = isRTL ? Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, _placements__WEBPACK_IMPORTED_MODULE_17__["placementsRtl"]), builtinPlacements) : Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, _placements__WEBPACK_IMPORTED_MODULE_17__["placements"]), builtinPlacements);
|
|
|
delete props.direction; // [Legacy] It's a fast fix,
|
|
|
// but we should check if we can refactor this to make code more easy to understand
|
|
|
|
|
|
var baseProps = this.getBaseProps();
|
|
|
var mergedMotion = inline ? null : this.getMotion(baseProps.mode, baseProps.visible);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("li", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, mouseEvents, {
|
|
|
className: className,
|
|
|
role: "menuitem"
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](rc_trigger__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
prefixCls: prefixCls,
|
|
|
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(prefixCls, "-popup"), popupClassName),
|
|
|
getPopupContainer: getPopupContainer,
|
|
|
builtinPlacements: placement,
|
|
|
popupPlacement: popupPlacement,
|
|
|
popupVisible: inline ? false : visible,
|
|
|
popupAlign: popupAlign,
|
|
|
popup: inline ? null : children,
|
|
|
action: disabled || inline ? [] : [triggerSubMenuAction],
|
|
|
mouseEnterDelay: subMenuOpenDelay,
|
|
|
mouseLeaveDelay: subMenuCloseDelay,
|
|
|
onPopupVisibleChange: this.onPopupVisibleChange,
|
|
|
forceRender: forceSubMenuRender,
|
|
|
popupMotion: mergedMotion
|
|
|
}, title), inline ? children : null);
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return SubMenu;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
|
SubMenu.defaultProps = {
|
|
|
onMouseEnter: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
onMouseLeave: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
onTitleMouseEnter: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
onTitleMouseLeave: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
onTitleClick: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
manualRef: _util__WEBPACK_IMPORTED_MODULE_18__["noop"],
|
|
|
mode: 'vertical',
|
|
|
title: ''
|
|
|
};
|
|
|
var connected = Object(mini_store__WEBPACK_IMPORTED_MODULE_15__["connect"])(function (_ref2, _ref3) {
|
|
|
var openKeys = _ref2.openKeys,
|
|
|
activeKey = _ref2.activeKey,
|
|
|
selectedKeys = _ref2.selectedKeys;
|
|
|
var eventKey = _ref3.eventKey,
|
|
|
subMenuKey = _ref3.subMenuKey;
|
|
|
return {
|
|
|
isOpen: openKeys.indexOf(eventKey) > -1,
|
|
|
active: activeKey[subMenuKey] === eventKey,
|
|
|
selectedKeys: selectedKeys
|
|
|
};
|
|
|
})(SubMenu);
|
|
|
connected.isSubMenu = true;
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (connected);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/SubPopupMenu.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/SubPopupMenu.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: getActiveKey, saveRef, SubPopupMenu, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubPopupMenu", function() { return SubPopupMenu; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var mini_store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! mini-store */ "./node_modules/mini-store/esm/index.js");
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var rc_util_es_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/createChainedFunction */ "./node_modules/rc-util/es/createChainedFunction.js");
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_13__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util */ "./node_modules/rc-menu/es/util.js");
|
|
|
/* harmony import */ var _DOMWrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./DOMWrap */ "./node_modules/rc-menu/es/DOMWrap.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function allDisabled(arr) {
|
|
|
if (!arr.length) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return arr.every(function (c) {
|
|
|
return !!c.props.disabled;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function updateActiveKey(store, menuId, activeKey) {
|
|
|
var state = store.getState();
|
|
|
store.setState({
|
|
|
activeKey: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, state.activeKey), {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])({}, menuId, activeKey))
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function getEventKey(props) {
|
|
|
// when eventKey not available ,it's menu and return menu id '0-menu-'
|
|
|
return props.eventKey || '0-menu-';
|
|
|
}
|
|
|
|
|
|
function getActiveKey(props, originalActiveKey) {
|
|
|
var activeKey = originalActiveKey;
|
|
|
var children = props.children,
|
|
|
eventKey = props.eventKey;
|
|
|
|
|
|
if (activeKey) {
|
|
|
var found;
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_15__["loopMenuItem"])(children, function (c, i) {
|
|
|
if (c && c.props && !c.props.disabled && activeKey === Object(_util__WEBPACK_IMPORTED_MODULE_15__["getKeyFromChildrenIndex"])(c, eventKey, i)) {
|
|
|
found = true;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (found) {
|
|
|
return activeKey;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
activeKey = null;
|
|
|
|
|
|
if (props.defaultActiveFirst) {
|
|
|
Object(_util__WEBPACK_IMPORTED_MODULE_15__["loopMenuItem"])(children, function (c, i) {
|
|
|
if (!activeKey && c && !c.props.disabled) {
|
|
|
activeKey = Object(_util__WEBPACK_IMPORTED_MODULE_15__["getKeyFromChildrenIndex"])(c, eventKey, i);
|
|
|
}
|
|
|
});
|
|
|
return activeKey;
|
|
|
}
|
|
|
|
|
|
return activeKey;
|
|
|
}
|
|
|
function saveRef(c) {
|
|
|
if (!c) {
|
|
|
return;
|
|
|
}
|
|
|
/* eslint-disable @typescript-eslint/no-invalid-this */
|
|
|
|
|
|
|
|
|
var index = this.instanceArray.indexOf(c);
|
|
|
|
|
|
if (index !== -1) {
|
|
|
// update component if it's already inside instanceArray
|
|
|
this.instanceArray[index] = c;
|
|
|
} else {
|
|
|
// add component if it's not in instanceArray yet;
|
|
|
this.instanceArray.push(c);
|
|
|
}
|
|
|
/* eslint-enable @typescript-eslint/no-invalid-this */
|
|
|
|
|
|
}
|
|
|
var SubPopupMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(SubPopupMenu, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__["default"])(SubPopupMenu);
|
|
|
|
|
|
function SubPopupMenu(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, SubPopupMenu);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
/**
|
|
|
* all keyboard events callbacks run from here at first
|
|
|
*
|
|
|
* note:
|
|
|
* This legacy code that `onKeyDown` is called by parent instead of dom self.
|
|
|
* which need return code to check if this event is handled
|
|
|
*/
|
|
|
|
|
|
_this.onKeyDown = function (e, callback) {
|
|
|
var keyCode = e.keyCode;
|
|
|
var handled;
|
|
|
|
|
|
_this.getFlatInstanceArray().forEach(function (obj) {
|
|
|
if (obj && obj.props.active && obj.onKeyDown) {
|
|
|
handled = obj.onKeyDown(e);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (handled) {
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
var activeItem = null;
|
|
|
|
|
|
if (keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_10__["default"].UP || keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_10__["default"].DOWN) {
|
|
|
activeItem = _this.step(keyCode === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_10__["default"].UP ? -1 : 1);
|
|
|
}
|
|
|
|
|
|
if (activeItem) {
|
|
|
e.preventDefault();
|
|
|
updateActiveKey(_this.props.store, getEventKey(_this.props), activeItem.props.eventKey);
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
callback(activeItem);
|
|
|
}
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
};
|
|
|
|
|
|
_this.onItemHover = function (e) {
|
|
|
var key = e.key,
|
|
|
hover = e.hover;
|
|
|
updateActiveKey(_this.props.store, getEventKey(_this.props), hover ? key : null);
|
|
|
};
|
|
|
|
|
|
_this.onDeselect = function (selectInfo) {
|
|
|
_this.props.onDeselect(selectInfo);
|
|
|
};
|
|
|
|
|
|
_this.onSelect = function (selectInfo) {
|
|
|
_this.props.onSelect(selectInfo);
|
|
|
};
|
|
|
|
|
|
_this.onClick = function (e) {
|
|
|
_this.props.onClick(e);
|
|
|
};
|
|
|
|
|
|
_this.onOpenChange = function (e) {
|
|
|
_this.props.onOpenChange(e);
|
|
|
};
|
|
|
|
|
|
_this.onDestroy = function (key) {
|
|
|
/* istanbul ignore next */
|
|
|
_this.props.onDestroy(key);
|
|
|
};
|
|
|
|
|
|
_this.getFlatInstanceArray = function () {
|
|
|
return _this.instanceArray;
|
|
|
};
|
|
|
|
|
|
_this.step = function (direction) {
|
|
|
var children = _this.getFlatInstanceArray();
|
|
|
|
|
|
var activeKey = _this.props.store.getState().activeKey[getEventKey(_this.props)];
|
|
|
|
|
|
var len = children.length;
|
|
|
|
|
|
if (!len) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (direction < 0) {
|
|
|
children = children.concat().reverse();
|
|
|
} // find current activeIndex
|
|
|
|
|
|
|
|
|
var activeIndex = -1;
|
|
|
children.every(function (c, ci) {
|
|
|
if (c && c.props.eventKey === activeKey) {
|
|
|
activeIndex = ci;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
});
|
|
|
|
|
|
if (!_this.props.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
var start = (activeIndex + 1) % len;
|
|
|
var i = start;
|
|
|
|
|
|
do {
|
|
|
var child = children[i];
|
|
|
|
|
|
if (!child || child.props.disabled) {
|
|
|
i = (i + 1) % len;
|
|
|
} else {
|
|
|
return child;
|
|
|
}
|
|
|
} while (i !== start);
|
|
|
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
_this.renderCommonMenuItem = function (child, i, extraProps) {
|
|
|
var state = _this.props.store.getState();
|
|
|
|
|
|
var _assertThisInitialize = Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this),
|
|
|
props = _assertThisInitialize.props;
|
|
|
|
|
|
var key = Object(_util__WEBPACK_IMPORTED_MODULE_15__["getKeyFromChildrenIndex"])(child, props.eventKey, i);
|
|
|
var childProps = child.props; // https://github.com/ant-design/ant-design/issues/11517#issuecomment-477403055
|
|
|
|
|
|
if (!childProps || typeof child.type === 'string') {
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
var isActive = key === state.activeKey;
|
|
|
|
|
|
var newChildProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({
|
|
|
mode: childProps.mode || props.mode,
|
|
|
level: props.level,
|
|
|
inlineIndent: props.inlineIndent,
|
|
|
renderMenuItem: _this.renderMenuItem,
|
|
|
rootPrefixCls: props.prefixCls,
|
|
|
index: i,
|
|
|
parentMenu: props.parentMenu,
|
|
|
// customized ref function, need to be invoked manually in child's componentDidMount
|
|
|
manualRef: childProps.disabled ? undefined : Object(rc_util_es_createChainedFunction__WEBPACK_IMPORTED_MODULE_11__["default"])(child.ref, saveRef.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__["default"])(_this))),
|
|
|
eventKey: key,
|
|
|
active: !childProps.disabled && isActive,
|
|
|
multiple: props.multiple,
|
|
|
onClick: function onClick(e) {
|
|
|
(childProps.onClick || _util__WEBPACK_IMPORTED_MODULE_15__["noop"])(e);
|
|
|
|
|
|
_this.onClick(e);
|
|
|
},
|
|
|
onItemHover: _this.onItemHover,
|
|
|
motion: props.motion,
|
|
|
subMenuOpenDelay: props.subMenuOpenDelay,
|
|
|
subMenuCloseDelay: props.subMenuCloseDelay,
|
|
|
forceSubMenuRender: props.forceSubMenuRender,
|
|
|
onOpenChange: _this.onOpenChange,
|
|
|
onDeselect: _this.onDeselect,
|
|
|
onSelect: _this.onSelect,
|
|
|
builtinPlacements: props.builtinPlacements,
|
|
|
itemIcon: childProps.itemIcon || _this.props.itemIcon,
|
|
|
expandIcon: childProps.expandIcon || _this.props.expandIcon
|
|
|
}, extraProps), {}, {
|
|
|
direction: props.direction
|
|
|
}); // ref: https://github.com/ant-design/ant-design/issues/13943
|
|
|
|
|
|
|
|
|
if (props.mode === 'inline' || Object(_util__WEBPACK_IMPORTED_MODULE_15__["isMobileDevice"])()) {
|
|
|
newChildProps.triggerSubMenuAction = 'click';
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["cloneElement"](child, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, newChildProps), {}, {
|
|
|
key: key || i
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
_this.renderMenuItem = function (c, i, subMenuKey) {
|
|
|
/* istanbul ignore if */
|
|
|
if (!c) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var state = _this.props.store.getState();
|
|
|
|
|
|
var extraProps = {
|
|
|
openKeys: state.openKeys,
|
|
|
selectedKeys: state.selectedKeys,
|
|
|
triggerSubMenuAction: _this.props.triggerSubMenuAction,
|
|
|
subMenuKey: subMenuKey
|
|
|
};
|
|
|
return _this.renderCommonMenuItem(c, i, extraProps);
|
|
|
};
|
|
|
|
|
|
props.store.setState({
|
|
|
activeKey: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_7__["default"])({}, props.store.getState().activeKey), {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_6__["default"])({}, props.eventKey, getActiveKey(props, props.activeKey)))
|
|
|
});
|
|
|
_this.instanceArray = [];
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(SubPopupMenu, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
// invoke customized ref to expose component to mixin
|
|
|
if (this.props.manualRef) {
|
|
|
this.props.manualRef(this);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "shouldComponentUpdate",
|
|
|
value: function shouldComponentUpdate(nextProps) {
|
|
|
return this.props.visible || nextProps.visible || this.props.className !== nextProps.className || !shallowequal__WEBPACK_IMPORTED_MODULE_13___default()(this.props.style, nextProps.style);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
var props = this.props;
|
|
|
var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];
|
|
|
var activeKey = getActiveKey(props, originalActiveKey);
|
|
|
|
|
|
if (activeKey !== originalActiveKey) {
|
|
|
updateActiveKey(props.store, getEventKey(props), activeKey);
|
|
|
} else if ('activeKey' in prevProps) {
|
|
|
// If prev activeKey is not same as current activeKey,
|
|
|
// we should set it.
|
|
|
var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);
|
|
|
|
|
|
if (activeKey !== prevActiveKey) {
|
|
|
updateActiveKey(props.store, getEventKey(props), activeKey);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, this.props);
|
|
|
|
|
|
this.instanceArray = [];
|
|
|
var className = classnames__WEBPACK_IMPORTED_MODULE_14___default()(props.prefixCls, props.className, "".concat(props.prefixCls, "-").concat(props.mode));
|
|
|
var domProps = {
|
|
|
className: className,
|
|
|
// role could be 'select' and by default set to menu
|
|
|
role: props.role || 'menu'
|
|
|
};
|
|
|
|
|
|
if (props.id) {
|
|
|
domProps.id = props.id;
|
|
|
}
|
|
|
|
|
|
if (props.focusable) {
|
|
|
domProps.tabIndex = 0;
|
|
|
domProps.onKeyDown = this.onKeyDown;
|
|
|
}
|
|
|
|
|
|
var prefixCls = props.prefixCls,
|
|
|
eventKey = props.eventKey,
|
|
|
visible = props.visible,
|
|
|
level = props.level,
|
|
|
mode = props.mode,
|
|
|
overflowedIndicator = props.overflowedIndicator,
|
|
|
theme = props.theme;
|
|
|
_util__WEBPACK_IMPORTED_MODULE_15__["menuAllProps"].forEach(function (key) {
|
|
|
return delete props[key];
|
|
|
}); // Otherwise, the propagated click event will trigger another onClick
|
|
|
|
|
|
delete props.onClick;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"](_DOMWrap__WEBPACK_IMPORTED_MODULE_16__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
prefixCls: prefixCls,
|
|
|
mode: mode,
|
|
|
tag: "ul",
|
|
|
level: level,
|
|
|
theme: theme,
|
|
|
visible: visible,
|
|
|
overflowedIndicator: overflowedIndicator
|
|
|
}, domProps), Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_12__["default"])(props.children).map(function (c, i) {
|
|
|
return _this2.renderMenuItem(c, i, eventKey || '0-menu-');
|
|
|
}));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return SubPopupMenu;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_8__["Component"]);
|
|
|
SubPopupMenu.defaultProps = {
|
|
|
prefixCls: 'rc-menu',
|
|
|
className: '',
|
|
|
mode: 'vertical',
|
|
|
level: 1,
|
|
|
inlineIndent: 24,
|
|
|
visible: true,
|
|
|
focusable: true,
|
|
|
style: {},
|
|
|
manualRef: _util__WEBPACK_IMPORTED_MODULE_15__["noop"]
|
|
|
};
|
|
|
var connected = Object(mini_store__WEBPACK_IMPORTED_MODULE_9__["connect"])()(SubPopupMenu);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (connected);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/index.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/index.js ***!
|
|
|
\******************************************/
|
|
|
/*! exports provided: SubMenu, Item, MenuItem, MenuItemGroup, ItemGroup, Divider, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Menu */ "./node_modules/rc-menu/es/Menu.js");
|
|
|
/* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SubMenu */ "./node_modules/rc-menu/es/SubMenu.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "./node_modules/rc-menu/es/MenuItem.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuItemGroup */ "./node_modules/rc-menu/es/MenuItemGroup.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Divider */ "./node_modules/rc-menu/es/Divider.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _Divider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Menu__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/placements.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/placements.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: placements, placementsRtl, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placementsRtl", function() { return placementsRtl; });
|
|
|
var autoAdjustOverflow = {
|
|
|
adjustX: 1,
|
|
|
adjustY: 1
|
|
|
};
|
|
|
var placements = {
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -7]
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 7]
|
|
|
},
|
|
|
leftTop: {
|
|
|
points: ['tr', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0]
|
|
|
},
|
|
|
rightTop: {
|
|
|
points: ['tl', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0]
|
|
|
}
|
|
|
};
|
|
|
var placementsRtl = {
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -7]
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 7]
|
|
|
},
|
|
|
rightTop: {
|
|
|
points: ['tr', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0]
|
|
|
},
|
|
|
leftTop: {
|
|
|
points: ['tl', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0]
|
|
|
}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (placements);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/util.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/util.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: noop, getKeyFromChildrenIndex, getMenuIdFromSubMenuEventKey, loopMenuItem, loopMenuItemRecursively, menuAllProps, getWidth, setStyle, isMobileDevice */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyFromChildrenIndex", function() { return getKeyFromChildrenIndex; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMenuIdFromSubMenuEventKey", function() { return getMenuIdFromSubMenuEventKey; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItem", function() { return loopMenuItem; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItemRecursively", function() { return loopMenuItemRecursively; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuAllProps", function() { return menuAllProps; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStyle", function() { return setStyle; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobileDevice", function() { return isMobileDevice; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _utils_isMobile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/isMobile */ "./node_modules/rc-menu/es/utils/isMobile.js");
|
|
|
|
|
|
|
|
|
|
|
|
function noop() {}
|
|
|
function getKeyFromChildrenIndex(child, menuEventKey, index) {
|
|
|
var prefix = menuEventKey || '';
|
|
|
return child.key || "".concat(prefix, "item_").concat(index);
|
|
|
}
|
|
|
function getMenuIdFromSubMenuEventKey(eventKey) {
|
|
|
return "".concat(eventKey, "-menu-");
|
|
|
}
|
|
|
function loopMenuItem(children, cb) {
|
|
|
var index = -1;
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["Children"].forEach(children, function (c) {
|
|
|
index += 1;
|
|
|
|
|
|
if (c && c.type && c.type.isMenuItemGroup) {
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["Children"].forEach(c.props.children, function (c2) {
|
|
|
index += 1;
|
|
|
cb(c2, index);
|
|
|
});
|
|
|
} else {
|
|
|
cb(c, index);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function loopMenuItemRecursively(children, keys, ret) {
|
|
|
/* istanbul ignore if */
|
|
|
if (!children || ret.find) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["Children"].forEach(children, function (c) {
|
|
|
if (c) {
|
|
|
var construct = c.type;
|
|
|
|
|
|
if (!construct || !(construct.isSubMenu || construct.isMenuItem || construct.isMenuItemGroup)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (keys.indexOf(c.key) !== -1) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
ret.find = true;
|
|
|
} else if (c.props.children) {
|
|
|
loopMenuItemRecursively(c.props.children, keys, ret);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
var menuAllProps = ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'onSelect', 'onDeselect', 'onDestroy', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'onOpenChange', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'onItemHover', 'onTitleMouseEnter', 'onTitleMouseLeave', 'onTitleClick', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator', 'motion', // the following keys found need to be removed from test regression
|
|
|
'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon']; // ref: https://github.com/ant-design/ant-design/issues/14007
|
|
|
// ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
|
|
|
// getBoundingClientRect return the full precision value, which is
|
|
|
// not the same behavior as on chrome. Set the precision to 6 to
|
|
|
// unify their behavior
|
|
|
|
|
|
var getWidth = function getWidth(elem) {
|
|
|
var includeMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
|
|
|
|
|
|
if (width) {
|
|
|
if (includeMargin) {
|
|
|
var _getComputedStyle = getComputedStyle(elem),
|
|
|
marginLeft = _getComputedStyle.marginLeft,
|
|
|
marginRight = _getComputedStyle.marginRight;
|
|
|
|
|
|
width += +marginLeft.replace('px', '') + +marginRight.replace('px', '');
|
|
|
}
|
|
|
|
|
|
width = +width.toFixed(6);
|
|
|
}
|
|
|
|
|
|
return width || 0;
|
|
|
};
|
|
|
var setStyle = function setStyle(elem, styleProperty, value) {
|
|
|
if (elem && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(elem.style) === 'object') {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
elem.style[styleProperty] = value;
|
|
|
}
|
|
|
};
|
|
|
var isMobileDevice = function isMobileDevice() {
|
|
|
return _utils_isMobile__WEBPACK_IMPORTED_MODULE_2__["default"].any;
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/utils/isMobile.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/utils/isMobile.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
|
|
|
|
|
|
// MIT License from https://github.com/kaimallea/isMobile
|
|
|
var applePhone = /iPhone/i;
|
|
|
var appleIpod = /iPod/i;
|
|
|
var appleTablet = /iPad/i;
|
|
|
var androidPhone = /\bAndroid(?:.+)Mobile\b/i; // Match 'Android' AND 'Mobile'
|
|
|
|
|
|
var androidTablet = /Android/i;
|
|
|
var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
|
|
|
var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
|
|
|
var windowsPhone = /Windows Phone/i;
|
|
|
var windowsTablet = /\bWindows(?:.+)ARM\b/i; // Match 'Windows' AND 'ARM'
|
|
|
|
|
|
var otherBlackberry = /BlackBerry/i;
|
|
|
var otherBlackberry10 = /BB10/i;
|
|
|
var otherOpera = /Opera Mini/i;
|
|
|
var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
|
|
|
var otherFirefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
|
|
|
|
|
|
function match(regex, userAgent) {
|
|
|
return regex.test(userAgent);
|
|
|
}
|
|
|
|
|
|
function isMobile(userAgent) {
|
|
|
var ua = userAgent || (typeof navigator !== 'undefined' ? navigator.userAgent : ''); // Facebook mobile app's integrated browser adds a bunch of strings that
|
|
|
// match everything. Strip it out if it exists.
|
|
|
|
|
|
var tmp = ua.split('[FBAN');
|
|
|
|
|
|
if (typeof tmp[1] !== 'undefined') {
|
|
|
var _tmp = tmp;
|
|
|
|
|
|
var _tmp2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_tmp, 1);
|
|
|
|
|
|
ua = _tmp2[0];
|
|
|
} // Twitter mobile app's integrated browser on iPad adds a "Twitter for
|
|
|
// iPhone" string. Same probably happens on other tablet platforms.
|
|
|
// This will confuse detection so strip it out if it exists.
|
|
|
|
|
|
|
|
|
tmp = ua.split('Twitter');
|
|
|
|
|
|
if (typeof tmp[1] !== 'undefined') {
|
|
|
var _tmp3 = tmp;
|
|
|
|
|
|
var _tmp4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_tmp3, 1);
|
|
|
|
|
|
ua = _tmp4[0];
|
|
|
}
|
|
|
|
|
|
var result = {
|
|
|
apple: {
|
|
|
phone: match(applePhone, ua) && !match(windowsPhone, ua),
|
|
|
ipod: match(appleIpod, ua),
|
|
|
tablet: !match(applePhone, ua) && match(appleTablet, ua) && !match(windowsPhone, ua),
|
|
|
device: (match(applePhone, ua) || match(appleIpod, ua) || match(appleTablet, ua)) && !match(windowsPhone, ua)
|
|
|
},
|
|
|
amazon: {
|
|
|
phone: match(amazonPhone, ua),
|
|
|
tablet: !match(amazonPhone, ua) && match(amazonTablet, ua),
|
|
|
device: match(amazonPhone, ua) || match(amazonTablet, ua)
|
|
|
},
|
|
|
android: {
|
|
|
phone: !match(windowsPhone, ua) && match(amazonPhone, ua) || !match(windowsPhone, ua) && match(androidPhone, ua),
|
|
|
tablet: !match(windowsPhone, ua) && !match(amazonPhone, ua) && !match(androidPhone, ua) && (match(amazonTablet, ua) || match(androidTablet, ua)),
|
|
|
device: !match(windowsPhone, ua) && (match(amazonPhone, ua) || match(amazonTablet, ua) || match(androidPhone, ua) || match(androidTablet, ua)) || match(/\bokhttp\b/i, ua)
|
|
|
},
|
|
|
windows: {
|
|
|
phone: match(windowsPhone, ua),
|
|
|
tablet: match(windowsTablet, ua),
|
|
|
device: match(windowsPhone, ua) || match(windowsTablet, ua)
|
|
|
},
|
|
|
other: {
|
|
|
blackberry: match(otherBlackberry, ua),
|
|
|
blackberry10: match(otherBlackberry10, ua),
|
|
|
opera: match(otherOpera, ua),
|
|
|
firefox: match(otherFirefox, ua),
|
|
|
chrome: match(otherChrome, ua),
|
|
|
device: match(otherBlackberry, ua) || match(otherBlackberry10, ua) || match(otherOpera, ua) || match(otherFirefox, ua) || match(otherChrome, ua)
|
|
|
},
|
|
|
// Additional
|
|
|
any: null,
|
|
|
phone: null,
|
|
|
tablet: null
|
|
|
};
|
|
|
result.any = result.apple.device || result.android.device || result.windows.device || result.other.device; // excludes 'other' devices and ipods, targeting touchscreen phones
|
|
|
|
|
|
result.phone = result.apple.phone || result.android.phone || result.windows.phone;
|
|
|
result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
var defaultResult = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, isMobile()), {}, {
|
|
|
isMobile: isMobile
|
|
|
});
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (defaultResult);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-menu/es/utils/legacyUtil.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-menu/es/utils/legacyUtil.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: getMotion */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMotion", function() { return getMotion; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
|
|
|
|
|
|
function getMotion(_ref, _ref2, menuMode) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
motion = _ref.motion,
|
|
|
_ref$defaultMotions = _ref.defaultMotions,
|
|
|
defaultMotions = _ref$defaultMotions === void 0 ? {} : _ref$defaultMotions,
|
|
|
openAnimation = _ref.openAnimation,
|
|
|
openTransitionName = _ref.openTransitionName;
|
|
|
var switchingModeFromInline = _ref2.switchingModeFromInline;
|
|
|
|
|
|
if (motion) {
|
|
|
return motion;
|
|
|
}
|
|
|
|
|
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(openAnimation) === 'object' && openAnimation) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_1__["default"])(false, 'Object type of `openAnimation` is removed. Please use `motion` instead.');
|
|
|
} else if (typeof openAnimation === 'string') {
|
|
|
return {
|
|
|
motionName: "".concat(prefixCls, "-open-").concat(openAnimation)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (openTransitionName) {
|
|
|
return {
|
|
|
motionName: openTransitionName
|
|
|
};
|
|
|
} // Default logic
|
|
|
|
|
|
|
|
|
var defaultMotion = defaultMotions[menuMode];
|
|
|
|
|
|
if (defaultMotion) {
|
|
|
return defaultMotion;
|
|
|
} // When mode switch from inline
|
|
|
// submenu should hide without animation
|
|
|
|
|
|
|
|
|
return switchingModeFromInline ? null : defaultMotions.other;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/CSSMotion.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/CSSMotion.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: genCSSMotion, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genCSSMotion", function() { return genCSSMotion; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/Dom/findDOMNode */ "./node_modules/rc-util/es/Dom/findDOMNode.js");
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util/motion */ "./node_modules/rc-motion/es/util/motion.js");
|
|
|
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./interface */ "./node_modules/rc-motion/es/interface.js");
|
|
|
/* harmony import */ var _hooks_useStatus__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./hooks/useStatus */ "./node_modules/rc-motion/es/hooks/useStatus.js");
|
|
|
/* harmony import */ var _DomWrapper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DomWrapper */ "./node_modules/rc-motion/es/DomWrapper.js");
|
|
|
/* harmony import */ var _hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./hooks/useStepQueue */ "./node_modules/rc-motion/es/hooks/useStepQueue.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* `transitionSupport` is used for none transition test case.
|
|
|
* Default we use browser transition event support check.
|
|
|
*/
|
|
|
|
|
|
function genCSSMotion(config) {
|
|
|
var transitionSupport = config;
|
|
|
|
|
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(config) === 'object') {
|
|
|
transitionSupport = config.transitionSupport;
|
|
|
}
|
|
|
|
|
|
function isSupportTransition(props) {
|
|
|
return !!(props.motionName && transitionSupport);
|
|
|
}
|
|
|
|
|
|
var CSSMotion = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](function (props, ref) {
|
|
|
var _props$visible = props.visible,
|
|
|
visible = _props$visible === void 0 ? true : _props$visible,
|
|
|
_props$removeOnLeave = props.removeOnLeave,
|
|
|
removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave,
|
|
|
forceRender = props.forceRender,
|
|
|
children = props.children,
|
|
|
motionName = props.motionName,
|
|
|
leavedClassName = props.leavedClassName,
|
|
|
eventProps = props.eventProps;
|
|
|
var supportMotion = isSupportTransition(props); // Ref to the react node, it may be a HTMLElement
|
|
|
|
|
|
var nodeRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(); // Ref to the dom wrapper in case ref can not pass to HTMLElement
|
|
|
|
|
|
var wrapperNodeRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])();
|
|
|
|
|
|
function getDomElement() {
|
|
|
try {
|
|
|
return Object(rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_5__["default"])(nodeRef.current || wrapperNodeRef.current);
|
|
|
} catch (e) {
|
|
|
// Only happen when `motionDeadline` trigger but element removed.
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _useStatus = Object(_hooks_useStatus__WEBPACK_IMPORTED_MODULE_10__["default"])(supportMotion, visible, getDomElement, props),
|
|
|
_useStatus2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useStatus, 4),
|
|
|
status = _useStatus2[0],
|
|
|
statusStep = _useStatus2[1],
|
|
|
statusStyle = _useStatus2[2],
|
|
|
mergedVisible = _useStatus2[3]; // Record whether content has rended
|
|
|
// Will return null for un-rendered even when `removeOnLeave={false}`
|
|
|
|
|
|
|
|
|
var renderedRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](mergedVisible);
|
|
|
|
|
|
if (mergedVisible) {
|
|
|
renderedRef.current = true;
|
|
|
} // ====================== Refs ======================
|
|
|
|
|
|
|
|
|
var originRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(ref);
|
|
|
originRef.current = ref;
|
|
|
var setNodeRef = react__WEBPACK_IMPORTED_MODULE_4__["useCallback"](function (node) {
|
|
|
nodeRef.current = node;
|
|
|
Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__["fillRef"])(originRef.current, node);
|
|
|
}, []); // ===================== Render =====================
|
|
|
|
|
|
var motionChildren;
|
|
|
|
|
|
var mergedProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, eventProps), {}, {
|
|
|
visible: visible
|
|
|
});
|
|
|
|
|
|
if (!children) {
|
|
|
// No children
|
|
|
motionChildren = null;
|
|
|
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_9__["STATUS_NONE"] || !isSupportTransition(props)) {
|
|
|
// Stable children
|
|
|
if (mergedVisible) {
|
|
|
motionChildren = children(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mergedProps), setNodeRef);
|
|
|
} else if (!removeOnLeave && renderedRef.current) {
|
|
|
motionChildren = children(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mergedProps), {}, {
|
|
|
className: leavedClassName
|
|
|
}), setNodeRef);
|
|
|
} else if (forceRender) {
|
|
|
motionChildren = children(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mergedProps), {}, {
|
|
|
style: {
|
|
|
display: 'none'
|
|
|
}
|
|
|
}), setNodeRef);
|
|
|
} else {
|
|
|
motionChildren = null;
|
|
|
}
|
|
|
} else {
|
|
|
var _classNames;
|
|
|
|
|
|
// In motion
|
|
|
var statusSuffix;
|
|
|
|
|
|
if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_9__["STEP_PREPARE"]) {
|
|
|
statusSuffix = 'prepare';
|
|
|
} else if (Object(_hooks_useStepQueue__WEBPACK_IMPORTED_MODULE_12__["isActive"])(statusStep)) {
|
|
|
statusSuffix = 'active';
|
|
|
} else if (statusStep === _interface__WEBPACK_IMPORTED_MODULE_9__["STEP_START"]) {
|
|
|
statusSuffix = 'start';
|
|
|
}
|
|
|
|
|
|
motionChildren = children(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, mergedProps), {}, {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(Object(_util_motion__WEBPACK_IMPORTED_MODULE_8__["getTransitionName"])(motionName, status), (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, Object(_util_motion__WEBPACK_IMPORTED_MODULE_8__["getTransitionName"])(motionName, "".concat(status, "-").concat(statusSuffix)), statusSuffix), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, motionName, typeof motionName === 'string'), _classNames)),
|
|
|
style: statusStyle
|
|
|
}), setNodeRef);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_DomWrapper__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
|
ref: wrapperNodeRef
|
|
|
}, motionChildren);
|
|
|
});
|
|
|
CSSMotion.displayName = 'CSSMotion';
|
|
|
return CSSMotion;
|
|
|
}
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (genCSSMotion(_util_motion__WEBPACK_IMPORTED_MODULE_8__["supportTransition"]));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/CSSMotionList.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/CSSMotionList.js ***!
|
|
|
\****************************************************/
|
|
|
/*! exports provided: genCSSMotionList, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genCSSMotionList", function() { return genCSSMotionList; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/rc-motion/es/CSSMotion.js");
|
|
|
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util/motion */ "./node_modules/rc-motion/es/util/motion.js");
|
|
|
/* harmony import */ var _util_diff__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util/diff */ "./node_modules/rc-motion/es/util/diff.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
|
|
|
/**
|
|
|
* Generate a CSSMotionList component with config
|
|
|
* @param transitionSupport No need since CSSMotionList no longer depends on transition support
|
|
|
* @param CSSMotion CSSMotion component
|
|
|
*/
|
|
|
|
|
|
function genCSSMotionList(transitionSupport) {
|
|
|
var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _CSSMotion__WEBPACK_IMPORTED_MODULE_8__["default"];
|
|
|
|
|
|
var CSSMotionList = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(CSSMotionList, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__["default"])(CSSMotionList);
|
|
|
|
|
|
function CSSMotionList() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, CSSMotionList);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.state = {
|
|
|
keyEntities: []
|
|
|
};
|
|
|
|
|
|
_this.removeKey = function (removeKey) {
|
|
|
_this.setState(function (_ref) {
|
|
|
var keyEntities = _ref.keyEntities;
|
|
|
return {
|
|
|
keyEntities: keyEntities.map(function (entity) {
|
|
|
if (entity.key !== removeKey) return entity;
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, entity), {}, {
|
|
|
status: _util_diff__WEBPACK_IMPORTED_MODULE_10__["STATUS_REMOVED"]
|
|
|
});
|
|
|
})
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(CSSMotionList, [{
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var keyEntities = this.state.keyEntities;
|
|
|
|
|
|
var _this$props = this.props,
|
|
|
component = _this$props.component,
|
|
|
children = _this$props.children,
|
|
|
_onVisibleChanged = _this$props.onVisibleChanged,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_this$props, ["component", "children", "onVisibleChanged"]);
|
|
|
|
|
|
var Component = component || react__WEBPACK_IMPORTED_MODULE_7__["Fragment"];
|
|
|
var motionProps = {};
|
|
|
MOTION_PROP_NAMES.forEach(function (prop) {
|
|
|
motionProps[prop] = restProps[prop];
|
|
|
delete restProps[prop];
|
|
|
});
|
|
|
delete restProps.keys;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](Component, restProps, keyEntities.map(function (_ref2) {
|
|
|
var status = _ref2.status,
|
|
|
eventProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, ["status"]);
|
|
|
|
|
|
var visible = status === _util_diff__WEBPACK_IMPORTED_MODULE_10__["STATUS_ADD"] || status === _util_diff__WEBPACK_IMPORTED_MODULE_10__["STATUS_KEEP"];
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](CSSMotion, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, motionProps, {
|
|
|
key: eventProps.key,
|
|
|
visible: visible,
|
|
|
eventProps: eventProps,
|
|
|
onVisibleChanged: function onVisibleChanged(changedVisible) {
|
|
|
_onVisibleChanged === null || _onVisibleChanged === void 0 ? void 0 : _onVisibleChanged(changedVisible, {
|
|
|
key: eventProps.key
|
|
|
});
|
|
|
|
|
|
if (!changedVisible) {
|
|
|
_this2.removeKey(eventProps.key);
|
|
|
}
|
|
|
}
|
|
|
}), children);
|
|
|
}));
|
|
|
}
|
|
|
}], [{
|
|
|
key: "getDerivedStateFromProps",
|
|
|
value: function getDerivedStateFromProps(_ref3, _ref4) {
|
|
|
var keys = _ref3.keys;
|
|
|
var keyEntities = _ref4.keyEntities;
|
|
|
var parsedKeyObjects = Object(_util_diff__WEBPACK_IMPORTED_MODULE_10__["parseKeys"])(keys);
|
|
|
var mixedKeyEntities = Object(_util_diff__WEBPACK_IMPORTED_MODULE_10__["diffKeys"])(keyEntities, parsedKeyObjects);
|
|
|
return {
|
|
|
keyEntities: mixedKeyEntities.filter(function (entity) {
|
|
|
var prevEntity = keyEntities.find(function (_ref5) {
|
|
|
var key = _ref5.key;
|
|
|
return entity.key === key;
|
|
|
}); // Remove if already mark as removed
|
|
|
|
|
|
if (prevEntity && prevEntity.status === _util_diff__WEBPACK_IMPORTED_MODULE_10__["STATUS_REMOVED"] && entity.status === _util_diff__WEBPACK_IMPORTED_MODULE_10__["STATUS_REMOVE"]) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
})
|
|
|
};
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return CSSMotionList;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
|
|
|
|
|
CSSMotionList.defaultProps = {
|
|
|
component: 'div'
|
|
|
};
|
|
|
return CSSMotionList;
|
|
|
}
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (genCSSMotionList(_util_motion__WEBPACK_IMPORTED_MODULE_9__["supportTransition"]));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/DomWrapper.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/DomWrapper.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DomWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__["default"])(DomWrapper, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__["default"])(DomWrapper);
|
|
|
|
|
|
function DomWrapper() {
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, DomWrapper);
|
|
|
|
|
|
return _super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(DomWrapper, [{
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return this.props.children;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return DomWrapper;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_4__["Component"]);
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (DomWrapper);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useDomMotionEvents.js":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useDomMotionEvents.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/motion */ "./node_modules/rc-motion/es/util/motion.js");
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (callback) {
|
|
|
var cacheElementRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(); // Cache callback
|
|
|
|
|
|
var callbackRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(callback);
|
|
|
callbackRef.current = callback; // Internal motion event handler
|
|
|
|
|
|
var onInternalMotionEnd = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (event) {
|
|
|
callbackRef.current(event);
|
|
|
}, []); // Remove events
|
|
|
|
|
|
function removeMotionEvents(element) {
|
|
|
if (element) {
|
|
|
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__["transitionEndName"], onInternalMotionEnd);
|
|
|
element.removeEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__["animationEndName"], onInternalMotionEnd);
|
|
|
}
|
|
|
} // Patch events
|
|
|
|
|
|
|
|
|
function patchMotionEvents(element) {
|
|
|
if (cacheElementRef.current && cacheElementRef.current !== element) {
|
|
|
removeMotionEvents(cacheElementRef.current);
|
|
|
}
|
|
|
|
|
|
if (element && element !== cacheElementRef.current) {
|
|
|
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__["transitionEndName"], onInternalMotionEnd);
|
|
|
element.addEventListener(_util_motion__WEBPACK_IMPORTED_MODULE_1__["animationEndName"], onInternalMotionEnd); // Save as cache in case dom removed trigger by `motionDeadline`
|
|
|
|
|
|
cacheElementRef.current = element;
|
|
|
}
|
|
|
} // Clean up when removed
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
return function () {
|
|
|
removeMotionEvents(cacheElementRef.current);
|
|
|
};
|
|
|
}, []);
|
|
|
return [patchMotionEvents, removeMotionEvents];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js":
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
|
|
|
|
|
// It's safe to use `useLayoutEffect` but the warning is annoying
|
|
|
|
|
|
var useIsomorphicLayoutEffect = Object(rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])() ? react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useEffect"];
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (useIsomorphicLayoutEffect);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useNextFrame.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useNextFrame.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function () {
|
|
|
var nextFrameRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null);
|
|
|
|
|
|
function cancelNextFrame() {
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(nextFrameRef.current);
|
|
|
}
|
|
|
|
|
|
function nextFrame(callback) {
|
|
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
|
cancelNextFrame();
|
|
|
var nextFrameId = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
|
|
|
if (delay <= 1) {
|
|
|
callback({
|
|
|
isCanceled: function isCanceled() {
|
|
|
return nextFrameId !== nextFrameRef.current;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
nextFrame(callback, delay - 1);
|
|
|
}
|
|
|
});
|
|
|
nextFrameRef.current = nextFrameId;
|
|
|
}
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
return function () {
|
|
|
cancelNextFrame();
|
|
|
};
|
|
|
}, []);
|
|
|
return [nextFrame, cancelNextFrame];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useState.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useState.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useMountStatus; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
function useMountStatus(defaultValue) {
|
|
|
var destroyRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(false);
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])(defaultValue),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useState, 2),
|
|
|
val = _useState2[0],
|
|
|
setVal = _useState2[1];
|
|
|
|
|
|
function setValue(next) {
|
|
|
if (!destroyRef.current) {
|
|
|
setVal(next);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
destroyRef.current = true;
|
|
|
};
|
|
|
}, []);
|
|
|
return [val, setValue];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useStatus.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useStatus.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useStatus; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interface */ "./node_modules/rc-motion/es/interface.js");
|
|
|
/* harmony import */ var _useState__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useState */ "./node_modules/rc-motion/es/hooks/useState.js");
|
|
|
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js");
|
|
|
/* harmony import */ var _useStepQueue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useStepQueue */ "./node_modules/rc-motion/es/hooks/useStepQueue.js");
|
|
|
/* harmony import */ var _useDomMotionEvents__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./useDomMotionEvents */ "./node_modules/rc-motion/es/hooks/useDomMotionEvents.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
var _ref$motionEnter = _ref.motionEnter,
|
|
|
motionEnter = _ref$motionEnter === void 0 ? true : _ref$motionEnter,
|
|
|
_ref$motionAppear = _ref.motionAppear,
|
|
|
motionAppear = _ref$motionAppear === void 0 ? true : _ref$motionAppear,
|
|
|
_ref$motionLeave = _ref.motionLeave,
|
|
|
motionLeave = _ref$motionLeave === void 0 ? true : _ref$motionLeave,
|
|
|
motionDeadline = _ref.motionDeadline,
|
|
|
motionLeaveImmediately = _ref.motionLeaveImmediately,
|
|
|
onAppearPrepare = _ref.onAppearPrepare,
|
|
|
onEnterPrepare = _ref.onEnterPrepare,
|
|
|
onLeavePrepare = _ref.onLeavePrepare,
|
|
|
onAppearStart = _ref.onAppearStart,
|
|
|
onEnterStart = _ref.onEnterStart,
|
|
|
onLeaveStart = _ref.onLeaveStart,
|
|
|
onAppearActive = _ref.onAppearActive,
|
|
|
onEnterActive = _ref.onEnterActive,
|
|
|
onLeaveActive = _ref.onLeaveActive,
|
|
|
onAppearEnd = _ref.onAppearEnd,
|
|
|
onEnterEnd = _ref.onEnterEnd,
|
|
|
onLeaveEnd = _ref.onLeaveEnd,
|
|
|
onVisibleChanged = _ref.onVisibleChanged;
|
|
|
|
|
|
// Used for outer render usage to avoid `visible: false & status: none` to render nothing
|
|
|
var _useState = Object(_useState__WEBPACK_IMPORTED_MODULE_5__["default"])(),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
|
asyncVisible = _useState2[0],
|
|
|
setAsyncVisible = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(_useState__WEBPACK_IMPORTED_MODULE_5__["default"])(_interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_NONE"]),
|
|
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2),
|
|
|
status = _useState4[0],
|
|
|
setStatus = _useState4[1];
|
|
|
|
|
|
var _useState5 = Object(_useState__WEBPACK_IMPORTED_MODULE_5__["default"])(null),
|
|
|
_useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState5, 2),
|
|
|
style = _useState6[0],
|
|
|
setStyle = _useState6[1];
|
|
|
|
|
|
var mountedRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
|
|
|
var deadlineRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
|
|
|
var destroyedRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false); // =========================== Dom Node ===========================
|
|
|
|
|
|
var cacheElementRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
|
|
|
|
|
|
function getDomElement() {
|
|
|
var element = getElement();
|
|
|
return element || cacheElementRef.current;
|
|
|
} // ========================== Motion End ==========================
|
|
|
|
|
|
|
|
|
var activeRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
|
|
|
|
|
|
function onInternalMotionEnd(event) {
|
|
|
var element = getDomElement();
|
|
|
|
|
|
if (event && !event.deadline && event.target !== element) {
|
|
|
// event exists
|
|
|
// not initiated by deadline
|
|
|
// transitionEnd not fired by inner elements
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var canEnd;
|
|
|
|
|
|
if (status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_APPEAR"] && activeRef.current) {
|
|
|
canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element, event);
|
|
|
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_ENTER"] && activeRef.current) {
|
|
|
canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element, event);
|
|
|
} else if (status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_LEAVE"] && activeRef.current) {
|
|
|
canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element, event);
|
|
|
} // Only update status when `canEnd` and not destroyed
|
|
|
|
|
|
|
|
|
if (canEnd !== false && !destroyedRef.current) {
|
|
|
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_NONE"]);
|
|
|
setStyle(null);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _useDomMotionEvents = Object(_useDomMotionEvents__WEBPACK_IMPORTED_MODULE_8__["default"])(onInternalMotionEnd),
|
|
|
_useDomMotionEvents2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useDomMotionEvents, 1),
|
|
|
patchMotionEvents = _useDomMotionEvents2[0]; // ============================= Step =============================
|
|
|
|
|
|
|
|
|
var eventHandlers = react__WEBPACK_IMPORTED_MODULE_3__["useMemo"](function () {
|
|
|
var _ref2, _ref3, _ref4;
|
|
|
|
|
|
switch (status) {
|
|
|
case 'appear':
|
|
|
return _ref2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"], onAppearPrepare), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_START"], onAppearStart), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref2, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_ACTIVE"], onAppearActive), _ref2;
|
|
|
|
|
|
case 'enter':
|
|
|
return _ref3 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref3, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"], onEnterPrepare), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref3, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_START"], onEnterStart), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref3, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_ACTIVE"], onEnterActive), _ref3;
|
|
|
|
|
|
case 'leave':
|
|
|
return _ref4 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref4, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"], onLeavePrepare), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref4, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_START"], onLeaveStart), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref4, _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_ACTIVE"], onLeaveActive), _ref4;
|
|
|
|
|
|
default:
|
|
|
return {};
|
|
|
}
|
|
|
}, [status]);
|
|
|
|
|
|
var _useStepQueue = Object(_useStepQueue__WEBPACK_IMPORTED_MODULE_7__["default"])(status, function (newStep) {
|
|
|
// Only prepare step can be skip
|
|
|
if (newStep === _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"]) {
|
|
|
var onPrepare = eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"]];
|
|
|
|
|
|
if (!onPrepare) {
|
|
|
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__["SkipStep"];
|
|
|
}
|
|
|
|
|
|
return onPrepare(getDomElement());
|
|
|
} // Rest step is sync update
|
|
|
|
|
|
|
|
|
// Rest step is sync update
|
|
|
if (step in eventHandlers) {
|
|
|
var _eventHandlers$step;
|
|
|
|
|
|
setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
|
|
|
}
|
|
|
|
|
|
if (step === _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_ACTIVE"]) {
|
|
|
// Patch events when motion needed
|
|
|
patchMotionEvents(getDomElement());
|
|
|
|
|
|
if (motionDeadline > 0) {
|
|
|
clearTimeout(deadlineRef.current);
|
|
|
deadlineRef.current = setTimeout(function () {
|
|
|
onInternalMotionEnd({
|
|
|
deadline: true
|
|
|
});
|
|
|
}, motionDeadline);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return _useStepQueue__WEBPACK_IMPORTED_MODULE_7__["DoStep"];
|
|
|
}),
|
|
|
_useStepQueue2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useStepQueue, 2),
|
|
|
startStep = _useStepQueue2[0],
|
|
|
step = _useStepQueue2[1];
|
|
|
|
|
|
var active = Object(_useStepQueue__WEBPACK_IMPORTED_MODULE_7__["isActive"])(step);
|
|
|
activeRef.current = active; // ============================ Status ============================
|
|
|
// Update with new status
|
|
|
|
|
|
Object(_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_6__["default"])(function () {
|
|
|
setAsyncVisible(visible);
|
|
|
var isMounted = mountedRef.current;
|
|
|
mountedRef.current = true;
|
|
|
|
|
|
if (!supportMotion) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var nextStatus; // Appear
|
|
|
|
|
|
if (!isMounted && visible && motionAppear) {
|
|
|
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_APPEAR"];
|
|
|
} // Enter
|
|
|
|
|
|
|
|
|
if (isMounted && visible && motionEnter) {
|
|
|
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_ENTER"];
|
|
|
} // Leave
|
|
|
|
|
|
|
|
|
if (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) {
|
|
|
nextStatus = _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_LEAVE"];
|
|
|
} // Update to next status
|
|
|
|
|
|
|
|
|
if (nextStatus) {
|
|
|
setStatus(nextStatus);
|
|
|
startStep();
|
|
|
}
|
|
|
}, [visible]); // ============================ Effect ============================
|
|
|
// Reset when motion changed
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
if ( // Cancel appear
|
|
|
status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_APPEAR"] && !motionAppear || // Cancel enter
|
|
|
status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_ENTER"] && !motionEnter || // Cancel leave
|
|
|
status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_LEAVE"] && !motionLeave) {
|
|
|
setStatus(_interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_NONE"]);
|
|
|
}
|
|
|
}, [motionAppear, motionEnter, motionLeave]);
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
clearTimeout(deadlineRef.current);
|
|
|
destroyedRef.current = true;
|
|
|
};
|
|
|
}, []); // Trigger `onVisibleChanged`
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
if (asyncVisible !== undefined && status === _interface__WEBPACK_IMPORTED_MODULE_4__["STATUS_NONE"]) {
|
|
|
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
|
|
|
}
|
|
|
}, [asyncVisible, status]); // ============================ Styles ============================
|
|
|
|
|
|
var mergedStyle = style;
|
|
|
|
|
|
if (eventHandlers[_interface__WEBPACK_IMPORTED_MODULE_4__["STEP_PREPARE"]] && step === _interface__WEBPACK_IMPORTED_MODULE_4__["STEP_START"]) {
|
|
|
mergedStyle = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
transition: 'none'
|
|
|
}, mergedStyle);
|
|
|
}
|
|
|
|
|
|
return [status, step, mergedStyle, asyncVisible !== null && asyncVisible !== void 0 ? asyncVisible : visible];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/hooks/useStepQueue.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/hooks/useStepQueue.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: SkipStep, DoStep, isActive, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkipStep", function() { return SkipStep; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DoStep", function() { return DoStep; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isActive", function() { return isActive; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../interface */ "./node_modules/rc-motion/es/interface.js");
|
|
|
/* harmony import */ var _useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js");
|
|
|
/* harmony import */ var _useNextFrame__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useNextFrame */ "./node_modules/rc-motion/es/hooks/useNextFrame.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var STEP_QUEUE = [_interface__WEBPACK_IMPORTED_MODULE_2__["STEP_PREPARE"], _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_START"], _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_ACTIVE"], _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_ACTIVATED"]];
|
|
|
/** Skip current step */
|
|
|
|
|
|
var SkipStep = false;
|
|
|
/** Current step should be update in */
|
|
|
|
|
|
var DoStep = true;
|
|
|
function isActive(step) {
|
|
|
return step === _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_ACTIVE"] || step === _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_ACTIVATED"];
|
|
|
}
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (status, callback) {
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](_interface__WEBPACK_IMPORTED_MODULE_2__["STEP_NONE"]),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
step = _React$useState2[0],
|
|
|
setStep = _React$useState2[1];
|
|
|
|
|
|
var _useNextFrame = Object(_useNextFrame__WEBPACK_IMPORTED_MODULE_4__["default"])(),
|
|
|
_useNextFrame2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useNextFrame, 2),
|
|
|
nextFrame = _useNextFrame2[0],
|
|
|
cancelNextFrame = _useNextFrame2[1];
|
|
|
|
|
|
function startQueue() {
|
|
|
setStep(_interface__WEBPACK_IMPORTED_MODULE_2__["STEP_PREPARE"]);
|
|
|
}
|
|
|
|
|
|
Object(_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(function () {
|
|
|
if (step !== _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_NONE"] && step !== _interface__WEBPACK_IMPORTED_MODULE_2__["STEP_ACTIVATED"]) {
|
|
|
var index = STEP_QUEUE.indexOf(step);
|
|
|
var nextStep = STEP_QUEUE[index + 1];
|
|
|
var result = callback(step);
|
|
|
|
|
|
if (result === SkipStep) {
|
|
|
// Skip when no needed
|
|
|
setStep(nextStep);
|
|
|
} else {
|
|
|
// Do as frame for step update
|
|
|
nextFrame(function (info) {
|
|
|
function doNext() {
|
|
|
// Skip since current queue is ood
|
|
|
if (info.isCanceled()) return;
|
|
|
setStep(nextStep);
|
|
|
}
|
|
|
|
|
|
if (result === true) {
|
|
|
doNext();
|
|
|
} else {
|
|
|
// Only promise should be async
|
|
|
Promise.resolve(result).then(doNext);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}, [status, step]);
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () {
|
|
|
return function () {
|
|
|
cancelNextFrame();
|
|
|
};
|
|
|
}, []);
|
|
|
return [startQueue, step];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/index.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: CSSMotionList, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _CSSMotion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CSSMotion */ "./node_modules/rc-motion/es/CSSMotion.js");
|
|
|
/* harmony import */ var _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CSSMotionList */ "./node_modules/rc-motion/es/CSSMotionList.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CSSMotionList", function() { return _CSSMotionList__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_CSSMotion__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/interface.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/interface.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: STATUS_NONE, STATUS_APPEAR, STATUS_ENTER, STATUS_LEAVE, STEP_NONE, STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_NONE", function() { return STATUS_NONE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_APPEAR", function() { return STATUS_APPEAR; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_ENTER", function() { return STATUS_ENTER; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_LEAVE", function() { return STATUS_LEAVE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STEP_NONE", function() { return STEP_NONE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STEP_PREPARE", function() { return STEP_PREPARE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STEP_START", function() { return STEP_START; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STEP_ACTIVE", function() { return STEP_ACTIVE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STEP_ACTIVATED", function() { return STEP_ACTIVATED; });
|
|
|
var STATUS_NONE = 'none';
|
|
|
var STATUS_APPEAR = 'appear';
|
|
|
var STATUS_ENTER = 'enter';
|
|
|
var STATUS_LEAVE = 'leave';
|
|
|
var STEP_NONE = 'none';
|
|
|
var STEP_PREPARE = 'prepare';
|
|
|
var STEP_START = 'start';
|
|
|
var STEP_ACTIVE = 'active';
|
|
|
var STEP_ACTIVATED = 'end';
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/util/diff.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/util/diff.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: STATUS_ADD, STATUS_KEEP, STATUS_REMOVE, STATUS_REMOVED, wrapKeyToObject, parseKeys, diffKeys */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_ADD", function() { return STATUS_ADD; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_KEEP", function() { return STATUS_KEEP; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_REMOVE", function() { return STATUS_REMOVE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STATUS_REMOVED", function() { return STATUS_REMOVED; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapKeyToObject", function() { return wrapKeyToObject; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseKeys", function() { return parseKeys; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "diffKeys", function() { return diffKeys; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
|
|
|
|
|
|
var STATUS_ADD = 'add';
|
|
|
var STATUS_KEEP = 'keep';
|
|
|
var STATUS_REMOVE = 'remove';
|
|
|
var STATUS_REMOVED = 'removed';
|
|
|
function wrapKeyToObject(key) {
|
|
|
var keyObj;
|
|
|
|
|
|
if (key && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(key) === 'object' && 'key' in key) {
|
|
|
keyObj = key;
|
|
|
} else {
|
|
|
keyObj = {
|
|
|
key: key
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, keyObj), {}, {
|
|
|
key: String(keyObj.key)
|
|
|
});
|
|
|
}
|
|
|
function parseKeys() {
|
|
|
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
return keys.map(wrapKeyToObject);
|
|
|
}
|
|
|
function diffKeys() {
|
|
|
var prevKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
var currentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
|
var list = [];
|
|
|
var currentIndex = 0;
|
|
|
var currentLen = currentKeys.length;
|
|
|
var prevKeyObjects = parseKeys(prevKeys);
|
|
|
var currentKeyObjects = parseKeys(currentKeys); // Check prev keys to insert or keep
|
|
|
|
|
|
prevKeyObjects.forEach(function (keyObj) {
|
|
|
var hit = false;
|
|
|
|
|
|
for (var i = currentIndex; i < currentLen; i += 1) {
|
|
|
var currentKeyObj = currentKeyObjects[i];
|
|
|
|
|
|
if (currentKeyObj.key === keyObj.key) {
|
|
|
// New added keys should add before current key
|
|
|
if (currentIndex < i) {
|
|
|
list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, obj), {}, {
|
|
|
status: STATUS_ADD
|
|
|
});
|
|
|
}));
|
|
|
currentIndex = i;
|
|
|
}
|
|
|
|
|
|
list.push(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, currentKeyObj), {}, {
|
|
|
status: STATUS_KEEP
|
|
|
}));
|
|
|
currentIndex += 1;
|
|
|
hit = true;
|
|
|
break;
|
|
|
}
|
|
|
} // If not hit, it means key is removed
|
|
|
|
|
|
|
|
|
if (!hit) {
|
|
|
list.push(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, keyObj), {}, {
|
|
|
status: STATUS_REMOVE
|
|
|
}));
|
|
|
}
|
|
|
}); // Add rest to the list
|
|
|
|
|
|
if (currentIndex < currentLen) {
|
|
|
list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, obj), {}, {
|
|
|
status: STATUS_ADD
|
|
|
});
|
|
|
}));
|
|
|
}
|
|
|
/**
|
|
|
* Merge same key when it remove and add again:
|
|
|
* [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
|
|
|
*/
|
|
|
|
|
|
|
|
|
var keys = {};
|
|
|
list.forEach(function (_ref) {
|
|
|
var key = _ref.key;
|
|
|
keys[key] = (keys[key] || 0) + 1;
|
|
|
});
|
|
|
var duplicatedKeys = Object.keys(keys).filter(function (key) {
|
|
|
return keys[key] > 1;
|
|
|
});
|
|
|
duplicatedKeys.forEach(function (matchKey) {
|
|
|
// Remove `STATUS_REMOVE` node.
|
|
|
list = list.filter(function (_ref2) {
|
|
|
var key = _ref2.key,
|
|
|
status = _ref2.status;
|
|
|
return key !== matchKey || status !== STATUS_REMOVE;
|
|
|
}); // Update `STATUS_ADD` to `STATUS_KEEP`
|
|
|
|
|
|
list.forEach(function (node) {
|
|
|
if (node.key === matchKey) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
node.status = STATUS_KEEP;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-motion/es/util/motion.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-motion/es/util/motion.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: getVendorPrefixes, getVendorPrefixedEventName, supportTransition, animationEndName, transitionEndName, getTransitionName */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVendorPrefixes", function() { return getVendorPrefixes; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getVendorPrefixedEventName", function() { return getVendorPrefixedEventName; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportTransition", function() { return supportTransition; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationEndName", function() { return animationEndName; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionEndName", function() { return transitionEndName; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransitionName", function() { return getTransitionName; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
|
|
|
|
|
// ================= Transition =================
|
|
|
// Event wrapper. Copy from react source code
|
|
|
|
|
|
function makePrefixMap(styleProp, eventName) {
|
|
|
var prefixes = {};
|
|
|
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
|
|
prefixes["Webkit".concat(styleProp)] = "webkit".concat(eventName);
|
|
|
prefixes["Moz".concat(styleProp)] = "moz".concat(eventName);
|
|
|
prefixes["ms".concat(styleProp)] = "MS".concat(eventName);
|
|
|
prefixes["O".concat(styleProp)] = "o".concat(eventName.toLowerCase());
|
|
|
return prefixes;
|
|
|
}
|
|
|
|
|
|
function getVendorPrefixes(domSupport, win) {
|
|
|
var prefixes = {
|
|
|
animationend: makePrefixMap('Animation', 'AnimationEnd'),
|
|
|
transitionend: makePrefixMap('Transition', 'TransitionEnd')
|
|
|
};
|
|
|
|
|
|
if (domSupport) {
|
|
|
if (!('AnimationEvent' in win)) {
|
|
|
delete prefixes.animationend.animation;
|
|
|
}
|
|
|
|
|
|
if (!('TransitionEvent' in win)) {
|
|
|
delete prefixes.transitionend.transition;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return prefixes;
|
|
|
}
|
|
|
var vendorPrefixes = getVendorPrefixes(Object(rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])(), typeof window !== 'undefined' ? window : {});
|
|
|
var style = {};
|
|
|
|
|
|
if (Object(rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__["default"])()) {
|
|
|
var _document$createEleme = document.createElement('div');
|
|
|
|
|
|
style = _document$createEleme.style;
|
|
|
}
|
|
|
|
|
|
var prefixedEventNames = {};
|
|
|
function getVendorPrefixedEventName(eventName) {
|
|
|
if (prefixedEventNames[eventName]) {
|
|
|
return prefixedEventNames[eventName];
|
|
|
}
|
|
|
|
|
|
var prefixMap = vendorPrefixes[eventName];
|
|
|
|
|
|
if (prefixMap) {
|
|
|
var stylePropList = Object.keys(prefixMap);
|
|
|
var len = stylePropList.length;
|
|
|
|
|
|
for (var i = 0; i < len; i += 1) {
|
|
|
var styleProp = stylePropList[i];
|
|
|
|
|
|
if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {
|
|
|
prefixedEventNames[eventName] = prefixMap[styleProp];
|
|
|
return prefixedEventNames[eventName];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
var internalAnimationEndName = getVendorPrefixedEventName('animationend');
|
|
|
var internalTransitionEndName = getVendorPrefixedEventName('transitionend');
|
|
|
var supportTransition = !!(internalAnimationEndName && internalTransitionEndName);
|
|
|
var animationEndName = internalAnimationEndName || 'animationend';
|
|
|
var transitionEndName = internalTransitionEndName || 'transitionend';
|
|
|
function getTransitionName(transitionName, transitionType) {
|
|
|
if (!transitionName) return null;
|
|
|
|
|
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(transitionName) === 'object') {
|
|
|
var type = transitionType.replace(/-\w/g, function (match) {
|
|
|
return match[1].toUpperCase();
|
|
|
});
|
|
|
return transitionName[type];
|
|
|
}
|
|
|
|
|
|
return "".concat(transitionName, "-").concat(transitionType);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/es/Notice.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/es/Notice.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Notice; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__["default"])(Notice, _Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_5__["default"])(Notice);
|
|
|
|
|
|
function Notice() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Notice);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.closeTimer = null;
|
|
|
|
|
|
_this.close = function (e) {
|
|
|
if (e) {
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
|
|
|
_this.clearCloseTimer();
|
|
|
|
|
|
var _this$props = _this.props,
|
|
|
onClose = _this$props.onClose,
|
|
|
noticeKey = _this$props.noticeKey;
|
|
|
|
|
|
if (onClose) {
|
|
|
onClose(noticeKey);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.startCloseTimer = function () {
|
|
|
if (_this.props.duration) {
|
|
|
_this.closeTimer = window.setTimeout(function () {
|
|
|
_this.close();
|
|
|
}, _this.props.duration * 1000);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.clearCloseTimer = function () {
|
|
|
if (_this.closeTimer) {
|
|
|
clearTimeout(_this.closeTimer);
|
|
|
_this.closeTimer = null;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(Notice, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.startCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
if (this.props.duration !== prevProps.duration || this.props.updateMark !== prevProps.updateMark) {
|
|
|
this.restartCloseTimer();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.clearCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "restartCloseTimer",
|
|
|
value: function restartCloseTimer() {
|
|
|
this.clearCloseTimer();
|
|
|
this.startCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var _this$props2 = this.props,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
className = _this$props2.className,
|
|
|
closable = _this$props2.closable,
|
|
|
closeIcon = _this$props2.closeIcon,
|
|
|
style = _this$props2.style,
|
|
|
onClick = _this$props2.onClick,
|
|
|
children = _this$props2.children,
|
|
|
holder = _this$props2.holder;
|
|
|
var componentClass = "".concat(prefixCls, "-notice");
|
|
|
var dataOrAriaAttributeProps = Object.keys(this.props).reduce(function (acc, key) {
|
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
|
|
|
acc[key] = _this2.props[key];
|
|
|
}
|
|
|
|
|
|
return acc;
|
|
|
}, {});
|
|
|
var node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(componentClass, className, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(componentClass, "-closable"), closable)),
|
|
|
style: style,
|
|
|
onMouseEnter: this.clearCloseTimer,
|
|
|
onMouseLeave: this.startCloseTimer,
|
|
|
onClick: onClick
|
|
|
}, dataOrAriaAttributeProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
|
className: "".concat(componentClass, "-content")
|
|
|
}, children), closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("a", {
|
|
|
tabIndex: 0,
|
|
|
onClick: this.close,
|
|
|
className: "".concat(componentClass, "-close")
|
|
|
}, closeIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
|
|
|
className: "".concat(componentClass, "-close-x")
|
|
|
})) : null);
|
|
|
|
|
|
if (holder) {
|
|
|
return /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_7___default.a.createPortal(node, holder);
|
|
|
}
|
|
|
|
|
|
return node;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Notice;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_6__["Component"]);
|
|
|
|
|
|
|
|
|
Notice.defaultProps = {
|
|
|
onClose: function onClose() {},
|
|
|
duration: 1.5
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/es/Notification.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/es/Notification.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
|
|
/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Notice */ "./node_modules/rc-notification/es/Notice.js");
|
|
|
/* harmony import */ var _useNotification__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./useNotification */ "./node_modules/rc-notification/es/useNotification.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var seed = 0;
|
|
|
var now = Date.now();
|
|
|
|
|
|
function getUuid() {
|
|
|
var id = seed;
|
|
|
seed += 1;
|
|
|
return "rcNotification_".concat(now, "_").concat(id);
|
|
|
}
|
|
|
|
|
|
var Notification = /*#__PURE__*/function (_Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(Notification, _Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__["default"])(Notification);
|
|
|
|
|
|
function Notification() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Notification);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.state = {
|
|
|
notices: []
|
|
|
};
|
|
|
_this.hookRefs = new Map();
|
|
|
|
|
|
_this.add = function (originNotice, holderCallback) {
|
|
|
var key = originNotice.key || getUuid();
|
|
|
|
|
|
var notice = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, originNotice), {}, {
|
|
|
key: key
|
|
|
});
|
|
|
|
|
|
var maxCount = _this.props.maxCount;
|
|
|
|
|
|
_this.setState(function (previousState) {
|
|
|
var notices = previousState.notices;
|
|
|
var noticeIndex = notices.map(function (v) {
|
|
|
return v.notice.key;
|
|
|
}).indexOf(key);
|
|
|
var updatedNotices = notices.concat();
|
|
|
|
|
|
if (noticeIndex !== -1) {
|
|
|
updatedNotices.splice(noticeIndex, 1, {
|
|
|
notice: notice,
|
|
|
holderCallback: holderCallback
|
|
|
});
|
|
|
} else {
|
|
|
if (maxCount && notices.length >= maxCount) {
|
|
|
// XXX, use key of first item to update new added (let React to move exsiting
|
|
|
// instead of remove and mount). Same key was used before for both a) external
|
|
|
// manual control and b) internal react 'key' prop , which is not that good.
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
// zombieJ: Not know why use `updateKey`. This makes Notice infinite loop in jest.
|
|
|
// Change to `updateMark` for compare instead.
|
|
|
// https://github.com/react-component/notification/commit/32299e6be396f94040bfa82517eea940db947ece
|
|
|
notice.key = updatedNotices[0].notice.key;
|
|
|
notice.updateMark = getUuid(); // zombieJ: That's why. User may close by key directly.
|
|
|
// We need record this but not re-render to avoid upper issue
|
|
|
// https://github.com/react-component/notification/issues/129
|
|
|
|
|
|
notice.userPassKey = key;
|
|
|
updatedNotices.shift();
|
|
|
}
|
|
|
|
|
|
updatedNotices.push({
|
|
|
notice: notice,
|
|
|
holderCallback: holderCallback
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
notices: updatedNotices
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.remove = function (removeKey) {
|
|
|
_this.setState(function (_ref) {
|
|
|
var notices = _ref.notices;
|
|
|
return {
|
|
|
notices: notices.filter(function (_ref2) {
|
|
|
var _ref2$notice = _ref2.notice,
|
|
|
key = _ref2$notice.key,
|
|
|
userPassKey = _ref2$notice.userPassKey;
|
|
|
var mergedKey = userPassKey || key;
|
|
|
return mergedKey !== removeKey;
|
|
|
})
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.noticePropsMap = {};
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(Notification, [{
|
|
|
key: "getTransitionName",
|
|
|
value: function getTransitionName() {
|
|
|
var _this$props = this.props,
|
|
|
prefixCls = _this$props.prefixCls,
|
|
|
animation = _this$props.animation;
|
|
|
var transitionName = this.props.transitionName;
|
|
|
|
|
|
if (!transitionName && animation) {
|
|
|
transitionName = "".concat(prefixCls, "-").concat(animation);
|
|
|
}
|
|
|
|
|
|
return transitionName;
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var notices = this.state.notices;
|
|
|
var _this$props2 = this.props,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
className = _this$props2.className,
|
|
|
closeIcon = _this$props2.closeIcon,
|
|
|
style = _this$props2.style;
|
|
|
var noticeKeys = [];
|
|
|
notices.forEach(function (_ref3, index) {
|
|
|
var notice = _ref3.notice,
|
|
|
holderCallback = _ref3.holderCallback;
|
|
|
var updateMark = index === notices.length - 1 ? notice.updateMark : undefined;
|
|
|
var key = notice.key,
|
|
|
userPassKey = notice.userPassKey;
|
|
|
|
|
|
var noticeProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
prefixCls: prefixCls,
|
|
|
closeIcon: closeIcon
|
|
|
}, notice), notice.props), {}, {
|
|
|
key: key,
|
|
|
noticeKey: userPassKey || key,
|
|
|
updateMark: updateMark,
|
|
|
onClose: function onClose(noticeKey) {
|
|
|
var _notice$onClose;
|
|
|
|
|
|
_this2.remove(noticeKey);
|
|
|
|
|
|
(_notice$onClose = notice.onClose) === null || _notice$onClose === void 0 ? void 0 : _notice$onClose.call(notice);
|
|
|
},
|
|
|
onClick: notice.onClick,
|
|
|
children: notice.content
|
|
|
}); // Give to motion
|
|
|
|
|
|
|
|
|
noticeKeys.push(key);
|
|
|
_this2.noticePropsMap[key] = {
|
|
|
props: noticeProps,
|
|
|
holderCallback: holderCallback
|
|
|
};
|
|
|
});
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"]("div", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(prefixCls, className),
|
|
|
style: style
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_10__["CSSMotionList"], {
|
|
|
keys: noticeKeys,
|
|
|
motionName: this.getTransitionName(),
|
|
|
onVisibleChanged: function onVisibleChanged(changedVisible, _ref4) {
|
|
|
var key = _ref4.key;
|
|
|
|
|
|
if (!changedVisible) {
|
|
|
delete _this2.noticePropsMap[key];
|
|
|
}
|
|
|
}
|
|
|
}, function (_ref5) {
|
|
|
var key = _ref5.key,
|
|
|
motionClassName = _ref5.className,
|
|
|
motionStyle = _ref5.style;
|
|
|
var _this2$noticePropsMap = _this2.noticePropsMap[key],
|
|
|
noticeProps = _this2$noticePropsMap.props,
|
|
|
holderCallback = _this2$noticePropsMap.holderCallback;
|
|
|
|
|
|
if (holderCallback) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"]("div", {
|
|
|
key: key,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, motionStyle),
|
|
|
ref: function ref(div) {
|
|
|
if (typeof key === 'undefined') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (div) {
|
|
|
_this2.hookRefs.set(key, div);
|
|
|
|
|
|
holderCallback(div, noticeProps);
|
|
|
} else {
|
|
|
_this2.hookRefs.delete(key);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_Notice__WEBPACK_IMPORTED_MODULE_11__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, noticeProps, {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style)
|
|
|
}));
|
|
|
}));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Notification;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
|
|
|
|
|
Notification.defaultProps = {
|
|
|
prefixCls: 'rc-notification',
|
|
|
animation: 'fade',
|
|
|
style: {
|
|
|
top: 65,
|
|
|
left: '50%'
|
|
|
}
|
|
|
};
|
|
|
|
|
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
|
var _ref6 = properties || {},
|
|
|
getContainer = _ref6.getContainer,
|
|
|
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref6, ["getContainer"]);
|
|
|
|
|
|
var div = document.createElement('div');
|
|
|
|
|
|
if (getContainer) {
|
|
|
var root = getContainer();
|
|
|
root.appendChild(div);
|
|
|
} else {
|
|
|
document.body.appendChild(div);
|
|
|
}
|
|
|
|
|
|
var called = false;
|
|
|
|
|
|
function ref(notification) {
|
|
|
if (called) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
called = true;
|
|
|
callback({
|
|
|
notice: function notice(noticeProps) {
|
|
|
notification.add(noticeProps);
|
|
|
},
|
|
|
removeNotice: function removeNotice(key) {
|
|
|
notification.remove(key);
|
|
|
},
|
|
|
component: notification,
|
|
|
destroy: function destroy() {
|
|
|
react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.unmountComponentAtNode(div);
|
|
|
|
|
|
if (div.parentNode) {
|
|
|
div.parentNode.removeChild(div);
|
|
|
}
|
|
|
},
|
|
|
// Hooks
|
|
|
useNotification: function useNotification() {
|
|
|
return Object(_useNotification__WEBPACK_IMPORTED_MODULE_12__["default"])(notification);
|
|
|
}
|
|
|
});
|
|
|
} // Only used for test case usage
|
|
|
|
|
|
|
|
|
if (false) {}
|
|
|
|
|
|
react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](Notification, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
|
|
|
ref: ref
|
|
|
})), div);
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Notification);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/es/index.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/es/index.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./node_modules/rc-notification/es/Notification.js");
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Notification__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/es/useNotification.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/es/useNotification.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useNotification; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Notice */ "./node_modules/rc-notification/es/Notice.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function useNotification(notificationInstance) {
|
|
|
var createdRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"]({});
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"]([]),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState, 2),
|
|
|
elements = _React$useState2[0],
|
|
|
setElements = _React$useState2[1];
|
|
|
|
|
|
function notify(noticeProps) {
|
|
|
var firstMount = true;
|
|
|
notificationInstance.add(noticeProps, function (div, props) {
|
|
|
var key = props.key;
|
|
|
|
|
|
if (div && (!createdRef.current[key] || firstMount)) {
|
|
|
var noticeEle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Notice__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
|
|
|
holder: div
|
|
|
}));
|
|
|
createdRef.current[key] = noticeEle;
|
|
|
setElements(function (originElements) {
|
|
|
var index = originElements.findIndex(function (ele) {
|
|
|
return ele.key === props.key;
|
|
|
});
|
|
|
|
|
|
if (index === -1) {
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(originElements), [noticeEle]);
|
|
|
}
|
|
|
|
|
|
var cloneList = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(originElements);
|
|
|
|
|
|
cloneList[index] = noticeEle;
|
|
|
return cloneList;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
firstMount = false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return [notify, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, elements)];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/lib/Notice.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/lib/Notice.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var Notice = /*#__PURE__*/function (_Component) {
|
|
|
(0, _inherits2.default)(Notice, _Component);
|
|
|
|
|
|
var _super = (0, _createSuper2.default)(Notice);
|
|
|
|
|
|
function Notice() {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2.default)(this, Notice);
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.closeTimer = null;
|
|
|
|
|
|
_this.close = function (e) {
|
|
|
if (e) {
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
|
|
|
_this.clearCloseTimer();
|
|
|
|
|
|
var _this$props = _this.props,
|
|
|
onClose = _this$props.onClose,
|
|
|
noticeKey = _this$props.noticeKey;
|
|
|
|
|
|
if (onClose) {
|
|
|
onClose(noticeKey);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.startCloseTimer = function () {
|
|
|
if (_this.props.duration) {
|
|
|
_this.closeTimer = window.setTimeout(function () {
|
|
|
_this.close();
|
|
|
}, _this.props.duration * 1000);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.clearCloseTimer = function () {
|
|
|
if (_this.closeTimer) {
|
|
|
clearTimeout(_this.closeTimer);
|
|
|
_this.closeTimer = null;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
(0, _createClass2.default)(Notice, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.startCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
if (this.props.duration !== prevProps.duration || this.props.updateMark !== prevProps.updateMark) {
|
|
|
this.restartCloseTimer();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.clearCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "restartCloseTimer",
|
|
|
value: function restartCloseTimer() {
|
|
|
this.clearCloseTimer();
|
|
|
this.startCloseTimer();
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var _this$props2 = this.props,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
className = _this$props2.className,
|
|
|
closable = _this$props2.closable,
|
|
|
closeIcon = _this$props2.closeIcon,
|
|
|
style = _this$props2.style,
|
|
|
onClick = _this$props2.onClick,
|
|
|
children = _this$props2.children,
|
|
|
holder = _this$props2.holder;
|
|
|
var componentClass = "".concat(prefixCls, "-notice");
|
|
|
var dataOrAriaAttributeProps = Object.keys(this.props).reduce(function (acc, key) {
|
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
|
|
|
acc[key] = _this2.props[key];
|
|
|
}
|
|
|
|
|
|
return acc;
|
|
|
}, {});
|
|
|
var node = /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
|
className: (0, _classnames.default)(componentClass, className, (0, _defineProperty2.default)({}, "".concat(componentClass, "-closable"), closable)),
|
|
|
style: style,
|
|
|
onMouseEnter: this.clearCloseTimer,
|
|
|
onMouseLeave: this.startCloseTimer,
|
|
|
onClick: onClick
|
|
|
}, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(componentClass, "-content")
|
|
|
}, children), closable ? /*#__PURE__*/React.createElement("a", {
|
|
|
tabIndex: 0,
|
|
|
onClick: this.close,
|
|
|
className: "".concat(componentClass, "-close")
|
|
|
}, closeIcon || /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(componentClass, "-close-x")
|
|
|
})) : null);
|
|
|
|
|
|
if (holder) {
|
|
|
return /*#__PURE__*/_reactDom.default.createPortal(node, holder);
|
|
|
}
|
|
|
|
|
|
return node;
|
|
|
}
|
|
|
}]);
|
|
|
return Notice;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports.default = Notice;
|
|
|
Notice.defaultProps = {
|
|
|
onClose: function onClose() {},
|
|
|
duration: 1.5
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-notification/lib/useNotification.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-notification/lib/useNotification.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = useNotification;
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _Notice = _interopRequireDefault(__webpack_require__(/*! ./Notice */ "./node_modules/rc-notification/lib/Notice.js"));
|
|
|
|
|
|
function useNotification(notificationInstance) {
|
|
|
var createdRef = React.useRef({});
|
|
|
|
|
|
var _React$useState = React.useState([]),
|
|
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
|
elements = _React$useState2[0],
|
|
|
setElements = _React$useState2[1];
|
|
|
|
|
|
function notify(noticeProps) {
|
|
|
var firstMount = true;
|
|
|
notificationInstance.add(noticeProps, function (div, props) {
|
|
|
var key = props.key;
|
|
|
|
|
|
if (div && (!createdRef.current[key] || firstMount)) {
|
|
|
var noticeEle = /*#__PURE__*/React.createElement(_Notice.default, (0, _extends2.default)({}, props, {
|
|
|
holder: div
|
|
|
}));
|
|
|
createdRef.current[key] = noticeEle;
|
|
|
setElements(function (originElements) {
|
|
|
var index = originElements.findIndex(function (ele) {
|
|
|
return ele.key === props.key;
|
|
|
});
|
|
|
|
|
|
if (index === -1) {
|
|
|
return [].concat((0, _toConsumableArray2.default)(originElements), [noticeEle]);
|
|
|
}
|
|
|
|
|
|
var cloneList = (0, _toConsumableArray2.default)(originElements);
|
|
|
cloneList[index] = noticeEle;
|
|
|
return cloneList;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
firstMount = false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return [notify, /*#__PURE__*/React.createElement(React.Fragment, null, elements)];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-overflow/es/Item.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-overflow/es/Item.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Item; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Item(props) {
|
|
|
var prefixCls = props.prefixCls,
|
|
|
item = props.item,
|
|
|
renderItem = props.renderItem,
|
|
|
responsive = props.responsive,
|
|
|
registerSize = props.registerSize,
|
|
|
itemKey = props.itemKey,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
children = props.children,
|
|
|
display = props.display,
|
|
|
order = props.order,
|
|
|
Component = props.component,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["prefixCls", "item", "renderItem", "responsive", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"]);
|
|
|
|
|
|
var mergedHidden = responsive && !display; // ================================ Effect ================================
|
|
|
|
|
|
function internalRegisterSize(width) {
|
|
|
registerSize(itemKey, width);
|
|
|
}
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
return function () {
|
|
|
internalRegisterSize(null);
|
|
|
};
|
|
|
}, []); // ================================ Render ================================
|
|
|
|
|
|
var childNode = item !== undefined ? renderItem(item) : children;
|
|
|
var itemNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, className),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
opacity: mergedHidden ? 0.2 : 1,
|
|
|
height: mergedHidden ? 0 : undefined,
|
|
|
overflowY: mergedHidden ? 'hidden' : undefined,
|
|
|
order: responsive ? order : undefined,
|
|
|
pointerEvents: mergedHidden ? 'none' : undefined
|
|
|
}, style)
|
|
|
}, restProps), childNode);
|
|
|
|
|
|
if (responsive) {
|
|
|
itemNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
onResize: function onResize(_ref) {
|
|
|
var offsetWidth = _ref.offsetWidth;
|
|
|
internalRegisterSize(offsetWidth);
|
|
|
}
|
|
|
}, itemNode);
|
|
|
}
|
|
|
|
|
|
return itemNode;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-overflow/es/Overflow.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-overflow/es/Overflow.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
|
|
|
/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Item */ "./node_modules/rc-overflow/es/Item.js");
|
|
|
/* harmony import */ var _hooks_useBatchFrameState__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hooks/useBatchFrameState */ "./node_modules/rc-overflow/es/hooks/useBatchFrameState.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var RESPONSIVE = 'responsive';
|
|
|
|
|
|
function defaultRenderRest(omittedItems) {
|
|
|
return "+ ".concat(omittedItems.length, " ...");
|
|
|
}
|
|
|
|
|
|
function Overflow(props, ref) {
|
|
|
var _props$prefixCls = props.prefixCls,
|
|
|
prefixCls = _props$prefixCls === void 0 ? 'rc-overflow' : _props$prefixCls,
|
|
|
_props$data = props.data,
|
|
|
data = _props$data === void 0 ? [] : _props$data,
|
|
|
renderItem = props.renderItem,
|
|
|
itemKey = props.itemKey,
|
|
|
_props$itemWidth = props.itemWidth,
|
|
|
itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth,
|
|
|
style = props.style,
|
|
|
className = props.className,
|
|
|
maxCount = props.maxCount,
|
|
|
_props$renderRest = props.renderRest,
|
|
|
renderRest = _props$renderRest === void 0 ? defaultRenderRest : _props$renderRest,
|
|
|
renderItemProps = props.renderItemProps,
|
|
|
suffix = props.suffix,
|
|
|
_props$component = props.component,
|
|
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
|
_props$itemComponent = props.itemComponent,
|
|
|
itemComponent = _props$itemComponent === void 0 ? 'div' : _props$itemComponent,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ["prefixCls", "data", "renderItem", "itemKey", "itemWidth", "style", "className", "maxCount", "renderRest", "renderItemProps", "suffix", "component", "itemComponent"]);
|
|
|
|
|
|
var createUseState = Object(_hooks_useBatchFrameState__WEBPACK_IMPORTED_MODULE_7__["useBatchFrameState"])();
|
|
|
|
|
|
var _createUseState = createUseState(0),
|
|
|
_createUseState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_createUseState, 2),
|
|
|
containerWidth = _createUseState2[0],
|
|
|
setContainerWidth = _createUseState2[1];
|
|
|
|
|
|
var _createUseState3 = createUseState(new Map()),
|
|
|
_createUseState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_createUseState3, 2),
|
|
|
itemWidths = _createUseState4[0],
|
|
|
setItemWidths = _createUseState4[1];
|
|
|
|
|
|
var _createUseState5 = createUseState(0),
|
|
|
_createUseState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_createUseState5, 2),
|
|
|
prevRestWidth = _createUseState6[0],
|
|
|
setPrevRestWidth = _createUseState6[1];
|
|
|
|
|
|
var _createUseState7 = createUseState(0),
|
|
|
_createUseState8 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_createUseState7, 2),
|
|
|
restWidth = _createUseState8[0],
|
|
|
setRestWidth = _createUseState8[1];
|
|
|
|
|
|
var _createUseState9 = createUseState(0),
|
|
|
_createUseState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_createUseState9, 2),
|
|
|
suffixWidth = _createUseState10[0],
|
|
|
setSuffixWidth = _createUseState10[1];
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(null),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState, 2),
|
|
|
suffixFixedStart = _useState2[0],
|
|
|
setSuffixFixedStart = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(0),
|
|
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState3, 2),
|
|
|
displayCount = _useState4[0],
|
|
|
setDisplayCount = _useState4[1];
|
|
|
|
|
|
var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
|
|
|
_useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState5, 2),
|
|
|
restReady = _useState6[0],
|
|
|
setRestReady = _useState6[1];
|
|
|
|
|
|
var itemPrefixCls = "".concat(prefixCls, "-item"); // Always use the max width to avoid blink
|
|
|
|
|
|
var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
|
|
|
|
|
|
var isResponsive = data.length && maxCount === RESPONSIVE;
|
|
|
/**
|
|
|
* When is `responsive`, we will always render rest node to get the real width of it for calculation
|
|
|
*/
|
|
|
|
|
|
var showRest = isResponsive || typeof maxCount === 'number' && data.length > maxCount;
|
|
|
var mergedData = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
|
|
|
var items = data;
|
|
|
|
|
|
if (isResponsive) {
|
|
|
items = data.slice(0, Math.min(data.length, containerWidth / itemWidth));
|
|
|
} else if (typeof maxCount === 'number') {
|
|
|
items = data.slice(0, maxCount);
|
|
|
}
|
|
|
|
|
|
return items;
|
|
|
}, [data, itemWidth, containerWidth, maxCount, isResponsive]);
|
|
|
var omittedItems = Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
|
|
|
if (isResponsive) {
|
|
|
return data.slice(displayCount + 1);
|
|
|
}
|
|
|
|
|
|
return data.slice(mergedData.length);
|
|
|
}, [data, mergedData, isResponsive, displayCount]); // ================================= Item =================================
|
|
|
|
|
|
var getKey = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (item, index) {
|
|
|
var _ref;
|
|
|
|
|
|
if (typeof itemKey === 'function') {
|
|
|
return itemKey(item);
|
|
|
}
|
|
|
|
|
|
return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
|
|
|
}, [itemKey]);
|
|
|
var mergedRenderItem = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(renderItem || function (item) {
|
|
|
return item;
|
|
|
}, [renderItem]);
|
|
|
|
|
|
function updateDisplayCount(count, notReady) {
|
|
|
setDisplayCount(count);
|
|
|
|
|
|
if (!notReady) {
|
|
|
setRestReady(count < data.length - 1);
|
|
|
}
|
|
|
} // ================================= Size =================================
|
|
|
|
|
|
|
|
|
function onOverflowResize(_, element) {
|
|
|
setContainerWidth(element.clientWidth);
|
|
|
}
|
|
|
|
|
|
function registerSize(key, width) {
|
|
|
setItemWidths(function (origin) {
|
|
|
var clone = new Map(origin);
|
|
|
|
|
|
if (width === null) {
|
|
|
clone.delete(key);
|
|
|
} else {
|
|
|
clone.set(key, width);
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function registerOverflowSize(_, width) {
|
|
|
setRestWidth(width);
|
|
|
setPrevRestWidth(restWidth);
|
|
|
}
|
|
|
|
|
|
function registerSuffixSize(_, width) {
|
|
|
setSuffixWidth(width);
|
|
|
} // ================================ Effect ================================
|
|
|
|
|
|
|
|
|
function getItemWidth(index) {
|
|
|
return itemWidths.get(getKey(mergedData[index], index));
|
|
|
}
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useLayoutEffect"](function () {
|
|
|
if (containerWidth && mergedRestWidth && mergedData) {
|
|
|
var totalWidth = suffixWidth;
|
|
|
var len = mergedData.length;
|
|
|
var lastIndex = len - 1; // When data count change to 0, reset this since not loop will reach
|
|
|
|
|
|
if (!len) {
|
|
|
updateDisplayCount(0);
|
|
|
setSuffixFixedStart(null);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < len; i += 1) {
|
|
|
var currentItemWidth = getItemWidth(i); // Break since data not ready
|
|
|
|
|
|
if (currentItemWidth === undefined) {
|
|
|
updateDisplayCount(i - 1, true);
|
|
|
break;
|
|
|
} // Find best match
|
|
|
|
|
|
|
|
|
totalWidth += currentItemWidth;
|
|
|
|
|
|
if (i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= containerWidth) {
|
|
|
// Additional check if match the end
|
|
|
updateDisplayCount(lastIndex);
|
|
|
setSuffixFixedStart(null);
|
|
|
break;
|
|
|
} else if (totalWidth + mergedRestWidth > containerWidth) {
|
|
|
// Can not hold all the content to show rest
|
|
|
updateDisplayCount(i - 1);
|
|
|
setSuffixFixedStart(totalWidth - currentItemWidth - suffixWidth + restWidth);
|
|
|
break;
|
|
|
} else if (i === lastIndex) {
|
|
|
// Reach the end
|
|
|
updateDisplayCount(lastIndex);
|
|
|
setSuffixFixedStart(totalWidth - suffixWidth);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (suffix && getItemWidth(0) + suffixWidth > containerWidth) {
|
|
|
setSuffixFixedStart(null);
|
|
|
}
|
|
|
}
|
|
|
}, [containerWidth, itemWidths, restWidth, suffixWidth, getKey, mergedData]); // ================================ Render ================================
|
|
|
|
|
|
var displayRest = restReady && !!omittedItems.length;
|
|
|
var suffixStyle = {};
|
|
|
|
|
|
if (suffixFixedStart !== null && isResponsive) {
|
|
|
suffixStyle = {
|
|
|
position: 'absolute',
|
|
|
left: suffixFixedStart,
|
|
|
top: 0
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var itemSharedProps = {
|
|
|
prefixCls: itemPrefixCls,
|
|
|
responsive: isResponsive,
|
|
|
component: itemComponent
|
|
|
};
|
|
|
var overflowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, className),
|
|
|
style: style,
|
|
|
ref: ref
|
|
|
}, restProps), mergedData.map(function (item, index) {
|
|
|
var key = getKey(item, index);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, itemSharedProps, {
|
|
|
order: index,
|
|
|
key: key,
|
|
|
item: item,
|
|
|
renderItem: mergedRenderItem,
|
|
|
itemKey: key,
|
|
|
registerSize: registerSize,
|
|
|
display: index <= displayCount
|
|
|
}, renderItemProps === null || renderItemProps === void 0 ? void 0 : renderItemProps(item)));
|
|
|
}), showRest ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, itemSharedProps, {
|
|
|
// When not show, order should be the last
|
|
|
order: displayRest ? displayCount : Number.MAX_SAFE_INTEGER,
|
|
|
className: "".concat(itemPrefixCls, "-rest"),
|
|
|
registerSize: registerOverflowSize,
|
|
|
display: displayRest
|
|
|
}), typeof renderRest === 'function' ? renderRest(omittedItems) : renderRest) : null, suffix && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, itemSharedProps, {
|
|
|
order: displayCount,
|
|
|
className: "".concat(itemPrefixCls, "-suffix"),
|
|
|
registerSize: registerSuffixSize,
|
|
|
display: true,
|
|
|
style: suffixStyle
|
|
|
}), suffix));
|
|
|
|
|
|
if (isResponsive) {
|
|
|
overflowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
onResize: onOverflowResize
|
|
|
}, overflowNode);
|
|
|
}
|
|
|
|
|
|
return overflowNode;
|
|
|
}
|
|
|
|
|
|
var ForwardOverflow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](Overflow);
|
|
|
ForwardOverflow.displayName = 'Overflow'; // Convert to generic type
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ForwardOverflow);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-overflow/es/hooks/useBatchFrameState.js":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./node_modules/rc-overflow/es/hooks/useBatchFrameState.js ***!
|
|
|
\*****************************************************************/
|
|
|
/*! exports provided: useBatchFrameState */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useBatchFrameState", function() { return useBatchFrameState; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* State generate. Return a `setState` but it will flush all state with one render to save perf.
|
|
|
* This is not a realization of `unstable_batchedUpdates`.
|
|
|
*/
|
|
|
|
|
|
function useBatchFrameState() {
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])({}),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useState, 2),
|
|
|
forceUpdate = _useState2[1];
|
|
|
|
|
|
var statesRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])([]);
|
|
|
var destroyRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(false);
|
|
|
var walkingIndex = 0;
|
|
|
var beforeFrameId = 0;
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
destroyRef.current = true;
|
|
|
};
|
|
|
}, []);
|
|
|
|
|
|
function createState(defaultValue) {
|
|
|
var myIndex = walkingIndex;
|
|
|
walkingIndex += 1; // Fill value if not exist yet
|
|
|
|
|
|
if (statesRef.current.length < myIndex + 1) {
|
|
|
statesRef.current[myIndex] = defaultValue;
|
|
|
} // Return filled as `setState`
|
|
|
|
|
|
|
|
|
var value = statesRef.current[myIndex];
|
|
|
|
|
|
function setValue(val) {
|
|
|
statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"].cancel(beforeFrameId); // Flush with batch
|
|
|
|
|
|
beforeFrameId = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"])(function () {
|
|
|
if (!destroyRef.current) {
|
|
|
forceUpdate({});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return [value, setValue];
|
|
|
}
|
|
|
|
|
|
return createState;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-overflow/es/index.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-overflow/es/index.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Overflow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Overflow */ "./node_modules/rc-overflow/es/Overflow.js");
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Overflow__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/KeyCode.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/KeyCode.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
|
ZERO: 48,
|
|
|
NINE: 57,
|
|
|
NUMPAD_ZERO: 96,
|
|
|
NUMPAD_NINE: 105,
|
|
|
BACKSPACE: 8,
|
|
|
DELETE: 46,
|
|
|
ENTER: 13,
|
|
|
ARROW_UP: 38,
|
|
|
ARROW_DOWN: 40
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/Options.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/Options.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./KeyCode */ "./node_modules/rc-pagination/es/KeyCode.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
|
|
|
|
|
|
|
var Options = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__["default"])(Options, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__["default"])(Options);
|
|
|
|
|
|
function Options() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Options);
|
|
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
args[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
|
_this.state = {
|
|
|
goInputText: ''
|
|
|
};
|
|
|
|
|
|
_this.buildOptionText = function (value) {
|
|
|
return "".concat(value, " ").concat(_this.props.locale.items_per_page);
|
|
|
};
|
|
|
|
|
|
_this.changeSize = function (value) {
|
|
|
_this.props.changeSize(Number(value));
|
|
|
};
|
|
|
|
|
|
_this.handleChange = function (e) {
|
|
|
_this.setState({
|
|
|
goInputText: e.target.value
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.handleBlur = function (e) {
|
|
|
var _this$props = _this.props,
|
|
|
goButton = _this$props.goButton,
|
|
|
quickGo = _this$props.quickGo,
|
|
|
rootPrefixCls = _this$props.rootPrefixCls;
|
|
|
var goInputText = _this.state.goInputText;
|
|
|
|
|
|
if (goButton || goInputText === '') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.setState({
|
|
|
goInputText: ''
|
|
|
});
|
|
|
|
|
|
if (e.relatedTarget && (e.relatedTarget.className.indexOf("".concat(rootPrefixCls, "-item-link")) >= 0 || e.relatedTarget.className.indexOf("".concat(rootPrefixCls, "-item")) >= 0)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
quickGo(_this.getValidValue());
|
|
|
};
|
|
|
|
|
|
_this.go = function (e) {
|
|
|
var goInputText = _this.state.goInputText;
|
|
|
|
|
|
if (goInputText === '') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER || e.type === 'click') {
|
|
|
_this.setState({
|
|
|
goInputText: ''
|
|
|
});
|
|
|
|
|
|
_this.props.quickGo(_this.getValidValue());
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Options, [{
|
|
|
key: "getValidValue",
|
|
|
value: function getValidValue() {
|
|
|
var goInputText = this.state.goInputText; // eslint-disable-next-line no-restricted-globals
|
|
|
|
|
|
return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
|
|
|
}
|
|
|
}, {
|
|
|
key: "getPageSizeOptions",
|
|
|
value: function getPageSizeOptions() {
|
|
|
var _this$props2 = this.props,
|
|
|
pageSize = _this$props2.pageSize,
|
|
|
pageSizeOptions = _this$props2.pageSizeOptions;
|
|
|
|
|
|
if (pageSizeOptions.some(function (option) {
|
|
|
return option.toString() === pageSize.toString();
|
|
|
})) {
|
|
|
return pageSizeOptions;
|
|
|
}
|
|
|
|
|
|
return pageSizeOptions.concat([pageSize.toString()]).sort(function (a, b) {
|
|
|
// eslint-disable-next-line no-restricted-globals
|
|
|
var numberA = isNaN(Number(a)) ? 0 : Number(a); // eslint-disable-next-line no-restricted-globals
|
|
|
|
|
|
var numberB = isNaN(Number(b)) ? 0 : Number(b);
|
|
|
return numberA - numberB;
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var _this$props3 = this.props,
|
|
|
pageSize = _this$props3.pageSize,
|
|
|
locale = _this$props3.locale,
|
|
|
rootPrefixCls = _this$props3.rootPrefixCls,
|
|
|
changeSize = _this$props3.changeSize,
|
|
|
quickGo = _this$props3.quickGo,
|
|
|
goButton = _this$props3.goButton,
|
|
|
selectComponentClass = _this$props3.selectComponentClass,
|
|
|
buildOptionText = _this$props3.buildOptionText,
|
|
|
selectPrefixCls = _this$props3.selectPrefixCls,
|
|
|
disabled = _this$props3.disabled;
|
|
|
var goInputText = this.state.goInputText;
|
|
|
var prefixCls = "".concat(rootPrefixCls, "-options");
|
|
|
var Select = selectComponentClass;
|
|
|
var changeSelect = null;
|
|
|
var goInput = null;
|
|
|
var gotoButton = null;
|
|
|
|
|
|
if (!changeSize && !quickGo) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var pageSizeOptions = this.getPageSizeOptions();
|
|
|
|
|
|
if (changeSize && Select) {
|
|
|
var options = pageSizeOptions.map(function (opt, i) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Select.Option, {
|
|
|
key: i,
|
|
|
value: opt.toString()
|
|
|
}, (buildOptionText || _this2.buildOptionText)(opt));
|
|
|
});
|
|
|
changeSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(Select, {
|
|
|
disabled: disabled,
|
|
|
prefixCls: selectPrefixCls,
|
|
|
showSearch: false,
|
|
|
className: "".concat(prefixCls, "-size-changer"),
|
|
|
optionLabelProp: "children",
|
|
|
dropdownMatchSelectWidth: false,
|
|
|
value: (pageSize || pageSizeOptions[0]).toString(),
|
|
|
onChange: this.changeSize,
|
|
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
|
return triggerNode.parentNode;
|
|
|
}
|
|
|
}, options);
|
|
|
}
|
|
|
|
|
|
if (quickGo) {
|
|
|
if (goButton) {
|
|
|
gotoButton = typeof goButton === 'boolean' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("button", {
|
|
|
type: "button",
|
|
|
onClick: this.go,
|
|
|
onKeyUp: this.go,
|
|
|
disabled: disabled,
|
|
|
className: "".concat(prefixCls, "-quick-jumper-button")
|
|
|
}, locale.jump_to_confirm) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
|
|
|
onClick: this.go,
|
|
|
onKeyUp: this.go
|
|
|
}, goButton);
|
|
|
}
|
|
|
|
|
|
goInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-quick-jumper")
|
|
|
}, locale.jump_to, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("input", {
|
|
|
disabled: disabled,
|
|
|
type: "text",
|
|
|
value: goInputText,
|
|
|
onChange: this.handleChange,
|
|
|
onKeyUp: this.go,
|
|
|
onBlur: this.handleBlur
|
|
|
}), locale.page, gotoButton);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("li", {
|
|
|
className: "".concat(prefixCls)
|
|
|
}, changeSelect, goInput);
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Options;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_4___default.a.Component);
|
|
|
|
|
|
Options.defaultProps = {
|
|
|
pageSizeOptions: ['10', '20', '50', '100']
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Options);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/Pager.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/Pager.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
|
|
|
|
|
|
|
var Pager = function Pager(props) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = "".concat(props.rootPrefixCls, "-item");
|
|
|
var cls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, "".concat(prefixCls, "-").concat(props.page), (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-active"), props.active), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, props.className, !!props.className), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-disabled"), !props.page), _classNames));
|
|
|
|
|
|
var handleClick = function handleClick() {
|
|
|
props.onClick(props.page);
|
|
|
};
|
|
|
|
|
|
var handleKeyPress = function handleKeyPress(e) {
|
|
|
props.onKeyPress(e, props.onClick, props.page);
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("li", {
|
|
|
title: props.showTitle ? props.page : null,
|
|
|
className: cls,
|
|
|
onClick: handleClick,
|
|
|
onKeyPress: handleKeyPress,
|
|
|
tabIndex: "0"
|
|
|
}, props.itemRender(props.page, 'page', /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", {
|
|
|
rel: "nofollow"
|
|
|
}, props.page)));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Pager);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/Pagination.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/Pagination.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Pager */ "./node_modules/rc-pagination/es/Pager.js");
|
|
|
/* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Options */ "./node_modules/rc-pagination/es/Options.js");
|
|
|
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./KeyCode */ "./node_modules/rc-pagination/es/KeyCode.js");
|
|
|
/* harmony import */ var _locale_zh_CN__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./locale/zh_CN */ "./node_modules/rc-pagination/es/locale/zh_CN.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function noop() {}
|
|
|
|
|
|
function isInteger(value) {
|
|
|
return (// eslint-disable-next-line no-restricted-globals
|
|
|
typeof value === 'number' && isFinite(value) && Math.floor(value) === value
|
|
|
);
|
|
|
}
|
|
|
|
|
|
function defaultItemRender(page, type, element) {
|
|
|
return element;
|
|
|
}
|
|
|
|
|
|
function calculatePage(p, state, props) {
|
|
|
var pageSize = typeof p === 'undefined' ? state.pageSize : p;
|
|
|
return Math.floor((props.total - 1) / pageSize) + 1;
|
|
|
}
|
|
|
|
|
|
var Pagination = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(Pagination, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__["default"])(Pagination);
|
|
|
|
|
|
function Pagination(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__["default"])(this, Pagination);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
|
|
|
_this.getJumpPrevPage = function () {
|
|
|
return Math.max(1, _this.state.current - (_this.props.showLessItems ? 3 : 5));
|
|
|
};
|
|
|
|
|
|
_this.getJumpNextPage = function () {
|
|
|
return Math.min(calculatePage(undefined, _this.state, _this.props), _this.state.current + (_this.props.showLessItems ? 3 : 5));
|
|
|
};
|
|
|
|
|
|
_this.getItemIcon = function (icon, label) {
|
|
|
var prefixCls = _this.props.prefixCls;
|
|
|
var iconNode = icon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("button", {
|
|
|
type: "button",
|
|
|
"aria-label": label,
|
|
|
className: "".concat(prefixCls, "-item-link")
|
|
|
});
|
|
|
|
|
|
if (typeof icon === 'function') {
|
|
|
iconNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(icon, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, _this.props));
|
|
|
}
|
|
|
|
|
|
return iconNode;
|
|
|
};
|
|
|
|
|
|
_this.savePaginationNode = function (node) {
|
|
|
_this.paginationNode = node;
|
|
|
};
|
|
|
|
|
|
_this.isValid = function (page) {
|
|
|
return isInteger(page) && page !== _this.state.current;
|
|
|
};
|
|
|
|
|
|
_this.shouldDisplayQuickJumper = function () {
|
|
|
var _this$props = _this.props,
|
|
|
showQuickJumper = _this$props.showQuickJumper,
|
|
|
pageSize = _this$props.pageSize,
|
|
|
total = _this$props.total;
|
|
|
|
|
|
if (total <= pageSize) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return showQuickJumper;
|
|
|
};
|
|
|
|
|
|
_this.handleKeyDown = function (e) {
|
|
|
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ARROW_UP || e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ARROW_DOWN) {
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.handleKeyUp = function (e) {
|
|
|
var value = _this.getValidValue(e);
|
|
|
|
|
|
var currentInputValue = _this.state.currentInputValue;
|
|
|
|
|
|
if (value !== currentInputValue) {
|
|
|
_this.setState({
|
|
|
currentInputValue: value
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ENTER) {
|
|
|
_this.handleChange(value);
|
|
|
} else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ARROW_UP) {
|
|
|
_this.handleChange(value - 1);
|
|
|
} else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ARROW_DOWN) {
|
|
|
_this.handleChange(value + 1);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.changePageSize = function (size) {
|
|
|
var current = _this.state.current;
|
|
|
var newCurrent = calculatePage(size, _this.state, _this.props);
|
|
|
current = current > newCurrent ? newCurrent : current; // fix the issue:
|
|
|
// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
|
|
|
|
|
|
if (newCurrent === 0) {
|
|
|
// eslint-disable-next-line prefer-destructuring
|
|
|
current = _this.state.current;
|
|
|
}
|
|
|
|
|
|
if (typeof size === 'number') {
|
|
|
if (!('pageSize' in _this.props)) {
|
|
|
_this.setState({
|
|
|
pageSize: size
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (!('current' in _this.props)) {
|
|
|
_this.setState({
|
|
|
current: current,
|
|
|
currentInputValue: current
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_this.props.onShowSizeChange(current, size);
|
|
|
|
|
|
if ('onChange' in _this.props && _this.props.onChange) {
|
|
|
_this.props.onChange(current, size);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.handleChange = function (p) {
|
|
|
var disabled = _this.props.disabled;
|
|
|
var page = p;
|
|
|
|
|
|
if (_this.isValid(page) && !disabled) {
|
|
|
var currentPage = calculatePage(undefined, _this.state, _this.props);
|
|
|
|
|
|
if (page > currentPage) {
|
|
|
page = currentPage;
|
|
|
} else if (page < 1) {
|
|
|
page = 1;
|
|
|
}
|
|
|
|
|
|
if (!('current' in _this.props)) {
|
|
|
_this.setState({
|
|
|
current: page,
|
|
|
currentInputValue: page
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var pageSize = _this.state.pageSize;
|
|
|
|
|
|
_this.props.onChange(page, pageSize);
|
|
|
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
return _this.state.current;
|
|
|
};
|
|
|
|
|
|
_this.prev = function () {
|
|
|
if (_this.hasPrev()) {
|
|
|
_this.handleChange(_this.state.current - 1);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.next = function () {
|
|
|
if (_this.hasNext()) {
|
|
|
_this.handleChange(_this.state.current + 1);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.jumpPrev = function () {
|
|
|
_this.handleChange(_this.getJumpPrevPage());
|
|
|
};
|
|
|
|
|
|
_this.jumpNext = function () {
|
|
|
_this.handleChange(_this.getJumpNextPage());
|
|
|
};
|
|
|
|
|
|
_this.hasPrev = function () {
|
|
|
return _this.state.current > 1;
|
|
|
};
|
|
|
|
|
|
_this.hasNext = function () {
|
|
|
return _this.state.current < calculatePage(undefined, _this.state, _this.props);
|
|
|
};
|
|
|
|
|
|
_this.runIfEnter = function (event, callback) {
|
|
|
if (event.key === 'Enter' || event.charCode === 13) {
|
|
|
for (var _len = arguments.length, restParams = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
|
restParams[_key - 2] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
callback.apply(void 0, restParams);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.runIfEnterPrev = function (e) {
|
|
|
_this.runIfEnter(e, _this.prev);
|
|
|
};
|
|
|
|
|
|
_this.runIfEnterNext = function (e) {
|
|
|
_this.runIfEnter(e, _this.next);
|
|
|
};
|
|
|
|
|
|
_this.runIfEnterJumpPrev = function (e) {
|
|
|
_this.runIfEnter(e, _this.jumpPrev);
|
|
|
};
|
|
|
|
|
|
_this.runIfEnterJumpNext = function (e) {
|
|
|
_this.runIfEnter(e, _this.jumpNext);
|
|
|
};
|
|
|
|
|
|
_this.handleGoTO = function (e) {
|
|
|
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_11__["default"].ENTER || e.type === 'click') {
|
|
|
_this.handleChange(_this.state.currentInputValue);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var hasOnChange = props.onChange !== noop;
|
|
|
var hasCurrent = ('current' in props);
|
|
|
|
|
|
if (hasCurrent && !hasOnChange) {
|
|
|
// eslint-disable-next-line no-console
|
|
|
console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.');
|
|
|
}
|
|
|
|
|
|
var _current = props.defaultCurrent;
|
|
|
|
|
|
if ('current' in props) {
|
|
|
// eslint-disable-next-line prefer-destructuring
|
|
|
_current = props.current;
|
|
|
}
|
|
|
|
|
|
var _pageSize = props.defaultPageSize;
|
|
|
|
|
|
if ('pageSize' in props) {
|
|
|
// eslint-disable-next-line prefer-destructuring
|
|
|
_pageSize = props.pageSize;
|
|
|
}
|
|
|
|
|
|
_current = Math.min(_current, calculatePage(_pageSize, undefined, props));
|
|
|
_this.state = {
|
|
|
current: _current,
|
|
|
currentInputValue: _current,
|
|
|
pageSize: _pageSize
|
|
|
};
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__["default"])(Pagination, [{
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
|
// When current page change, fix focused style of prev item
|
|
|
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
|
|
|
var prefixCls = this.props.prefixCls;
|
|
|
|
|
|
if (prevState.current !== this.state.current && this.paginationNode) {
|
|
|
var lastCurrentNode = this.paginationNode.querySelector(".".concat(prefixCls, "-item-").concat(prevState.current));
|
|
|
|
|
|
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
|
|
|
lastCurrentNode.blur();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "getValidValue",
|
|
|
value: function getValidValue(e) {
|
|
|
var inputValue = e.target.value;
|
|
|
var allPages = calculatePage(undefined, this.state, this.props);
|
|
|
var currentInputValue = this.state.currentInputValue;
|
|
|
var value;
|
|
|
|
|
|
if (inputValue === '') {
|
|
|
value = inputValue; // eslint-disable-next-line no-restricted-globals
|
|
|
} else if (isNaN(Number(inputValue))) {
|
|
|
value = currentInputValue;
|
|
|
} else if (inputValue >= allPages) {
|
|
|
value = allPages;
|
|
|
} else {
|
|
|
value = Number(inputValue);
|
|
|
}
|
|
|
|
|
|
return value;
|
|
|
}
|
|
|
}, {
|
|
|
key: "getShowSizeChanger",
|
|
|
value: function getShowSizeChanger() {
|
|
|
var _this$props2 = this.props,
|
|
|
showSizeChanger = _this$props2.showSizeChanger,
|
|
|
total = _this$props2.total,
|
|
|
totalBoundaryShowSizeChanger = _this$props2.totalBoundaryShowSizeChanger;
|
|
|
|
|
|
if (typeof showSizeChanger !== 'undefined') {
|
|
|
return showSizeChanger;
|
|
|
}
|
|
|
|
|
|
return total > totalBoundaryShowSizeChanger;
|
|
|
}
|
|
|
}, {
|
|
|
key: "renderPrev",
|
|
|
value: function renderPrev(prevPage) {
|
|
|
var _this$props3 = this.props,
|
|
|
prevIcon = _this$props3.prevIcon,
|
|
|
itemRender = _this$props3.itemRender;
|
|
|
var prevButton = itemRender(prevPage, 'prev', this.getItemIcon(prevIcon, 'prev page'));
|
|
|
var disabled = !this.hasPrev();
|
|
|
return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["isValidElement"])(prevButton) ? /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(prevButton, {
|
|
|
disabled: disabled
|
|
|
}) : prevButton;
|
|
|
}
|
|
|
}, {
|
|
|
key: "renderNext",
|
|
|
value: function renderNext(nextPage) {
|
|
|
var _this$props4 = this.props,
|
|
|
nextIcon = _this$props4.nextIcon,
|
|
|
itemRender = _this$props4.itemRender;
|
|
|
var nextButton = itemRender(nextPage, 'next', this.getItemIcon(nextIcon, 'next page'));
|
|
|
var disabled = !this.hasNext();
|
|
|
return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["isValidElement"])(nextButton) ? /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(nextButton, {
|
|
|
disabled: disabled
|
|
|
}) : nextButton;
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var _this$props5 = this.props,
|
|
|
prefixCls = _this$props5.prefixCls,
|
|
|
className = _this$props5.className,
|
|
|
style = _this$props5.style,
|
|
|
disabled = _this$props5.disabled,
|
|
|
hideOnSinglePage = _this$props5.hideOnSinglePage,
|
|
|
total = _this$props5.total,
|
|
|
locale = _this$props5.locale,
|
|
|
showQuickJumper = _this$props5.showQuickJumper,
|
|
|
showLessItems = _this$props5.showLessItems,
|
|
|
showTitle = _this$props5.showTitle,
|
|
|
showTotal = _this$props5.showTotal,
|
|
|
simple = _this$props5.simple,
|
|
|
itemRender = _this$props5.itemRender,
|
|
|
showPrevNextJumpers = _this$props5.showPrevNextJumpers,
|
|
|
jumpPrevIcon = _this$props5.jumpPrevIcon,
|
|
|
jumpNextIcon = _this$props5.jumpNextIcon,
|
|
|
selectComponentClass = _this$props5.selectComponentClass,
|
|
|
selectPrefixCls = _this$props5.selectPrefixCls,
|
|
|
pageSizeOptions = _this$props5.pageSizeOptions;
|
|
|
var _this$state = this.state,
|
|
|
current = _this$state.current,
|
|
|
pageSize = _this$state.pageSize,
|
|
|
currentInputValue = _this$state.currentInputValue; // When hideOnSinglePage is true and there is only 1 page, hide the pager
|
|
|
|
|
|
if (hideOnSinglePage === true && total <= pageSize) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var allPages = calculatePage(undefined, this.state, this.props);
|
|
|
var pagerList = [];
|
|
|
var jumpPrev = null;
|
|
|
var jumpNext = null;
|
|
|
var firstPager = null;
|
|
|
var lastPager = null;
|
|
|
var gotoButton = null;
|
|
|
var goButton = showQuickJumper && showQuickJumper.goButton;
|
|
|
var pageBufferSize = showLessItems ? 1 : 2;
|
|
|
var prevPage = current - 1 > 0 ? current - 1 : 0;
|
|
|
var nextPage = current + 1 < allPages ? current + 1 : allPages;
|
|
|
var dataOrAriaAttributeProps = Object.keys(this.props).reduce(function (prev, key) {
|
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
prev[key] = _this2.props[key];
|
|
|
}
|
|
|
|
|
|
return prev;
|
|
|
}, {});
|
|
|
|
|
|
if (simple) {
|
|
|
if (goButton) {
|
|
|
if (typeof goButton === 'boolean') {
|
|
|
gotoButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("button", {
|
|
|
type: "button",
|
|
|
onClick: this.handleGoTO,
|
|
|
onKeyUp: this.handleGoTO
|
|
|
}, locale.jump_to_confirm);
|
|
|
} else {
|
|
|
gotoButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
|
|
|
onClick: this.handleGoTO,
|
|
|
onKeyUp: this.handleGoTO
|
|
|
}, goButton);
|
|
|
}
|
|
|
|
|
|
gotoButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? "".concat(locale.jump_to).concat(current, "/").concat(allPages) : null,
|
|
|
className: "".concat(prefixCls, "-simple-pager")
|
|
|
}, gotoButton);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("ul", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(prefixCls, "".concat(prefixCls, "-simple"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), disabled), className),
|
|
|
style: style,
|
|
|
ref: this.savePaginationNode
|
|
|
}, dataOrAriaAttributeProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? locale.prev_page : null,
|
|
|
onClick: this.prev,
|
|
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
|
onKeyPress: this.runIfEnterPrev,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-prev"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), !this.hasPrev())),
|
|
|
"aria-disabled": !this.hasPrev()
|
|
|
}, this.renderPrev(prevPage)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? "".concat(current, "/").concat(allPages) : null,
|
|
|
className: "".concat(prefixCls, "-simple-pager")
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("input", {
|
|
|
type: "text",
|
|
|
value: currentInputValue,
|
|
|
disabled: disabled,
|
|
|
onKeyDown: this.handleKeyDown,
|
|
|
onKeyUp: this.handleKeyUp,
|
|
|
onChange: this.handleKeyUp,
|
|
|
size: "3"
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-slash")
|
|
|
}, "/"), allPages), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? locale.next_page : null,
|
|
|
onClick: this.next,
|
|
|
tabIndex: this.hasPrev() ? 0 : null,
|
|
|
onKeyPress: this.runIfEnterNext,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-next"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), !this.hasNext())),
|
|
|
"aria-disabled": !this.hasNext()
|
|
|
}, this.renderNext(nextPage)), gotoButton);
|
|
|
}
|
|
|
|
|
|
if (allPages <= 3 + pageBufferSize * 2) {
|
|
|
var pagerProps = {
|
|
|
locale: locale,
|
|
|
rootPrefixCls: prefixCls,
|
|
|
onClick: this.handleChange,
|
|
|
onKeyPress: this.runIfEnter,
|
|
|
showTitle: showTitle,
|
|
|
itemRender: itemRender
|
|
|
};
|
|
|
|
|
|
if (!allPages) {
|
|
|
pagerList.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Pager__WEBPACK_IMPORTED_MODULE_9__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, pagerProps, {
|
|
|
key: "noPager",
|
|
|
page: allPages,
|
|
|
className: "".concat(prefixCls, "-disabled")
|
|
|
})));
|
|
|
}
|
|
|
|
|
|
for (var i = 1; i <= allPages; i += 1) {
|
|
|
var active = current === i;
|
|
|
pagerList.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Pager__WEBPACK_IMPORTED_MODULE_9__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, pagerProps, {
|
|
|
key: i,
|
|
|
page: i,
|
|
|
active: active
|
|
|
})));
|
|
|
}
|
|
|
} else {
|
|
|
var prevItemTitle = showLessItems ? locale.prev_3 : locale.prev_5;
|
|
|
var nextItemTitle = showLessItems ? locale.next_3 : locale.next_5;
|
|
|
|
|
|
if (showPrevNextJumpers) {
|
|
|
jumpPrev = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? prevItemTitle : null,
|
|
|
key: "prev",
|
|
|
onClick: this.jumpPrev,
|
|
|
tabIndex: "0",
|
|
|
onKeyPress: this.runIfEnterJumpPrev,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-jump-prev"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
|
|
|
}, itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page')));
|
|
|
jumpNext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? nextItemTitle : null,
|
|
|
key: "next",
|
|
|
tabIndex: "0",
|
|
|
onClick: this.jumpNext,
|
|
|
onKeyPress: this.runIfEnterJumpNext,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-jump-next"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
|
|
|
}, itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page')));
|
|
|
}
|
|
|
|
|
|
lastPager = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Pager__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
locale: locale,
|
|
|
last: true,
|
|
|
rootPrefixCls: prefixCls,
|
|
|
onClick: this.handleChange,
|
|
|
onKeyPress: this.runIfEnter,
|
|
|
key: allPages,
|
|
|
page: allPages,
|
|
|
active: false,
|
|
|
showTitle: showTitle,
|
|
|
itemRender: itemRender
|
|
|
});
|
|
|
firstPager = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Pager__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
locale: locale,
|
|
|
rootPrefixCls: prefixCls,
|
|
|
onClick: this.handleChange,
|
|
|
onKeyPress: this.runIfEnter,
|
|
|
key: 1,
|
|
|
page: 1,
|
|
|
active: false,
|
|
|
showTitle: showTitle,
|
|
|
itemRender: itemRender
|
|
|
});
|
|
|
var left = Math.max(1, current - pageBufferSize);
|
|
|
var right = Math.min(current + pageBufferSize, allPages);
|
|
|
|
|
|
if (current - 1 <= pageBufferSize) {
|
|
|
right = 1 + pageBufferSize * 2;
|
|
|
}
|
|
|
|
|
|
if (allPages - current <= pageBufferSize) {
|
|
|
left = allPages - pageBufferSize * 2;
|
|
|
}
|
|
|
|
|
|
for (var _i = left; _i <= right; _i += 1) {
|
|
|
var _active = current === _i;
|
|
|
|
|
|
pagerList.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Pager__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
locale: locale,
|
|
|
rootPrefixCls: prefixCls,
|
|
|
onClick: this.handleChange,
|
|
|
onKeyPress: this.runIfEnter,
|
|
|
key: _i,
|
|
|
page: _i,
|
|
|
active: _active,
|
|
|
showTitle: showTitle,
|
|
|
itemRender: itemRender
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {
|
|
|
pagerList[0] = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(pagerList[0], {
|
|
|
className: "".concat(prefixCls, "-item-after-jump-prev")
|
|
|
});
|
|
|
pagerList.unshift(jumpPrev);
|
|
|
}
|
|
|
|
|
|
if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {
|
|
|
pagerList[pagerList.length - 1] = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(pagerList[pagerList.length - 1], {
|
|
|
className: "".concat(prefixCls, "-item-before-jump-next")
|
|
|
});
|
|
|
pagerList.push(jumpNext);
|
|
|
}
|
|
|
|
|
|
if (left !== 1) {
|
|
|
pagerList.unshift(firstPager);
|
|
|
}
|
|
|
|
|
|
if (right !== allPages) {
|
|
|
pagerList.push(lastPager);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var totalText = null;
|
|
|
|
|
|
if (showTotal) {
|
|
|
totalText = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
className: "".concat(prefixCls, "-total-text")
|
|
|
}, showTotal(total, [total === 0 ? 0 : (current - 1) * pageSize + 1, current * pageSize > total ? total : current * pageSize]));
|
|
|
}
|
|
|
|
|
|
var prevDisabled = !this.hasPrev() || !allPages;
|
|
|
var nextDisabled = !this.hasNext() || !allPages;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("ul", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(prefixCls, className, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), disabled)),
|
|
|
style: style,
|
|
|
unselectable: "unselectable",
|
|
|
ref: this.savePaginationNode
|
|
|
}, dataOrAriaAttributeProps), totalText, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? locale.prev_page : null,
|
|
|
onClick: this.prev,
|
|
|
tabIndex: prevDisabled ? null : 0,
|
|
|
onKeyPress: this.runIfEnterPrev,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-prev"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
|
|
|
"aria-disabled": prevDisabled
|
|
|
}, this.renderPrev(prevPage)), pagerList, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("li", {
|
|
|
title: showTitle ? locale.next_page : null,
|
|
|
onClick: this.next,
|
|
|
tabIndex: nextDisabled ? null : 0,
|
|
|
onKeyPress: this.runIfEnterNext,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-next"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
|
|
|
"aria-disabled": nextDisabled
|
|
|
}, this.renderNext(nextPage)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_Options__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
disabled: disabled,
|
|
|
locale: locale,
|
|
|
rootPrefixCls: prefixCls,
|
|
|
selectComponentClass: selectComponentClass,
|
|
|
selectPrefixCls: selectPrefixCls,
|
|
|
changeSize: this.getShowSizeChanger() ? this.changePageSize : null,
|
|
|
current: current,
|
|
|
pageSize: pageSize,
|
|
|
pageSizeOptions: pageSizeOptions,
|
|
|
quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
|
|
|
goButton: goButton
|
|
|
}));
|
|
|
}
|
|
|
}], [{
|
|
|
key: "getDerivedStateFromProps",
|
|
|
value: function getDerivedStateFromProps(props, prevState) {
|
|
|
var newState = {};
|
|
|
|
|
|
if ('current' in props) {
|
|
|
newState.current = props.current;
|
|
|
|
|
|
if (props.current !== prevState.current) {
|
|
|
newState.currentInputValue = newState.current;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if ('pageSize' in props && props.pageSize !== prevState.pageSize) {
|
|
|
var current = prevState.current;
|
|
|
var newCurrent = calculatePage(props.pageSize, prevState, props);
|
|
|
current = current > newCurrent ? newCurrent : current;
|
|
|
|
|
|
if (!('current' in props)) {
|
|
|
newState.current = current;
|
|
|
newState.currentInputValue = current;
|
|
|
}
|
|
|
|
|
|
newState.pageSize = props.pageSize;
|
|
|
}
|
|
|
|
|
|
return newState;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Pagination;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_7___default.a.Component);
|
|
|
|
|
|
Pagination.defaultProps = {
|
|
|
defaultCurrent: 1,
|
|
|
total: 0,
|
|
|
defaultPageSize: 10,
|
|
|
onChange: noop,
|
|
|
className: '',
|
|
|
selectPrefixCls: 'rc-select',
|
|
|
prefixCls: 'rc-pagination',
|
|
|
selectComponentClass: null,
|
|
|
hideOnSinglePage: false,
|
|
|
showPrevNextJumpers: true,
|
|
|
showQuickJumper: false,
|
|
|
showLessItems: false,
|
|
|
showTitle: true,
|
|
|
onShowSizeChange: noop,
|
|
|
locale: _locale_zh_CN__WEBPACK_IMPORTED_MODULE_12__["default"],
|
|
|
style: {},
|
|
|
itemRender: defaultItemRender,
|
|
|
totalBoundaryShowSizeChanger: 50
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Pagination);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./node_modules/rc-pagination/es/Pagination.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/es/locale/zh_CN.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/locale/zh_CN.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
|
// Options.jsx
|
|
|
items_per_page: '条/页',
|
|
|
jump_to: '跳至',
|
|
|
jump_to_confirm: '确定',
|
|
|
page: '页',
|
|
|
// Pagination.jsx
|
|
|
prev_page: '上一页',
|
|
|
next_page: '下一页',
|
|
|
prev_5: '向前 5 页',
|
|
|
next_5: '向后 5 页',
|
|
|
prev_3: '向前 3 页',
|
|
|
next_3: '向后 3 页'
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-pagination/lib/locale/en_US.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/lib/locale/en_US.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
var _default = {
|
|
|
// Options.jsx
|
|
|
items_per_page: '/ page',
|
|
|
jump_to: 'Go to',
|
|
|
jump_to_confirm: 'confirm',
|
|
|
page: '',
|
|
|
// Pagination.jsx
|
|
|
prev_page: 'Previous Page',
|
|
|
next_page: 'Next Page',
|
|
|
prev_5: 'Previous 5 Pages',
|
|
|
next_5: 'Next 5 Pages',
|
|
|
prev_3: 'Previous 3 Pages',
|
|
|
next_3: 'Next 3 Pages'
|
|
|
};
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-picker/lib/locale/en_US.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-picker/lib/locale/en_US.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
var locale = {
|
|
|
locale: 'en_US',
|
|
|
today: 'Today',
|
|
|
now: 'Now',
|
|
|
backToToday: 'Back to today',
|
|
|
ok: 'Ok',
|
|
|
clear: 'Clear',
|
|
|
month: 'Month',
|
|
|
year: 'Year',
|
|
|
timeSelect: 'select time',
|
|
|
dateSelect: 'select date',
|
|
|
weekSelect: 'Choose a week',
|
|
|
monthSelect: 'Choose a month',
|
|
|
yearSelect: 'Choose a year',
|
|
|
decadeSelect: 'Choose a decade',
|
|
|
yearFormat: 'YYYY',
|
|
|
dateFormat: 'M/D/YYYY',
|
|
|
dayFormat: 'D',
|
|
|
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
|
|
|
monthBeforeYear: true,
|
|
|
previousMonth: 'Previous month (PageUp)',
|
|
|
nextMonth: 'Next month (PageDown)',
|
|
|
previousYear: 'Last year (Control + left)',
|
|
|
nextYear: 'Next year (Control + right)',
|
|
|
previousDecade: 'Last decade',
|
|
|
nextDecade: 'Next decade',
|
|
|
previousCentury: 'Last century',
|
|
|
nextCentury: 'Next century'
|
|
|
};
|
|
|
var _default = locale;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-resize-observer/es/index.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-resize-observer/es/index.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/Dom/findDOMNode */ "./node_modules/rc-util/es/Dom/findDOMNode.js");
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var INTERNAL_PREFIX_KEY = 'rc-observer-key'; // Still need to be compatible with React 15, we use class component here
|
|
|
|
|
|
var ReactResizeObserver = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(ReactResizeObserver, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__["default"])(ReactResizeObserver);
|
|
|
|
|
|
function ReactResizeObserver() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, ReactResizeObserver);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.resizeObserver = null;
|
|
|
_this.childNode = null;
|
|
|
_this.currentElement = null;
|
|
|
_this.state = {
|
|
|
width: 0,
|
|
|
height: 0,
|
|
|
offsetHeight: 0,
|
|
|
offsetWidth: 0
|
|
|
};
|
|
|
|
|
|
_this.onResize = function (entries) {
|
|
|
var onResize = _this.props.onResize;
|
|
|
var target = entries[0].target;
|
|
|
|
|
|
var _target$getBoundingCl = target.getBoundingClientRect(),
|
|
|
width = _target$getBoundingCl.width,
|
|
|
height = _target$getBoundingCl.height;
|
|
|
|
|
|
var offsetWidth = target.offsetWidth,
|
|
|
offsetHeight = target.offsetHeight;
|
|
|
/**
|
|
|
* Resize observer trigger when content size changed.
|
|
|
* In most case we just care about element size,
|
|
|
* let's use `boundary` instead of `contentRect` here to avoid shaking.
|
|
|
*/
|
|
|
|
|
|
var fixedWidth = Math.floor(width);
|
|
|
var fixedHeight = Math.floor(height);
|
|
|
|
|
|
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) {
|
|
|
var size = {
|
|
|
width: fixedWidth,
|
|
|
height: fixedHeight,
|
|
|
offsetWidth: offsetWidth,
|
|
|
offsetHeight: offsetHeight
|
|
|
};
|
|
|
|
|
|
_this.setState(size);
|
|
|
|
|
|
if (onResize) {
|
|
|
// defer the callback but not defer to next frame
|
|
|
Promise.resolve().then(function () {
|
|
|
onResize(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, size), {}, {
|
|
|
offsetWidth: offsetWidth,
|
|
|
offsetHeight: offsetHeight
|
|
|
}), target);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.setChildNode = function (node) {
|
|
|
_this.childNode = node;
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(ReactResizeObserver, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.onComponentUpdated();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
this.onComponentUpdated();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.destroyObserver();
|
|
|
}
|
|
|
}, {
|
|
|
key: "onComponentUpdated",
|
|
|
value: function onComponentUpdated() {
|
|
|
var disabled = this.props.disabled; // Unregister if disabled
|
|
|
|
|
|
if (disabled) {
|
|
|
this.destroyObserver();
|
|
|
return;
|
|
|
} // Unregister if element changed
|
|
|
|
|
|
|
|
|
var element = Object(rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_6__["default"])(this.childNode || this);
|
|
|
var elementChanged = element !== this.currentElement;
|
|
|
|
|
|
if (elementChanged) {
|
|
|
this.destroyObserver();
|
|
|
this.currentElement = element;
|
|
|
}
|
|
|
|
|
|
if (!this.resizeObserver && element) {
|
|
|
this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_10__["default"](this.onResize);
|
|
|
this.resizeObserver.observe(element);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "destroyObserver",
|
|
|
value: function destroyObserver() {
|
|
|
if (this.resizeObserver) {
|
|
|
this.resizeObserver.disconnect();
|
|
|
this.resizeObserver = null;
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var children = this.props.children;
|
|
|
var childNodes = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_7__["default"])(children);
|
|
|
|
|
|
if (childNodes.length > 1) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(false, 'Find more than one child node with `children` in ResizeObserver. Will only observe first one.');
|
|
|
} else if (childNodes.length === 0) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(false, '`children` of ResizeObserver is empty. Nothing is in observe.');
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var childNode = childNodes[0];
|
|
|
|
|
|
if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["isValidElement"](childNode) && Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_9__["supportRef"])(childNode)) {
|
|
|
var ref = childNode.ref;
|
|
|
childNodes[0] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"](childNode, {
|
|
|
ref: Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_9__["composeRef"])(ref, this.setChildNode)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return childNodes.length === 1 ? childNodes[0] : childNodes.map(function (node, index) {
|
|
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["isValidElement"](node) || 'key' in node && node.key !== null) {
|
|
|
return node;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["cloneElement"](node, {
|
|
|
key: "".concat(INTERNAL_PREFIX_KEY, "-").concat(index)
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return ReactResizeObserver;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_5__["Component"]);
|
|
|
|
|
|
ReactResizeObserver.displayName = 'ResizeObserver';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ReactResizeObserver);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/OptGroup.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/OptGroup.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/** This is a placeholder, not real render in dom */
|
|
|
var OptGroup = function OptGroup() {
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
OptGroup.isSelectOptGroup = true;
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (OptGroup);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Option.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Option.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/** This is a placeholder, not real render in dom */
|
|
|
var Option = function Option() {
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
Option.isSelectOption = true;
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Option);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/OptionList.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/OptionList.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
|
|
/* harmony import */ var rc_util_es_hooks_useMemo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/hooks/useMemo */ "./node_modules/rc-util/es/hooks/useMemo.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var rc_virtual_list__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-virtual-list */ "./node_modules/rc-virtual-list/es/index.js");
|
|
|
/* harmony import */ var _TransBtn__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TransBtn */ "./node_modules/rc-select/es/TransBtn.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Using virtual list of option display.
|
|
|
* Will fallback to dom if use customize render.
|
|
|
*/
|
|
|
|
|
|
var OptionList = function OptionList(_ref, ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
id = _ref.id,
|
|
|
flattenOptions = _ref.flattenOptions,
|
|
|
childrenAsData = _ref.childrenAsData,
|
|
|
values = _ref.values,
|
|
|
searchValue = _ref.searchValue,
|
|
|
multiple = _ref.multiple,
|
|
|
defaultActiveFirstOption = _ref.defaultActiveFirstOption,
|
|
|
height = _ref.height,
|
|
|
itemHeight = _ref.itemHeight,
|
|
|
notFoundContent = _ref.notFoundContent,
|
|
|
open = _ref.open,
|
|
|
menuItemSelectedIcon = _ref.menuItemSelectedIcon,
|
|
|
virtual = _ref.virtual,
|
|
|
onSelect = _ref.onSelect,
|
|
|
onToggleOpen = _ref.onToggleOpen,
|
|
|
onActiveValue = _ref.onActiveValue,
|
|
|
onScroll = _ref.onScroll,
|
|
|
onMouseEnter = _ref.onMouseEnter;
|
|
|
var itemPrefixCls = "".concat(prefixCls, "-item");
|
|
|
var memoFlattenOptions = Object(rc_util_es_hooks_useMemo__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
|
|
|
return flattenOptions;
|
|
|
}, [open, flattenOptions], function (prev, next) {
|
|
|
return next[0] && prev[1] !== next[1];
|
|
|
}); // =========================== List ===========================
|
|
|
|
|
|
var listRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](null);
|
|
|
|
|
|
var onListMouseDown = function onListMouseDown(event) {
|
|
|
event.preventDefault();
|
|
|
};
|
|
|
|
|
|
var scrollIntoView = function scrollIntoView(index) {
|
|
|
if (listRef.current) {
|
|
|
listRef.current.scrollTo({
|
|
|
index: index
|
|
|
});
|
|
|
}
|
|
|
}; // ========================== Active ==========================
|
|
|
|
|
|
|
|
|
var getEnabledActiveIndex = function getEnabledActiveIndex(index) {
|
|
|
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
|
var len = memoFlattenOptions.length;
|
|
|
|
|
|
for (var i = 0; i < len; i += 1) {
|
|
|
var current = (index + i * offset + len) % len;
|
|
|
var _memoFlattenOptions$c = memoFlattenOptions[current],
|
|
|
group = _memoFlattenOptions$c.group,
|
|
|
data = _memoFlattenOptions$c.data;
|
|
|
|
|
|
if (!group && !data.disabled) {
|
|
|
return current;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return -1;
|
|
|
};
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](function () {
|
|
|
return getEnabledActiveIndex(0);
|
|
|
}),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__["default"])(_React$useState, 2),
|
|
|
activeIndex = _React$useState2[0],
|
|
|
setActiveIndex = _React$useState2[1];
|
|
|
|
|
|
var setActive = function setActive(index) {
|
|
|
var fromKeyboard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
setActiveIndex(index);
|
|
|
var info = {
|
|
|
source: fromKeyboard ? 'keyboard' : 'mouse'
|
|
|
}; // Trigger active event
|
|
|
|
|
|
var flattenItem = memoFlattenOptions[index];
|
|
|
|
|
|
if (!flattenItem) {
|
|
|
onActiveValue(null, -1, info);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
onActiveValue(flattenItem.data.value, index, info);
|
|
|
}; // Auto active first item when list length or searchValue changed
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
|
|
|
setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
|
|
|
}, [memoFlattenOptions.length, searchValue]); // Auto scroll to item position in single mode
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
|
|
|
/**
|
|
|
* React will skip `onChange` when component update.
|
|
|
* `setActive` function will call root accessibility state update which makes re-render.
|
|
|
* So we need to delay to let Input component trigger onChange first.
|
|
|
*/
|
|
|
var timeoutId = setTimeout(function () {
|
|
|
if (!multiple && open && values.size === 1) {
|
|
|
var value = Array.from(values)[0];
|
|
|
var index = memoFlattenOptions.findIndex(function (_ref2) {
|
|
|
var data = _ref2.data;
|
|
|
return data.value === value;
|
|
|
});
|
|
|
setActive(index);
|
|
|
scrollIntoView(index);
|
|
|
}
|
|
|
}); // Force trigger scrollbar visible when open
|
|
|
|
|
|
if (open) {
|
|
|
var _listRef$current;
|
|
|
|
|
|
(_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollTo(undefined);
|
|
|
}
|
|
|
|
|
|
return function () {
|
|
|
return clearTimeout(timeoutId);
|
|
|
};
|
|
|
}, [open]); // ========================== Values ==========================
|
|
|
|
|
|
var onSelectValue = function onSelectValue(value) {
|
|
|
if (value !== undefined) {
|
|
|
onSelect(value, {
|
|
|
selected: !values.has(value)
|
|
|
});
|
|
|
} // Single mode should always close by select
|
|
|
|
|
|
|
|
|
if (!multiple) {
|
|
|
onToggleOpen(false);
|
|
|
}
|
|
|
}; // ========================= Keyboard =========================
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
onKeyDown: function onKeyDown(event) {
|
|
|
var which = event.which;
|
|
|
|
|
|
switch (which) {
|
|
|
// >>> Arrow keys
|
|
|
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
|
|
|
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
|
|
|
{
|
|
|
var offset = 0;
|
|
|
|
|
|
if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP) {
|
|
|
offset = -1;
|
|
|
} else if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN) {
|
|
|
offset = 1;
|
|
|
}
|
|
|
|
|
|
if (offset !== 0) {
|
|
|
var nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);
|
|
|
scrollIntoView(nextActiveIndex);
|
|
|
setActive(nextActiveIndex, true);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
// >>> Select
|
|
|
|
|
|
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER:
|
|
|
{
|
|
|
// value
|
|
|
var item = memoFlattenOptions[activeIndex];
|
|
|
|
|
|
if (item && !item.data.disabled) {
|
|
|
onSelectValue(item.data.value);
|
|
|
} else {
|
|
|
onSelectValue(undefined);
|
|
|
}
|
|
|
|
|
|
if (open) {
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
// >>> Close
|
|
|
|
|
|
case rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ESC:
|
|
|
{
|
|
|
onToggleOpen(false);
|
|
|
|
|
|
if (open) {
|
|
|
event.stopPropagation();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
onKeyUp: function onKeyUp() {},
|
|
|
scrollTo: function scrollTo(index) {
|
|
|
scrollIntoView(index);
|
|
|
}
|
|
|
};
|
|
|
}); // ========================== Render ==========================
|
|
|
|
|
|
if (memoFlattenOptions.length === 0) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
role: "listbox",
|
|
|
id: "".concat(id, "_list"),
|
|
|
className: "".concat(itemPrefixCls, "-empty"),
|
|
|
onMouseDown: onListMouseDown
|
|
|
}, notFoundContent);
|
|
|
}
|
|
|
|
|
|
function renderItem(index) {
|
|
|
var item = memoFlattenOptions[index];
|
|
|
if (!item) return null;
|
|
|
var itemData = item.data || {};
|
|
|
var value = itemData.value,
|
|
|
label = itemData.label,
|
|
|
children = itemData.children;
|
|
|
var attrs = Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_6__["default"])(itemData, true);
|
|
|
var mergedLabel = childrenAsData ? children : label;
|
|
|
return item ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
"aria-label": typeof mergedLabel === 'string' ? mergedLabel : null
|
|
|
}, attrs, {
|
|
|
key: index,
|
|
|
role: "option",
|
|
|
id: "".concat(id, "_list_").concat(index),
|
|
|
"aria-selected": values.has(value)
|
|
|
}), value) : null;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](react__WEBPACK_IMPORTED_MODULE_4__["Fragment"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
role: "listbox",
|
|
|
id: "".concat(id, "_list"),
|
|
|
style: {
|
|
|
height: 0,
|
|
|
width: 0,
|
|
|
overflow: 'hidden'
|
|
|
}
|
|
|
}, renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_virtual_list__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
itemKey: "key",
|
|
|
ref: listRef,
|
|
|
data: memoFlattenOptions,
|
|
|
height: height,
|
|
|
itemHeight: itemHeight,
|
|
|
fullHeight: false,
|
|
|
onMouseDown: onListMouseDown,
|
|
|
onScroll: onScroll,
|
|
|
virtual: virtual,
|
|
|
onMouseEnter: onMouseEnter
|
|
|
}, function (_ref3, itemIndex) {
|
|
|
var _classNames;
|
|
|
|
|
|
var group = _ref3.group,
|
|
|
groupOption = _ref3.groupOption,
|
|
|
data = _ref3.data;
|
|
|
var label = data.label,
|
|
|
key = data.key; // Group
|
|
|
|
|
|
if (group) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, "".concat(itemPrefixCls, "-group"))
|
|
|
}, label !== undefined ? label : key);
|
|
|
}
|
|
|
|
|
|
var disabled = data.disabled,
|
|
|
value = data.value,
|
|
|
title = data.title,
|
|
|
children = data.children,
|
|
|
style = data.style,
|
|
|
className = data.className,
|
|
|
otherProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(data, ["disabled", "value", "title", "children", "style", "className"]); // Option
|
|
|
|
|
|
|
|
|
var selected = values.has(value);
|
|
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
|
var optionClassName = classnames__WEBPACK_IMPORTED_MODULE_8___default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
|
var mergedLabel = childrenAsData ? children : label;
|
|
|
var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
|
var content = mergedLabel || value; // https://github.com/ant-design/ant-design/issues/26717
|
|
|
|
|
|
var optionTitle = typeof content === 'string' || typeof content === 'number' ? content.toString() : undefined;
|
|
|
|
|
|
if (title !== undefined) {
|
|
|
optionTitle = title;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, otherProps, {
|
|
|
"aria-selected": selected,
|
|
|
className: optionClassName,
|
|
|
title: optionTitle,
|
|
|
onMouseMove: function onMouseMove() {
|
|
|
if (activeIndex === itemIndex || disabled) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
setActive(itemIndex);
|
|
|
},
|
|
|
onClick: function onClick() {
|
|
|
if (!disabled) {
|
|
|
onSelectValue(value);
|
|
|
}
|
|
|
},
|
|
|
style: style
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
className: "".concat(optionPrefixCls, "-content")
|
|
|
}, content), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["isValidElement"](menuItemSelectedIcon) || selected, iconVisible && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_TransBtn__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
className: "".concat(itemPrefixCls, "-option-state"),
|
|
|
customizeIcon: menuItemSelectedIcon,
|
|
|
customizeIconProps: {
|
|
|
isSelected: selected
|
|
|
}
|
|
|
}, selected ? '✓' : null));
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var RefOptionList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](OptionList);
|
|
|
RefOptionList.displayName = 'OptionList';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (RefOptionList);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Select.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Select.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var _OptionList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./OptionList */ "./node_modules/rc-select/es/OptionList.js");
|
|
|
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Option */ "./node_modules/rc-select/es/Option.js");
|
|
|
/* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./OptGroup */ "./node_modules/rc-select/es/OptGroup.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-select/es/utils/legacyUtil.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-select/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _generate__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./generate */ "./node_modules/rc-select/es/generate.js");
|
|
|
/* harmony import */ var _utils_warningPropsUtil__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/warningPropsUtil */ "./node_modules/rc-select/es/utils/warningPropsUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* To match accessibility requirement, we always provide an input in the component.
|
|
|
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
|
|
|
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
|
|
*
|
|
|
* ref:
|
|
|
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
|
|
*
|
|
|
* New api:
|
|
|
* - listHeight
|
|
|
* - listItemHeight
|
|
|
* - component
|
|
|
*
|
|
|
* Remove deprecated api:
|
|
|
* - multiple
|
|
|
* - tags
|
|
|
* - combobox
|
|
|
* - firstActiveValue
|
|
|
* - dropdownMenuStyle
|
|
|
* - openClassName (Not list in api)
|
|
|
*
|
|
|
* Update:
|
|
|
* - `backfill` only support `combobox` mode
|
|
|
* - `combobox` mode not support `labelInValue` since it's meaningless
|
|
|
* - `getInputElement` only support `combobox` mode
|
|
|
* - `onChange` return OptionData instead of ReactNode
|
|
|
* - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
|
|
|
* - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
|
|
|
* - `combobox` mode not support `optionLabelProp`
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var RefSelect = Object(_generate__WEBPACK_IMPORTED_MODULE_11__["default"])({
|
|
|
prefixCls: 'rc-select',
|
|
|
components: {
|
|
|
optionList: _OptionList__WEBPACK_IMPORTED_MODULE_6__["default"]
|
|
|
},
|
|
|
convertChildrenToData: _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_9__["convertChildrenToData"],
|
|
|
flattenOptions: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["flattenOptions"],
|
|
|
getLabeledValue: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["getLabeledValue"],
|
|
|
filterOptions: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["filterOptions"],
|
|
|
isValueDisabled: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["isValueDisabled"],
|
|
|
findValueOption: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["findValueOption"],
|
|
|
warningProps: _utils_warningPropsUtil__WEBPACK_IMPORTED_MODULE_12__["default"],
|
|
|
fillOptionsWithMissingValue: _utils_valueUtil__WEBPACK_IMPORTED_MODULE_10__["fillOptionsWithMissingValue"]
|
|
|
});
|
|
|
/**
|
|
|
* Typescript not support generic with function component,
|
|
|
* we have to wrap an class component to handle this.
|
|
|
*/
|
|
|
|
|
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__["default"])(Select, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__["default"])(Select);
|
|
|
|
|
|
function Select() {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__["default"])(this, Select);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.selectRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createRef"]();
|
|
|
|
|
|
_this.focus = function () {
|
|
|
_this.selectRef.current.focus();
|
|
|
};
|
|
|
|
|
|
_this.blur = function () {
|
|
|
_this.selectRef.current.blur();
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__["default"])(Select, [{
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"](RefSelect, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
ref: this.selectRef
|
|
|
}, this.props));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Select;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_5__["Component"]);
|
|
|
|
|
|
Select.Option = _Option__WEBPACK_IMPORTED_MODULE_7__["default"];
|
|
|
Select.OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_8__["default"];
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/SelectTrigger.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/SelectTrigger.js ***!
|
|
|
\****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-trigger */ "./node_modules/rc-trigger/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {
|
|
|
// Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
|
|
|
var adjustX = typeof dropdownMatchSelectWidth !== 'number' ? 0 : 1;
|
|
|
return {
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
offset: [0, 4],
|
|
|
overflow: {
|
|
|
adjustX: adjustX,
|
|
|
adjustY: 1
|
|
|
}
|
|
|
},
|
|
|
bottomRight: {
|
|
|
points: ['tr', 'br'],
|
|
|
offset: [0, 4],
|
|
|
overflow: {
|
|
|
adjustX: adjustX,
|
|
|
adjustY: 1
|
|
|
}
|
|
|
},
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
offset: [0, -4],
|
|
|
overflow: {
|
|
|
adjustX: adjustX,
|
|
|
adjustY: 1
|
|
|
}
|
|
|
},
|
|
|
topRight: {
|
|
|
points: ['br', 'tr'],
|
|
|
offset: [0, -4],
|
|
|
overflow: {
|
|
|
adjustX: adjustX,
|
|
|
adjustY: 1
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
|
|
|
var SelectTrigger = function SelectTrigger(props, ref) {
|
|
|
var prefixCls = props.prefixCls,
|
|
|
disabled = props.disabled,
|
|
|
visible = props.visible,
|
|
|
children = props.children,
|
|
|
popupElement = props.popupElement,
|
|
|
containerWidth = props.containerWidth,
|
|
|
animation = props.animation,
|
|
|
transitionName = props.transitionName,
|
|
|
dropdownStyle = props.dropdownStyle,
|
|
|
dropdownClassName = props.dropdownClassName,
|
|
|
_props$direction = props.direction,
|
|
|
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
|
|
_props$dropdownMatchS = props.dropdownMatchSelectWidth,
|
|
|
dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,
|
|
|
dropdownRender = props.dropdownRender,
|
|
|
dropdownAlign = props.dropdownAlign,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
empty = props.empty,
|
|
|
getTriggerDOMNode = props.getTriggerDOMNode,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ["prefixCls", "disabled", "visible", "children", "popupElement", "containerWidth", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode"]);
|
|
|
|
|
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
|
var popupNode = popupElement;
|
|
|
|
|
|
if (dropdownRender) {
|
|
|
popupNode = dropdownRender(popupElement);
|
|
|
}
|
|
|
|
|
|
var builtInPlacements = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
return getBuiltInPlacements(dropdownMatchSelectWidth);
|
|
|
}, [dropdownMatchSelectWidth]); // ===================== Motion ======================
|
|
|
|
|
|
var mergedTransitionName = animation ? "".concat(dropdownPrefixCls, "-").concat(animation) : transitionName; // ======================= Ref =======================
|
|
|
|
|
|
var popupRef = react__WEBPACK_IMPORTED_MODULE_4__["useRef"](null);
|
|
|
react__WEBPACK_IMPORTED_MODULE_4__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
getPopupElement: function getPopupElement() {
|
|
|
return popupRef.current;
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
|
|
|
var popupStyle = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
minWidth: containerWidth
|
|
|
}, dropdownStyle);
|
|
|
|
|
|
if (typeof dropdownMatchSelectWidth === 'number') {
|
|
|
popupStyle.width = dropdownMatchSelectWidth;
|
|
|
} else if (dropdownMatchSelectWidth) {
|
|
|
popupStyle.width = containerWidth;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_trigger__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, restProps, {
|
|
|
showAction: [],
|
|
|
hideAction: [],
|
|
|
popupPlacement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
|
|
|
builtinPlacements: builtInPlacements,
|
|
|
prefixCls: dropdownPrefixCls,
|
|
|
popupTransitionName: mergedTransitionName,
|
|
|
popup: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
ref: popupRef
|
|
|
}, popupNode),
|
|
|
popupAlign: dropdownAlign,
|
|
|
popupVisible: visible,
|
|
|
getPopupContainer: getPopupContainer,
|
|
|
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_6___default()(dropdownClassName, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
|
|
|
popupStyle: popupStyle,
|
|
|
getTriggerDOMNode: getTriggerDOMNode
|
|
|
}), children);
|
|
|
};
|
|
|
|
|
|
var RefSelectTrigger = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](SelectTrigger);
|
|
|
RefSelectTrigger.displayName = 'SelectTrigger';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (RefSelectTrigger);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Selector/Input.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Selector/Input.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Input = function Input(_ref, ref) {
|
|
|
var _inputNode2, _inputNode2$props;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
id = _ref.id,
|
|
|
inputElement = _ref.inputElement,
|
|
|
disabled = _ref.disabled,
|
|
|
tabIndex = _ref.tabIndex,
|
|
|
autoFocus = _ref.autoFocus,
|
|
|
autoComplete = _ref.autoComplete,
|
|
|
editable = _ref.editable,
|
|
|
accessibilityIndex = _ref.accessibilityIndex,
|
|
|
value = _ref.value,
|
|
|
maxLength = _ref.maxLength,
|
|
|
_onKeyDown = _ref.onKeyDown,
|
|
|
_onMouseDown = _ref.onMouseDown,
|
|
|
_onChange = _ref.onChange,
|
|
|
onPaste = _ref.onPaste,
|
|
|
_onCompositionStart = _ref.onCompositionStart,
|
|
|
_onCompositionEnd = _ref.onCompositionEnd,
|
|
|
open = _ref.open,
|
|
|
attrs = _ref.attrs;
|
|
|
var inputNode = inputElement || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", null);
|
|
|
var _inputNode = inputNode,
|
|
|
originRef = _inputNode.ref,
|
|
|
_inputNode$props = _inputNode.props,
|
|
|
onOriginKeyDown = _inputNode$props.onKeyDown,
|
|
|
onOriginChange = _inputNode$props.onChange,
|
|
|
onOriginMouseDown = _inputNode$props.onMouseDown,
|
|
|
onOriginCompositionStart = _inputNode$props.onCompositionStart,
|
|
|
onOriginCompositionEnd = _inputNode$props.onCompositionEnd,
|
|
|
style = _inputNode$props.style;
|
|
|
inputNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["cloneElement"](inputNode, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
id: id,
|
|
|
ref: Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_3__["composeRef"])(ref, originRef),
|
|
|
disabled: disabled,
|
|
|
tabIndex: tabIndex,
|
|
|
autoComplete: autoComplete || 'off',
|
|
|
type: 'search',
|
|
|
autoFocus: autoFocus,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, style), {}, {
|
|
|
opacity: editable ? null : 0
|
|
|
}),
|
|
|
role: 'combobox',
|
|
|
'aria-expanded': open,
|
|
|
'aria-haspopup': 'listbox',
|
|
|
'aria-owns': "".concat(id, "_list"),
|
|
|
'aria-autocomplete': 'list',
|
|
|
'aria-controls': "".concat(id, "_list"),
|
|
|
'aria-activedescendant': "".concat(id, "_list_").concat(accessibilityIndex)
|
|
|
}, attrs), {}, {
|
|
|
value: editable ? value : '',
|
|
|
maxLength: maxLength,
|
|
|
readOnly: !editable,
|
|
|
unselectable: !editable ? 'on' : null,
|
|
|
onKeyDown: function onKeyDown(event) {
|
|
|
_onKeyDown(event);
|
|
|
|
|
|
if (onOriginKeyDown) {
|
|
|
onOriginKeyDown(event);
|
|
|
}
|
|
|
},
|
|
|
onMouseDown: function onMouseDown(event) {
|
|
|
_onMouseDown(event);
|
|
|
|
|
|
if (onOriginMouseDown) {
|
|
|
onOriginMouseDown(event);
|
|
|
}
|
|
|
},
|
|
|
onChange: function onChange(event) {
|
|
|
_onChange(event);
|
|
|
|
|
|
if (onOriginChange) {
|
|
|
onOriginChange(event);
|
|
|
}
|
|
|
},
|
|
|
onCompositionStart: function onCompositionStart(event) {
|
|
|
_onCompositionStart(event);
|
|
|
|
|
|
if (onOriginCompositionStart) {
|
|
|
onOriginCompositionStart(event);
|
|
|
}
|
|
|
},
|
|
|
onCompositionEnd: function onCompositionEnd(event) {
|
|
|
_onCompositionEnd(event);
|
|
|
|
|
|
if (onOriginCompositionEnd) {
|
|
|
onOriginCompositionEnd(event);
|
|
|
}
|
|
|
},
|
|
|
onPaste: onPaste
|
|
|
}));
|
|
|
return inputNode;
|
|
|
};
|
|
|
|
|
|
var RefInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](Input);
|
|
|
RefInput.displayName = 'Input';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (RefInput);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Selector/MultipleSelector.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Selector/MultipleSelector.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
|
|
/* harmony import */ var rc_overflow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-overflow */ "./node_modules/rc-overflow/es/index.js");
|
|
|
/* harmony import */ var _TransBtn__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../TransBtn */ "./node_modules/rc-select/es/TransBtn.js");
|
|
|
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Input */ "./node_modules/rc-select/es/Selector/Input.js");
|
|
|
/* harmony import */ var _hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../hooks/useLayoutEffect */ "./node_modules/rc-select/es/hooks/useLayoutEffect.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var onPreventMouseDown = function onPreventMouseDown(event) {
|
|
|
event.preventDefault();
|
|
|
event.stopPropagation();
|
|
|
};
|
|
|
|
|
|
var SelectSelector = function SelectSelector(props) {
|
|
|
var id = props.id,
|
|
|
prefixCls = props.prefixCls,
|
|
|
values = props.values,
|
|
|
open = props.open,
|
|
|
searchValue = props.searchValue,
|
|
|
inputRef = props.inputRef,
|
|
|
placeholder = props.placeholder,
|
|
|
disabled = props.disabled,
|
|
|
mode = props.mode,
|
|
|
showSearch = props.showSearch,
|
|
|
autoFocus = props.autoFocus,
|
|
|
autoComplete = props.autoComplete,
|
|
|
accessibilityIndex = props.accessibilityIndex,
|
|
|
tabIndex = props.tabIndex,
|
|
|
removeIcon = props.removeIcon,
|
|
|
maxTagCount = props.maxTagCount,
|
|
|
maxTagTextLength = props.maxTagTextLength,
|
|
|
_props$maxTagPlacehol = props.maxTagPlaceholder,
|
|
|
maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {
|
|
|
return "+ ".concat(omittedValues.length, " ...");
|
|
|
} : _props$maxTagPlacehol,
|
|
|
tagRender = props.tagRender,
|
|
|
onToggleOpen = props.onToggleOpen,
|
|
|
onSelect = props.onSelect,
|
|
|
onInputChange = props.onInputChange,
|
|
|
onInputPaste = props.onInputPaste,
|
|
|
onInputKeyDown = props.onInputKeyDown,
|
|
|
onInputMouseDown = props.onInputMouseDown,
|
|
|
onInputCompositionStart = props.onInputCompositionStart,
|
|
|
onInputCompositionEnd = props.onInputCompositionEnd;
|
|
|
var measureRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](null);
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_2__["useState"])(0),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState, 2),
|
|
|
inputWidth = _useState2[0],
|
|
|
setInputWidth = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_2__["useState"])(false),
|
|
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useState3, 2),
|
|
|
focused = _useState4[0],
|
|
|
setFocused = _useState4[1];
|
|
|
|
|
|
var selectionPrefixCls = "".concat(prefixCls, "-selection"); // ===================== Search ======================
|
|
|
|
|
|
var inputValue = open || mode === 'tags' ? searchValue : '';
|
|
|
var inputEditable = mode === 'tags' || showSearch && (open || focused); // We measure width and set to the input immediately
|
|
|
|
|
|
Object(_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_8__["default"])(function () {
|
|
|
setInputWidth(measureRef.current.scrollWidth);
|
|
|
}, [inputValue]); // ===================== Render ======================
|
|
|
// >>> Render Selector Node. Includes Item & Rest
|
|
|
|
|
|
function defaultRenderSelector(content, itemDisabled, closable, onClose) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(selectionPrefixCls, "-item"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled))
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
|
|
|
className: "".concat(selectionPrefixCls, "-item-content")
|
|
|
}, content), closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_TransBtn__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
|
className: "".concat(selectionPrefixCls, "-item-remove"),
|
|
|
onMouseDown: onPreventMouseDown,
|
|
|
onClick: onClose,
|
|
|
customizeIcon: removeIcon
|
|
|
}, "\xD7"));
|
|
|
}
|
|
|
|
|
|
function customizeRenderSelector(value, content, itemDisabled, closable, onClose) {
|
|
|
var onMouseDown = function onMouseDown(e) {
|
|
|
onPreventMouseDown(e);
|
|
|
onToggleOpen(!open);
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
|
|
|
onMouseDown: onMouseDown
|
|
|
}, tagRender({
|
|
|
label: content,
|
|
|
value: value,
|
|
|
disabled: itemDisabled,
|
|
|
closable: closable,
|
|
|
onClose: onClose
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
function renderItem(_ref) {
|
|
|
var itemDisabled = _ref.disabled,
|
|
|
label = _ref.label,
|
|
|
value = _ref.value;
|
|
|
var closable = !disabled && !itemDisabled;
|
|
|
var displayLabel = label;
|
|
|
|
|
|
if (typeof maxTagTextLength === 'number') {
|
|
|
if (typeof label === 'string' || typeof label === 'number') {
|
|
|
var strLabel = String(displayLabel);
|
|
|
|
|
|
if (strLabel.length > maxTagTextLength) {
|
|
|
displayLabel = "".concat(strLabel.slice(0, maxTagTextLength), "...");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var onClose = function onClose(event) {
|
|
|
if (event) event.stopPropagation();
|
|
|
onSelect(value, {
|
|
|
selected: false
|
|
|
});
|
|
|
};
|
|
|
|
|
|
return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose) : defaultRenderSelector(displayLabel, itemDisabled, closable, onClose);
|
|
|
}
|
|
|
|
|
|
function renderRest(omittedValues) {
|
|
|
var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
|
|
return defaultRenderSelector(content, false);
|
|
|
} // >>> Input Node
|
|
|
|
|
|
|
|
|
var inputNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
|
className: "".concat(selectionPrefixCls, "-search"),
|
|
|
style: {
|
|
|
width: inputWidth
|
|
|
},
|
|
|
onFocus: function onFocus() {
|
|
|
setFocused(true);
|
|
|
},
|
|
|
onBlur: function onBlur() {
|
|
|
setFocused(false);
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_Input__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
ref: inputRef,
|
|
|
open: open,
|
|
|
prefixCls: prefixCls,
|
|
|
id: id,
|
|
|
inputElement: null,
|
|
|
disabled: disabled,
|
|
|
autoFocus: autoFocus,
|
|
|
autoComplete: autoComplete,
|
|
|
editable: inputEditable,
|
|
|
accessibilityIndex: accessibilityIndex,
|
|
|
value: inputValue,
|
|
|
onKeyDown: onInputKeyDown,
|
|
|
onMouseDown: onInputMouseDown,
|
|
|
onChange: onInputChange,
|
|
|
onPaste: onInputPaste,
|
|
|
onCompositionStart: onInputCompositionStart,
|
|
|
onCompositionEnd: onInputCompositionEnd,
|
|
|
tabIndex: tabIndex,
|
|
|
attrs: Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_4__["default"])(props, true)
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
|
|
|
ref: measureRef,
|
|
|
className: "".concat(selectionPrefixCls, "-search-mirror"),
|
|
|
"aria-hidden": true
|
|
|
}, inputValue, "\xA0")); // >>> Selections
|
|
|
|
|
|
var selectionNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](rc_overflow__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
prefixCls: "".concat(selectionPrefixCls, "-overflow"),
|
|
|
data: values,
|
|
|
renderItem: renderItem,
|
|
|
renderRest: renderRest,
|
|
|
suffix: inputNode,
|
|
|
itemKey: "key",
|
|
|
maxCount: maxTagCount
|
|
|
});
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](react__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, selectionNode, !values.length && !inputValue && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
|
|
|
className: "".concat(selectionPrefixCls, "-placeholder")
|
|
|
}, placeholder));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (SelectSelector);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Selector/SingleSelector.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Selector/SingleSelector.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/pickAttrs */ "./node_modules/rc-util/es/pickAttrs.js");
|
|
|
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input */ "./node_modules/rc-select/es/Selector/Input.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SingleSelector = function SingleSelector(props) {
|
|
|
var inputElement = props.inputElement,
|
|
|
prefixCls = props.prefixCls,
|
|
|
id = props.id,
|
|
|
inputRef = props.inputRef,
|
|
|
disabled = props.disabled,
|
|
|
autoFocus = props.autoFocus,
|
|
|
autoComplete = props.autoComplete,
|
|
|
accessibilityIndex = props.accessibilityIndex,
|
|
|
mode = props.mode,
|
|
|
open = props.open,
|
|
|
values = props.values,
|
|
|
placeholder = props.placeholder,
|
|
|
tabIndex = props.tabIndex,
|
|
|
showSearch = props.showSearch,
|
|
|
searchValue = props.searchValue,
|
|
|
activeValue = props.activeValue,
|
|
|
maxLength = props.maxLength,
|
|
|
onInputKeyDown = props.onInputKeyDown,
|
|
|
onInputMouseDown = props.onInputMouseDown,
|
|
|
onInputChange = props.onInputChange,
|
|
|
onInputPaste = props.onInputPaste,
|
|
|
onInputCompositionStart = props.onInputCompositionStart,
|
|
|
onInputCompositionEnd = props.onInputCompositionEnd;
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](false),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
inputChanged = _React$useState2[0],
|
|
|
setInputChanged = _React$useState2[1];
|
|
|
|
|
|
var combobox = mode === 'combobox';
|
|
|
var inputEditable = combobox || showSearch;
|
|
|
var item = values[0];
|
|
|
var inputValue = searchValue || '';
|
|
|
|
|
|
if (combobox && activeValue && !inputChanged) {
|
|
|
inputValue = activeValue;
|
|
|
}
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () {
|
|
|
if (combobox) {
|
|
|
setInputChanged(false);
|
|
|
}
|
|
|
}, [combobox, activeValue]); // Not show text when closed expect combobox mode
|
|
|
|
|
|
var hasTextInput = mode !== 'combobox' && !open ? false : !!inputValue;
|
|
|
var title = item && (typeof item.label === 'string' || typeof item.label === 'number') ? item.label.toString() : undefined;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
|
|
|
className: "".concat(prefixCls, "-selection-search")
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Input__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
|
ref: inputRef,
|
|
|
prefixCls: prefixCls,
|
|
|
id: id,
|
|
|
open: open,
|
|
|
inputElement: inputElement,
|
|
|
disabled: disabled,
|
|
|
autoFocus: autoFocus,
|
|
|
autoComplete: autoComplete,
|
|
|
editable: inputEditable,
|
|
|
accessibilityIndex: accessibilityIndex,
|
|
|
value: inputValue,
|
|
|
onKeyDown: onInputKeyDown,
|
|
|
onMouseDown: onInputMouseDown,
|
|
|
onChange: function onChange(e) {
|
|
|
setInputChanged(true);
|
|
|
onInputChange(e);
|
|
|
},
|
|
|
onPaste: onInputPaste,
|
|
|
onCompositionStart: onInputCompositionStart,
|
|
|
onCompositionEnd: onInputCompositionEnd,
|
|
|
tabIndex: tabIndex,
|
|
|
attrs: Object(rc_util_es_pickAttrs__WEBPACK_IMPORTED_MODULE_2__["default"])(props, true),
|
|
|
maxLength: combobox ? maxLength : undefined
|
|
|
})), !combobox && item && !hasTextInput && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
|
|
|
className: "".concat(prefixCls, "-selection-item"),
|
|
|
title: title
|
|
|
}, item.label), !item && !hasTextInput && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
|
|
|
className: "".concat(prefixCls, "-selection-placeholder")
|
|
|
}, placeholder));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (SingleSelector);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/Selector/index.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/Selector/index.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var _MultipleSelector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MultipleSelector */ "./node_modules/rc-select/es/Selector/MultipleSelector.js");
|
|
|
/* harmony import */ var _SingleSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SingleSelector */ "./node_modules/rc-select/es/Selector/SingleSelector.js");
|
|
|
/* harmony import */ var _hooks_useLock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../hooks/useLock */ "./node_modules/rc-select/es/hooks/useLock.js");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Cursor rule:
|
|
|
* 1. Only `showSearch` enabled
|
|
|
* 2. Only `open` is `true`
|
|
|
* 3. When typing, set `open` to `true` which hit rule of 2
|
|
|
*
|
|
|
* Accessibility:
|
|
|
* - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Selector = function Selector(props, ref) {
|
|
|
var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null);
|
|
|
var compositionStatusRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(false);
|
|
|
var prefixCls = props.prefixCls,
|
|
|
multiple = props.multiple,
|
|
|
open = props.open,
|
|
|
mode = props.mode,
|
|
|
showSearch = props.showSearch,
|
|
|
tokenWithEnter = props.tokenWithEnter,
|
|
|
onSearch = props.onSearch,
|
|
|
onSearchSubmit = props.onSearchSubmit,
|
|
|
onToggleOpen = props.onToggleOpen,
|
|
|
onInputKeyDown = props.onInputKeyDown,
|
|
|
domRef = props.domRef; // ======================= Ref =======================
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
focus: function focus() {
|
|
|
inputRef.current.focus();
|
|
|
},
|
|
|
blur: function blur() {
|
|
|
inputRef.current.blur();
|
|
|
}
|
|
|
};
|
|
|
}); // ====================== Input ======================
|
|
|
|
|
|
var _useLock = Object(_hooks_useLock__WEBPACK_IMPORTED_MODULE_6__["default"])(0),
|
|
|
_useLock2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_useLock, 2),
|
|
|
getInputMouseDown = _useLock2[0],
|
|
|
setInputMouseDown = _useLock2[1];
|
|
|
|
|
|
var onInternalInputKeyDown = function onInternalInputKeyDown(event) {
|
|
|
var which = event.which;
|
|
|
|
|
|
if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].UP || which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
if (onInputKeyDown) {
|
|
|
onInputKeyDown(event);
|
|
|
}
|
|
|
|
|
|
if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && mode === 'tags' && !compositionStatusRef.current && !open) {
|
|
|
// When menu isn't open, OptionList won't trigger a value change
|
|
|
// So when enter is pressed, the tag's input value should be emitted here to let selector know
|
|
|
onSearchSubmit(event.target.value);
|
|
|
}
|
|
|
|
|
|
if (![rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].SHIFT, rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].TAB, rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].BACKSPACE, rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ESC].includes(which)) {
|
|
|
onToggleOpen(true);
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* We can not use `findDOMNode` sine it will get warning,
|
|
|
* have to use timer to check if is input element.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var onInternalInputMouseDown = function onInternalInputMouseDown() {
|
|
|
setInputMouseDown(true);
|
|
|
}; // When paste come, ignore next onChange
|
|
|
|
|
|
|
|
|
var pastedTextRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null);
|
|
|
|
|
|
var triggerOnSearch = function triggerOnSearch(value) {
|
|
|
if (onSearch(value, true, compositionStatusRef.current) !== false) {
|
|
|
onToggleOpen(true);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onInputCompositionStart = function onInputCompositionStart() {
|
|
|
compositionStatusRef.current = true;
|
|
|
};
|
|
|
|
|
|
var onInputCompositionEnd = function onInputCompositionEnd(e) {
|
|
|
compositionStatusRef.current = false; // Trigger search again to support `tokenSeparators` with typewriting
|
|
|
|
|
|
if (mode !== 'combobox') {
|
|
|
triggerOnSearch(e.target.value);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onInputChange = function onInputChange(event) {
|
|
|
var value = event.target.value; // Pasted text should replace back to origin content
|
|
|
|
|
|
if (tokenWithEnter && pastedTextRef.current && /[\r\n]/.test(pastedTextRef.current)) {
|
|
|
// CRLF will be treated as a single space for input element
|
|
|
var replacedText = pastedTextRef.current.replace(/[\r\n]+$/, '').replace(/\r\n/g, ' ').replace(/[\r\n]/g, ' ');
|
|
|
value = value.replace(replacedText, pastedTextRef.current);
|
|
|
}
|
|
|
|
|
|
pastedTextRef.current = null;
|
|
|
triggerOnSearch(value);
|
|
|
};
|
|
|
|
|
|
var onInputPaste = function onInputPaste(e) {
|
|
|
var clipboardData = e.clipboardData;
|
|
|
var value = clipboardData.getData('text');
|
|
|
pastedTextRef.current = value;
|
|
|
};
|
|
|
|
|
|
var onClick = function onClick(_ref) {
|
|
|
var target = _ref.target;
|
|
|
|
|
|
if (target !== inputRef.current) {
|
|
|
// Should focus input if click the selector
|
|
|
var isIE = document.body.style.msTouchAction !== undefined;
|
|
|
|
|
|
if (isIE) {
|
|
|
setTimeout(function () {
|
|
|
inputRef.current.focus();
|
|
|
});
|
|
|
} else {
|
|
|
inputRef.current.focus();
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onMouseDown = function onMouseDown(event) {
|
|
|
var inputMouseDown = getInputMouseDown();
|
|
|
|
|
|
if (event.target !== inputRef.current && !inputMouseDown) {
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
if (mode !== 'combobox' && (!showSearch || !inputMouseDown) || !open) {
|
|
|
if (open) {
|
|
|
onSearch('', true, false);
|
|
|
}
|
|
|
|
|
|
onToggleOpen();
|
|
|
}
|
|
|
}; // ================= Inner Selector ==================
|
|
|
|
|
|
|
|
|
var sharedProps = {
|
|
|
inputRef: inputRef,
|
|
|
onInputKeyDown: onInternalInputKeyDown,
|
|
|
onInputMouseDown: onInternalInputMouseDown,
|
|
|
onInputChange: onInputChange,
|
|
|
onInputPaste: onInputPaste,
|
|
|
onInputCompositionStart: onInputCompositionStart,
|
|
|
onInputCompositionEnd: onInputCompositionEnd
|
|
|
};
|
|
|
var selectNode = multiple ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_MultipleSelector__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, sharedProps)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_SingleSelector__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, sharedProps));
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
|
ref: domRef,
|
|
|
className: "".concat(prefixCls, "-selector"),
|
|
|
onClick: onClick,
|
|
|
onMouseDown: onMouseDown
|
|
|
}, selectNode);
|
|
|
};
|
|
|
|
|
|
var ForwardSelector = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](Selector);
|
|
|
ForwardSelector.displayName = 'Selector';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ForwardSelector);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/TransBtn.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/TransBtn.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
|
|
|
var TransBtn = function TransBtn(_ref) {
|
|
|
var className = _ref.className,
|
|
|
customizeIcon = _ref.customizeIcon,
|
|
|
customizeIconProps = _ref.customizeIconProps,
|
|
|
_onMouseDown = _ref.onMouseDown,
|
|
|
onClick = _ref.onClick,
|
|
|
children = _ref.children;
|
|
|
var icon;
|
|
|
|
|
|
if (typeof customizeIcon === 'function') {
|
|
|
icon = customizeIcon(customizeIconProps);
|
|
|
} else {
|
|
|
icon = customizeIcon;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", {
|
|
|
className: className,
|
|
|
onMouseDown: function onMouseDown(event) {
|
|
|
event.preventDefault();
|
|
|
|
|
|
if (_onMouseDown) {
|
|
|
_onMouseDown(event);
|
|
|
}
|
|
|
},
|
|
|
style: {
|
|
|
userSelect: 'none',
|
|
|
WebkitUserSelect: 'none'
|
|
|
},
|
|
|
unselectable: "on",
|
|
|
onClick: onClick,
|
|
|
"aria-hidden": true
|
|
|
}, icon !== undefined ? icon : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(className.split(/\s+/).map(function (cls) {
|
|
|
return "".concat(cls, "-icon");
|
|
|
}))
|
|
|
}, children));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (TransBtn);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/generate.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/generate.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return generateSelector; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/KeyCode */ "./node_modules/rc-util/es/KeyCode.js");
|
|
|
/* harmony import */ var rc_util_es_isMobile__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rc-util/es/isMobile */ "./node_modules/rc-util/es/isMobile.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ "./node_modules/rc-util/es/hooks/useMergedState.js");
|
|
|
/* harmony import */ var _Selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Selector */ "./node_modules/rc-select/es/Selector/index.js");
|
|
|
/* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./SelectTrigger */ "./node_modules/rc-select/es/SelectTrigger.js");
|
|
|
/* harmony import */ var _interface_generator__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./interface/generator */ "./node_modules/rc-select/es/interface/generator.js");
|
|
|
/* harmony import */ var _utils_commonUtil__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utils/commonUtil */ "./node_modules/rc-select/es/utils/commonUtil.js");
|
|
|
/* harmony import */ var _TransBtn__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TransBtn */ "./node_modules/rc-select/es/TransBtn.js");
|
|
|
/* harmony import */ var _hooks_useLock__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./hooks/useLock */ "./node_modules/rc-select/es/hooks/useLock.js");
|
|
|
/* harmony import */ var _hooks_useDelayReset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./hooks/useDelayReset */ "./node_modules/rc-select/es/hooks/useDelayReset.js");
|
|
|
/* harmony import */ var _hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./hooks/useLayoutEffect */ "./node_modules/rc-select/es/hooks/useLayoutEffect.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-select/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _hooks_useSelectTriggerControl__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./hooks/useSelectTriggerControl */ "./node_modules/rc-select/es/hooks/useSelectTriggerControl.js");
|
|
|
/* harmony import */ var _hooks_useCacheDisplayValue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./hooks/useCacheDisplayValue */ "./node_modules/rc-select/es/hooks/useCacheDisplayValue.js");
|
|
|
/* harmony import */ var _hooks_useCacheOptions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./hooks/useCacheOptions */ "./node_modules/rc-select/es/hooks/useCacheOptions.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* To match accessibility requirement, we always provide an input in the component.
|
|
|
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
|
|
|
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
|
|
*
|
|
|
* ref:
|
|
|
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DEFAULT_OMIT_PROPS = ['removeIcon', 'placeholder', 'autoFocus', 'maxTagCount', 'maxTagTextLength', 'maxTagPlaceholder', 'choiceTransitionName', 'onInputKeyDown', 'tabIndex'];
|
|
|
/**
|
|
|
* This function is in internal usage.
|
|
|
* Do not use it in your prod env since we may refactor this.
|
|
|
*/
|
|
|
|
|
|
function generateSelector(config) {
|
|
|
var defaultPrefixCls = config.prefixCls,
|
|
|
OptionList = config.components.optionList,
|
|
|
convertChildrenToData = config.convertChildrenToData,
|
|
|
flattenOptions = config.flattenOptions,
|
|
|
getLabeledValue = config.getLabeledValue,
|
|
|
filterOptions = config.filterOptions,
|
|
|
isValueDisabled = config.isValueDisabled,
|
|
|
findValueOption = config.findValueOption,
|
|
|
warningProps = config.warningProps,
|
|
|
fillOptionsWithMissingValue = config.fillOptionsWithMissingValue,
|
|
|
omitDOMProps = config.omitDOMProps; // Use raw define since `React.FC` not support generic
|
|
|
|
|
|
function Select(props, ref) {
|
|
|
var _classNames2;
|
|
|
|
|
|
var _props$prefixCls = props.prefixCls,
|
|
|
prefixCls = _props$prefixCls === void 0 ? defaultPrefixCls : _props$prefixCls,
|
|
|
className = props.className,
|
|
|
id = props.id,
|
|
|
open = props.open,
|
|
|
defaultOpen = props.defaultOpen,
|
|
|
options = props.options,
|
|
|
children = props.children,
|
|
|
mode = props.mode,
|
|
|
value = props.value,
|
|
|
defaultValue = props.defaultValue,
|
|
|
labelInValue = props.labelInValue,
|
|
|
showSearch = props.showSearch,
|
|
|
inputValue = props.inputValue,
|
|
|
searchValue = props.searchValue,
|
|
|
filterOption = props.filterOption,
|
|
|
filterSort = props.filterSort,
|
|
|
_props$optionFilterPr = props.optionFilterProp,
|
|
|
optionFilterProp = _props$optionFilterPr === void 0 ? 'value' : _props$optionFilterPr,
|
|
|
_props$autoClearSearc = props.autoClearSearchValue,
|
|
|
autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,
|
|
|
onSearch = props.onSearch,
|
|
|
allowClear = props.allowClear,
|
|
|
clearIcon = props.clearIcon,
|
|
|
showArrow = props.showArrow,
|
|
|
inputIcon = props.inputIcon,
|
|
|
menuItemSelectedIcon = props.menuItemSelectedIcon,
|
|
|
disabled = props.disabled,
|
|
|
loading = props.loading,
|
|
|
defaultActiveFirstOption = props.defaultActiveFirstOption,
|
|
|
_props$notFoundConten = props.notFoundContent,
|
|
|
notFoundContent = _props$notFoundConten === void 0 ? 'Not Found' : _props$notFoundConten,
|
|
|
optionLabelProp = props.optionLabelProp,
|
|
|
backfill = props.backfill,
|
|
|
tabIndex = props.tabIndex,
|
|
|
getInputElement = props.getInputElement,
|
|
|
getPopupContainer = props.getPopupContainer,
|
|
|
_props$listHeight = props.listHeight,
|
|
|
listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight,
|
|
|
_props$listItemHeight = props.listItemHeight,
|
|
|
listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight,
|
|
|
animation = props.animation,
|
|
|
transitionName = props.transitionName,
|
|
|
virtual = props.virtual,
|
|
|
dropdownStyle = props.dropdownStyle,
|
|
|
dropdownClassName = props.dropdownClassName,
|
|
|
dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
|
|
|
dropdownRender = props.dropdownRender,
|
|
|
dropdownAlign = props.dropdownAlign,
|
|
|
_props$showAction = props.showAction,
|
|
|
showAction = _props$showAction === void 0 ? [] : _props$showAction,
|
|
|
direction = props.direction,
|
|
|
tokenSeparators = props.tokenSeparators,
|
|
|
tagRender = props.tagRender,
|
|
|
onPopupScroll = props.onPopupScroll,
|
|
|
onDropdownVisibleChange = props.onDropdownVisibleChange,
|
|
|
onFocus = props.onFocus,
|
|
|
onBlur = props.onBlur,
|
|
|
onKeyUp = props.onKeyUp,
|
|
|
onKeyDown = props.onKeyDown,
|
|
|
onMouseDown = props.onMouseDown,
|
|
|
onChange = props.onChange,
|
|
|
onSelect = props.onSelect,
|
|
|
onDeselect = props.onDeselect,
|
|
|
onClear = props.onClear,
|
|
|
_props$internalProps = props.internalProps,
|
|
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
|
|
|
|
|
|
var useInternalProps = internalProps.mark === _interface_generator__WEBPACK_IMPORTED_MODULE_13__["INTERNAL_PROPS_MARK"];
|
|
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
|
DEFAULT_OMIT_PROPS.forEach(function (prop) {
|
|
|
delete domProps[prop];
|
|
|
});
|
|
|
var containerRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
|
var triggerRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
|
var selectorRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
|
var listRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
|
var tokenWithEnter = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
return (tokenSeparators || []).some(function (tokenSeparator) {
|
|
|
return ['\n', '\r\n'].includes(tokenSeparator);
|
|
|
});
|
|
|
}, [tokenSeparators]);
|
|
|
/** Used for component focused management */
|
|
|
|
|
|
var _useDelayReset = Object(_hooks_useDelayReset__WEBPACK_IMPORTED_MODULE_17__["default"])(),
|
|
|
_useDelayReset2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useDelayReset, 3),
|
|
|
mockFocused = _useDelayReset2[0],
|
|
|
setMockFocused = _useDelayReset2[1],
|
|
|
cancelSetMockFocused = _useDelayReset2[2]; // Inner id for accessibility usage. Only work in client side
|
|
|
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState, 2),
|
|
|
innerId = _useState2[0],
|
|
|
setInnerId = _useState2[1];
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
setInnerId("rc_select_".concat(Object(_utils_commonUtil__WEBPACK_IMPORTED_MODULE_14__["getUUID"])()));
|
|
|
}, []);
|
|
|
var mergedId = id || innerId; // optionLabelProp
|
|
|
|
|
|
var mergedOptionLabelProp = optionLabelProp;
|
|
|
|
|
|
if (mergedOptionLabelProp === undefined) {
|
|
|
mergedOptionLabelProp = options ? 'label' : 'children';
|
|
|
} // labelInValue
|
|
|
|
|
|
|
|
|
var mergedLabelInValue = mode === 'combobox' ? false : labelInValue;
|
|
|
var isMultiple = mode === 'tags' || mode === 'multiple';
|
|
|
var mergedShowSearch = showSearch !== undefined ? showSearch : isMultiple || mode === 'combobox'; // ======================== Mobile ========================
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(false),
|
|
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState3, 2),
|
|
|
mobile = _useState4[0],
|
|
|
setMobile = _useState4[1];
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
// Only update on the client side
|
|
|
setMobile(Object(rc_util_es_isMobile__WEBPACK_IMPORTED_MODULE_8__["default"])());
|
|
|
}, []); // ============================== Ref ===============================
|
|
|
|
|
|
var selectorDomRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
|
react__WEBPACK_IMPORTED_MODULE_6__["useImperativeHandle"](ref, function () {
|
|
|
var _selectorRef$current, _selectorRef$current2, _listRef$current;
|
|
|
|
|
|
return {
|
|
|
focus: (_selectorRef$current = selectorRef.current) === null || _selectorRef$current === void 0 ? void 0 : _selectorRef$current.focus,
|
|
|
blur: (_selectorRef$current2 = selectorRef.current) === null || _selectorRef$current2 === void 0 ? void 0 : _selectorRef$current2.blur,
|
|
|
scrollTo: (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollTo
|
|
|
};
|
|
|
}); // ============================= Value ==============================
|
|
|
|
|
|
var _useMergedState = Object(rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_10__["default"])(defaultValue, {
|
|
|
value: value
|
|
|
}),
|
|
|
_useMergedState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useMergedState, 2),
|
|
|
mergedValue = _useMergedState2[0],
|
|
|
setMergedValue = _useMergedState2[1];
|
|
|
/** Unique raw values */
|
|
|
|
|
|
|
|
|
var _useMemo = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
return Object(_utils_commonUtil__WEBPACK_IMPORTED_MODULE_14__["toInnerValue"])(mergedValue, {
|
|
|
labelInValue: mergedLabelInValue,
|
|
|
combobox: mode === 'combobox'
|
|
|
});
|
|
|
}, [mergedValue, mergedLabelInValue]),
|
|
|
_useMemo2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useMemo, 2),
|
|
|
mergedRawValue = _useMemo2[0],
|
|
|
mergedValueMap = _useMemo2[1];
|
|
|
/** We cache a set of raw values to speed up check */
|
|
|
|
|
|
|
|
|
var rawValues = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
return new Set(mergedRawValue);
|
|
|
}, [mergedRawValue]); // ============================= Option =============================
|
|
|
// Set by option list active, it will merge into search input when mode is `combobox`
|
|
|
|
|
|
var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(null),
|
|
|
_useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState5, 2),
|
|
|
activeValue = _useState6[0],
|
|
|
setActiveValue = _useState6[1];
|
|
|
|
|
|
var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(''),
|
|
|
_useState8 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState7, 2),
|
|
|
innerSearchValue = _useState8[0],
|
|
|
setInnerSearchValue = _useState8[1];
|
|
|
|
|
|
var mergedSearchValue = innerSearchValue;
|
|
|
|
|
|
if (mode === 'combobox' && mergedValue !== undefined) {
|
|
|
mergedSearchValue = mergedValue;
|
|
|
} else if (searchValue !== undefined) {
|
|
|
mergedSearchValue = searchValue;
|
|
|
} else if (inputValue) {
|
|
|
mergedSearchValue = inputValue;
|
|
|
}
|
|
|
|
|
|
var mergedOptions = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
var newOptions = options;
|
|
|
|
|
|
if (newOptions === undefined) {
|
|
|
newOptions = convertChildrenToData(children);
|
|
|
}
|
|
|
/**
|
|
|
* `tags` should fill un-list item.
|
|
|
* This is not cool here since TreeSelect do not need this
|
|
|
*/
|
|
|
|
|
|
|
|
|
if (mode === 'tags' && fillOptionsWithMissingValue) {
|
|
|
newOptions = fillOptionsWithMissingValue(newOptions, mergedValue, mergedOptionLabelProp, labelInValue);
|
|
|
}
|
|
|
|
|
|
return newOptions || [];
|
|
|
}, [options, children, mode, mergedValue]);
|
|
|
var mergedFlattenOptions = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
return flattenOptions(mergedOptions, props);
|
|
|
}, [mergedOptions]);
|
|
|
var getValueOption = Object(_hooks_useCacheOptions__WEBPACK_IMPORTED_MODULE_22__["default"])(mergedFlattenOptions); // Display options for OptionList
|
|
|
|
|
|
var displayOptions = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
if (!mergedSearchValue || !mergedShowSearch) {
|
|
|
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedOptions);
|
|
|
}
|
|
|
|
|
|
var filteredOptions = filterOptions(mergedSearchValue, mergedOptions, {
|
|
|
optionFilterProp: optionFilterProp,
|
|
|
filterOption: mode === 'combobox' && filterOption === undefined ? function () {
|
|
|
return true;
|
|
|
} : filterOption
|
|
|
});
|
|
|
|
|
|
if (mode === 'tags' && filteredOptions.every(function (opt) {
|
|
|
return opt[optionFilterProp] !== mergedSearchValue;
|
|
|
})) {
|
|
|
filteredOptions.unshift({
|
|
|
value: mergedSearchValue,
|
|
|
label: mergedSearchValue,
|
|
|
key: '__RC_SELECT_TAG_PLACEHOLDER__'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (filterSort && Array.isArray(filteredOptions)) {
|
|
|
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(filteredOptions).sort(filterSort);
|
|
|
}
|
|
|
|
|
|
return filteredOptions;
|
|
|
}, [mergedOptions, mergedSearchValue, mode, mergedShowSearch, filterSort]);
|
|
|
var displayFlattenOptions = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
return flattenOptions(displayOptions, props);
|
|
|
}, [displayOptions]);
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
if (listRef.current && listRef.current.scrollTo) {
|
|
|
listRef.current.scrollTo(0);
|
|
|
}
|
|
|
}, [mergedSearchValue]); // ============================ Selector ============================
|
|
|
|
|
|
var displayValues = Object(react__WEBPACK_IMPORTED_MODULE_6__["useMemo"])(function () {
|
|
|
var tmpValues = mergedRawValue.map(function (val) {
|
|
|
var valueOptions = getValueOption([val]);
|
|
|
var displayValue = getLabeledValue(val, {
|
|
|
options: valueOptions,
|
|
|
prevValueMap: mergedValueMap,
|
|
|
labelInValue: mergedLabelInValue,
|
|
|
optionLabelProp: mergedOptionLabelProp
|
|
|
});
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, displayValue), {}, {
|
|
|
disabled: isValueDisabled(val, valueOptions)
|
|
|
});
|
|
|
});
|
|
|
|
|
|
if (!mode && tmpValues.length === 1 && tmpValues[0].value === null && tmpValues[0].label === null) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return tmpValues;
|
|
|
}, [mergedValue, mergedOptions, mode]); // Polyfill with cache label
|
|
|
|
|
|
displayValues = Object(_hooks_useCacheDisplayValue__WEBPACK_IMPORTED_MODULE_21__["default"])(displayValues);
|
|
|
|
|
|
var triggerSelect = function triggerSelect(newValue, isSelect, source) {
|
|
|
var newValueOption = getValueOption([newValue]);
|
|
|
var outOption = findValueOption([newValue], newValueOption)[0];
|
|
|
|
|
|
if (!internalProps.skipTriggerSelect) {
|
|
|
// Skip trigger `onSelect` or `onDeselect` if configured
|
|
|
var selectValue = mergedLabelInValue ? getLabeledValue(newValue, {
|
|
|
options: newValueOption,
|
|
|
prevValueMap: mergedValueMap,
|
|
|
labelInValue: mergedLabelInValue,
|
|
|
optionLabelProp: mergedOptionLabelProp
|
|
|
}) : newValue;
|
|
|
|
|
|
if (isSelect && onSelect) {
|
|
|
onSelect(selectValue, outOption);
|
|
|
} else if (!isSelect && onDeselect) {
|
|
|
onDeselect(selectValue, outOption);
|
|
|
}
|
|
|
} // Trigger internal event
|
|
|
|
|
|
|
|
|
if (useInternalProps) {
|
|
|
if (isSelect && internalProps.onRawSelect) {
|
|
|
internalProps.onRawSelect(newValue, outOption, source);
|
|
|
} else if (!isSelect && internalProps.onRawDeselect) {
|
|
|
internalProps.onRawDeselect(newValue, outOption, source);
|
|
|
}
|
|
|
}
|
|
|
}; // We need cache options here in case user update the option list
|
|
|
|
|
|
|
|
|
var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])([]),
|
|
|
_useState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState9, 2),
|
|
|
prevValueOptions = _useState10[0],
|
|
|
setPrevValueOptions = _useState10[1];
|
|
|
|
|
|
var triggerChange = function triggerChange(newRawValues) {
|
|
|
if (useInternalProps && internalProps.skipTriggerChange) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newRawValuesOptions = getValueOption(newRawValues);
|
|
|
var outValues = Object(_utils_commonUtil__WEBPACK_IMPORTED_MODULE_14__["toOuterValues"])(Array.from(newRawValues), {
|
|
|
labelInValue: mergedLabelInValue,
|
|
|
options: newRawValuesOptions,
|
|
|
getLabeledValue: getLabeledValue,
|
|
|
prevValueMap: mergedValueMap,
|
|
|
optionLabelProp: mergedOptionLabelProp
|
|
|
});
|
|
|
var outValue = isMultiple ? outValues : outValues[0]; // Skip trigger if prev & current value is both empty
|
|
|
|
|
|
if (onChange && (mergedRawValue.length !== 0 || outValues.length !== 0)) {
|
|
|
var outOptions = findValueOption(newRawValues, newRawValuesOptions, {
|
|
|
prevValueOptions: prevValueOptions
|
|
|
}); // We will cache option in case it removed by ajax
|
|
|
|
|
|
setPrevValueOptions(outOptions.map(function (option, index) {
|
|
|
var clone = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, option);
|
|
|
|
|
|
Object.defineProperty(clone, '_INTERNAL_OPTION_VALUE_', {
|
|
|
get: function get() {
|
|
|
return newRawValues[index];
|
|
|
}
|
|
|
});
|
|
|
return clone;
|
|
|
}));
|
|
|
onChange(outValue, isMultiple ? outOptions : outOptions[0]);
|
|
|
}
|
|
|
|
|
|
setMergedValue(outValue);
|
|
|
};
|
|
|
|
|
|
var onInternalSelect = function onInternalSelect(newValue, _ref) {
|
|
|
var selected = _ref.selected,
|
|
|
source = _ref.source;
|
|
|
|
|
|
if (disabled) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newRawValue;
|
|
|
|
|
|
if (isMultiple) {
|
|
|
newRawValue = new Set(mergedRawValue);
|
|
|
|
|
|
if (selected) {
|
|
|
newRawValue.add(newValue);
|
|
|
} else {
|
|
|
newRawValue.delete(newValue);
|
|
|
}
|
|
|
} else {
|
|
|
newRawValue = new Set();
|
|
|
newRawValue.add(newValue);
|
|
|
} // Multiple always trigger change and single should change if value changed
|
|
|
|
|
|
|
|
|
if (isMultiple || !isMultiple && Array.from(mergedRawValue)[0] !== newValue) {
|
|
|
triggerChange(Array.from(newRawValue));
|
|
|
} // Trigger `onSelect`. Single mode always trigger select
|
|
|
|
|
|
|
|
|
triggerSelect(newValue, !isMultiple || selected, source); // Clean search value if single or configured
|
|
|
|
|
|
if (mode === 'combobox') {
|
|
|
setInnerSearchValue(String(newValue));
|
|
|
setActiveValue('');
|
|
|
} else if (!isMultiple || autoClearSearchValue) {
|
|
|
setInnerSearchValue('');
|
|
|
setActiveValue('');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onInternalOptionSelect = function onInternalOptionSelect(newValue, info) {
|
|
|
onInternalSelect(newValue, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, info), {}, {
|
|
|
source: 'option'
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var onInternalSelectionSelect = function onInternalSelectionSelect(newValue, info) {
|
|
|
onInternalSelect(newValue, Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, info), {}, {
|
|
|
source: 'selection'
|
|
|
}));
|
|
|
}; // ============================= Input ==============================
|
|
|
// Only works in `combobox`
|
|
|
|
|
|
|
|
|
var customizeInputElement = mode === 'combobox' && getInputElement && getInputElement() || null; // ============================== Open ==============================
|
|
|
|
|
|
var _useMergedState3 = Object(rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_10__["default"])(undefined, {
|
|
|
defaultValue: defaultOpen,
|
|
|
value: open
|
|
|
}),
|
|
|
_useMergedState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useMergedState3, 2),
|
|
|
innerOpen = _useMergedState4[0],
|
|
|
setInnerOpen = _useMergedState4[1];
|
|
|
|
|
|
var mergedOpen = innerOpen; // Not trigger `open` in `combobox` when `notFoundContent` is empty
|
|
|
|
|
|
var emptyListContent = !notFoundContent && !displayOptions.length;
|
|
|
|
|
|
if (disabled || emptyListContent && mergedOpen && mode === 'combobox') {
|
|
|
mergedOpen = false;
|
|
|
}
|
|
|
|
|
|
var triggerOpen = emptyListContent ? false : mergedOpen;
|
|
|
|
|
|
var onToggleOpen = function onToggleOpen(newOpen) {
|
|
|
var nextOpen = newOpen !== undefined ? newOpen : !mergedOpen;
|
|
|
|
|
|
if (innerOpen !== nextOpen && !disabled) {
|
|
|
setInnerOpen(nextOpen);
|
|
|
|
|
|
if (onDropdownVisibleChange) {
|
|
|
onDropdownVisibleChange(nextOpen);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
Object(_hooks_useSelectTriggerControl__WEBPACK_IMPORTED_MODULE_20__["default"])([containerRef.current, triggerRef.current && triggerRef.current.getPopupElement()], triggerOpen, onToggleOpen); // ============================= Search =============================
|
|
|
|
|
|
var triggerSearch = function triggerSearch(searchText, fromTyping, isCompositing) {
|
|
|
var ret = true;
|
|
|
var newSearchText = searchText;
|
|
|
setActiveValue(null); // Check if match the `tokenSeparators`
|
|
|
|
|
|
var patchLabels = isCompositing ? null : Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_19__["getSeparatedContent"])(searchText, tokenSeparators);
|
|
|
var patchRawValues = patchLabels;
|
|
|
|
|
|
if (mode === 'combobox') {
|
|
|
// Only typing will trigger onChange
|
|
|
if (fromTyping) {
|
|
|
triggerChange([newSearchText]);
|
|
|
}
|
|
|
} else if (patchLabels) {
|
|
|
newSearchText = '';
|
|
|
|
|
|
if (mode !== 'tags') {
|
|
|
patchRawValues = patchLabels.map(function (label) {
|
|
|
var item = mergedFlattenOptions.find(function (_ref2) {
|
|
|
var data = _ref2.data;
|
|
|
return data[mergedOptionLabelProp] === label;
|
|
|
});
|
|
|
return item ? item.data.value : null;
|
|
|
}).filter(function (val) {
|
|
|
return val !== null;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var newRawValues = Array.from(new Set([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedRawValue), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(patchRawValues))));
|
|
|
triggerChange(newRawValues);
|
|
|
newRawValues.forEach(function (newRawValue) {
|
|
|
triggerSelect(newRawValue, true, 'input');
|
|
|
}); // Should close when paste finish
|
|
|
|
|
|
onToggleOpen(false); // Tell Selector that break next actions
|
|
|
|
|
|
ret = false;
|
|
|
}
|
|
|
|
|
|
setInnerSearchValue(newSearchText);
|
|
|
|
|
|
if (onSearch && mergedSearchValue !== newSearchText) {
|
|
|
onSearch(newSearchText);
|
|
|
}
|
|
|
|
|
|
return ret;
|
|
|
}; // Only triggered when menu is closed & mode is tags
|
|
|
// If menu is open, OptionList will take charge
|
|
|
// If mode isn't tags, press enter is not meaningful when you can't see any option
|
|
|
|
|
|
|
|
|
var onSearchSubmit = function onSearchSubmit(searchText) {
|
|
|
// prevent empty tags from appearing when you click the Enter button
|
|
|
if (!searchText || !searchText.trim()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newRawValues = Array.from(new Set([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedRawValue), [searchText])));
|
|
|
triggerChange(newRawValues);
|
|
|
newRawValues.forEach(function (newRawValue) {
|
|
|
triggerSelect(newRawValue, true, 'input');
|
|
|
});
|
|
|
setInnerSearchValue('');
|
|
|
}; // Close dropdown when disabled change
|
|
|
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
if (innerOpen && !!disabled) {
|
|
|
setInnerOpen(false);
|
|
|
}
|
|
|
}, [disabled]); // Close will clean up single mode search text
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
if (!mergedOpen && !isMultiple && mode !== 'combobox') {
|
|
|
triggerSearch('', false, false);
|
|
|
}
|
|
|
}, [mergedOpen]); // ============================ Keyboard ============================
|
|
|
|
|
|
/**
|
|
|
* We record input value here to check if can press to clean up by backspace
|
|
|
* - null: Key is not down, this is reset by key up
|
|
|
* - true: Search text is empty when first time backspace down
|
|
|
* - false: Search text is not empty when first time backspace down
|
|
|
*/
|
|
|
|
|
|
var _useLock = Object(_hooks_useLock__WEBPACK_IMPORTED_MODULE_16__["default"])(),
|
|
|
_useLock2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useLock, 2),
|
|
|
getClearLock = _useLock2[0],
|
|
|
setClearLock = _useLock2[1]; // KeyDown
|
|
|
|
|
|
|
|
|
var onInternalKeyDown = function onInternalKeyDown(event) {
|
|
|
var clearLock = getClearLock();
|
|
|
var which = event.which;
|
|
|
|
|
|
if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
|
|
|
// Do not submit form when type in the input
|
|
|
if (mode !== 'combobox') {
|
|
|
event.preventDefault();
|
|
|
} // We only manage open state here, close logic should handle by list component
|
|
|
|
|
|
|
|
|
if (!mergedOpen) {
|
|
|
onToggleOpen(true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setClearLock(!!mergedSearchValue); // Remove value by `backspace`
|
|
|
|
|
|
if (which === rc_util_es_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && !clearLock && isMultiple && !mergedSearchValue && mergedRawValue.length) {
|
|
|
var removeInfo = Object(_utils_commonUtil__WEBPACK_IMPORTED_MODULE_14__["removeLastEnabledValue"])(displayValues, mergedRawValue);
|
|
|
|
|
|
if (removeInfo.removedValue !== null) {
|
|
|
triggerChange(removeInfo.values);
|
|
|
triggerSelect(removeInfo.removedValue, false, 'input');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
|
rest[_key - 1] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
if (mergedOpen && listRef.current) {
|
|
|
var _listRef$current2;
|
|
|
|
|
|
(_listRef$current2 = listRef.current).onKeyDown.apply(_listRef$current2, [event].concat(rest));
|
|
|
}
|
|
|
|
|
|
if (onKeyDown) {
|
|
|
onKeyDown.apply(void 0, [event].concat(rest));
|
|
|
}
|
|
|
}; // KeyUp
|
|
|
|
|
|
|
|
|
var onInternalKeyUp = function onInternalKeyUp(event) {
|
|
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
|
rest[_key2 - 1] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
if (mergedOpen && listRef.current) {
|
|
|
var _listRef$current3;
|
|
|
|
|
|
(_listRef$current3 = listRef.current).onKeyUp.apply(_listRef$current3, [event].concat(rest));
|
|
|
}
|
|
|
|
|
|
if (onKeyUp) {
|
|
|
onKeyUp.apply(void 0, [event].concat(rest));
|
|
|
}
|
|
|
}; // ========================== Focus / Blur ==========================
|
|
|
|
|
|
/** Record real focus status */
|
|
|
|
|
|
|
|
|
var focusRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(false);
|
|
|
|
|
|
var onContainerFocus = function onContainerFocus() {
|
|
|
setMockFocused(true);
|
|
|
|
|
|
if (!disabled) {
|
|
|
if (onFocus && !focusRef.current) {
|
|
|
onFocus.apply(void 0, arguments);
|
|
|
} // `showAction` should handle `focus` if set
|
|
|
|
|
|
|
|
|
if (showAction.includes('focus')) {
|
|
|
onToggleOpen(true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
focusRef.current = true;
|
|
|
};
|
|
|
|
|
|
var onContainerBlur = function onContainerBlur() {
|
|
|
setMockFocused(false, function () {
|
|
|
focusRef.current = false;
|
|
|
onToggleOpen(false);
|
|
|
});
|
|
|
|
|
|
if (disabled) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (mergedSearchValue) {
|
|
|
// `tags` mode should move `searchValue` into values
|
|
|
if (mode === 'tags') {
|
|
|
triggerSearch('', false, false);
|
|
|
triggerChange(Array.from(new Set([].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedRawValue), [mergedSearchValue]))));
|
|
|
} else if (mode === 'multiple') {
|
|
|
// `multiple` mode only clean the search value but not trigger event
|
|
|
setInnerSearchValue('');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (onBlur) {
|
|
|
onBlur.apply(void 0, arguments);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var activeTimeoutIds = [];
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
activeTimeoutIds.forEach(function (timeoutId) {
|
|
|
return clearTimeout(timeoutId);
|
|
|
});
|
|
|
activeTimeoutIds.splice(0, activeTimeoutIds.length);
|
|
|
};
|
|
|
}, []);
|
|
|
|
|
|
var onInternalMouseDown = function onInternalMouseDown(event) {
|
|
|
var target = event.target;
|
|
|
var popupElement = triggerRef.current && triggerRef.current.getPopupElement(); // We should give focus back to selector if clicked item is not focusable
|
|
|
|
|
|
if (popupElement && popupElement.contains(target)) {
|
|
|
var timeoutId = setTimeout(function () {
|
|
|
var index = activeTimeoutIds.indexOf(timeoutId);
|
|
|
|
|
|
if (index !== -1) {
|
|
|
activeTimeoutIds.splice(index, 1);
|
|
|
}
|
|
|
|
|
|
cancelSetMockFocused();
|
|
|
|
|
|
if (!mobile && !popupElement.contains(document.activeElement)) {
|
|
|
var _selectorRef$current3;
|
|
|
|
|
|
(_selectorRef$current3 = selectorRef.current) === null || _selectorRef$current3 === void 0 ? void 0 : _selectorRef$current3.focus();
|
|
|
}
|
|
|
});
|
|
|
activeTimeoutIds.push(timeoutId);
|
|
|
}
|
|
|
|
|
|
if (onMouseDown) {
|
|
|
for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
|
restArgs[_key3 - 1] = arguments[_key3];
|
|
|
}
|
|
|
|
|
|
onMouseDown.apply(void 0, [event].concat(restArgs));
|
|
|
}
|
|
|
}; // ========================= Accessibility ==========================
|
|
|
|
|
|
|
|
|
var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(0),
|
|
|
_useState12 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState11, 2),
|
|
|
accessibilityIndex = _useState12[0],
|
|
|
setAccessibilityIndex = _useState12[1];
|
|
|
|
|
|
var mergedDefaultActiveFirstOption = defaultActiveFirstOption !== undefined ? defaultActiveFirstOption : mode !== 'combobox';
|
|
|
|
|
|
var onActiveValue = function onActiveValue(active, index) {
|
|
|
var _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
|
_ref3$source = _ref3.source,
|
|
|
source = _ref3$source === void 0 ? 'keyboard' : _ref3$source;
|
|
|
|
|
|
setAccessibilityIndex(index);
|
|
|
|
|
|
if (backfill && mode === 'combobox' && active !== null && source === 'keyboard') {
|
|
|
setActiveValue(String(active));
|
|
|
}
|
|
|
}; // ============================= Popup ==============================
|
|
|
|
|
|
|
|
|
var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(null),
|
|
|
_useState14 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState13, 2),
|
|
|
containerWidth = _useState14[0],
|
|
|
setContainerWidth = _useState14[1];
|
|
|
|
|
|
var _useState15 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])({}),
|
|
|
_useState16 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState15, 2),
|
|
|
forceUpdate = _useState16[1]; // We need force update here since popup dom is render async
|
|
|
|
|
|
|
|
|
function onPopupMouseEnter() {
|
|
|
forceUpdate({});
|
|
|
}
|
|
|
|
|
|
Object(_hooks_useLayoutEffect__WEBPACK_IMPORTED_MODULE_18__["default"])(function () {
|
|
|
if (triggerOpen) {
|
|
|
var newWidth = Math.ceil(containerRef.current.offsetWidth);
|
|
|
|
|
|
if (containerWidth !== newWidth) {
|
|
|
setContainerWidth(newWidth);
|
|
|
}
|
|
|
}
|
|
|
}, [triggerOpen]);
|
|
|
var popupNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](OptionList, {
|
|
|
ref: listRef,
|
|
|
prefixCls: prefixCls,
|
|
|
id: mergedId,
|
|
|
open: mergedOpen,
|
|
|
childrenAsData: !options,
|
|
|
options: displayOptions,
|
|
|
flattenOptions: displayFlattenOptions,
|
|
|
multiple: isMultiple,
|
|
|
values: rawValues,
|
|
|
height: listHeight,
|
|
|
itemHeight: listItemHeight,
|
|
|
onSelect: onInternalOptionSelect,
|
|
|
onToggleOpen: onToggleOpen,
|
|
|
onActiveValue: onActiveValue,
|
|
|
defaultActiveFirstOption: mergedDefaultActiveFirstOption,
|
|
|
notFoundContent: notFoundContent,
|
|
|
onScroll: onPopupScroll,
|
|
|
searchValue: mergedSearchValue,
|
|
|
menuItemSelectedIcon: menuItemSelectedIcon,
|
|
|
virtual: virtual !== false && dropdownMatchSelectWidth !== false,
|
|
|
onMouseEnter: onPopupMouseEnter
|
|
|
}); // ============================= Clear ==============================
|
|
|
|
|
|
var clearNode;
|
|
|
|
|
|
var onClearMouseDown = function onClearMouseDown() {
|
|
|
// Trigger internal `onClear` event
|
|
|
if (useInternalProps && internalProps.onClear) {
|
|
|
internalProps.onClear();
|
|
|
}
|
|
|
|
|
|
if (onClear) {
|
|
|
onClear();
|
|
|
}
|
|
|
|
|
|
triggerChange([]);
|
|
|
triggerSearch('', false, false);
|
|
|
};
|
|
|
|
|
|
if (!disabled && allowClear && (mergedRawValue.length || mergedSearchValue)) {
|
|
|
clearNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_TransBtn__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
|
className: "".concat(prefixCls, "-clear"),
|
|
|
onMouseDown: onClearMouseDown,
|
|
|
customizeIcon: clearIcon
|
|
|
}, "\xD7");
|
|
|
} // ============================= Arrow ==============================
|
|
|
|
|
|
|
|
|
var mergedShowArrow = showArrow !== undefined ? showArrow : loading || !isMultiple && mode !== 'combobox';
|
|
|
var arrowNode;
|
|
|
|
|
|
if (mergedShowArrow) {
|
|
|
arrowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_TransBtn__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_9___default()("".concat(prefixCls, "-arrow"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, "".concat(prefixCls, "-arrow-loading"), loading)),
|
|
|
customizeIcon: inputIcon,
|
|
|
customizeIconProps: {
|
|
|
loading: loading,
|
|
|
searchValue: mergedSearchValue,
|
|
|
open: mergedOpen,
|
|
|
focused: mockFocused,
|
|
|
showSearch: mergedShowSearch
|
|
|
}
|
|
|
});
|
|
|
} // ============================ Warning =============================
|
|
|
|
|
|
|
|
|
if ( true && warningProps) {
|
|
|
warningProps(props);
|
|
|
} // ============================= Render =============================
|
|
|
|
|
|
|
|
|
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_9___default()(prefixCls, className, (_classNames2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-multiple"), isMultiple), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-single"), !isMultiple), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-disabled"), disabled), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-loading"), loading), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: mergedClassName
|
|
|
}, domProps, {
|
|
|
ref: containerRef,
|
|
|
onMouseDown: onInternalMouseDown,
|
|
|
onKeyDown: onInternalKeyDown,
|
|
|
onKeyUp: onInternalKeyUp,
|
|
|
onFocus: onContainerFocus,
|
|
|
onBlur: onContainerBlur
|
|
|
}), mockFocused && !mergedOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("span", {
|
|
|
style: {
|
|
|
width: 0,
|
|
|
height: 0,
|
|
|
display: 'flex',
|
|
|
overflow: 'hidden',
|
|
|
opacity: 0
|
|
|
},
|
|
|
"aria-live": "polite"
|
|
|
}, "".concat(mergedRawValue.join(', '))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_SelectTrigger__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
|
|
ref: triggerRef,
|
|
|
disabled: disabled,
|
|
|
prefixCls: prefixCls,
|
|
|
visible: triggerOpen,
|
|
|
popupElement: popupNode,
|
|
|
containerWidth: containerWidth,
|
|
|
animation: animation,
|
|
|
transitionName: transitionName,
|
|
|
dropdownStyle: dropdownStyle,
|
|
|
dropdownClassName: dropdownClassName,
|
|
|
direction: direction,
|
|
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
|
dropdownRender: dropdownRender,
|
|
|
dropdownAlign: dropdownAlign,
|
|
|
getPopupContainer: getPopupContainer,
|
|
|
empty: !mergedOptions.length,
|
|
|
getTriggerDOMNode: function getTriggerDOMNode() {
|
|
|
return selectorDomRef.current;
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Selector__WEBPACK_IMPORTED_MODULE_11__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
domRef: selectorDomRef,
|
|
|
prefixCls: prefixCls,
|
|
|
inputElement: customizeInputElement,
|
|
|
ref: selectorRef,
|
|
|
id: mergedId,
|
|
|
showSearch: mergedShowSearch,
|
|
|
mode: mode,
|
|
|
accessibilityIndex: accessibilityIndex,
|
|
|
multiple: isMultiple,
|
|
|
tagRender: tagRender,
|
|
|
values: displayValues,
|
|
|
open: mergedOpen,
|
|
|
onToggleOpen: onToggleOpen,
|
|
|
searchValue: mergedSearchValue,
|
|
|
activeValue: activeValue,
|
|
|
onSearch: triggerSearch,
|
|
|
onSearchSubmit: onSearchSubmit,
|
|
|
onSelect: onInternalSelectionSelect,
|
|
|
tokenWithEnter: tokenWithEnter
|
|
|
}))), arrowNode, clearNode);
|
|
|
}
|
|
|
|
|
|
var RefSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["forwardRef"](Select);
|
|
|
return RefSelect;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useCacheDisplayValue.js":
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useCacheDisplayValue.js ***!
|
|
|
\*****************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useCacheDisplayValue; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
function useCacheDisplayValue(values) {
|
|
|
var prevValuesRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](values);
|
|
|
var mergedValues = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () {
|
|
|
// Create value - label map
|
|
|
var valueLabels = new Map();
|
|
|
prevValuesRef.current.forEach(function (_ref) {
|
|
|
var value = _ref.value,
|
|
|
label = _ref.label;
|
|
|
|
|
|
if (value !== label) {
|
|
|
valueLabels.set(value, label);
|
|
|
}
|
|
|
});
|
|
|
var resultValues = values.map(function (item) {
|
|
|
var cacheLabel = valueLabels.get(item.value);
|
|
|
|
|
|
if (item.isCacheable && cacheLabel) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, item), {}, {
|
|
|
label: cacheLabel
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return item;
|
|
|
});
|
|
|
prevValuesRef.current = resultValues;
|
|
|
return resultValues;
|
|
|
}, [values]);
|
|
|
return mergedValues;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useCacheOptions.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useCacheOptions.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useCacheOptions; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function useCacheOptions(options) {
|
|
|
var prevOptionMapRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null);
|
|
|
var optionMap = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
|
|
|
var map = new Map();
|
|
|
options.forEach(function (item) {
|
|
|
var value = item.data.value;
|
|
|
map.set(value, item);
|
|
|
});
|
|
|
return map;
|
|
|
}, [options]);
|
|
|
prevOptionMapRef.current = optionMap;
|
|
|
|
|
|
var getValueOption = function getValueOption(vals) {
|
|
|
return vals.map(function (value) {
|
|
|
return prevOptionMapRef.current.get(value);
|
|
|
}).filter(Boolean);
|
|
|
};
|
|
|
|
|
|
return getValueOption;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useDelayReset.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useDelayReset.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useDelayReset; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Similar with `useLock`, but this hook will always execute last value.
|
|
|
* When set to `true`, it will keep `true` for a short time even if `false` is set.
|
|
|
*/
|
|
|
|
|
|
function useDelayReset() {
|
|
|
var timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](false),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
bool = _React$useState2[0],
|
|
|
setBool = _React$useState2[1];
|
|
|
|
|
|
var delayRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](null);
|
|
|
|
|
|
var cancelLatest = function cancelLatest() {
|
|
|
window.clearTimeout(delayRef.current);
|
|
|
};
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () {
|
|
|
return cancelLatest;
|
|
|
}, []);
|
|
|
|
|
|
var delaySetBool = function delaySetBool(value, callback) {
|
|
|
cancelLatest();
|
|
|
delayRef.current = window.setTimeout(function () {
|
|
|
setBool(value);
|
|
|
|
|
|
if (callback) {
|
|
|
callback();
|
|
|
}
|
|
|
}, timeout);
|
|
|
};
|
|
|
|
|
|
return [bool, delaySetBool, cancelLatest];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useLayoutEffect.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useLayoutEffect.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useLayoutEffect; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _utils_commonUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/commonUtil */ "./node_modules/rc-select/es/utils/commonUtil.js");
|
|
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
|
*/
|
|
|
|
|
|
function useLayoutEffect(effect, deps) {
|
|
|
// Never happen in test env
|
|
|
if (_utils_commonUtil__WEBPACK_IMPORTED_MODULE_1__["isBrowserClient"]) {
|
|
|
/* istanbul ignore next */
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"](effect, deps);
|
|
|
} else {
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](effect, deps);
|
|
|
}
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useLock.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useLock.js ***!
|
|
|
\****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useLock; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/**
|
|
|
* Locker return cached mark.
|
|
|
* If set to `true`, will return `true` in a short time even if set `false`.
|
|
|
* If set to `false` and then set to `true`, will change to `true`.
|
|
|
* And after time duration, it will back to `null` automatically.
|
|
|
*/
|
|
|
|
|
|
function useLock() {
|
|
|
var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 250;
|
|
|
var lockRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null);
|
|
|
var timeoutRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); // Clean up
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
return function () {
|
|
|
window.clearTimeout(timeoutRef.current);
|
|
|
};
|
|
|
}, []);
|
|
|
|
|
|
function doLock(locked) {
|
|
|
if (locked || lockRef.current === null) {
|
|
|
lockRef.current = locked;
|
|
|
}
|
|
|
|
|
|
window.clearTimeout(timeoutRef.current);
|
|
|
timeoutRef.current = window.setTimeout(function () {
|
|
|
lockRef.current = null;
|
|
|
}, duration);
|
|
|
}
|
|
|
|
|
|
return [function () {
|
|
|
return lockRef.current;
|
|
|
}, doLock];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/hooks/useSelectTriggerControl.js":
|
|
|
/*!********************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/hooks/useSelectTriggerControl.js ***!
|
|
|
\********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useSelectTriggerControl; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function useSelectTriggerControl(elements, open, triggerOpen) {
|
|
|
var propsRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null);
|
|
|
propsRef.current = {
|
|
|
elements: elements.filter(function (e) {
|
|
|
return e;
|
|
|
}),
|
|
|
open: open,
|
|
|
triggerOpen: triggerOpen
|
|
|
};
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
function onGlobalMouseDown(event) {
|
|
|
var target = event.target;
|
|
|
|
|
|
if (target.shadowRoot && event.composed) {
|
|
|
target = event.composedPath()[0] || target;
|
|
|
}
|
|
|
|
|
|
if (propsRef.current.open && propsRef.current.elements.every(function (element) {
|
|
|
return !element.contains(target) && element !== target;
|
|
|
})) {
|
|
|
// Should trigger close
|
|
|
propsRef.current.triggerOpen(false);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
window.addEventListener('mousedown', onGlobalMouseDown);
|
|
|
return function () {
|
|
|
return window.removeEventListener('mousedown', onGlobalMouseDown);
|
|
|
};
|
|
|
}, []);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/index.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: Option, OptGroup, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./node_modules/rc-select/es/Select.js");
|
|
|
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Option */ "./node_modules/rc-select/es/Option.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Option", function() { return _Option__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OptGroup */ "./node_modules/rc-select/es/OptGroup.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OptGroup", function() { return _OptGroup__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/interface/generator.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/interface/generator.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: INTERNAL_PROPS_MARK */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_PROPS_MARK", function() { return INTERNAL_PROPS_MARK; });
|
|
|
var INTERNAL_PROPS_MARK = 'RC_SELECT_INTERNAL_PROPS_MARK';
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/utils/commonUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/utils/commonUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: toArray, toInnerValue, toOuterValues, removeLastEnabledValue, isClient, isBrowserClient, getUUID */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toInnerValue", function() { return toInnerValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toOuterValues", function() { return toOuterValues; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeLastEnabledValue", function() { return removeLastEnabledValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isClient", function() { return isClient; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBrowserClient", function() { return isBrowserClient; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUUID", function() { return getUUID; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
|
|
|
function toArray(value) {
|
|
|
if (Array.isArray(value)) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
return value !== undefined ? [value] : [];
|
|
|
}
|
|
|
/**
|
|
|
* Convert outer props value into internal value
|
|
|
*/
|
|
|
|
|
|
function toInnerValue(value, _ref) {
|
|
|
var labelInValue = _ref.labelInValue,
|
|
|
combobox = _ref.combobox;
|
|
|
var valueMap = new Map();
|
|
|
|
|
|
if (value === undefined || value === '' && combobox) {
|
|
|
return [[], valueMap];
|
|
|
}
|
|
|
|
|
|
var values = Array.isArray(value) ? value : [value];
|
|
|
var rawValues = values;
|
|
|
|
|
|
if (labelInValue) {
|
|
|
rawValues = values.filter(function (item) {
|
|
|
return item !== null;
|
|
|
}).map(function (itemValue) {
|
|
|
var key = itemValue.key,
|
|
|
val = itemValue.value;
|
|
|
var finalVal = val !== undefined ? val : key;
|
|
|
valueMap.set(finalVal, itemValue);
|
|
|
return finalVal;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return [rawValues, valueMap];
|
|
|
}
|
|
|
/**
|
|
|
* Convert internal value into out event value
|
|
|
*/
|
|
|
|
|
|
function toOuterValues(valueList, _ref2) {
|
|
|
var optionLabelProp = _ref2.optionLabelProp,
|
|
|
labelInValue = _ref2.labelInValue,
|
|
|
prevValueMap = _ref2.prevValueMap,
|
|
|
options = _ref2.options,
|
|
|
getLabeledValue = _ref2.getLabeledValue;
|
|
|
var values = valueList;
|
|
|
|
|
|
if (labelInValue) {
|
|
|
values = values.map(function (val) {
|
|
|
return getLabeledValue(val, {
|
|
|
options: options,
|
|
|
prevValueMap: prevValueMap,
|
|
|
labelInValue: labelInValue,
|
|
|
optionLabelProp: optionLabelProp
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return values;
|
|
|
}
|
|
|
function removeLastEnabledValue(measureValues, values) {
|
|
|
var newValues = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__["default"])(values);
|
|
|
|
|
|
var removeIndex;
|
|
|
|
|
|
for (removeIndex = measureValues.length - 1; removeIndex >= 0; removeIndex -= 1) {
|
|
|
if (!measureValues[removeIndex].disabled) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var removedValue = null;
|
|
|
|
|
|
if (removeIndex !== -1) {
|
|
|
removedValue = newValues[removeIndex];
|
|
|
newValues.splice(removeIndex, 1);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
values: newValues,
|
|
|
removedValue: removedValue
|
|
|
};
|
|
|
}
|
|
|
var isClient = typeof window !== 'undefined' && window.document && window.document.documentElement;
|
|
|
/** Is client side and not jsdom */
|
|
|
|
|
|
var isBrowserClient = true && isClient;
|
|
|
var uuid = 0;
|
|
|
/** Get unique id for accessibility usage */
|
|
|
|
|
|
function getUUID() {
|
|
|
var retId; // Test never reach
|
|
|
|
|
|
/* istanbul ignore if */
|
|
|
|
|
|
if (isBrowserClient) {
|
|
|
retId = uuid;
|
|
|
uuid += 1;
|
|
|
} else {
|
|
|
retId = 'TEST_OR_SSR';
|
|
|
}
|
|
|
|
|
|
return retId;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/utils/legacyUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/utils/legacyUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: convertChildrenToData */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertChildrenToData", function() { return convertChildrenToData; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function convertNodeToOption(node) {
|
|
|
var key = node.key,
|
|
|
_node$props = node.props,
|
|
|
children = _node$props.children,
|
|
|
value = _node$props.value,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_node$props, ["children", "value"]);
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
key: key,
|
|
|
value: value !== undefined ? value : key,
|
|
|
children: children
|
|
|
}, restProps);
|
|
|
}
|
|
|
|
|
|
function convertChildrenToData(nodes) {
|
|
|
var optionOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
return Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(nodes).map(function (node, index) {
|
|
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["isValidElement"](node) || !node.type) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var isSelectOptGroup = node.type.isSelectOptGroup,
|
|
|
key = node.key,
|
|
|
_node$props2 = node.props,
|
|
|
children = _node$props2.children,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(_node$props2, ["children"]);
|
|
|
|
|
|
if (optionOnly || !isSelectOptGroup) {
|
|
|
return convertNodeToOption(node);
|
|
|
}
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
|
|
|
label: key
|
|
|
}, restProps), {}, {
|
|
|
options: convertChildrenToData(children)
|
|
|
});
|
|
|
}).filter(function (data) {
|
|
|
return data;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/utils/valueUtil.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/utils/valueUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: flattenOptions, findValueOption, getLabeledValue, filterOptions, getSeparatedContent, isValueDisabled, fillOptionsWithMissingValue */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenOptions", function() { return flattenOptions; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findValueOption", function() { return findValueOption; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabeledValue", function() { return getLabeledValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterOptions", function() { return filterOptions; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSeparatedContent", function() { return getSeparatedContent; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueDisabled", function() { return isValueDisabled; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fillOptionsWithMissingValue", function() { return fillOptionsWithMissingValue; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "./node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var _commonUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonUtil */ "./node_modules/rc-select/es/utils/commonUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getKey(data, index) {
|
|
|
var key = data.key;
|
|
|
var value;
|
|
|
|
|
|
if ('value' in data) {
|
|
|
value = data.value;
|
|
|
}
|
|
|
|
|
|
if (key !== null && key !== undefined) {
|
|
|
return key;
|
|
|
}
|
|
|
|
|
|
if (value !== undefined) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
return "rc-index-key-".concat(index);
|
|
|
}
|
|
|
/**
|
|
|
* Flat options into flatten list.
|
|
|
* We use `optionOnly` here is aim to avoid user use nested option group.
|
|
|
* Here is simply set `key` to the index if not provided.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function flattenOptions(options) {
|
|
|
var flattenList = [];
|
|
|
|
|
|
function dig(list, isGroupOption) {
|
|
|
list.forEach(function (data) {
|
|
|
if (isGroupOption || !('options' in data)) {
|
|
|
// Option
|
|
|
flattenList.push({
|
|
|
key: getKey(data, flattenList.length),
|
|
|
groupOption: isGroupOption,
|
|
|
data: data
|
|
|
});
|
|
|
} else {
|
|
|
// Option Group
|
|
|
flattenList.push({
|
|
|
key: getKey(data, flattenList.length),
|
|
|
group: true,
|
|
|
data: data
|
|
|
});
|
|
|
dig(data.options, true);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(options, false);
|
|
|
return flattenList;
|
|
|
}
|
|
|
/**
|
|
|
* Inject `props` into `option` for legacy usage
|
|
|
*/
|
|
|
|
|
|
function injectPropsWithOption(option) {
|
|
|
var newOption = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])({}, option);
|
|
|
|
|
|
if (!('props' in newOption)) {
|
|
|
Object.defineProperty(newOption, 'props', {
|
|
|
get: function get() {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__["default"])(false, 'Return type is option instead of Option instance. Please read value directly instead of reading from `props`.');
|
|
|
return newOption;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return newOption;
|
|
|
}
|
|
|
|
|
|
function findValueOption(values, options) {
|
|
|
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
|
_ref$prevValueOptions = _ref.prevValueOptions,
|
|
|
prevValueOptions = _ref$prevValueOptions === void 0 ? [] : _ref$prevValueOptions;
|
|
|
|
|
|
var optionMap = new Map();
|
|
|
options.forEach(function (flattenItem) {
|
|
|
if (!flattenItem.group) {
|
|
|
var data = flattenItem.data; // Check if match
|
|
|
|
|
|
optionMap.set(data.value, data);
|
|
|
}
|
|
|
});
|
|
|
return values.map(function (val) {
|
|
|
var option = optionMap.get(val); // Fallback to try to find prev options
|
|
|
|
|
|
if (!option) {
|
|
|
option = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])({}, prevValueOptions.find(function (opt) {
|
|
|
return opt._INTERNAL_OPTION_VALUE_ === val;
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return injectPropsWithOption(option);
|
|
|
});
|
|
|
}
|
|
|
var getLabeledValue = function getLabeledValue(value, _ref2) {
|
|
|
var options = _ref2.options,
|
|
|
prevValueMap = _ref2.prevValueMap,
|
|
|
labelInValue = _ref2.labelInValue,
|
|
|
optionLabelProp = _ref2.optionLabelProp;
|
|
|
var item = findValueOption([value], options)[0];
|
|
|
var result = {
|
|
|
value: value
|
|
|
};
|
|
|
var prevValItem = labelInValue ? prevValueMap.get(value) : undefined;
|
|
|
|
|
|
if (prevValItem && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(prevValItem) === 'object' && 'label' in prevValItem) {
|
|
|
result.label = prevValItem.label;
|
|
|
|
|
|
if (item && typeof prevValItem.label === 'string' && typeof item[optionLabelProp] === 'string' && prevValItem.label.trim() !== item[optionLabelProp].trim()) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__["default"])(false, '`label` of `value` is not same as `label` in Select options.');
|
|
|
}
|
|
|
} else if (item && optionLabelProp in item) {
|
|
|
result.label = item[optionLabelProp];
|
|
|
} else {
|
|
|
result.label = value;
|
|
|
result.isCacheable = true;
|
|
|
} // Used for motion control
|
|
|
|
|
|
|
|
|
result.key = result.value;
|
|
|
return result;
|
|
|
};
|
|
|
|
|
|
function toRawString(content) {
|
|
|
return Object(_commonUtil__WEBPACK_IMPORTED_MODULE_6__["toArray"])(content).join('');
|
|
|
}
|
|
|
/** Filter single option if match the search text */
|
|
|
|
|
|
|
|
|
function getFilterFunction(optionFilterProp) {
|
|
|
return function (searchValue, option) {
|
|
|
var lowerSearchText = searchValue.toLowerCase(); // Group label search
|
|
|
|
|
|
if ('options' in option) {
|
|
|
return toRawString(option.label).toLowerCase().includes(lowerSearchText);
|
|
|
} // Option value search
|
|
|
|
|
|
|
|
|
var rawValue = option[optionFilterProp];
|
|
|
var value = toRawString(rawValue).toLowerCase();
|
|
|
return value.includes(lowerSearchText);
|
|
|
};
|
|
|
}
|
|
|
/** Filter options and return a new options by the search text */
|
|
|
|
|
|
|
|
|
function filterOptions(searchValue, options, _ref3) {
|
|
|
var optionFilterProp = _ref3.optionFilterProp,
|
|
|
filterOption = _ref3.filterOption;
|
|
|
var filteredOptions = [];
|
|
|
var filterFunc;
|
|
|
|
|
|
if (filterOption === false) {
|
|
|
return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(options);
|
|
|
}
|
|
|
|
|
|
if (typeof filterOption === 'function') {
|
|
|
filterFunc = filterOption;
|
|
|
} else {
|
|
|
filterFunc = getFilterFunction(optionFilterProp);
|
|
|
}
|
|
|
|
|
|
options.forEach(function (item) {
|
|
|
// Group should check child options
|
|
|
if ('options' in item) {
|
|
|
// Check group first
|
|
|
var matchGroup = filterFunc(searchValue, item);
|
|
|
|
|
|
if (matchGroup) {
|
|
|
filteredOptions.push(item);
|
|
|
} else {
|
|
|
// Check option
|
|
|
var subOptions = item.options.filter(function (subItem) {
|
|
|
return filterFunc(searchValue, subItem);
|
|
|
});
|
|
|
|
|
|
if (subOptions.length) {
|
|
|
filteredOptions.push(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])({}, item), {}, {
|
|
|
options: subOptions
|
|
|
}));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (filterFunc(searchValue, injectPropsWithOption(item))) {
|
|
|
filteredOptions.push(item);
|
|
|
}
|
|
|
});
|
|
|
return filteredOptions;
|
|
|
}
|
|
|
function getSeparatedContent(text, tokens) {
|
|
|
if (!tokens || !tokens.length) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var match = false;
|
|
|
|
|
|
function separate(str, _ref4) {
|
|
|
var _ref5 = Object(_babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref4),
|
|
|
token = _ref5[0],
|
|
|
restTokens = _ref5.slice(1);
|
|
|
|
|
|
if (!token) {
|
|
|
return [str];
|
|
|
}
|
|
|
|
|
|
var list = str.split(token);
|
|
|
match = match || list.length > 1;
|
|
|
return list.reduce(function (prevList, unitStr) {
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(prevList), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(separate(unitStr, restTokens)));
|
|
|
}, []).filter(function (unit) {
|
|
|
return unit;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var list = separate(text, tokens);
|
|
|
return match ? list : null;
|
|
|
}
|
|
|
function isValueDisabled(value, options) {
|
|
|
var option = findValueOption([value], options)[0];
|
|
|
return option.disabled;
|
|
|
}
|
|
|
/**
|
|
|
* `tags` mode should fill un-list item into the option list
|
|
|
*/
|
|
|
|
|
|
function fillOptionsWithMissingValue(options, value, optionLabelProp, labelInValue) {
|
|
|
var values = Object(_commonUtil__WEBPACK_IMPORTED_MODULE_6__["toArray"])(value).slice().sort();
|
|
|
|
|
|
var cloneOptions = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(options); // Convert options value to set
|
|
|
|
|
|
|
|
|
var optionValues = new Set();
|
|
|
options.forEach(function (opt) {
|
|
|
if (opt.options) {
|
|
|
opt.options.forEach(function (subOpt) {
|
|
|
optionValues.add(subOpt.value);
|
|
|
});
|
|
|
} else {
|
|
|
optionValues.add(opt.value);
|
|
|
}
|
|
|
}); // Fill missing value
|
|
|
|
|
|
values.forEach(function (item) {
|
|
|
var val = labelInValue ? item.value : item;
|
|
|
|
|
|
if (!optionValues.has(val)) {
|
|
|
var _ref6;
|
|
|
|
|
|
cloneOptions.push(labelInValue ? (_ref6 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref6, optionLabelProp, item.label), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_ref6, "value", val), _ref6) : {
|
|
|
value: val
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
return cloneOptions;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-select/es/utils/warningPropsUtil.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/utils/warningPropsUtil.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
/* harmony import */ var _legacyUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./legacyUtil */ "./node_modules/rc-select/es/utils/legacyUtil.js");
|
|
|
/* harmony import */ var _commonUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commonUtil */ "./node_modules/rc-select/es/utils/commonUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function warningProps(props) {
|
|
|
var mode = props.mode,
|
|
|
options = props.options,
|
|
|
children = props.children,
|
|
|
backfill = props.backfill,
|
|
|
allowClear = props.allowClear,
|
|
|
placeholder = props.placeholder,
|
|
|
getInputElement = props.getInputElement,
|
|
|
showSearch = props.showSearch,
|
|
|
onSearch = props.onSearch,
|
|
|
defaultOpen = props.defaultOpen,
|
|
|
autoFocus = props.autoFocus,
|
|
|
labelInValue = props.labelInValue,
|
|
|
value = props.value,
|
|
|
inputValue = props.inputValue,
|
|
|
optionLabelProp = props.optionLabelProp;
|
|
|
var multiple = mode === 'multiple' || mode === 'tags';
|
|
|
var mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';
|
|
|
var mergedOptions = options || Object(_legacyUtil__WEBPACK_IMPORTED_MODULE_4__["convertChildrenToData"])(children); // `tags` should not set option as disabled
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(mode !== 'tags' || mergedOptions.every(function (opt) {
|
|
|
return !opt.disabled;
|
|
|
}), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.'); // `combobox` & `tags` should option be `string` type
|
|
|
|
|
|
if (mode === 'tags' || mode === 'combobox') {
|
|
|
var hasNumberValue = mergedOptions.some(function (item) {
|
|
|
if (item.options) {
|
|
|
return item.options.some(function (opt) {
|
|
|
return typeof ('value' in opt ? opt.value : opt.key) === 'number';
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return typeof ('value' in item ? item.value : item.key) === 'number';
|
|
|
});
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!hasNumberValue, '`value` of Option should not use number type when `mode` is `tags` or `combobox`.');
|
|
|
} // `combobox` should not use `optionLabelProp`
|
|
|
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(mode !== 'combobox' || !optionLabelProp, '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.'); // Only `combobox` support `backfill`
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.'); // Only `combobox` support `getInputElement`
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(mode === 'combobox' || !getInputElement, '`getInputElement` only work with `combobox` mode.'); // Customize `getInputElement` should not use `allowClear` & `placeholder`
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["noteOnce"])(mode !== 'combobox' || !getInputElement || !allowClear || !placeholder, 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.'); // `onSearch` should use in `combobox` or `showSearch`
|
|
|
|
|
|
if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(false, '`onSearch` should work with `showSearch` instead of use alone.');
|
|
|
}
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["noteOnce"])(!defaultOpen || autoFocus, '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.');
|
|
|
|
|
|
if (value !== undefined && value !== null) {
|
|
|
var values = Object(_commonUtil__WEBPACK_IMPORTED_MODULE_5__["toArray"])(value);
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!labelInValue || values.every(function (val) {
|
|
|
return Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(val) === 'object' && ('key' in val || 'value' in val);
|
|
|
}), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
|
|
|
} // Syntactic sugar should use correct children type
|
|
|
|
|
|
|
|
|
if (children) {
|
|
|
var invalidateChildType = null;
|
|
|
Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).some(function (node) {
|
|
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["isValidElement"](node) || !node.type) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var type = node.type;
|
|
|
|
|
|
if (type.isSelectOption) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (type.isSelectOptGroup) {
|
|
|
var allChildrenValid = Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(node.props.children).every(function (subNode) {
|
|
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["isValidElement"](subNode) || !node.type || subNode.type.isSelectOption) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
invalidateChildType = subNode.type;
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
if (allChildrenValid) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
invalidateChildType = type;
|
|
|
return true;
|
|
|
});
|
|
|
|
|
|
if (invalidateChildType) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(false, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(invalidateChildType.displayName || invalidateChildType.name || invalidateChildType, "`."));
|
|
|
}
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(inputValue === undefined, '`inputValue` is deprecated, please use `searchValue` instead.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (warningProps);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Body/BodyRow.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Body/BodyRow.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Cell */ "./node_modules/rc-table/es/Cell/index.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _context_BodyContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../context/BodyContext */ "./node_modules/rc-table/es/context/BodyContext.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _ExpandedRow__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ExpandedRow */ "./node_modules/rc-table/es/Body/ExpandedRow.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function BodyRow(props) {
|
|
|
var className = props.className,
|
|
|
style = props.style,
|
|
|
record = props.record,
|
|
|
index = props.index,
|
|
|
rowKey = props.rowKey,
|
|
|
getRowKey = props.getRowKey,
|
|
|
rowExpandable = props.rowExpandable,
|
|
|
expandedKeys = props.expandedKeys,
|
|
|
onRow = props.onRow,
|
|
|
_props$indent = props.indent,
|
|
|
indent = _props$indent === void 0 ? 0 : _props$indent,
|
|
|
RowComponent = props.rowComponent,
|
|
|
cellComponent = props.cellComponent,
|
|
|
childrenColumnName = props.childrenColumnName;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
fixedInfoList = _React$useContext.fixedInfoList;
|
|
|
|
|
|
var _React$useContext2 = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_context_BodyContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
|
fixHeader = _React$useContext2.fixHeader,
|
|
|
fixColumn = _React$useContext2.fixColumn,
|
|
|
horizonScroll = _React$useContext2.horizonScroll,
|
|
|
componentWidth = _React$useContext2.componentWidth,
|
|
|
flattenColumns = _React$useContext2.flattenColumns,
|
|
|
expandableType = _React$useContext2.expandableType,
|
|
|
expandRowByClick = _React$useContext2.expandRowByClick,
|
|
|
onTriggerExpand = _React$useContext2.onTriggerExpand,
|
|
|
rowClassName = _React$useContext2.rowClassName,
|
|
|
expandedRowClassName = _React$useContext2.expandedRowClassName,
|
|
|
indentSize = _React$useContext2.indentSize,
|
|
|
expandIcon = _React$useContext2.expandIcon,
|
|
|
expandedRowRender = _React$useContext2.expandedRowRender,
|
|
|
expandIconColumnIndex = _React$useContext2.expandIconColumnIndex;
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"](false),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState, 2),
|
|
|
expandRended = _React$useState2[0],
|
|
|
setExpandRended = _React$useState2[1];
|
|
|
|
|
|
var expanded = expandedKeys && expandedKeys.has(props.recordKey);
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
if (expanded) {
|
|
|
setExpandRended(true);
|
|
|
}
|
|
|
}, [expanded]);
|
|
|
var rowSupportExpand = expandableType === 'row' && (!rowExpandable || rowExpandable(record)); // Only when row is not expandable and `children` exist in record
|
|
|
|
|
|
var nestExpandable = expandableType === 'nest';
|
|
|
var hasNestChildren = childrenColumnName && record && record[childrenColumnName];
|
|
|
var mergedExpandable = rowSupportExpand || nestExpandable; // =========================== onRow ===========================
|
|
|
|
|
|
var additionalProps;
|
|
|
|
|
|
if (onRow) {
|
|
|
additionalProps = onRow(record, index);
|
|
|
}
|
|
|
|
|
|
var onClick = function onClick(event) {
|
|
|
if (expandRowByClick && mergedExpandable) {
|
|
|
onTriggerExpand(record, event);
|
|
|
}
|
|
|
|
|
|
if (additionalProps && additionalProps.onClick) {
|
|
|
var _additionalProps;
|
|
|
|
|
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
|
args[_key - 1] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
(_additionalProps = additionalProps).onClick.apply(_additionalProps, [event].concat(args));
|
|
|
}
|
|
|
}; // ======================== Base tr row ========================
|
|
|
|
|
|
|
|
|
var computeRowClassName;
|
|
|
|
|
|
if (typeof rowClassName === 'string') {
|
|
|
computeRowClassName = rowClassName;
|
|
|
} else if (typeof rowClassName === 'function') {
|
|
|
computeRowClassName = rowClassName(record, index, indent);
|
|
|
}
|
|
|
|
|
|
var columnsKey = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_8__["getColumnsKey"])(flattenColumns);
|
|
|
var baseRowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](RowComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, additionalProps, {
|
|
|
"data-row-key": rowKey,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, "".concat(prefixCls, "-row"), "".concat(prefixCls, "-row-level-").concat(indent), computeRowClassName, additionalProps && additionalProps.className),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, style), additionalProps ? additionalProps.style : null),
|
|
|
onClick: onClick
|
|
|
}), flattenColumns.map(function (column, colIndex) {
|
|
|
var render = column.render,
|
|
|
dataIndex = column.dataIndex,
|
|
|
columnClassName = column.className;
|
|
|
var key = columnsKey[colIndex];
|
|
|
var fixedInfo = fixedInfoList[colIndex]; // ============= Used for nest expandable =============
|
|
|
|
|
|
var appendCellNode;
|
|
|
|
|
|
if (colIndex === (expandIconColumnIndex || 0) && nestExpandable) {
|
|
|
appendCellNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("span", {
|
|
|
style: {
|
|
|
paddingLeft: "".concat(indentSize * indent, "px")
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-row-indent indent-level-").concat(indent)
|
|
|
}), expandIcon({
|
|
|
prefixCls: prefixCls,
|
|
|
expanded: expanded,
|
|
|
expandable: hasNestChildren,
|
|
|
record: record,
|
|
|
onExpand: onTriggerExpand
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
var additionalCellProps;
|
|
|
|
|
|
if (column.onCell) {
|
|
|
additionalCellProps = column.onCell(record, index);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_Cell__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: columnClassName,
|
|
|
ellipsis: column.ellipsis,
|
|
|
align: column.align,
|
|
|
component: cellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
key: key,
|
|
|
record: record,
|
|
|
index: index,
|
|
|
dataIndex: dataIndex,
|
|
|
render: render,
|
|
|
shouldCellUpdate: column.shouldCellUpdate
|
|
|
}, fixedInfo, {
|
|
|
appendNode: appendCellNode,
|
|
|
additionalProps: additionalCellProps
|
|
|
}));
|
|
|
})); // ======================== Expand Row =========================
|
|
|
|
|
|
var expandRowNode;
|
|
|
|
|
|
if (rowSupportExpand && (expandRended || expanded)) {
|
|
|
var expandContent = expandedRowRender(record, index, indent + 1, expanded);
|
|
|
var computedExpandedRowClassName = expandedRowClassName && expandedRowClassName(record, index, indent);
|
|
|
expandRowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_ExpandedRow__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
expanded: expanded,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_4___default()("".concat(prefixCls, "-expanded-row"), "".concat(prefixCls, "-expanded-row-level-").concat(indent + 1), computedExpandedRowClassName),
|
|
|
prefixCls: prefixCls,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: fixColumn,
|
|
|
horizonScroll: horizonScroll,
|
|
|
component: RowComponent,
|
|
|
componentWidth: componentWidth,
|
|
|
cellComponent: cellComponent,
|
|
|
colSpan: flattenColumns.length
|
|
|
}, expandContent);
|
|
|
} // ========================= Nest Row ==========================
|
|
|
|
|
|
|
|
|
var nestRowNode;
|
|
|
|
|
|
if (hasNestChildren && expanded) {
|
|
|
nestRowNode = (record[childrenColumnName] || []).map(function (subRecord, subIndex) {
|
|
|
var subKey = getRowKey(subRecord, subIndex);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](BodyRow, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
key: subKey,
|
|
|
rowKey: subKey,
|
|
|
record: subRecord,
|
|
|
recordKey: subKey,
|
|
|
index: subIndex,
|
|
|
indent: indent + 1
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](react__WEBPACK_IMPORTED_MODULE_3__["Fragment"], null, baseRowNode, expandRowNode, nestRowNode);
|
|
|
}
|
|
|
|
|
|
BodyRow.displayName = 'BodyRow';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (BodyRow);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Body/ExpandedRow.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Body/ExpandedRow.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Cell */ "./node_modules/rc-table/es/Cell/index.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ExpandedRow(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
children = _ref.children,
|
|
|
Component = _ref.component,
|
|
|
cellComponent = _ref.cellComponent,
|
|
|
fixHeader = _ref.fixHeader,
|
|
|
fixColumn = _ref.fixColumn,
|
|
|
horizonScroll = _ref.horizonScroll,
|
|
|
className = _ref.className,
|
|
|
expanded = _ref.expanded,
|
|
|
componentWidth = _ref.componentWidth,
|
|
|
colSpan = _ref.colSpan;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
|
scrollbarSize = _React$useContext.scrollbarSize; // Cache render node
|
|
|
|
|
|
|
|
|
return react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
|
|
|
var contentNode = children;
|
|
|
|
|
|
if (fixColumn) {
|
|
|
contentNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
style: {
|
|
|
width: componentWidth - (fixHeader ? scrollbarSize : 0),
|
|
|
position: 'sticky',
|
|
|
left: 0,
|
|
|
overflow: 'hidden'
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-expanded-row-fixed")
|
|
|
}, contentNode);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Component, {
|
|
|
className: className,
|
|
|
style: {
|
|
|
display: expanded ? null : 'none'
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Cell__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
component: cellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
colSpan: colSpan
|
|
|
}, contentNode));
|
|
|
}, [children, Component, fixHeader, horizonScroll, className, expanded, componentWidth, colSpan, scrollbarSize]);
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ExpandedRow);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Body/MeasureCell.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Body/MeasureCell.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MeasureCell; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
|
|
|
|
|
|
|
|
|
function MeasureCell(_ref) {
|
|
|
var columnKey = _ref.columnKey,
|
|
|
onColumnResize = _ref.onColumnResize;
|
|
|
var cellRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]();
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
if (cellRef.current) {
|
|
|
onColumnResize(columnKey, cellRef.current.offsetWidth);
|
|
|
}
|
|
|
}, []);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
onResize: function onResize(_ref2) {
|
|
|
var offsetWidth = _ref2.offsetWidth;
|
|
|
onColumnResize(columnKey, offsetWidth);
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("td", {
|
|
|
ref: cellRef,
|
|
|
style: {
|
|
|
padding: 0,
|
|
|
border: 0,
|
|
|
height: 0
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
style: {
|
|
|
height: 0,
|
|
|
overflow: 'hidden'
|
|
|
}
|
|
|
}, "\xA0")));
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Body/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Body/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _BodyRow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BodyRow */ "./node_modules/rc-table/es/Body/BodyRow.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _ExpandedRow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ExpandedRow */ "./node_modules/rc-table/es/Body/ExpandedRow.js");
|
|
|
/* harmony import */ var _context_BodyContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context/BodyContext */ "./node_modules/rc-table/es/context/BodyContext.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _context_ResizeContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../context/ResizeContext */ "./node_modules/rc-table/es/context/ResizeContext.js");
|
|
|
/* harmony import */ var _MeasureCell__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MeasureCell */ "./node_modules/rc-table/es/Body/MeasureCell.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Body(_ref) {
|
|
|
var data = _ref.data,
|
|
|
getRowKey = _ref.getRowKey,
|
|
|
measureColumnWidth = _ref.measureColumnWidth,
|
|
|
expandedKeys = _ref.expandedKeys,
|
|
|
onRow = _ref.onRow,
|
|
|
rowExpandable = _ref.rowExpandable,
|
|
|
emptyNode = _ref.emptyNode,
|
|
|
childrenColumnName = _ref.childrenColumnName;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_ResizeContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
|
onColumnResize = _React$useContext.onColumnResize;
|
|
|
|
|
|
var _React$useContext2 = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
|
prefixCls = _React$useContext2.prefixCls,
|
|
|
getComponent = _React$useContext2.getComponent;
|
|
|
|
|
|
var _React$useContext3 = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_BodyContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
|
fixHeader = _React$useContext3.fixHeader,
|
|
|
horizonScroll = _React$useContext3.horizonScroll,
|
|
|
flattenColumns = _React$useContext3.flattenColumns,
|
|
|
componentWidth = _React$useContext3.componentWidth;
|
|
|
|
|
|
return react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
|
|
|
var WrapperComponent = getComponent(['body', 'wrapper'], 'tbody');
|
|
|
var trComponent = getComponent(['body', 'row'], 'tr');
|
|
|
var tdComponent = getComponent(['body', 'cell'], 'td');
|
|
|
var rows;
|
|
|
|
|
|
if (data.length) {
|
|
|
rows = data.map(function (record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_BodyRow__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
key: key,
|
|
|
rowKey: key,
|
|
|
record: record,
|
|
|
recordKey: key,
|
|
|
index: index,
|
|
|
rowComponent: trComponent,
|
|
|
cellComponent: tdComponent,
|
|
|
expandedKeys: expandedKeys,
|
|
|
onRow: onRow,
|
|
|
getRowKey: getRowKey,
|
|
|
rowExpandable: rowExpandable,
|
|
|
childrenColumnName: childrenColumnName
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
rows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_ExpandedRow__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
|
expanded: true,
|
|
|
className: "".concat(prefixCls, "-placeholder"),
|
|
|
prefixCls: prefixCls,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: horizonScroll,
|
|
|
horizonScroll: horizonScroll,
|
|
|
component: trComponent,
|
|
|
componentWidth: componentWidth,
|
|
|
cellComponent: tdComponent,
|
|
|
colSpan: flattenColumns.length
|
|
|
}, emptyNode);
|
|
|
}
|
|
|
|
|
|
var columnsKey = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_5__["getColumnsKey"])(flattenColumns);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrapperComponent, {
|
|
|
className: "".concat(prefixCls, "-tbody")
|
|
|
}, measureColumnWidth && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", {
|
|
|
"aria-hidden": "true",
|
|
|
className: "".concat(prefixCls, "-measure-row"),
|
|
|
style: {
|
|
|
height: 0,
|
|
|
fontSize: 0
|
|
|
}
|
|
|
}, columnsKey.map(function (columnKey) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_MeasureCell__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
key: columnKey,
|
|
|
columnKey: columnKey,
|
|
|
onColumnResize: onColumnResize
|
|
|
});
|
|
|
})), rows);
|
|
|
}, [data, prefixCls, onRow, measureColumnWidth, expandedKeys, getRowKey, getComponent, componentWidth, emptyNode, flattenColumns]);
|
|
|
}
|
|
|
|
|
|
var MemoBody = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["memo"](Body);
|
|
|
MemoBody.displayName = 'Body';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MemoBody);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Cell/index.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Cell/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function isRenderCell(data) {
|
|
|
return data && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object' && !Array.isArray(data) && ! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["isValidElement"](data);
|
|
|
}
|
|
|
|
|
|
function isRefComponent(component) {
|
|
|
// String tag component also support ref
|
|
|
if (typeof component === 'string') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_6__["supportRef"])(component);
|
|
|
}
|
|
|
|
|
|
function Cell(_ref, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
className = _ref.className,
|
|
|
record = _ref.record,
|
|
|
index = _ref.index,
|
|
|
dataIndex = _ref.dataIndex,
|
|
|
render = _ref.render,
|
|
|
children = _ref.children,
|
|
|
_ref$component = _ref.component,
|
|
|
Component = _ref$component === void 0 ? 'td' : _ref$component,
|
|
|
colSpan = _ref.colSpan,
|
|
|
rowSpan = _ref.rowSpan,
|
|
|
fixLeft = _ref.fixLeft,
|
|
|
fixRight = _ref.fixRight,
|
|
|
firstFixLeft = _ref.firstFixLeft,
|
|
|
lastFixLeft = _ref.lastFixLeft,
|
|
|
firstFixRight = _ref.firstFixRight,
|
|
|
lastFixRight = _ref.lastFixRight,
|
|
|
appendNode = _ref.appendNode,
|
|
|
_ref$additionalProps = _ref.additionalProps,
|
|
|
additionalProps = _ref$additionalProps === void 0 ? {} : _ref$additionalProps,
|
|
|
ellipsis = _ref.ellipsis,
|
|
|
align = _ref.align,
|
|
|
rowType = _ref.rowType,
|
|
|
isSticky = _ref.isSticky;
|
|
|
var cellPrefixCls = "".concat(prefixCls, "-cell"); // ==================== Child Node ====================
|
|
|
|
|
|
var cellProps;
|
|
|
var childNode;
|
|
|
|
|
|
if (children) {
|
|
|
childNode = children;
|
|
|
} else {
|
|
|
var value = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_7__["getPathValue"])(record, dataIndex); // Customize render node
|
|
|
|
|
|
childNode = value;
|
|
|
|
|
|
if (render) {
|
|
|
var renderData = render(value, record, index);
|
|
|
|
|
|
if (isRenderCell(renderData)) {
|
|
|
childNode = renderData.children;
|
|
|
cellProps = renderData.props;
|
|
|
} else {
|
|
|
childNode = renderData;
|
|
|
}
|
|
|
}
|
|
|
} // Not crash if final `childNode` is not validate ReactNode
|
|
|
|
|
|
|
|
|
if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(childNode) === 'object' && !Array.isArray(childNode) && ! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["isValidElement"](childNode)) {
|
|
|
childNode = null;
|
|
|
}
|
|
|
|
|
|
if (ellipsis && (lastFixLeft || firstFixRight)) {
|
|
|
childNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
|
|
|
className: "".concat(cellPrefixCls, "-content")
|
|
|
}, childNode);
|
|
|
}
|
|
|
|
|
|
var _ref2 = cellProps || {},
|
|
|
cellColSpan = _ref2.colSpan,
|
|
|
cellRowSpan = _ref2.rowSpan,
|
|
|
cellStyle = _ref2.style,
|
|
|
cellClassName = _ref2.className,
|
|
|
restCellProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__["default"])(_ref2, ["colSpan", "rowSpan", "style", "className"]);
|
|
|
|
|
|
var mergedColSpan = cellColSpan !== undefined ? cellColSpan : colSpan;
|
|
|
var mergedRowSpan = cellRowSpan !== undefined ? cellRowSpan : rowSpan;
|
|
|
|
|
|
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
|
return null;
|
|
|
} // ====================== Fixed =======================
|
|
|
|
|
|
|
|
|
var fixedStyle = {};
|
|
|
var isFixLeft = typeof fixLeft === 'number';
|
|
|
var isFixRight = typeof fixRight === 'number';
|
|
|
|
|
|
if (isFixLeft) {
|
|
|
fixedStyle.position = 'sticky';
|
|
|
fixedStyle.left = fixLeft;
|
|
|
}
|
|
|
|
|
|
if (isFixRight) {
|
|
|
fixedStyle.position = 'sticky';
|
|
|
fixedStyle.right = fixRight;
|
|
|
} // ====================== Align =======================
|
|
|
|
|
|
|
|
|
var alignStyle = {};
|
|
|
|
|
|
if (align) {
|
|
|
alignStyle.textAlign = align;
|
|
|
} // ====================== Render ======================
|
|
|
|
|
|
|
|
|
var title;
|
|
|
var ellipsisConfig = ellipsis === true ? {
|
|
|
showTitle: true
|
|
|
} : ellipsis;
|
|
|
|
|
|
if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === 'header')) {
|
|
|
if (typeof childNode === 'string' || typeof childNode === 'number') {
|
|
|
title = childNode.toString();
|
|
|
} else if ( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["isValidElement"](childNode) && typeof childNode.props.children === 'string') {
|
|
|
title = childNode.props.children;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var componentProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
title: title
|
|
|
}, restCellProps), additionalProps), {}, {
|
|
|
colSpan: mergedColSpan && mergedColSpan !== 1 ? mergedColSpan : null,
|
|
|
rowSpan: mergedRowSpan && mergedRowSpan !== 1 ? mergedRowSpan : null,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(cellPrefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky), _classNames), additionalProps.className, cellClassName),
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, additionalProps.style), alignStyle), fixedStyle), cellStyle),
|
|
|
ref: isRefComponent(Component) ? ref : null
|
|
|
});
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](Component, componentProps, appendNode, childNode);
|
|
|
}
|
|
|
|
|
|
var RefCell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](Cell);
|
|
|
RefCell.displayName = 'Cell';
|
|
|
var MemoCell = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["memo"](RefCell, function (prev, next) {
|
|
|
if (next.shouldCellUpdate) {
|
|
|
return !next.shouldCellUpdate(next.record, prev.record);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MemoCell);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/ColGroup.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/ColGroup.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-table/es/utils/legacyUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ColGroup(_ref) {
|
|
|
var colWidths = _ref.colWidths,
|
|
|
columns = _ref.columns,
|
|
|
columCount = _ref.columCount;
|
|
|
var cols = [];
|
|
|
var len = columCount || columns.length; // Only insert col with width & additional props
|
|
|
// Skip if rest col do not have any useful info
|
|
|
|
|
|
var mustInsert = false;
|
|
|
|
|
|
for (var i = len - 1; i >= 0; i -= 1) {
|
|
|
var width = colWidths[i];
|
|
|
var column = columns && columns[i];
|
|
|
var additionalProps = column && column[_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_2__["INTERNAL_COL_DEFINE"]];
|
|
|
|
|
|
if (width || additionalProps || mustInsert) {
|
|
|
cols.unshift( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("col", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
key: i,
|
|
|
style: {
|
|
|
width: width,
|
|
|
minWidth: width
|
|
|
}
|
|
|
}, additionalProps)));
|
|
|
mustInsert = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("colgroup", null, cols);
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ColGroup);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Footer/Cell.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Footer/Cell.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SummaryCell; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Cell */ "./node_modules/rc-table/es/Cell/index.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function SummaryCell(_ref) {
|
|
|
var className = _ref.className,
|
|
|
index = _ref.index,
|
|
|
children = _ref.children,
|
|
|
colSpan = _ref.colSpan,
|
|
|
rowSpan = _ref.rowSpan,
|
|
|
align = _ref.align;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_1__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
fixedInfoList = _React$useContext.fixedInfoList;
|
|
|
|
|
|
var fixedInfo = fixedInfoList[index];
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Cell__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
className: className,
|
|
|
index: index,
|
|
|
component: "td",
|
|
|
prefixCls: prefixCls,
|
|
|
record: null,
|
|
|
dataIndex: null,
|
|
|
align: align,
|
|
|
render: function render() {
|
|
|
return {
|
|
|
children: children,
|
|
|
props: {
|
|
|
colSpan: colSpan,
|
|
|
rowSpan: rowSpan
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
}, fixedInfo));
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Footer/Row.js":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Footer/Row.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FooterRow; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function FooterRow(props) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tr", props);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Footer/index.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Footer/index.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default, FooterComponents */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FooterComponents", function() { return FooterComponents; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Cell */ "./node_modules/rc-table/es/Footer/Cell.js");
|
|
|
/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Row */ "./node_modules/rc-table/es/Footer/Row.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Footer(_ref) {
|
|
|
var children = _ref.children;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls;
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tfoot", {
|
|
|
className: "".concat(prefixCls, "-summary")
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Footer);
|
|
|
var FooterComponents = {
|
|
|
Cell: _Cell__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
|
Row: _Row__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Header/FixedHeader.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Header/FixedHeader.js ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Header */ "./node_modules/rc-table/es/Header/Header.js");
|
|
|
/* harmony import */ var _ColGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ColGroup */ "./node_modules/rc-table/es/ColGroup.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function useColumnWidth(colWidths, columCount) {
|
|
|
return Object(react__WEBPACK_IMPORTED_MODULE_5__["useMemo"])(function () {
|
|
|
var cloneColumns = [];
|
|
|
|
|
|
for (var i = 0; i < columCount; i += 1) {
|
|
|
var val = colWidths[i];
|
|
|
|
|
|
if (val !== undefined) {
|
|
|
cloneColumns[i] = val;
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return cloneColumns;
|
|
|
}, [colWidths.join('_'), columCount]);
|
|
|
}
|
|
|
|
|
|
var FixedHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["forwardRef"](function (_ref, ref) {
|
|
|
var noData = _ref.noData,
|
|
|
columns = _ref.columns,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
colWidths = _ref.colWidths,
|
|
|
columCount = _ref.columCount,
|
|
|
stickyOffsets = _ref.stickyOffsets,
|
|
|
direction = _ref.direction,
|
|
|
fixHeader = _ref.fixHeader,
|
|
|
offsetHeader = _ref.offsetHeader,
|
|
|
stickyClassName = _ref.stickyClassName,
|
|
|
onScroll = _ref.onScroll,
|
|
|
maxContentScroll = _ref.maxContentScroll,
|
|
|
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__["default"])(_ref, ["noData", "columns", "flattenColumns", "colWidths", "columCount", "stickyOffsets", "direction", "fixHeader", "offsetHeader", "stickyClassName", "onScroll", "maxContentScroll"]);
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
scrollbarSize = _React$useContext.scrollbarSize,
|
|
|
isSticky = _React$useContext.isSticky;
|
|
|
|
|
|
var combinationScrollBarSize = isSticky && !fixHeader ? 0 : scrollbarSize; // Pass wheel to scroll event
|
|
|
|
|
|
var scrollRef = react__WEBPACK_IMPORTED_MODULE_5__["useRef"](null);
|
|
|
var setScrollRef = react__WEBPACK_IMPORTED_MODULE_5__["useCallback"](function (element) {
|
|
|
Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_7__["fillRef"])(ref, element);
|
|
|
Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_7__["fillRef"])(scrollRef, element);
|
|
|
}, []);
|
|
|
react__WEBPACK_IMPORTED_MODULE_5__["useEffect"](function () {
|
|
|
var _scrollRef$current;
|
|
|
|
|
|
function onWheel(e) {
|
|
|
var currentTarget = e.currentTarget,
|
|
|
deltaX = e.deltaX;
|
|
|
|
|
|
if (deltaX) {
|
|
|
onScroll({
|
|
|
currentTarget: currentTarget,
|
|
|
scrollLeft: currentTarget.scrollLeft + deltaX
|
|
|
});
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
(_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.addEventListener('wheel', onWheel);
|
|
|
return function () {
|
|
|
var _scrollRef$current2;
|
|
|
|
|
|
(_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 ? void 0 : _scrollRef$current2.removeEventListener('wheel', onWheel);
|
|
|
};
|
|
|
}, []); // Check if all flattenColumns has width
|
|
|
|
|
|
var allFlattenColumnsWithWidth = react__WEBPACK_IMPORTED_MODULE_5__["useMemo"](function () {
|
|
|
return flattenColumns.every(function (column) {
|
|
|
return column.width >= 0;
|
|
|
});
|
|
|
}, [flattenColumns]); // Add scrollbar column
|
|
|
|
|
|
var lastColumn = flattenColumns[flattenColumns.length - 1];
|
|
|
var ScrollBarColumn = {
|
|
|
fixed: lastColumn ? lastColumn.fixed : null,
|
|
|
onHeaderCell: function onHeaderCell() {
|
|
|
return {
|
|
|
className: "".concat(prefixCls, "-cell-scrollbar")
|
|
|
};
|
|
|
}
|
|
|
};
|
|
|
var columnsWithScrollbar = Object(react__WEBPACK_IMPORTED_MODULE_5__["useMemo"])(function () {
|
|
|
return combinationScrollBarSize ? [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(columns), [ScrollBarColumn]) : columns;
|
|
|
}, [combinationScrollBarSize, columns]);
|
|
|
var flattenColumnsWithScrollbar = Object(react__WEBPACK_IMPORTED_MODULE_5__["useMemo"])(function () {
|
|
|
return combinationScrollBarSize ? [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(flattenColumns), [ScrollBarColumn]) : flattenColumns;
|
|
|
}, [combinationScrollBarSize, flattenColumns]); // Calculate the sticky offsets
|
|
|
|
|
|
var headerStickyOffsets = Object(react__WEBPACK_IMPORTED_MODULE_5__["useMemo"])(function () {
|
|
|
var right = stickyOffsets.right,
|
|
|
left = stickyOffsets.left;
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, stickyOffsets), {}, {
|
|
|
left: direction === 'rtl' ? [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(left.map(function (width) {
|
|
|
return width + combinationScrollBarSize;
|
|
|
})), [0]) : left,
|
|
|
right: direction === 'rtl' ? right : [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(right.map(function (width) {
|
|
|
return width + combinationScrollBarSize;
|
|
|
})), [0]),
|
|
|
isSticky: isSticky
|
|
|
});
|
|
|
}, [combinationScrollBarSize, stickyOffsets, isSticky]);
|
|
|
var mergedColumnWidth = useColumnWidth(colWidths, columCount);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("div", {
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
overflow: 'hidden'
|
|
|
}, isSticky ? {
|
|
|
top: offsetHeader
|
|
|
} : {}),
|
|
|
ref: setScrollRef,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()("".concat(prefixCls, "-header"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__["default"])({}, stickyClassName, !!stickyClassName))
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"]("table", {
|
|
|
style: {
|
|
|
tableLayout: 'fixed',
|
|
|
visibility: noData || mergedColumnWidth ? null : 'hidden'
|
|
|
}
|
|
|
}, (!noData || !maxContentScroll || allFlattenColumnsWithWidth) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_ColGroup__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
colWidths: mergedColumnWidth ? [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedColumnWidth), [combinationScrollBarSize]) : [],
|
|
|
columCount: columCount + 1,
|
|
|
columns: flattenColumnsWithScrollbar
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5__["createElement"](_Header__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
|
stickyOffsets: headerStickyOffsets,
|
|
|
columns: columnsWithScrollbar,
|
|
|
flattenColumns: flattenColumnsWithScrollbar
|
|
|
}))));
|
|
|
});
|
|
|
FixedHeader.displayName = 'FixedHeader';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (FixedHeader);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Header/Header.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Header/Header.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _HeaderRow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HeaderRow */ "./node_modules/rc-table/es/Header/HeaderRow.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function parseHeaderRows(rootColumns) {
|
|
|
var rows = [];
|
|
|
|
|
|
function fillRowCells(columns, colIndex) {
|
|
|
var rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
|
// Init rows
|
|
|
rows[rowIndex] = rows[rowIndex] || [];
|
|
|
var currentColIndex = colIndex;
|
|
|
var colSpans = columns.filter(Boolean).map(function (column) {
|
|
|
var cell = {
|
|
|
key: column.key,
|
|
|
className: column.className || '',
|
|
|
children: column.title,
|
|
|
column: column,
|
|
|
colStart: currentColIndex
|
|
|
};
|
|
|
var colSpan = 1;
|
|
|
var subColumns = column.children;
|
|
|
|
|
|
if (subColumns && subColumns.length > 0) {
|
|
|
colSpan = fillRowCells(subColumns, currentColIndex, rowIndex + 1).reduce(function (total, count) {
|
|
|
return total + count;
|
|
|
}, 0);
|
|
|
cell.hasSubColumns = true;
|
|
|
}
|
|
|
|
|
|
if ('colSpan' in column) {
|
|
|
colSpan = column.colSpan;
|
|
|
}
|
|
|
|
|
|
if ('rowSpan' in column) {
|
|
|
cell.rowSpan = column.rowSpan;
|
|
|
}
|
|
|
|
|
|
cell.colSpan = colSpan;
|
|
|
cell.colEnd = cell.colStart + colSpan - 1;
|
|
|
rows[rowIndex].push(cell);
|
|
|
currentColIndex += colSpan;
|
|
|
return colSpan;
|
|
|
});
|
|
|
return colSpans;
|
|
|
} // Generate `rows` cell data
|
|
|
|
|
|
|
|
|
fillRowCells(rootColumns, 0); // Handle `rowSpan`
|
|
|
|
|
|
var rowCount = rows.length;
|
|
|
|
|
|
var _loop = function _loop(rowIndex) {
|
|
|
rows[rowIndex].forEach(function (cell) {
|
|
|
if (!('rowSpan' in cell) && !cell.hasSubColumns) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
cell.rowSpan = rowCount - rowIndex;
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
for (var rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
|
|
|
_loop(rowIndex);
|
|
|
}
|
|
|
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
function Header(_ref) {
|
|
|
var stickyOffsets = _ref.stickyOffsets,
|
|
|
columns = _ref.columns,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
onHeaderRow = _ref.onHeaderRow;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
getComponent = _React$useContext.getComponent;
|
|
|
|
|
|
var rows = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
|
|
|
return parseHeaderRows(columns);
|
|
|
}, [columns]);
|
|
|
var WrapperComponent = getComponent(['header', 'wrapper'], 'thead');
|
|
|
var trComponent = getComponent(['header', 'row'], 'tr');
|
|
|
var thComponent = getComponent(['header', 'cell'], 'th');
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](WrapperComponent, {
|
|
|
className: "".concat(prefixCls, "-thead")
|
|
|
}, rows.map(function (row, rowIndex) {
|
|
|
var rowNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_HeaderRow__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
key: rowIndex,
|
|
|
flattenColumns: flattenColumns,
|
|
|
cells: row,
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
rowComponent: trComponent,
|
|
|
cellComponent: thComponent,
|
|
|
onHeaderRow: onHeaderRow,
|
|
|
index: rowIndex
|
|
|
});
|
|
|
return rowNode;
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Header);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Header/HeaderRow.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Header/HeaderRow.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Cell */ "./node_modules/rc-table/es/Cell/index.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _utils_fixUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/fixUtil */ "./node_modules/rc-table/es/utils/fixUtil.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/es/utils/valueUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function HeaderRow(_ref) {
|
|
|
var cells = _ref.cells,
|
|
|
stickyOffsets = _ref.stickyOffsets,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
RowComponent = _ref.rowComponent,
|
|
|
CellComponent = _ref.cellComponent,
|
|
|
onHeaderRow = _ref.onHeaderRow,
|
|
|
index = _ref.index;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_1__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var rowProps;
|
|
|
|
|
|
if (onHeaderRow) {
|
|
|
rowProps = onHeaderRow(cells.map(function (cell) {
|
|
|
return cell.column;
|
|
|
}), index);
|
|
|
}
|
|
|
|
|
|
var columnsKey = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_5__["getColumnsKey"])(cells.map(function (cell) {
|
|
|
return cell.column;
|
|
|
}));
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](RowComponent, rowProps, cells.map(function (cell, cellIndex) {
|
|
|
var column = cell.column;
|
|
|
var fixedInfo = Object(_utils_fixUtil__WEBPACK_IMPORTED_MODULE_4__["getCellFixedInfo"])(cell.colStart, cell.colEnd, flattenColumns, stickyOffsets, direction);
|
|
|
var additionalProps;
|
|
|
|
|
|
if (column && column.onHeaderCell) {
|
|
|
additionalProps = cell.column.onHeaderCell(column);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Cell__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cell, {
|
|
|
ellipsis: column.ellipsis,
|
|
|
align: column.align,
|
|
|
component: CellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
key: columnsKey[cellIndex]
|
|
|
}, fixedInfo, {
|
|
|
additionalProps: additionalProps,
|
|
|
rowType: "header"
|
|
|
}));
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
HeaderRow.displayName = 'HeaderRow';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (HeaderRow);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Panel/index.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Panel/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
|
|
|
function Panel(_ref) {
|
|
|
var className = _ref.className,
|
|
|
children = _ref.children;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
className: className
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Panel);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/Table.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Table.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: INTERNAL_HOOKS, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_HOOKS", function() { return INTERNAL_HOOKS; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var rc_util_es_Dom_isVisible__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/Dom/isVisible */ "./node_modules/rc-util/es/Dom/isVisible.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
|
|
|
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
|
|
|
/* harmony import */ var rc_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/getScrollBarSize */ "./node_modules/rc-util/es/getScrollBarSize.js");
|
|
|
/* harmony import */ var _sugar_ColumnGroup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./sugar/ColumnGroup */ "./node_modules/rc-table/es/sugar/ColumnGroup.js");
|
|
|
/* harmony import */ var _sugar_Column__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./sugar/Column */ "./node_modules/rc-table/es/sugar/Column.js");
|
|
|
/* harmony import */ var _Header_FixedHeader__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Header/FixedHeader */ "./node_modules/rc-table/es/Header/FixedHeader.js");
|
|
|
/* harmony import */ var _Header_Header__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Header/Header */ "./node_modules/rc-table/es/Header/Header.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _context_BodyContext__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./context/BodyContext */ "./node_modules/rc-table/es/context/BodyContext.js");
|
|
|
/* harmony import */ var _Body__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Body */ "./node_modules/rc-table/es/Body/index.js");
|
|
|
/* harmony import */ var _hooks_useColumns__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./hooks/useColumns */ "./node_modules/rc-table/es/hooks/useColumns.js");
|
|
|
/* harmony import */ var _hooks_useFrame__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./hooks/useFrame */ "./node_modules/rc-table/es/hooks/useFrame.js");
|
|
|
/* harmony import */ var _utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-table/es/utils/valueUtil.js");
|
|
|
/* harmony import */ var _context_ResizeContext__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./context/ResizeContext */ "./node_modules/rc-table/es/context/ResizeContext.js");
|
|
|
/* harmony import */ var _hooks_useStickyOffsets__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./hooks/useStickyOffsets */ "./node_modules/rc-table/es/hooks/useStickyOffsets.js");
|
|
|
/* harmony import */ var _ColGroup__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ColGroup */ "./node_modules/rc-table/es/ColGroup.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-table/es/utils/legacyUtil.js");
|
|
|
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Panel */ "./node_modules/rc-table/es/Panel/index.js");
|
|
|
/* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Footer */ "./node_modules/rc-table/es/Footer/index.js");
|
|
|
/* harmony import */ var _utils_expandUtil__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./utils/expandUtil */ "./node_modules/rc-table/es/utils/expandUtil.js");
|
|
|
/* harmony import */ var _utils_fixUtil__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./utils/fixUtil */ "./node_modules/rc-table/es/utils/fixUtil.js");
|
|
|
/* harmony import */ var _stickyScrollBar__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stickyScrollBar */ "./node_modules/rc-table/es/stickyScrollBar.js");
|
|
|
/* harmony import */ var _hooks_useSticky__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./hooks/useSticky */ "./node_modules/rc-table/es/hooks/useSticky.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Feature:
|
|
|
* - fixed not need to set width
|
|
|
* - support `rowExpandable` to config row expand logic
|
|
|
* - add `summary` to support `() => ReactNode`
|
|
|
*
|
|
|
* Update:
|
|
|
* - `dataIndex` is `array[]` now
|
|
|
* - `expandable` wrap all the expand related props
|
|
|
*
|
|
|
* Removed:
|
|
|
* - expandIconAsCell
|
|
|
* - useFixedHeader
|
|
|
* - rowRef
|
|
|
* - columns[number].onCellClick
|
|
|
* - onRowClick
|
|
|
* - onRowDoubleClick
|
|
|
* - onRowMouseEnter
|
|
|
* - onRowMouseLeave
|
|
|
* - getBodyWrapper
|
|
|
* - bodyStyle
|
|
|
*
|
|
|
* Deprecated:
|
|
|
* - All expanded props, move into expandable
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Used for conditions cache
|
|
|
|
|
|
var EMPTY_DATA = []; // Used for customize scroll
|
|
|
|
|
|
var EMPTY_SCROLL_TARGET = {};
|
|
|
var INTERNAL_HOOKS = 'rc-table-internal-hook';
|
|
|
var MemoTableContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["memo"](function (_ref) {
|
|
|
var children = _ref.children;
|
|
|
return children;
|
|
|
}, function (prev, next) {
|
|
|
if (!shallowequal__WEBPACK_IMPORTED_MODULE_9___default()(prev.props, next.props)) {
|
|
|
return false;
|
|
|
} // No additional render when pinged status change.
|
|
|
// This is not a bug.
|
|
|
|
|
|
|
|
|
return prev.pingLeft !== next.pingLeft || prev.pingRight !== next.pingRight;
|
|
|
});
|
|
|
|
|
|
function Table(props) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
rowClassName = props.rowClassName,
|
|
|
style = props.style,
|
|
|
data = props.data,
|
|
|
rowKey = props.rowKey,
|
|
|
scroll = props.scroll,
|
|
|
tableLayout = props.tableLayout,
|
|
|
direction = props.direction,
|
|
|
title = props.title,
|
|
|
footer = props.footer,
|
|
|
summary = props.summary,
|
|
|
id = props.id,
|
|
|
showHeader = props.showHeader,
|
|
|
components = props.components,
|
|
|
emptyText = props.emptyText,
|
|
|
onRow = props.onRow,
|
|
|
onHeaderRow = props.onHeaderRow,
|
|
|
internalHooks = props.internalHooks,
|
|
|
transformColumns = props.transformColumns,
|
|
|
internalRefs = props.internalRefs,
|
|
|
sticky = props.sticky;
|
|
|
var mergedData = data || EMPTY_DATA;
|
|
|
var hasData = !!mergedData.length; // ===================== Effects ======================
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_6__["useState"](0),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_React$useState, 2),
|
|
|
scrollbarSize = _React$useState2[0],
|
|
|
setScrollbarSize = _React$useState2[1];
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_6__["useEffect"](function () {
|
|
|
setScrollbarSize(Object(rc_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_12__["default"])());
|
|
|
}); // ===================== Warning ======================
|
|
|
|
|
|
if (true) {
|
|
|
['onRowClick', 'onRowDoubleClick', 'onRowContextMenu', 'onRowMouseEnter', 'onRowMouseLeave'].forEach(function (name) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(props[name] === undefined, "`".concat(name, "` is removed, please use `onRow` instead."));
|
|
|
});
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!('getBodyWrapper' in props), '`getBodyWrapper` is deprecated, please use custom `components` instead.');
|
|
|
} // ==================== Customize =====================
|
|
|
|
|
|
|
|
|
var mergedComponents = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__["mergeObject"])(components, {});
|
|
|
}, [components]);
|
|
|
var getComponent = react__WEBPACK_IMPORTED_MODULE_6__["useCallback"](function (path, defaultComponent) {
|
|
|
return Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__["getPathValue"])(mergedComponents, path) || defaultComponent;
|
|
|
}, [mergedComponents]);
|
|
|
var getRowKey = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
if (typeof rowKey === 'function') {
|
|
|
return rowKey;
|
|
|
}
|
|
|
|
|
|
return function (record) {
|
|
|
var key = record && record[rowKey];
|
|
|
|
|
|
if (true) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(key !== undefined, 'Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key.');
|
|
|
}
|
|
|
|
|
|
return key;
|
|
|
};
|
|
|
}, [rowKey]); // ====================== Expand ======================
|
|
|
|
|
|
var expandableConfig = Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_26__["getExpandableProps"])(props);
|
|
|
var expandIcon = expandableConfig.expandIcon,
|
|
|
expandedRowKeys = expandableConfig.expandedRowKeys,
|
|
|
defaultExpandedRowKeys = expandableConfig.defaultExpandedRowKeys,
|
|
|
defaultExpandAllRows = expandableConfig.defaultExpandAllRows,
|
|
|
expandedRowRender = expandableConfig.expandedRowRender,
|
|
|
onExpand = expandableConfig.onExpand,
|
|
|
onExpandedRowsChange = expandableConfig.onExpandedRowsChange,
|
|
|
expandRowByClick = expandableConfig.expandRowByClick,
|
|
|
rowExpandable = expandableConfig.rowExpandable,
|
|
|
expandIconColumnIndex = expandableConfig.expandIconColumnIndex,
|
|
|
expandedRowClassName = expandableConfig.expandedRowClassName,
|
|
|
childrenColumnName = expandableConfig.childrenColumnName,
|
|
|
indentSize = expandableConfig.indentSize;
|
|
|
var mergedExpandIcon = expandIcon || _utils_expandUtil__WEBPACK_IMPORTED_MODULE_29__["renderExpandIcon"];
|
|
|
var mergedChildrenColumnName = childrenColumnName || 'children';
|
|
|
var expandableType = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
if (expandedRowRender) {
|
|
|
return 'row';
|
|
|
}
|
|
|
/* eslint-disable no-underscore-dangle */
|
|
|
|
|
|
/**
|
|
|
* Fix https://github.com/ant-design/ant-design/issues/21154
|
|
|
* This is a workaround to not to break current behavior.
|
|
|
* We can remove follow code after final release.
|
|
|
*
|
|
|
* To other developer:
|
|
|
* Do not use `__PARENT_RENDER_ICON__` in prod since we will remove this when refactor
|
|
|
*/
|
|
|
|
|
|
|
|
|
if (props.expandable && internalHooks === INTERNAL_HOOKS && props.expandable.__PARENT_RENDER_ICON__ || mergedData.some(function (record) {
|
|
|
return record && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_4__["default"])(record) === 'object' && record[mergedChildrenColumnName];
|
|
|
})) {
|
|
|
return 'nest';
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
return false;
|
|
|
}, [!!expandedRowRender, mergedData]);
|
|
|
|
|
|
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_6__["useState"](function () {
|
|
|
if (defaultExpandedRowKeys) {
|
|
|
return defaultExpandedRowKeys;
|
|
|
}
|
|
|
|
|
|
if (defaultExpandAllRows) {
|
|
|
return Object(_utils_expandUtil__WEBPACK_IMPORTED_MODULE_29__["findAllChildrenKeys"])(mergedData, getRowKey, mergedChildrenColumnName);
|
|
|
}
|
|
|
|
|
|
return [];
|
|
|
}),
|
|
|
_React$useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_React$useState3, 2),
|
|
|
innerExpandedKeys = _React$useState4[0],
|
|
|
setInnerExpandedKeys = _React$useState4[1];
|
|
|
|
|
|
var mergedExpandedKeys = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return new Set(expandedRowKeys || innerExpandedKeys || []);
|
|
|
}, [expandedRowKeys, innerExpandedKeys]);
|
|
|
var onTriggerExpand = react__WEBPACK_IMPORTED_MODULE_6__["useCallback"](function (record) {
|
|
|
var key = getRowKey(record, mergedData.indexOf(record));
|
|
|
var newExpandedKeys;
|
|
|
var hasKey = mergedExpandedKeys.has(key);
|
|
|
|
|
|
if (hasKey) {
|
|
|
mergedExpandedKeys.delete(key);
|
|
|
newExpandedKeys = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedExpandedKeys);
|
|
|
} else {
|
|
|
newExpandedKeys = [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedExpandedKeys), [key]);
|
|
|
}
|
|
|
|
|
|
setInnerExpandedKeys(newExpandedKeys);
|
|
|
|
|
|
if (onExpand) {
|
|
|
onExpand(!hasKey, record);
|
|
|
}
|
|
|
|
|
|
if (onExpandedRowsChange) {
|
|
|
onExpandedRowsChange(newExpandedKeys);
|
|
|
}
|
|
|
}, [getRowKey, mergedExpandedKeys, mergedData, onExpand, onExpandedRowsChange]); // ====================== Column ======================
|
|
|
|
|
|
var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_6__["useState"](0),
|
|
|
_React$useState6 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_React$useState5, 2),
|
|
|
componentWidth = _React$useState6[0],
|
|
|
setComponentWidth = _React$useState6[1];
|
|
|
|
|
|
var _useColumns = Object(_hooks_useColumns__WEBPACK_IMPORTED_MODULE_20__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props), expandableConfig), {}, {
|
|
|
expandable: !!expandedRowRender,
|
|
|
expandedKeys: mergedExpandedKeys,
|
|
|
getRowKey: getRowKey,
|
|
|
// https://github.com/ant-design/ant-design/issues/23894
|
|
|
onTriggerExpand: onTriggerExpand,
|
|
|
expandIcon: mergedExpandIcon,
|
|
|
expandIconColumnIndex: expandIconColumnIndex,
|
|
|
direction: direction
|
|
|
}), internalHooks === INTERNAL_HOOKS ? transformColumns : null),
|
|
|
_useColumns2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_useColumns, 2),
|
|
|
columns = _useColumns2[0],
|
|
|
flattenColumns = _useColumns2[1];
|
|
|
|
|
|
var columnContext = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return {
|
|
|
columns: columns,
|
|
|
flattenColumns: flattenColumns
|
|
|
};
|
|
|
}, [columns, flattenColumns]); // ====================== Scroll ======================
|
|
|
|
|
|
var fullTableRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
|
|
|
var scrollHeaderRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
|
|
|
var scrollBodyRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
|
|
|
|
|
|
var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_6__["useState"](false),
|
|
|
_React$useState8 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_React$useState7, 2),
|
|
|
pingedLeft = _React$useState8[0],
|
|
|
setPingedLeft = _React$useState8[1];
|
|
|
|
|
|
var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_6__["useState"](false),
|
|
|
_React$useState10 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_React$useState9, 2),
|
|
|
pingedRight = _React$useState10[0],
|
|
|
setPingedRight = _React$useState10[1];
|
|
|
|
|
|
var _useLayoutState = Object(_hooks_useFrame__WEBPACK_IMPORTED_MODULE_21__["useLayoutState"])(new Map()),
|
|
|
_useLayoutState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_useLayoutState, 2),
|
|
|
colsWidths = _useLayoutState2[0],
|
|
|
updateColsWidths = _useLayoutState2[1]; // Convert map to number width
|
|
|
|
|
|
|
|
|
var colsKeys = Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__["getColumnsKey"])(flattenColumns);
|
|
|
var pureColWidths = colsKeys.map(function (columnKey) {
|
|
|
return colsWidths.get(columnKey);
|
|
|
});
|
|
|
var colWidths = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return pureColWidths;
|
|
|
}, [pureColWidths.join('_')]);
|
|
|
var stickyOffsets = Object(_hooks_useStickyOffsets__WEBPACK_IMPORTED_MODULE_24__["default"])(colWidths, flattenColumns.length, direction);
|
|
|
var fixHeader = scroll && Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__["validateValue"])(scroll.y);
|
|
|
var horizonScroll = scroll && Object(_utils_valueUtil__WEBPACK_IMPORTED_MODULE_22__["validateValue"])(scroll.x);
|
|
|
var fixColumn = horizonScroll && flattenColumns.some(function (_ref2) {
|
|
|
var fixed = _ref2.fixed;
|
|
|
return fixed;
|
|
|
}); // Sticky
|
|
|
|
|
|
var stickyRef = react__WEBPACK_IMPORTED_MODULE_6__["useRef"]();
|
|
|
|
|
|
var _useSticky = Object(_hooks_useSticky__WEBPACK_IMPORTED_MODULE_32__["default"])(sticky, prefixCls),
|
|
|
isSticky = _useSticky.isSticky,
|
|
|
offsetHeader = _useSticky.offsetHeader,
|
|
|
offsetScroll = _useSticky.offsetScroll,
|
|
|
stickyClassName = _useSticky.stickyClassName,
|
|
|
container = _useSticky.container;
|
|
|
|
|
|
var scrollXStyle;
|
|
|
var scrollYStyle;
|
|
|
var scrollTableStyle;
|
|
|
|
|
|
if (fixHeader) {
|
|
|
scrollYStyle = {
|
|
|
overflowY: 'scroll',
|
|
|
maxHeight: scroll.y
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (horizonScroll) {
|
|
|
scrollXStyle = {
|
|
|
overflowX: 'auto'
|
|
|
}; // When no vertical scrollbar, should hide it
|
|
|
// https://github.com/ant-design/ant-design/pull/20705
|
|
|
// https://github.com/ant-design/ant-design/issues/21879
|
|
|
|
|
|
if (!fixHeader) {
|
|
|
scrollYStyle = {
|
|
|
overflowY: 'hidden'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
scrollTableStyle = {
|
|
|
width: scroll.x === true ? 'auto' : scroll.x,
|
|
|
minWidth: '100%'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var onColumnResize = react__WEBPACK_IMPORTED_MODULE_6__["useCallback"](function (columnKey, width) {
|
|
|
if (Object(rc_util_es_Dom_isVisible__WEBPACK_IMPORTED_MODULE_7__["default"])(fullTableRef.current)) {
|
|
|
updateColsWidths(function (widths) {
|
|
|
if (widths.get(columnKey) !== width) {
|
|
|
var newWidths = new Map(widths);
|
|
|
newWidths.set(columnKey, width);
|
|
|
return newWidths;
|
|
|
}
|
|
|
|
|
|
return widths;
|
|
|
});
|
|
|
}
|
|
|
}, []);
|
|
|
|
|
|
var _useTimeoutLock = Object(_hooks_useFrame__WEBPACK_IMPORTED_MODULE_21__["useTimeoutLock"])(null),
|
|
|
_useTimeoutLock2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_5__["default"])(_useTimeoutLock, 2),
|
|
|
setScrollTarget = _useTimeoutLock2[0],
|
|
|
getScrollTarget = _useTimeoutLock2[1];
|
|
|
|
|
|
function forceScroll(scrollLeft, target) {
|
|
|
if (!target) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof target === 'function') {
|
|
|
target(scrollLeft);
|
|
|
} else if (target.scrollLeft !== scrollLeft) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
target.scrollLeft = scrollLeft;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var onScroll = function onScroll(_ref3) {
|
|
|
var currentTarget = _ref3.currentTarget,
|
|
|
scrollLeft = _ref3.scrollLeft;
|
|
|
var isRTL = direction === 'rtl';
|
|
|
var mergedScrollLeft = typeof scrollLeft === 'number' ? scrollLeft : currentTarget.scrollLeft;
|
|
|
var compareTarget = currentTarget || EMPTY_SCROLL_TARGET;
|
|
|
|
|
|
if (!getScrollTarget() || getScrollTarget() === compareTarget) {
|
|
|
var _stickyRef$current;
|
|
|
|
|
|
setScrollTarget(compareTarget);
|
|
|
forceScroll(mergedScrollLeft, scrollHeaderRef.current);
|
|
|
forceScroll(mergedScrollLeft, scrollBodyRef.current);
|
|
|
forceScroll(mergedScrollLeft, (_stickyRef$current = stickyRef.current) === null || _stickyRef$current === void 0 ? void 0 : _stickyRef$current.setScrollLeft);
|
|
|
}
|
|
|
|
|
|
if (currentTarget) {
|
|
|
var scrollWidth = currentTarget.scrollWidth,
|
|
|
clientWidth = currentTarget.clientWidth;
|
|
|
|
|
|
if (isRTL) {
|
|
|
setPingedLeft(-mergedScrollLeft < scrollWidth - clientWidth);
|
|
|
setPingedRight(-mergedScrollLeft > 0);
|
|
|
} else {
|
|
|
setPingedLeft(mergedScrollLeft > 0);
|
|
|
setPingedRight(mergedScrollLeft < scrollWidth - clientWidth);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var triggerOnScroll = function triggerOnScroll() {
|
|
|
if (scrollBodyRef.current) {
|
|
|
onScroll({
|
|
|
currentTarget: scrollBodyRef.current
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onFullTableResize = function onFullTableResize(_ref4) {
|
|
|
var width = _ref4.width;
|
|
|
triggerOnScroll();
|
|
|
setComponentWidth(fullTableRef.current ? fullTableRef.current.offsetWidth : width);
|
|
|
}; // Sync scroll bar when init or `horizonScroll` changed
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_6__["useEffect"](function () {
|
|
|
return triggerOnScroll;
|
|
|
}, []);
|
|
|
react__WEBPACK_IMPORTED_MODULE_6__["useEffect"](function () {
|
|
|
if (horizonScroll) {
|
|
|
triggerOnScroll();
|
|
|
}
|
|
|
}, [horizonScroll]); // ================== INTERNAL HOOKS ==================
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_6__["useEffect"](function () {
|
|
|
if (internalHooks === INTERNAL_HOOKS && internalRefs) {
|
|
|
internalRefs.body.current = scrollBodyRef.current;
|
|
|
}
|
|
|
}); // ====================== Render ======================
|
|
|
|
|
|
var TableComponent = getComponent(['table'], 'table'); // Table layout
|
|
|
|
|
|
var mergedTableLayout = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
if (tableLayout) {
|
|
|
return tableLayout;
|
|
|
} // https://github.com/ant-design/ant-design/issues/25227
|
|
|
// When scroll.x is max-content, no need to fix table layout
|
|
|
// it's width should stretch out to fit content
|
|
|
|
|
|
|
|
|
if (fixColumn) {
|
|
|
return scroll.x === 'max-content' ? 'auto' : 'fixed';
|
|
|
}
|
|
|
|
|
|
if (fixHeader || isSticky || flattenColumns.some(function (_ref5) {
|
|
|
var ellipsis = _ref5.ellipsis;
|
|
|
return ellipsis;
|
|
|
})) {
|
|
|
return 'fixed';
|
|
|
}
|
|
|
|
|
|
return 'auto';
|
|
|
}, [fixHeader, fixColumn, flattenColumns, tableLayout, isSticky]);
|
|
|
var groupTableNode; // Header props
|
|
|
|
|
|
var headerProps = {
|
|
|
colWidths: colWidths,
|
|
|
columCount: flattenColumns.length,
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
onHeaderRow: onHeaderRow,
|
|
|
fixHeader: fixHeader,
|
|
|
scroll: scroll
|
|
|
}; // Empty
|
|
|
|
|
|
var emptyNode = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
if (hasData) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (typeof emptyText === 'function') {
|
|
|
return emptyText();
|
|
|
}
|
|
|
|
|
|
return emptyText;
|
|
|
}, [hasData, emptyText]); // Body
|
|
|
|
|
|
var bodyTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Body__WEBPACK_IMPORTED_MODULE_19__["default"], {
|
|
|
data: mergedData,
|
|
|
measureColumnWidth: fixHeader || horizonScroll || isSticky,
|
|
|
expandedKeys: mergedExpandedKeys,
|
|
|
rowExpandable: rowExpandable,
|
|
|
getRowKey: getRowKey,
|
|
|
onRow: onRow,
|
|
|
emptyNode: emptyNode,
|
|
|
childrenColumnName: mergedChildrenColumnName
|
|
|
});
|
|
|
var bodyColGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_ColGroup__WEBPACK_IMPORTED_MODULE_25__["default"], {
|
|
|
colWidths: flattenColumns.map(function (_ref6) {
|
|
|
var width = _ref6.width;
|
|
|
return width;
|
|
|
}),
|
|
|
columns: flattenColumns
|
|
|
});
|
|
|
var footerTable = summary && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Footer__WEBPACK_IMPORTED_MODULE_28__["default"], null, summary(mergedData));
|
|
|
var customizeScrollBody = getComponent(['body']);
|
|
|
|
|
|
if ( true && typeof customizeScrollBody === 'function' && hasData && !fixHeader) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(false, '`components.body` with render props is only work on `scroll.y`.');
|
|
|
}
|
|
|
|
|
|
if (fixHeader || isSticky) {
|
|
|
var bodyContent;
|
|
|
|
|
|
if (typeof customizeScrollBody === 'function') {
|
|
|
bodyContent = customizeScrollBody(mergedData, {
|
|
|
scrollbarSize: scrollbarSize,
|
|
|
ref: scrollBodyRef,
|
|
|
onScroll: onScroll
|
|
|
});
|
|
|
headerProps.colWidths = flattenColumns.map(function (_ref7, index) {
|
|
|
var width = _ref7.width;
|
|
|
var colWidth = index === columns.length - 1 ? width - scrollbarSize : width;
|
|
|
|
|
|
if (typeof colWidth === 'number' && !Number.isNaN(colWidth)) {
|
|
|
return colWidth;
|
|
|
}
|
|
|
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(false, 'When use `components.body` with render props. Each column should have a fixed `width` value.');
|
|
|
return 0;
|
|
|
});
|
|
|
} else {
|
|
|
bodyContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, scrollXStyle), scrollYStyle),
|
|
|
onScroll: onScroll,
|
|
|
ref: scrollBodyRef,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-body"))
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](TableComponent, {
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, scrollTableStyle), {}, {
|
|
|
tableLayout: mergedTableLayout
|
|
|
})
|
|
|
}, bodyColGroup, bodyTable, footerTable));
|
|
|
}
|
|
|
|
|
|
groupTableNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](react__WEBPACK_IMPORTED_MODULE_6__["Fragment"], null, showHeader !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Header_FixedHeader__WEBPACK_IMPORTED_MODULE_15__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
noData: !mergedData.length,
|
|
|
maxContentScroll: horizonScroll && scroll.x === 'max-content'
|
|
|
}, headerProps, columnContext, {
|
|
|
direction: direction // Fixed Props
|
|
|
,
|
|
|
offsetHeader: offsetHeader,
|
|
|
stickyClassName: stickyClassName,
|
|
|
ref: scrollHeaderRef,
|
|
|
onScroll: onScroll
|
|
|
})), bodyContent, isSticky && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_stickyScrollBar__WEBPACK_IMPORTED_MODULE_31__["default"], {
|
|
|
ref: stickyRef,
|
|
|
offsetScroll: offsetScroll,
|
|
|
scrollBodyRef: scrollBodyRef,
|
|
|
onScroll: onScroll,
|
|
|
container: container
|
|
|
}));
|
|
|
} else {
|
|
|
groupTableNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, scrollXStyle), scrollYStyle),
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-content")),
|
|
|
onScroll: onScroll,
|
|
|
ref: scrollBodyRef
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](TableComponent, {
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, scrollTableStyle), {}, {
|
|
|
tableLayout: mergedTableLayout
|
|
|
})
|
|
|
}, bodyColGroup, showHeader !== false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Header_Header__WEBPACK_IMPORTED_MODULE_16__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, headerProps, columnContext)), bodyTable, footerTable));
|
|
|
}
|
|
|
|
|
|
var ariaProps = Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_26__["getDataAndAriaProps"])(props);
|
|
|
var fullTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(prefixCls, className, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-ping-left"), pingedLeft), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-ping-right"), pingedRight), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-layout-fixed"), tableLayout === 'fixed'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-fixed-header"), fixHeader), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-fixed-column"), fixColumn), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-scroll-horizontal"), horizonScroll), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-has-fix-left"), flattenColumns[0] && flattenColumns[0].fixed), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-has-fix-right"), flattenColumns[flattenColumns.length - 1] && flattenColumns[flattenColumns.length - 1].fixed === 'right'), _classNames)),
|
|
|
style: style,
|
|
|
id: id,
|
|
|
ref: fullTableRef
|
|
|
}, ariaProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](MemoTableContent, {
|
|
|
pingLeft: pingedLeft,
|
|
|
pingRight: pingedRight,
|
|
|
props: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, props), {}, {
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
mergedExpandedKeys: mergedExpandedKeys
|
|
|
})
|
|
|
}, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Panel__WEBPACK_IMPORTED_MODULE_27__["default"], {
|
|
|
className: "".concat(prefixCls, "-title")
|
|
|
}, title(mergedData)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-container")
|
|
|
}, groupTableNode), footer && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_Panel__WEBPACK_IMPORTED_MODULE_27__["default"], {
|
|
|
className: "".concat(prefixCls, "-footer")
|
|
|
}, footer(mergedData))));
|
|
|
|
|
|
if (horizonScroll) {
|
|
|
fullTable = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
|
onResize: onFullTableResize
|
|
|
}, fullTable);
|
|
|
}
|
|
|
|
|
|
var TableContextValue = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return {
|
|
|
prefixCls: prefixCls,
|
|
|
getComponent: getComponent,
|
|
|
scrollbarSize: scrollbarSize,
|
|
|
direction: direction,
|
|
|
fixedInfoList: flattenColumns.map(function (_, colIndex) {
|
|
|
return Object(_utils_fixUtil__WEBPACK_IMPORTED_MODULE_30__["getCellFixedInfo"])(colIndex, colIndex, flattenColumns, stickyOffsets, direction);
|
|
|
}),
|
|
|
isSticky: isSticky
|
|
|
};
|
|
|
}, [prefixCls, getComponent, scrollbarSize, direction, flattenColumns, stickyOffsets, direction, isSticky]);
|
|
|
var BodyContextValue = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, columnContext), {}, {
|
|
|
tableLayout: mergedTableLayout,
|
|
|
rowClassName: rowClassName,
|
|
|
expandedRowClassName: expandedRowClassName,
|
|
|
componentWidth: componentWidth,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: fixColumn,
|
|
|
horizonScroll: horizonScroll,
|
|
|
expandIcon: mergedExpandIcon,
|
|
|
expandableType: expandableType,
|
|
|
expandRowByClick: expandRowByClick,
|
|
|
expandedRowRender: expandedRowRender,
|
|
|
onTriggerExpand: onTriggerExpand,
|
|
|
expandIconColumnIndex: expandIconColumnIndex,
|
|
|
indentSize: indentSize
|
|
|
});
|
|
|
}, [columnContext, mergedTableLayout, rowClassName, expandedRowClassName, componentWidth, fixHeader, fixColumn, horizonScroll, mergedExpandIcon, expandableType, expandRowByClick, expandedRowRender, onTriggerExpand, expandIconColumnIndex, indentSize]);
|
|
|
var ResizeContextValue = react__WEBPACK_IMPORTED_MODULE_6__["useMemo"](function () {
|
|
|
return {
|
|
|
onColumnResize: onColumnResize
|
|
|
};
|
|
|
}, [onColumnResize]);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_context_TableContext__WEBPACK_IMPORTED_MODULE_17__["default"].Provider, {
|
|
|
value: TableContextValue
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_context_BodyContext__WEBPACK_IMPORTED_MODULE_18__["default"].Provider, {
|
|
|
value: BodyContextValue
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6__["createElement"](_context_ResizeContext__WEBPACK_IMPORTED_MODULE_23__["default"].Provider, {
|
|
|
value: ResizeContextValue
|
|
|
}, fullTable)));
|
|
|
}
|
|
|
|
|
|
Table.Column = _sugar_Column__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
|
Table.ColumnGroup = _sugar_ColumnGroup__WEBPACK_IMPORTED_MODULE_13__["default"];
|
|
|
Table.Summary = _Footer__WEBPACK_IMPORTED_MODULE_28__["FooterComponents"];
|
|
|
Table.defaultProps = {
|
|
|
rowKey: 'key',
|
|
|
prefixCls: 'rc-table',
|
|
|
emptyText: function emptyText() {
|
|
|
return 'No Data';
|
|
|
}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Table);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/context/BodyContext.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/context/BodyContext.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
var BodyContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"](null);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (BodyContext);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/context/ResizeContext.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/context/ResizeContext.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
var ResizeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"](null);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ResizeContext);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/context/TableContext.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/context/TableContext.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"](null);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (TableContext);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/hooks/useColumns.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/hooks/useColumns.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: convertChildrenToColumns, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertChildrenToColumns", function() { return convertChildrenToColumns; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/Children/toArray */ "./node_modules/rc-util/es/Children/toArray.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/legacyUtil */ "./node_modules/rc-table/es/utils/legacyUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function convertChildrenToColumns(children) {
|
|
|
return Object(rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_6__["default"])(children).filter(function (node) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["isValidElement"](node);
|
|
|
}).map(function (_ref) {
|
|
|
var key = _ref.key,
|
|
|
props = _ref.props;
|
|
|
|
|
|
var nodeChildren = props.children,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ["children"]);
|
|
|
|
|
|
var column = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
key: key
|
|
|
}, restProps);
|
|
|
|
|
|
if (nodeChildren) {
|
|
|
column.children = convertChildrenToColumns(nodeChildren);
|
|
|
}
|
|
|
|
|
|
return column;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function flatColumns(columns) {
|
|
|
return columns.reduce(function (list, column) {
|
|
|
var fixed = column.fixed; // Convert `fixed='true'` to `fixed='left'` instead
|
|
|
|
|
|
var parsedFixed = fixed === true ? 'left' : fixed;
|
|
|
var subColumns = column.children;
|
|
|
|
|
|
if (subColumns && subColumns.length > 0) {
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(list), Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(flatColumns(subColumns).map(function (subColum) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
fixed: parsedFixed
|
|
|
}, subColum);
|
|
|
})));
|
|
|
}
|
|
|
|
|
|
return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(list), [Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, column), {}, {
|
|
|
fixed: parsedFixed
|
|
|
})]);
|
|
|
}, []);
|
|
|
}
|
|
|
|
|
|
function warningFixed(flattenColumns) {
|
|
|
var allFixLeft = true;
|
|
|
|
|
|
for (var i = 0; i < flattenColumns.length; i += 1) {
|
|
|
var col = flattenColumns[i];
|
|
|
|
|
|
if (allFixLeft && col.fixed !== 'left') {
|
|
|
allFixLeft = false;
|
|
|
} else if (!allFixLeft && col.fixed === 'left') {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__["default"])(false, "Index ".concat(i - 1, " of `columns` missing `fixed='left'` prop."));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var allFixRight = true;
|
|
|
|
|
|
for (var _i = flattenColumns.length - 1; _i >= 0; _i -= 1) {
|
|
|
var _col = flattenColumns[_i];
|
|
|
|
|
|
if (allFixRight && _col.fixed !== 'right') {
|
|
|
allFixRight = false;
|
|
|
} else if (!allFixRight && _col.fixed === 'right') {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_5__["default"])(false, "Index ".concat(_i + 1, " of `columns` missing `fixed='right'` prop."));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function revertForRtl(columns) {
|
|
|
return columns.map(function (column) {
|
|
|
var fixed = column.fixed,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(column, ["fixed"]); // Convert `fixed='left'` to `fixed='right'` instead
|
|
|
|
|
|
|
|
|
var parsedFixed = fixed;
|
|
|
|
|
|
if (fixed === 'left') {
|
|
|
parsedFixed = 'right';
|
|
|
} else if (fixed === 'right') {
|
|
|
parsedFixed = 'left';
|
|
|
}
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({
|
|
|
fixed: parsedFixed
|
|
|
}, restProps);
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Parse `columns` & `children` into `columns`.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function useColumns(_ref2, transformColumns) {
|
|
|
var prefixCls = _ref2.prefixCls,
|
|
|
columns = _ref2.columns,
|
|
|
children = _ref2.children,
|
|
|
expandable = _ref2.expandable,
|
|
|
expandedKeys = _ref2.expandedKeys,
|
|
|
getRowKey = _ref2.getRowKey,
|
|
|
onTriggerExpand = _ref2.onTriggerExpand,
|
|
|
expandIcon = _ref2.expandIcon,
|
|
|
rowExpandable = _ref2.rowExpandable,
|
|
|
expandIconColumnIndex = _ref2.expandIconColumnIndex,
|
|
|
direction = _ref2.direction,
|
|
|
expandRowByClick = _ref2.expandRowByClick,
|
|
|
columnWidth = _ref2.columnWidth;
|
|
|
var baseColumns = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
return columns || convertChildrenToColumns(children);
|
|
|
}, [columns, children]); // Add expand column
|
|
|
|
|
|
var withExpandColumns = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
if (expandable) {
|
|
|
var _expandColumn;
|
|
|
|
|
|
var expandColIndex = expandIconColumnIndex || 0;
|
|
|
var prevColumn = baseColumns[expandColIndex];
|
|
|
var expandColumn = (_expandColumn = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_7__["INTERNAL_COL_DEFINE"], {
|
|
|
className: "".concat(prefixCls, "-expand-icon-col")
|
|
|
}), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, "title", ''), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, "fixed", prevColumn ? prevColumn.fixed : null), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, "className", "".concat(prefixCls, "-row-expand-icon-cell")), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, "width", columnWidth), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_expandColumn, "render", function render(_, record, index) {
|
|
|
var rowKey = getRowKey(record, index);
|
|
|
var expanded = expandedKeys.has(rowKey);
|
|
|
var recordExpandable = rowExpandable ? rowExpandable(record) : true;
|
|
|
var icon = expandIcon({
|
|
|
prefixCls: prefixCls,
|
|
|
expanded: expanded,
|
|
|
expandable: recordExpandable,
|
|
|
record: record,
|
|
|
onExpand: onTriggerExpand
|
|
|
});
|
|
|
|
|
|
if (expandRowByClick) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("span", {
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
}
|
|
|
}, icon);
|
|
|
}
|
|
|
|
|
|
return icon;
|
|
|
}), _expandColumn); // Insert expand column in the target position
|
|
|
|
|
|
var cloneColumns = baseColumns.slice();
|
|
|
|
|
|
if (expandColIndex >= 0) {
|
|
|
cloneColumns.splice(expandColIndex, 0, expandColumn);
|
|
|
}
|
|
|
|
|
|
return cloneColumns;
|
|
|
}
|
|
|
|
|
|
return baseColumns;
|
|
|
}, [expandable, baseColumns, getRowKey, expandedKeys, expandIcon, direction]);
|
|
|
var mergedColumns = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
var finalColumns = withExpandColumns;
|
|
|
|
|
|
if (transformColumns) {
|
|
|
finalColumns = transformColumns(finalColumns);
|
|
|
} // Always provides at least one column for table display
|
|
|
|
|
|
|
|
|
if (!finalColumns.length) {
|
|
|
finalColumns = [{
|
|
|
render: function render() {
|
|
|
return null;
|
|
|
}
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
return finalColumns;
|
|
|
}, [transformColumns, withExpandColumns, direction]);
|
|
|
var flattenColumns = react__WEBPACK_IMPORTED_MODULE_4__["useMemo"](function () {
|
|
|
if (direction === 'rtl') {
|
|
|
return revertForRtl(flatColumns(mergedColumns));
|
|
|
}
|
|
|
|
|
|
return flatColumns(mergedColumns);
|
|
|
}, [mergedColumns, direction]); // Only check out of production since it's waste for each render
|
|
|
|
|
|
if (true) {
|
|
|
warningFixed(flattenColumns);
|
|
|
}
|
|
|
|
|
|
return [mergedColumns, flattenColumns];
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (useColumns);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/hooks/useFrame.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/hooks/useFrame.js ***!
|
|
|
\****************************************************/
|
|
|
/*! exports provided: useLayoutState, useTimeoutLock */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useLayoutState", function() { return useLayoutState; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useTimeoutLock", function() { return useTimeoutLock; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Execute code before next frame but async
|
|
|
*/
|
|
|
|
|
|
function useLayoutState(defaultState) {
|
|
|
var stateRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(defaultState);
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])({}),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_useState, 2),
|
|
|
forceUpdate = _useState2[1];
|
|
|
|
|
|
var lastPromiseRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(null);
|
|
|
var updateBatchRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])([]);
|
|
|
|
|
|
function setFrameState(updater) {
|
|
|
updateBatchRef.current.push(updater);
|
|
|
var promise = Promise.resolve();
|
|
|
lastPromiseRef.current = promise;
|
|
|
promise.then(function () {
|
|
|
if (lastPromiseRef.current === promise) {
|
|
|
var prevBatch = updateBatchRef.current;
|
|
|
var prevState = stateRef.current;
|
|
|
updateBatchRef.current = [];
|
|
|
prevBatch.forEach(function (batchUpdater) {
|
|
|
stateRef.current = batchUpdater(stateRef.current);
|
|
|
});
|
|
|
lastPromiseRef.current = null;
|
|
|
|
|
|
if (prevState !== stateRef.current) {
|
|
|
forceUpdate({});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
lastPromiseRef.current = null;
|
|
|
};
|
|
|
}, []);
|
|
|
return [stateRef.current, setFrameState];
|
|
|
}
|
|
|
/** Lock frame, when frame pass reset the lock. */
|
|
|
|
|
|
function useTimeoutLock(defaultState) {
|
|
|
var frameRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])(defaultState || null);
|
|
|
var timeoutRef = Object(react__WEBPACK_IMPORTED_MODULE_1__["useRef"])();
|
|
|
|
|
|
function cleanUp() {
|
|
|
window.clearTimeout(timeoutRef.current);
|
|
|
}
|
|
|
|
|
|
function setState(newState) {
|
|
|
frameRef.current = newState;
|
|
|
cleanUp();
|
|
|
timeoutRef.current = window.setTimeout(function () {
|
|
|
frameRef.current = null;
|
|
|
timeoutRef.current = undefined;
|
|
|
}, 100);
|
|
|
}
|
|
|
|
|
|
function getState() {
|
|
|
return frameRef.current;
|
|
|
}
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
|
|
|
return cleanUp;
|
|
|
}, []);
|
|
|
return [setState, getState];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/hooks/useSticky.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/hooks/useSticky.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useSticky; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
|
|
|
|
|
|
|
|
// fix ssr render
|
|
|
|
|
|
var defaultContainer = Object(rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__["default"])() ? window : null;
|
|
|
/** Sticky header hooks */
|
|
|
|
|
|
function useSticky(sticky, prefixCls) {
|
|
|
var _ref = Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(sticky) === 'object' ? sticky : {},
|
|
|
_ref$offsetHeader = _ref.offsetHeader,
|
|
|
offsetHeader = _ref$offsetHeader === void 0 ? 0 : _ref$offsetHeader,
|
|
|
_ref$offsetScroll = _ref.offsetScroll,
|
|
|
offsetScroll = _ref$offsetScroll === void 0 ? 0 : _ref$offsetScroll,
|
|
|
_ref$getContainer = _ref.getContainer,
|
|
|
getContainer = _ref$getContainer === void 0 ? function () {
|
|
|
return defaultContainer;
|
|
|
} : _ref$getContainer;
|
|
|
|
|
|
var container = getContainer() || defaultContainer;
|
|
|
return react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () {
|
|
|
var isSticky = !!sticky;
|
|
|
return {
|
|
|
isSticky: isSticky,
|
|
|
stickyClassName: isSticky ? "".concat(prefixCls, "-sticky-header") : '',
|
|
|
offsetHeader: offsetHeader,
|
|
|
offsetScroll: offsetScroll,
|
|
|
container: container
|
|
|
};
|
|
|
}, [offsetScroll, offsetHeader, prefixCls, container]);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/hooks/useStickyOffsets.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/hooks/useStickyOffsets.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/**
|
|
|
* Get sticky column offset width
|
|
|
*/
|
|
|
|
|
|
function useStickyOffsets(colWidths, columnCount, direction) {
|
|
|
var stickyOffsets = Object(react__WEBPACK_IMPORTED_MODULE_0__["useMemo"])(function () {
|
|
|
var leftOffsets = [];
|
|
|
var rightOffsets = [];
|
|
|
var left = 0;
|
|
|
var right = 0;
|
|
|
|
|
|
for (var start = 0; start < columnCount; start += 1) {
|
|
|
if (direction === 'rtl') {
|
|
|
// Left offset
|
|
|
rightOffsets[start] = right;
|
|
|
right += colWidths[start] || 0; // Right offset
|
|
|
|
|
|
var end = columnCount - start - 1;
|
|
|
leftOffsets[end] = left;
|
|
|
left += colWidths[end] || 0;
|
|
|
} else {
|
|
|
// Left offset
|
|
|
leftOffsets[start] = left;
|
|
|
left += colWidths[start] || 0; // Right offset
|
|
|
|
|
|
var _end = columnCount - start - 1;
|
|
|
|
|
|
rightOffsets[_end] = right;
|
|
|
right += colWidths[_end] || 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
left: leftOffsets,
|
|
|
right: rightOffsets
|
|
|
};
|
|
|
}, [colWidths, columnCount, direction]);
|
|
|
return stickyOffsets;
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (useStickyOffsets);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/index.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/index.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: Summary, Column, ColumnGroup, INTERNAL_COL_DEFINE, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Table */ "./node_modules/rc-table/es/Table.js");
|
|
|
/* harmony import */ var _Footer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Footer */ "./node_modules/rc-table/es/Footer/index.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Summary", function() { return _Footer__WEBPACK_IMPORTED_MODULE_1__["FooterComponents"]; });
|
|
|
|
|
|
/* harmony import */ var _sugar_Column__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sugar/Column */ "./node_modules/rc-table/es/sugar/Column.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column", function() { return _sugar_Column__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _sugar_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sugar/ColumnGroup */ "./node_modules/rc-table/es/sugar/ColumnGroup.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnGroup", function() { return _sugar_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
|
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-table/es/utils/legacyUtil.js");
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_4__["INTERNAL_COL_DEFINE"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Table__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/stickyScrollBar.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/stickyScrollBar.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/Dom/addEventListener */ "./node_modules/rc-util/es/Dom/addEventListener.js");
|
|
|
/* harmony import */ var rc_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/getScrollBarSize */ "./node_modules/rc-util/es/getScrollBarSize.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var rc_util_es_Dom_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rc-util/es/Dom/css */ "./node_modules/rc-util/es/Dom/css.js");
|
|
|
/* harmony import */ var _context_TableContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./context/TableContext */ "./node_modules/rc-table/es/context/TableContext.js");
|
|
|
/* harmony import */ var _hooks_useFrame__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./hooks/useFrame */ "./node_modules/rc-table/es/hooks/useFrame.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var StickyScrollBar = function StickyScrollBar(_ref, ref) {
|
|
|
var _scrollBodyRef$curren, _scrollBodyRef$curren2;
|
|
|
|
|
|
var scrollBodyRef = _ref.scrollBodyRef,
|
|
|
onScroll = _ref.onScroll,
|
|
|
offsetScroll = _ref.offsetScroll,
|
|
|
container = _ref.container;
|
|
|
|
|
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_context_TableContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
|
prefixCls = _React$useContext.prefixCls;
|
|
|
|
|
|
var bodyScrollWidth = ((_scrollBodyRef$curren = scrollBodyRef.current) === null || _scrollBodyRef$curren === void 0 ? void 0 : _scrollBodyRef$curren.scrollWidth) || 0;
|
|
|
var bodyWidth = ((_scrollBodyRef$curren2 = scrollBodyRef.current) === null || _scrollBodyRef$curren2 === void 0 ? void 0 : _scrollBodyRef$curren2.clientWidth) || 0;
|
|
|
var scrollBarWidth = bodyScrollWidth && bodyWidth * (bodyWidth / bodyScrollWidth);
|
|
|
var scrollBarRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"]();
|
|
|
|
|
|
var _useLayoutState = Object(_hooks_useFrame__WEBPACK_IMPORTED_MODULE_9__["useLayoutState"])({
|
|
|
scrollLeft: 0,
|
|
|
isHiddenScrollBar: false
|
|
|
}),
|
|
|
_useLayoutState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useLayoutState, 2),
|
|
|
scrollState = _useLayoutState2[0],
|
|
|
setScrollState = _useLayoutState2[1];
|
|
|
|
|
|
var refState = react__WEBPACK_IMPORTED_MODULE_3__["useRef"]({
|
|
|
delta: 0,
|
|
|
x: 0
|
|
|
});
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_3__["useState"](false),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_React$useState, 2),
|
|
|
isActive = _React$useState2[0],
|
|
|
setActive = _React$useState2[1];
|
|
|
|
|
|
var onMouseUp = function onMouseUp() {
|
|
|
setActive(false);
|
|
|
};
|
|
|
|
|
|
var onMouseDown = function onMouseDown(event) {
|
|
|
event.persist();
|
|
|
refState.current.delta = event.pageX - scrollState.scrollLeft;
|
|
|
refState.current.x = 0;
|
|
|
setActive(true);
|
|
|
event.preventDefault();
|
|
|
};
|
|
|
|
|
|
var onMouseMove = function onMouseMove(event) {
|
|
|
var _window;
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
|
|
|
var _ref2 = event || ((_window = window) === null || _window === void 0 ? void 0 : _window.event),
|
|
|
buttons = _ref2.buttons;
|
|
|
|
|
|
if (!isActive || buttons === 0) {
|
|
|
// If out body mouse up, we can set isActive false when mouse move
|
|
|
if (isActive) {
|
|
|
setActive(false);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var left = refState.current.x + event.pageX - refState.current.x - refState.current.delta;
|
|
|
|
|
|
if (left <= 0) {
|
|
|
left = 0;
|
|
|
}
|
|
|
|
|
|
if (left + scrollBarWidth >= bodyWidth) {
|
|
|
left = bodyWidth - scrollBarWidth;
|
|
|
}
|
|
|
|
|
|
onScroll({
|
|
|
scrollLeft: left / bodyWidth * (bodyScrollWidth + 2)
|
|
|
});
|
|
|
refState.current.x = event.pageX;
|
|
|
};
|
|
|
|
|
|
var onContainerScroll = function onContainerScroll() {
|
|
|
var tableOffsetTop = Object(rc_util_es_Dom_css__WEBPACK_IMPORTED_MODULE_7__["getOffset"])(scrollBodyRef.current).top;
|
|
|
var tableBottomOffset = tableOffsetTop + scrollBodyRef.current.offsetHeight;
|
|
|
var currentClientOffset = container === window ? document.documentElement.scrollTop + window.innerHeight : Object(rc_util_es_Dom_css__WEBPACK_IMPORTED_MODULE_7__["getOffset"])(container).top + container.clientHeight;
|
|
|
|
|
|
if (tableBottomOffset - Object(rc_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_5__["default"])() <= currentClientOffset || tableOffsetTop >= currentClientOffset - offsetScroll) {
|
|
|
setScrollState(function (state) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state), {}, {
|
|
|
isHiddenScrollBar: true
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
setScrollState(function (state) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state), {}, {
|
|
|
isHiddenScrollBar: false
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var setScrollLeft = function setScrollLeft(left) {
|
|
|
setScrollState(function (state) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state), {}, {
|
|
|
scrollLeft: left / bodyScrollWidth * bodyWidth || 0
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
setScrollLeft: setScrollLeft
|
|
|
};
|
|
|
});
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
var onMouseUpListener = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(document.body, 'mouseup', onMouseUp, false);
|
|
|
var onMouseMoveListener = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(document.body, 'mousemove', onMouseMove, false);
|
|
|
onContainerScroll();
|
|
|
return function () {
|
|
|
onMouseUpListener.remove();
|
|
|
onMouseMoveListener.remove();
|
|
|
};
|
|
|
}, [scrollBarWidth, isActive]);
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
var onScrollListener = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(container, 'scroll', onContainerScroll, false);
|
|
|
var onResizeListener = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(window, 'resize', onContainerScroll, false);
|
|
|
return function () {
|
|
|
onScrollListener.remove();
|
|
|
onResizeListener.remove();
|
|
|
};
|
|
|
}, [container]);
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
if (!scrollState.isHiddenScrollBar) {
|
|
|
setScrollState(function (state) {
|
|
|
var bodyNode = scrollBodyRef.current;
|
|
|
|
|
|
if (!bodyNode) {
|
|
|
return state;
|
|
|
}
|
|
|
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, state), {}, {
|
|
|
scrollLeft: bodyNode.scrollLeft / bodyNode.scrollWidth * bodyNode.clientWidth
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}, [scrollState.isHiddenScrollBar]);
|
|
|
|
|
|
if (bodyScrollWidth <= bodyWidth || !scrollBarWidth || scrollState.isHiddenScrollBar) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
|
|
|
style: {
|
|
|
height: Object(rc_util_es_getScrollBarSize__WEBPACK_IMPORTED_MODULE_5__["default"])(),
|
|
|
width: bodyWidth,
|
|
|
bottom: offsetScroll
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-sticky-scroll")
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
|
|
|
onMouseDown: onMouseDown,
|
|
|
ref: scrollBarRef,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()("".concat(prefixCls, "-sticky-scroll-bar"), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])({}, "".concat(prefixCls, "-sticky-scroll-bar-active"), isActive)),
|
|
|
style: {
|
|
|
width: "".concat(scrollBarWidth, "px"),
|
|
|
transform: "translate3d(".concat(scrollState.scrollLeft, "px, 0, 0)")
|
|
|
}
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](StickyScrollBar));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/sugar/Column.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/sugar/Column.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/**
|
|
|
* This is a syntactic sugar for `columns` prop.
|
|
|
* So HOC will not work on this.
|
|
|
*/
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
function Column(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Column);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/sugar/ColumnGroup.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/sugar/ColumnGroup.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/**
|
|
|
* This is a syntactic sugar for `columns` prop.
|
|
|
* So HOC will not work on this.
|
|
|
*/
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
function ColumnGroup(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (ColumnGroup);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/utils/expandUtil.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/expandUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: renderExpandIcon, findAllChildrenKeys */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderExpandIcon", function() { return renderExpandIcon; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findAllChildrenKeys", function() { return findAllChildrenKeys; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
|
|
|
|
|
|
function renderExpandIcon(_ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
record = _ref.record,
|
|
|
onExpand = _ref.onExpand,
|
|
|
expanded = _ref.expanded,
|
|
|
expandable = _ref.expandable;
|
|
|
var expandClassName = "".concat(prefixCls, "-row-expand-icon");
|
|
|
|
|
|
if (!expandable) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(expandClassName, "".concat(prefixCls, "-row-spaced"))
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var onClick = function onClick(event) {
|
|
|
onExpand(record, event);
|
|
|
event.stopPropagation();
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", {
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(expandClassName, (_classNames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-row-expanded"), expanded), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_classNames, "".concat(prefixCls, "-row-collapsed"), !expanded), _classNames)),
|
|
|
onClick: onClick
|
|
|
});
|
|
|
}
|
|
|
function findAllChildrenKeys(data, getRowKey, childrenColumnName) {
|
|
|
var keys = [];
|
|
|
|
|
|
function dig(list) {
|
|
|
(list || []).forEach(function (item, index) {
|
|
|
keys.push(getRowKey(item, index));
|
|
|
dig(item[childrenColumnName]);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(data);
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/utils/fixUtil.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/fixUtil.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: getCellFixedInfo */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCellFixedInfo", function() { return getCellFixedInfo; });
|
|
|
function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets, direction) {
|
|
|
var startColumn = columns[colStart] || {};
|
|
|
var endColumn = columns[colEnd] || {};
|
|
|
var fixLeft;
|
|
|
var fixRight;
|
|
|
|
|
|
if (startColumn.fixed === 'left') {
|
|
|
fixLeft = stickyOffsets.left[colStart];
|
|
|
} else if (endColumn.fixed === 'right') {
|
|
|
fixRight = stickyOffsets.right[colEnd];
|
|
|
}
|
|
|
|
|
|
var lastFixLeft = false;
|
|
|
var firstFixRight = false;
|
|
|
var lastFixRight = false;
|
|
|
var firstFixLeft = false;
|
|
|
var nextColumn = columns[colEnd + 1];
|
|
|
var prevColumn = columns[colStart - 1];
|
|
|
|
|
|
if (direction === 'rtl') {
|
|
|
if (fixLeft !== undefined) {
|
|
|
var prevFixLeft = prevColumn && prevColumn.fixed === 'left';
|
|
|
firstFixLeft = !prevFixLeft;
|
|
|
} else if (fixRight !== undefined) {
|
|
|
var nextFixRight = nextColumn && nextColumn.fixed === 'right';
|
|
|
lastFixRight = !nextFixRight;
|
|
|
}
|
|
|
} else if (fixLeft !== undefined) {
|
|
|
var nextFixLeft = nextColumn && nextColumn.fixed === 'left';
|
|
|
lastFixLeft = !nextFixLeft;
|
|
|
} else if (fixRight !== undefined) {
|
|
|
var prevFixRight = prevColumn && prevColumn.fixed === 'right';
|
|
|
firstFixRight = !prevFixRight;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
fixLeft: fixLeft,
|
|
|
fixRight: fixRight,
|
|
|
lastFixLeft: lastFixLeft,
|
|
|
firstFixRight: firstFixRight,
|
|
|
lastFixRight: lastFixRight,
|
|
|
firstFixLeft: firstFixLeft,
|
|
|
isSticky: stickyOffsets.isSticky
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/utils/legacyUtil.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/legacyUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: INTERNAL_COL_DEFINE, getExpandableProps, getDataAndAriaProps */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return INTERNAL_COL_DEFINE; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getExpandableProps", function() { return getExpandableProps; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAndAriaProps", function() { return getDataAndAriaProps; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/warning */ "./node_modules/rc-util/es/warning.js");
|
|
|
|
|
|
|
|
|
|
|
|
var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
|
|
|
function getExpandableProps(props) {
|
|
|
var expandable = props.expandable,
|
|
|
legacyExpandableConfig = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ["expandable"]);
|
|
|
|
|
|
if ('expandable' in props) {
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, legacyExpandableConfig), expandable);
|
|
|
}
|
|
|
|
|
|
if ( true && ['indentSize', 'expandedRowKeys', 'defaultExpandedRowKeys', 'defaultExpandAllRows', 'expandedRowRender', 'expandRowByClick', 'expandIcon', 'onExpand', 'onExpandedRowsChange', 'expandedRowClassName', 'expandIconColumnIndex'].some(function (prop) {
|
|
|
return prop in props;
|
|
|
})) {
|
|
|
Object(rc_util_es_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(false, 'expanded related props have been moved into `expandable`.');
|
|
|
}
|
|
|
|
|
|
return legacyExpandableConfig;
|
|
|
}
|
|
|
/**
|
|
|
* Returns only data- and aria- key/value pairs
|
|
|
* @param {object} props
|
|
|
*/
|
|
|
|
|
|
function getDataAndAriaProps(props) {
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
return Object.keys(props).reduce(function (memo, key) {
|
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {
|
|
|
memo[key] = props[key];
|
|
|
}
|
|
|
|
|
|
return memo;
|
|
|
}, {});
|
|
|
/* eslint-enable */
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/es/utils/valueUtil.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/valueUtil.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: getPathValue, getColumnsKey, mergeObject, validateValue */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPathValue", function() { return getPathValue; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getColumnsKey", function() { return getColumnsKey; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeObject", function() { return mergeObject; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateValue", function() { return validateValue; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
|
|
|
var INTERNAL_KEY_PREFIX = 'RC_TABLE_KEY';
|
|
|
|
|
|
function toArray(arr) {
|
|
|
if (arr === undefined || arr === null) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return Array.isArray(arr) ? arr : [arr];
|
|
|
}
|
|
|
|
|
|
function getPathValue(record, path) {
|
|
|
// Skip if path is empty
|
|
|
if (!path && typeof path !== 'number') {
|
|
|
return record;
|
|
|
}
|
|
|
|
|
|
var pathList = toArray(path);
|
|
|
var current = record;
|
|
|
|
|
|
for (var i = 0; i < pathList.length; i += 1) {
|
|
|
if (!current) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var prop = pathList[i];
|
|
|
current = current[prop];
|
|
|
}
|
|
|
|
|
|
return current;
|
|
|
}
|
|
|
function getColumnsKey(columns) {
|
|
|
var columnKeys = [];
|
|
|
var keys = {};
|
|
|
columns.forEach(function (column) {
|
|
|
var _ref = column || {},
|
|
|
key = _ref.key,
|
|
|
dataIndex = _ref.dataIndex;
|
|
|
|
|
|
var mergedKey = key || toArray(dataIndex).join('-') || INTERNAL_KEY_PREFIX;
|
|
|
|
|
|
while (keys[mergedKey]) {
|
|
|
mergedKey = "".concat(mergedKey, "_next");
|
|
|
}
|
|
|
|
|
|
keys[mergedKey] = true;
|
|
|
columnKeys.push(mergedKey);
|
|
|
});
|
|
|
return columnKeys;
|
|
|
}
|
|
|
function mergeObject() {
|
|
|
var merged = {};
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
|
|
|
function fillProps(obj, clone) {
|
|
|
if (clone) {
|
|
|
Object.keys(clone).forEach(function (key) {
|
|
|
var value = clone[key];
|
|
|
|
|
|
if (value && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value) === 'object') {
|
|
|
obj[key] = obj[key] || {};
|
|
|
fillProps(obj[key], value);
|
|
|
} else {
|
|
|
obj[key] = value;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
objects[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
objects.forEach(function (clone) {
|
|
|
fillProps(merged, clone);
|
|
|
});
|
|
|
return merged;
|
|
|
}
|
|
|
function validateValue(val) {
|
|
|
return val !== null && val !== undefined;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Body/BodyRow.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Body/BodyRow.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _Cell = _interopRequireDefault(__webpack_require__(/*! ../Cell */ "./node_modules/rc-table/lib/Cell/index.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _BodyContext = _interopRequireDefault(__webpack_require__(/*! ../context/BodyContext */ "./node_modules/rc-table/lib/context/BodyContext.js"));
|
|
|
|
|
|
var _valueUtil = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/lib/utils/valueUtil.js");
|
|
|
|
|
|
var _ExpandedRow = _interopRequireDefault(__webpack_require__(/*! ./ExpandedRow */ "./node_modules/rc-table/lib/Body/ExpandedRow.js"));
|
|
|
|
|
|
function BodyRow(props) {
|
|
|
var className = props.className,
|
|
|
style = props.style,
|
|
|
record = props.record,
|
|
|
index = props.index,
|
|
|
rowKey = props.rowKey,
|
|
|
getRowKey = props.getRowKey,
|
|
|
rowExpandable = props.rowExpandable,
|
|
|
expandedKeys = props.expandedKeys,
|
|
|
onRow = props.onRow,
|
|
|
_props$indent = props.indent,
|
|
|
indent = _props$indent === void 0 ? 0 : _props$indent,
|
|
|
RowComponent = props.rowComponent,
|
|
|
cellComponent = props.cellComponent,
|
|
|
childrenColumnName = props.childrenColumnName;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
fixedInfoList = _React$useContext.fixedInfoList;
|
|
|
|
|
|
var _React$useContext2 = React.useContext(_BodyContext.default),
|
|
|
fixHeader = _React$useContext2.fixHeader,
|
|
|
fixColumn = _React$useContext2.fixColumn,
|
|
|
horizonScroll = _React$useContext2.horizonScroll,
|
|
|
componentWidth = _React$useContext2.componentWidth,
|
|
|
flattenColumns = _React$useContext2.flattenColumns,
|
|
|
expandableType = _React$useContext2.expandableType,
|
|
|
expandRowByClick = _React$useContext2.expandRowByClick,
|
|
|
onTriggerExpand = _React$useContext2.onTriggerExpand,
|
|
|
rowClassName = _React$useContext2.rowClassName,
|
|
|
expandedRowClassName = _React$useContext2.expandedRowClassName,
|
|
|
indentSize = _React$useContext2.indentSize,
|
|
|
expandIcon = _React$useContext2.expandIcon,
|
|
|
expandedRowRender = _React$useContext2.expandedRowRender,
|
|
|
expandIconColumnIndex = _React$useContext2.expandIconColumnIndex;
|
|
|
|
|
|
var _React$useState = React.useState(false),
|
|
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
|
expandRended = _React$useState2[0],
|
|
|
setExpandRended = _React$useState2[1];
|
|
|
|
|
|
var expanded = expandedKeys && expandedKeys.has(props.recordKey);
|
|
|
React.useEffect(function () {
|
|
|
if (expanded) {
|
|
|
setExpandRended(true);
|
|
|
}
|
|
|
}, [expanded]);
|
|
|
var rowSupportExpand = expandableType === 'row' && (!rowExpandable || rowExpandable(record)); // Only when row is not expandable and `children` exist in record
|
|
|
|
|
|
var nestExpandable = expandableType === 'nest';
|
|
|
var hasNestChildren = childrenColumnName && record && record[childrenColumnName];
|
|
|
var mergedExpandable = rowSupportExpand || nestExpandable; // =========================== onRow ===========================
|
|
|
|
|
|
var additionalProps;
|
|
|
|
|
|
if (onRow) {
|
|
|
additionalProps = onRow(record, index);
|
|
|
}
|
|
|
|
|
|
var onClick = function onClick(event) {
|
|
|
if (expandRowByClick && mergedExpandable) {
|
|
|
onTriggerExpand(record, event);
|
|
|
}
|
|
|
|
|
|
if (additionalProps && additionalProps.onClick) {
|
|
|
var _additionalProps;
|
|
|
|
|
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
|
args[_key - 1] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
(_additionalProps = additionalProps).onClick.apply(_additionalProps, [event].concat(args));
|
|
|
}
|
|
|
}; // ======================== Base tr row ========================
|
|
|
|
|
|
|
|
|
var computeRowClassName;
|
|
|
|
|
|
if (typeof rowClassName === 'string') {
|
|
|
computeRowClassName = rowClassName;
|
|
|
} else if (typeof rowClassName === 'function') {
|
|
|
computeRowClassName = rowClassName(record, index, indent);
|
|
|
}
|
|
|
|
|
|
var columnsKey = (0, _valueUtil.getColumnsKey)(flattenColumns);
|
|
|
var baseRowNode = /*#__PURE__*/React.createElement(RowComponent, (0, _extends2.default)({}, additionalProps, {
|
|
|
"data-row-key": rowKey,
|
|
|
className: (0, _classnames.default)(className, "".concat(prefixCls, "-row"), "".concat(prefixCls, "-row-level-").concat(indent), computeRowClassName, additionalProps && additionalProps.className),
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), additionalProps ? additionalProps.style : null),
|
|
|
onClick: onClick
|
|
|
}), flattenColumns.map(function (column, colIndex) {
|
|
|
var render = column.render,
|
|
|
dataIndex = column.dataIndex,
|
|
|
columnClassName = column.className;
|
|
|
var key = columnsKey[colIndex];
|
|
|
var fixedInfo = fixedInfoList[colIndex]; // ============= Used for nest expandable =============
|
|
|
|
|
|
var appendCellNode;
|
|
|
|
|
|
if (colIndex === (expandIconColumnIndex || 0) && nestExpandable) {
|
|
|
appendCellNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
|
style: {
|
|
|
paddingLeft: "".concat(indentSize * indent, "px")
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-row-indent indent-level-").concat(indent)
|
|
|
}), expandIcon({
|
|
|
prefixCls: prefixCls,
|
|
|
expanded: expanded,
|
|
|
expandable: hasNestChildren,
|
|
|
record: record,
|
|
|
onExpand: onTriggerExpand
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
var additionalCellProps;
|
|
|
|
|
|
if (column.onCell) {
|
|
|
additionalCellProps = column.onCell(record, index);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_Cell.default, (0, _extends2.default)({
|
|
|
className: columnClassName,
|
|
|
ellipsis: column.ellipsis,
|
|
|
align: column.align,
|
|
|
component: cellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
key: key,
|
|
|
record: record,
|
|
|
index: index,
|
|
|
dataIndex: dataIndex,
|
|
|
render: render,
|
|
|
shouldCellUpdate: column.shouldCellUpdate
|
|
|
}, fixedInfo, {
|
|
|
appendNode: appendCellNode,
|
|
|
additionalProps: additionalCellProps
|
|
|
}));
|
|
|
})); // ======================== Expand Row =========================
|
|
|
|
|
|
var expandRowNode;
|
|
|
|
|
|
if (rowSupportExpand && (expandRended || expanded)) {
|
|
|
var expandContent = expandedRowRender(record, index, indent + 1, expanded);
|
|
|
var computedExpandedRowClassName = expandedRowClassName && expandedRowClassName(record, index, indent);
|
|
|
expandRowNode = /*#__PURE__*/React.createElement(_ExpandedRow.default, {
|
|
|
expanded: expanded,
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-expanded-row"), "".concat(prefixCls, "-expanded-row-level-").concat(indent + 1), computedExpandedRowClassName),
|
|
|
prefixCls: prefixCls,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: fixColumn,
|
|
|
horizonScroll: horizonScroll,
|
|
|
component: RowComponent,
|
|
|
componentWidth: componentWidth,
|
|
|
cellComponent: cellComponent,
|
|
|
colSpan: flattenColumns.length
|
|
|
}, expandContent);
|
|
|
} // ========================= Nest Row ==========================
|
|
|
|
|
|
|
|
|
var nestRowNode;
|
|
|
|
|
|
if (hasNestChildren && expanded) {
|
|
|
nestRowNode = (record[childrenColumnName] || []).map(function (subRecord, subIndex) {
|
|
|
var subKey = getRowKey(subRecord, subIndex);
|
|
|
return /*#__PURE__*/React.createElement(BodyRow, (0, _extends2.default)({}, props, {
|
|
|
key: subKey,
|
|
|
rowKey: subKey,
|
|
|
record: subRecord,
|
|
|
recordKey: subKey,
|
|
|
index: subIndex,
|
|
|
indent: indent + 1
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(React.Fragment, null, baseRowNode, expandRowNode, nestRowNode);
|
|
|
}
|
|
|
|
|
|
BodyRow.displayName = 'BodyRow';
|
|
|
var _default = BodyRow;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Body/ExpandedRow.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Body/ExpandedRow.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _Cell = _interopRequireDefault(__webpack_require__(/*! ../Cell */ "./node_modules/rc-table/lib/Cell/index.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
function ExpandedRow(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
children = _ref.children,
|
|
|
Component = _ref.component,
|
|
|
cellComponent = _ref.cellComponent,
|
|
|
fixHeader = _ref.fixHeader,
|
|
|
fixColumn = _ref.fixColumn,
|
|
|
horizonScroll = _ref.horizonScroll,
|
|
|
className = _ref.className,
|
|
|
expanded = _ref.expanded,
|
|
|
componentWidth = _ref.componentWidth,
|
|
|
colSpan = _ref.colSpan;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
scrollbarSize = _React$useContext.scrollbarSize; // Cache render node
|
|
|
|
|
|
|
|
|
return React.useMemo(function () {
|
|
|
var contentNode = children;
|
|
|
|
|
|
if (fixColumn) {
|
|
|
contentNode = /*#__PURE__*/React.createElement("div", {
|
|
|
style: {
|
|
|
width: componentWidth - (fixHeader ? scrollbarSize : 0),
|
|
|
position: 'sticky',
|
|
|
left: 0,
|
|
|
overflow: 'hidden'
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-expanded-row-fixed")
|
|
|
}, contentNode);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(Component, {
|
|
|
className: className,
|
|
|
style: {
|
|
|
display: expanded ? null : 'none'
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement(_Cell.default, {
|
|
|
component: cellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
colSpan: colSpan
|
|
|
}, contentNode));
|
|
|
}, [children, Component, fixHeader, horizonScroll, className, expanded, componentWidth, colSpan, scrollbarSize]);
|
|
|
}
|
|
|
|
|
|
var _default = ExpandedRow;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Body/MeasureCell.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Body/MeasureCell.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = MeasureCell;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _rcResizeObserver = _interopRequireDefault(__webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js"));
|
|
|
|
|
|
function MeasureCell(_ref) {
|
|
|
var columnKey = _ref.columnKey,
|
|
|
onColumnResize = _ref.onColumnResize;
|
|
|
var cellRef = React.useRef();
|
|
|
React.useEffect(function () {
|
|
|
if (cellRef.current) {
|
|
|
onColumnResize(columnKey, cellRef.current.offsetWidth);
|
|
|
}
|
|
|
}, []);
|
|
|
return /*#__PURE__*/React.createElement(_rcResizeObserver.default, {
|
|
|
onResize: function onResize(_ref2) {
|
|
|
var offsetWidth = _ref2.offsetWidth;
|
|
|
onColumnResize(columnKey, offsetWidth);
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement("td", {
|
|
|
ref: cellRef,
|
|
|
style: {
|
|
|
padding: 0,
|
|
|
border: 0,
|
|
|
height: 0
|
|
|
}
|
|
|
}, /*#__PURE__*/React.createElement("div", {
|
|
|
style: {
|
|
|
height: 0,
|
|
|
overflow: 'hidden'
|
|
|
}
|
|
|
}, "\xA0")));
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Body/index.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Body/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _BodyRow = _interopRequireDefault(__webpack_require__(/*! ./BodyRow */ "./node_modules/rc-table/lib/Body/BodyRow.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _ExpandedRow = _interopRequireDefault(__webpack_require__(/*! ./ExpandedRow */ "./node_modules/rc-table/lib/Body/ExpandedRow.js"));
|
|
|
|
|
|
var _BodyContext = _interopRequireDefault(__webpack_require__(/*! ../context/BodyContext */ "./node_modules/rc-table/lib/context/BodyContext.js"));
|
|
|
|
|
|
var _valueUtil = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/lib/utils/valueUtil.js");
|
|
|
|
|
|
var _ResizeContext = _interopRequireDefault(__webpack_require__(/*! ../context/ResizeContext */ "./node_modules/rc-table/lib/context/ResizeContext.js"));
|
|
|
|
|
|
var _MeasureCell = _interopRequireDefault(__webpack_require__(/*! ./MeasureCell */ "./node_modules/rc-table/lib/Body/MeasureCell.js"));
|
|
|
|
|
|
function Body(_ref) {
|
|
|
var data = _ref.data,
|
|
|
getRowKey = _ref.getRowKey,
|
|
|
measureColumnWidth = _ref.measureColumnWidth,
|
|
|
expandedKeys = _ref.expandedKeys,
|
|
|
onRow = _ref.onRow,
|
|
|
rowExpandable = _ref.rowExpandable,
|
|
|
emptyNode = _ref.emptyNode,
|
|
|
childrenColumnName = _ref.childrenColumnName;
|
|
|
|
|
|
var _React$useContext = React.useContext(_ResizeContext.default),
|
|
|
onColumnResize = _React$useContext.onColumnResize;
|
|
|
|
|
|
var _React$useContext2 = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext2.prefixCls,
|
|
|
getComponent = _React$useContext2.getComponent;
|
|
|
|
|
|
var _React$useContext3 = React.useContext(_BodyContext.default),
|
|
|
fixHeader = _React$useContext3.fixHeader,
|
|
|
horizonScroll = _React$useContext3.horizonScroll,
|
|
|
flattenColumns = _React$useContext3.flattenColumns,
|
|
|
componentWidth = _React$useContext3.componentWidth;
|
|
|
|
|
|
return React.useMemo(function () {
|
|
|
var WrapperComponent = getComponent(['body', 'wrapper'], 'tbody');
|
|
|
var trComponent = getComponent(['body', 'row'], 'tr');
|
|
|
var tdComponent = getComponent(['body', 'cell'], 'td');
|
|
|
var rows;
|
|
|
|
|
|
if (data.length) {
|
|
|
rows = data.map(function (record, index) {
|
|
|
var key = getRowKey(record, index);
|
|
|
return /*#__PURE__*/React.createElement(_BodyRow.default, {
|
|
|
key: key,
|
|
|
rowKey: key,
|
|
|
record: record,
|
|
|
recordKey: key,
|
|
|
index: index,
|
|
|
rowComponent: trComponent,
|
|
|
cellComponent: tdComponent,
|
|
|
expandedKeys: expandedKeys,
|
|
|
onRow: onRow,
|
|
|
getRowKey: getRowKey,
|
|
|
rowExpandable: rowExpandable,
|
|
|
childrenColumnName: childrenColumnName
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
rows = /*#__PURE__*/React.createElement(_ExpandedRow.default, {
|
|
|
expanded: true,
|
|
|
className: "".concat(prefixCls, "-placeholder"),
|
|
|
prefixCls: prefixCls,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: horizonScroll,
|
|
|
horizonScroll: horizonScroll,
|
|
|
component: trComponent,
|
|
|
componentWidth: componentWidth,
|
|
|
cellComponent: tdComponent,
|
|
|
colSpan: flattenColumns.length
|
|
|
}, emptyNode);
|
|
|
}
|
|
|
|
|
|
var columnsKey = (0, _valueUtil.getColumnsKey)(flattenColumns);
|
|
|
return /*#__PURE__*/React.createElement(WrapperComponent, {
|
|
|
className: "".concat(prefixCls, "-tbody")
|
|
|
}, measureColumnWidth && /*#__PURE__*/React.createElement("tr", {
|
|
|
"aria-hidden": "true",
|
|
|
className: "".concat(prefixCls, "-measure-row"),
|
|
|
style: {
|
|
|
height: 0,
|
|
|
fontSize: 0
|
|
|
}
|
|
|
}, columnsKey.map(function (columnKey) {
|
|
|
return /*#__PURE__*/React.createElement(_MeasureCell.default, {
|
|
|
key: columnKey,
|
|
|
columnKey: columnKey,
|
|
|
onColumnResize: onColumnResize
|
|
|
});
|
|
|
})), rows);
|
|
|
}, [data, prefixCls, onRow, measureColumnWidth, expandedKeys, getRowKey, getComponent, componentWidth, emptyNode, flattenColumns]);
|
|
|
}
|
|
|
|
|
|
var MemoBody = /*#__PURE__*/React.memo(Body);
|
|
|
MemoBody.displayName = 'Body';
|
|
|
var _default = MemoBody;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Cell/index.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Cell/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _ref3 = __webpack_require__(/*! rc-util/lib/ref */ "./node_modules/rc-util/lib/ref.js");
|
|
|
|
|
|
var _valueUtil = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/lib/utils/valueUtil.js");
|
|
|
|
|
|
function isRenderCell(data) {
|
|
|
return data && (0, _typeof2.default)(data) === 'object' && !Array.isArray(data) && ! /*#__PURE__*/React.isValidElement(data);
|
|
|
}
|
|
|
|
|
|
function isRefComponent(component) {
|
|
|
// String tag component also support ref
|
|
|
if (typeof component === 'string') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return (0, _ref3.supportRef)(component);
|
|
|
}
|
|
|
|
|
|
function Cell(_ref, ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
className = _ref.className,
|
|
|
record = _ref.record,
|
|
|
index = _ref.index,
|
|
|
dataIndex = _ref.dataIndex,
|
|
|
render = _ref.render,
|
|
|
children = _ref.children,
|
|
|
_ref$component = _ref.component,
|
|
|
Component = _ref$component === void 0 ? 'td' : _ref$component,
|
|
|
colSpan = _ref.colSpan,
|
|
|
rowSpan = _ref.rowSpan,
|
|
|
fixLeft = _ref.fixLeft,
|
|
|
fixRight = _ref.fixRight,
|
|
|
firstFixLeft = _ref.firstFixLeft,
|
|
|
lastFixLeft = _ref.lastFixLeft,
|
|
|
firstFixRight = _ref.firstFixRight,
|
|
|
lastFixRight = _ref.lastFixRight,
|
|
|
appendNode = _ref.appendNode,
|
|
|
_ref$additionalProps = _ref.additionalProps,
|
|
|
additionalProps = _ref$additionalProps === void 0 ? {} : _ref$additionalProps,
|
|
|
ellipsis = _ref.ellipsis,
|
|
|
align = _ref.align,
|
|
|
rowType = _ref.rowType,
|
|
|
isSticky = _ref.isSticky;
|
|
|
var cellPrefixCls = "".concat(prefixCls, "-cell"); // ==================== Child Node ====================
|
|
|
|
|
|
var cellProps;
|
|
|
var childNode;
|
|
|
|
|
|
if (children) {
|
|
|
childNode = children;
|
|
|
} else {
|
|
|
var value = (0, _valueUtil.getPathValue)(record, dataIndex); // Customize render node
|
|
|
|
|
|
childNode = value;
|
|
|
|
|
|
if (render) {
|
|
|
var renderData = render(value, record, index);
|
|
|
|
|
|
if (isRenderCell(renderData)) {
|
|
|
childNode = renderData.children;
|
|
|
cellProps = renderData.props;
|
|
|
} else {
|
|
|
childNode = renderData;
|
|
|
}
|
|
|
}
|
|
|
} // Not crash if final `childNode` is not validate ReactNode
|
|
|
|
|
|
|
|
|
if ((0, _typeof2.default)(childNode) === 'object' && !Array.isArray(childNode) && ! /*#__PURE__*/React.isValidElement(childNode)) {
|
|
|
childNode = null;
|
|
|
}
|
|
|
|
|
|
if (ellipsis && (lastFixLeft || firstFixRight)) {
|
|
|
childNode = /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(cellPrefixCls, "-content")
|
|
|
}, childNode);
|
|
|
}
|
|
|
|
|
|
var _ref2 = cellProps || {},
|
|
|
cellColSpan = _ref2.colSpan,
|
|
|
cellRowSpan = _ref2.rowSpan,
|
|
|
cellStyle = _ref2.style,
|
|
|
cellClassName = _ref2.className,
|
|
|
restCellProps = (0, _objectWithoutProperties2.default)(_ref2, ["colSpan", "rowSpan", "style", "className"]);
|
|
|
|
|
|
var mergedColSpan = cellColSpan !== undefined ? cellColSpan : colSpan;
|
|
|
var mergedRowSpan = cellRowSpan !== undefined ? cellRowSpan : rowSpan;
|
|
|
|
|
|
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
|
return null;
|
|
|
} // ====================== Fixed =======================
|
|
|
|
|
|
|
|
|
var fixedStyle = {};
|
|
|
var isFixLeft = typeof fixLeft === 'number';
|
|
|
var isFixRight = typeof fixRight === 'number';
|
|
|
|
|
|
if (isFixLeft) {
|
|
|
fixedStyle.position = 'sticky';
|
|
|
fixedStyle.left = fixLeft;
|
|
|
}
|
|
|
|
|
|
if (isFixRight) {
|
|
|
fixedStyle.position = 'sticky';
|
|
|
fixedStyle.right = fixRight;
|
|
|
} // ====================== Align =======================
|
|
|
|
|
|
|
|
|
var alignStyle = {};
|
|
|
|
|
|
if (align) {
|
|
|
alignStyle.textAlign = align;
|
|
|
} // ====================== Render ======================
|
|
|
|
|
|
|
|
|
var title;
|
|
|
var ellipsisConfig = ellipsis === true ? {
|
|
|
showTitle: true
|
|
|
} : ellipsis;
|
|
|
|
|
|
if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === 'header')) {
|
|
|
if (typeof childNode === 'string' || typeof childNode === 'number') {
|
|
|
title = childNode.toString();
|
|
|
} else if ( /*#__PURE__*/React.isValidElement(childNode) && typeof childNode.props.children === 'string') {
|
|
|
title = childNode.props.children;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var componentProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
|
title: title
|
|
|
}, restCellProps), additionalProps), {}, {
|
|
|
colSpan: mergedColSpan && mergedColSpan !== 1 ? mergedColSpan : null,
|
|
|
rowSpan: mergedRowSpan && mergedRowSpan !== 1 ? mergedRowSpan : null,
|
|
|
className: (0, _classnames.default)(cellPrefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), (0, _defineProperty2.default)(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky), _classNames), additionalProps.className, cellClassName),
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, additionalProps.style), alignStyle), fixedStyle), cellStyle),
|
|
|
ref: isRefComponent(Component) ? ref : null
|
|
|
});
|
|
|
return /*#__PURE__*/React.createElement(Component, componentProps, appendNode, childNode);
|
|
|
}
|
|
|
|
|
|
var RefCell = /*#__PURE__*/React.forwardRef(Cell);
|
|
|
RefCell.displayName = 'Cell';
|
|
|
var MemoCell = /*#__PURE__*/React.memo(RefCell, function (prev, next) {
|
|
|
if (next.shouldCellUpdate) {
|
|
|
return !next.shouldCellUpdate(next.record, prev.record);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
var _default = MemoCell;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/ColGroup.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/ColGroup.js ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _legacyUtil = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-table/lib/utils/legacyUtil.js");
|
|
|
|
|
|
function ColGroup(_ref) {
|
|
|
var colWidths = _ref.colWidths,
|
|
|
columns = _ref.columns,
|
|
|
columCount = _ref.columCount;
|
|
|
var cols = [];
|
|
|
var len = columCount || columns.length; // Only insert col with width & additional props
|
|
|
// Skip if rest col do not have any useful info
|
|
|
|
|
|
var mustInsert = false;
|
|
|
|
|
|
for (var i = len - 1; i >= 0; i -= 1) {
|
|
|
var width = colWidths[i];
|
|
|
var column = columns && columns[i];
|
|
|
var additionalProps = column && column[_legacyUtil.INTERNAL_COL_DEFINE];
|
|
|
|
|
|
if (width || additionalProps || mustInsert) {
|
|
|
cols.unshift( /*#__PURE__*/React.createElement("col", (0, _extends2.default)({
|
|
|
key: i,
|
|
|
style: {
|
|
|
width: width,
|
|
|
minWidth: width
|
|
|
}
|
|
|
}, additionalProps)));
|
|
|
mustInsert = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("colgroup", null, cols);
|
|
|
}
|
|
|
|
|
|
var _default = ColGroup;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Footer/Cell.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Footer/Cell.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = SummaryCell;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _Cell = _interopRequireDefault(__webpack_require__(/*! ../Cell */ "./node_modules/rc-table/lib/Cell/index.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
function SummaryCell(_ref) {
|
|
|
var className = _ref.className,
|
|
|
index = _ref.index,
|
|
|
children = _ref.children,
|
|
|
colSpan = _ref.colSpan,
|
|
|
rowSpan = _ref.rowSpan,
|
|
|
align = _ref.align;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
fixedInfoList = _React$useContext.fixedInfoList;
|
|
|
|
|
|
var fixedInfo = fixedInfoList[index];
|
|
|
return /*#__PURE__*/React.createElement(_Cell.default, (0, _extends2.default)({
|
|
|
className: className,
|
|
|
index: index,
|
|
|
component: "td",
|
|
|
prefixCls: prefixCls,
|
|
|
record: null,
|
|
|
dataIndex: null,
|
|
|
align: align,
|
|
|
render: function render() {
|
|
|
return {
|
|
|
children: children,
|
|
|
props: {
|
|
|
colSpan: colSpan,
|
|
|
rowSpan: rowSpan
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
}, fixedInfo));
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Footer/Row.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Footer/Row.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = FooterRow;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function FooterRow(props) {
|
|
|
return /*#__PURE__*/React.createElement("tr", props);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Footer/index.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Footer/index.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.FooterComponents = exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _Cell = _interopRequireDefault(__webpack_require__(/*! ./Cell */ "./node_modules/rc-table/lib/Footer/Cell.js"));
|
|
|
|
|
|
var _Row = _interopRequireDefault(__webpack_require__(/*! ./Row */ "./node_modules/rc-table/lib/Footer/Row.js"));
|
|
|
|
|
|
function Footer(_ref) {
|
|
|
var children = _ref.children;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls;
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("tfoot", {
|
|
|
className: "".concat(prefixCls, "-summary")
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
var _default = Footer;
|
|
|
exports.default = _default;
|
|
|
var FooterComponents = {
|
|
|
Cell: _Cell.default,
|
|
|
Row: _Row.default
|
|
|
};
|
|
|
exports.FooterComponents = FooterComponents;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Header/FixedHeader.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Header/FixedHeader.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _ref2 = __webpack_require__(/*! rc-util/lib/ref */ "./node_modules/rc-util/lib/ref.js");
|
|
|
|
|
|
var _Header = _interopRequireDefault(__webpack_require__(/*! ./Header */ "./node_modules/rc-table/lib/Header/Header.js"));
|
|
|
|
|
|
var _ColGroup = _interopRequireDefault(__webpack_require__(/*! ../ColGroup */ "./node_modules/rc-table/lib/ColGroup.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
function useColumnWidth(colWidths, columCount) {
|
|
|
return (0, React.useMemo)(function () {
|
|
|
var cloneColumns = [];
|
|
|
|
|
|
for (var i = 0; i < columCount; i += 1) {
|
|
|
var val = colWidths[i];
|
|
|
|
|
|
if (val !== undefined) {
|
|
|
cloneColumns[i] = val;
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return cloneColumns;
|
|
|
}, [colWidths.join('_'), columCount]);
|
|
|
}
|
|
|
|
|
|
var FixedHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
var noData = _ref.noData,
|
|
|
columns = _ref.columns,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
colWidths = _ref.colWidths,
|
|
|
columCount = _ref.columCount,
|
|
|
stickyOffsets = _ref.stickyOffsets,
|
|
|
direction = _ref.direction,
|
|
|
fixHeader = _ref.fixHeader,
|
|
|
offsetHeader = _ref.offsetHeader,
|
|
|
stickyClassName = _ref.stickyClassName,
|
|
|
onScroll = _ref.onScroll,
|
|
|
maxContentScroll = _ref.maxContentScroll,
|
|
|
props = (0, _objectWithoutProperties2.default)(_ref, ["noData", "columns", "flattenColumns", "colWidths", "columCount", "stickyOffsets", "direction", "fixHeader", "offsetHeader", "stickyClassName", "onScroll", "maxContentScroll"]);
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
scrollbarSize = _React$useContext.scrollbarSize,
|
|
|
isSticky = _React$useContext.isSticky;
|
|
|
|
|
|
var combinationScrollBarSize = isSticky && !fixHeader ? 0 : scrollbarSize; // Pass wheel to scroll event
|
|
|
|
|
|
var scrollRef = React.useRef(null);
|
|
|
var setScrollRef = React.useCallback(function (element) {
|
|
|
(0, _ref2.fillRef)(ref, element);
|
|
|
(0, _ref2.fillRef)(scrollRef, element);
|
|
|
}, []);
|
|
|
React.useEffect(function () {
|
|
|
var _scrollRef$current;
|
|
|
|
|
|
function onWheel(e) {
|
|
|
var currentTarget = e.currentTarget,
|
|
|
deltaX = e.deltaX;
|
|
|
|
|
|
if (deltaX) {
|
|
|
onScroll({
|
|
|
currentTarget: currentTarget,
|
|
|
scrollLeft: currentTarget.scrollLeft + deltaX
|
|
|
});
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
(_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.addEventListener('wheel', onWheel);
|
|
|
return function () {
|
|
|
var _scrollRef$current2;
|
|
|
|
|
|
(_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 ? void 0 : _scrollRef$current2.removeEventListener('wheel', onWheel);
|
|
|
};
|
|
|
}, []); // Check if all flattenColumns has width
|
|
|
|
|
|
var allFlattenColumnsWithWidth = React.useMemo(function () {
|
|
|
return flattenColumns.every(function (column) {
|
|
|
return column.width >= 0;
|
|
|
});
|
|
|
}, [flattenColumns]); // Add scrollbar column
|
|
|
|
|
|
var lastColumn = flattenColumns[flattenColumns.length - 1];
|
|
|
var ScrollBarColumn = {
|
|
|
fixed: lastColumn ? lastColumn.fixed : null,
|
|
|
onHeaderCell: function onHeaderCell() {
|
|
|
return {
|
|
|
className: "".concat(prefixCls, "-cell-scrollbar")
|
|
|
};
|
|
|
}
|
|
|
};
|
|
|
var columnsWithScrollbar = (0, React.useMemo)(function () {
|
|
|
return combinationScrollBarSize ? [].concat((0, _toConsumableArray2.default)(columns), [ScrollBarColumn]) : columns;
|
|
|
}, [combinationScrollBarSize, columns]);
|
|
|
var flattenColumnsWithScrollbar = (0, React.useMemo)(function () {
|
|
|
return combinationScrollBarSize ? [].concat((0, _toConsumableArray2.default)(flattenColumns), [ScrollBarColumn]) : flattenColumns;
|
|
|
}, [combinationScrollBarSize, flattenColumns]); // Calculate the sticky offsets
|
|
|
|
|
|
var headerStickyOffsets = (0, React.useMemo)(function () {
|
|
|
var right = stickyOffsets.right,
|
|
|
left = stickyOffsets.left;
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, stickyOffsets), {}, {
|
|
|
left: direction === 'rtl' ? [].concat((0, _toConsumableArray2.default)(left.map(function (width) {
|
|
|
return width + combinationScrollBarSize;
|
|
|
})), [0]) : left,
|
|
|
right: direction === 'rtl' ? right : [].concat((0, _toConsumableArray2.default)(right.map(function (width) {
|
|
|
return width + combinationScrollBarSize;
|
|
|
})), [0]),
|
|
|
isSticky: isSticky
|
|
|
});
|
|
|
}, [combinationScrollBarSize, stickyOffsets, isSticky]);
|
|
|
var mergedColumnWidth = useColumnWidth(colWidths, columCount);
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
style: (0, _objectSpread2.default)({
|
|
|
overflow: 'hidden'
|
|
|
}, isSticky ? {
|
|
|
top: offsetHeader
|
|
|
} : {}),
|
|
|
ref: setScrollRef,
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-header"), (0, _defineProperty2.default)({}, stickyClassName, !!stickyClassName))
|
|
|
}, /*#__PURE__*/React.createElement("table", {
|
|
|
style: {
|
|
|
tableLayout: 'fixed',
|
|
|
visibility: noData || mergedColumnWidth ? null : 'hidden'
|
|
|
}
|
|
|
}, (!noData || !maxContentScroll || allFlattenColumnsWithWidth) && /*#__PURE__*/React.createElement(_ColGroup.default, {
|
|
|
colWidths: mergedColumnWidth ? [].concat((0, _toConsumableArray2.default)(mergedColumnWidth), [combinationScrollBarSize]) : [],
|
|
|
columCount: columCount + 1,
|
|
|
columns: flattenColumnsWithScrollbar
|
|
|
}), /*#__PURE__*/React.createElement(_Header.default, (0, _extends2.default)({}, props, {
|
|
|
stickyOffsets: headerStickyOffsets,
|
|
|
columns: columnsWithScrollbar,
|
|
|
flattenColumns: flattenColumnsWithScrollbar
|
|
|
}))));
|
|
|
});
|
|
|
FixedHeader.displayName = 'FixedHeader';
|
|
|
var _default = FixedHeader;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Header/Header.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Header/Header.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _HeaderRow = _interopRequireDefault(__webpack_require__(/*! ./HeaderRow */ "./node_modules/rc-table/lib/Header/HeaderRow.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
function parseHeaderRows(rootColumns) {
|
|
|
var rows = [];
|
|
|
|
|
|
function fillRowCells(columns, colIndex) {
|
|
|
var rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
|
// Init rows
|
|
|
rows[rowIndex] = rows[rowIndex] || [];
|
|
|
var currentColIndex = colIndex;
|
|
|
var colSpans = columns.filter(Boolean).map(function (column) {
|
|
|
var cell = {
|
|
|
key: column.key,
|
|
|
className: column.className || '',
|
|
|
children: column.title,
|
|
|
column: column,
|
|
|
colStart: currentColIndex
|
|
|
};
|
|
|
var colSpan = 1;
|
|
|
var subColumns = column.children;
|
|
|
|
|
|
if (subColumns && subColumns.length > 0) {
|
|
|
colSpan = fillRowCells(subColumns, currentColIndex, rowIndex + 1).reduce(function (total, count) {
|
|
|
return total + count;
|
|
|
}, 0);
|
|
|
cell.hasSubColumns = true;
|
|
|
}
|
|
|
|
|
|
if ('colSpan' in column) {
|
|
|
colSpan = column.colSpan;
|
|
|
}
|
|
|
|
|
|
if ('rowSpan' in column) {
|
|
|
cell.rowSpan = column.rowSpan;
|
|
|
}
|
|
|
|
|
|
cell.colSpan = colSpan;
|
|
|
cell.colEnd = cell.colStart + colSpan - 1;
|
|
|
rows[rowIndex].push(cell);
|
|
|
currentColIndex += colSpan;
|
|
|
return colSpan;
|
|
|
});
|
|
|
return colSpans;
|
|
|
} // Generate `rows` cell data
|
|
|
|
|
|
|
|
|
fillRowCells(rootColumns, 0); // Handle `rowSpan`
|
|
|
|
|
|
var rowCount = rows.length;
|
|
|
|
|
|
var _loop = function _loop(rowIndex) {
|
|
|
rows[rowIndex].forEach(function (cell) {
|
|
|
if (!('rowSpan' in cell) && !cell.hasSubColumns) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
cell.rowSpan = rowCount - rowIndex;
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
for (var rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
|
|
|
_loop(rowIndex);
|
|
|
}
|
|
|
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
function Header(_ref) {
|
|
|
var stickyOffsets = _ref.stickyOffsets,
|
|
|
columns = _ref.columns,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
onHeaderRow = _ref.onHeaderRow;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
getComponent = _React$useContext.getComponent;
|
|
|
|
|
|
var rows = React.useMemo(function () {
|
|
|
return parseHeaderRows(columns);
|
|
|
}, [columns]);
|
|
|
var WrapperComponent = getComponent(['header', 'wrapper'], 'thead');
|
|
|
var trComponent = getComponent(['header', 'row'], 'tr');
|
|
|
var thComponent = getComponent(['header', 'cell'], 'th');
|
|
|
return /*#__PURE__*/React.createElement(WrapperComponent, {
|
|
|
className: "".concat(prefixCls, "-thead")
|
|
|
}, rows.map(function (row, rowIndex) {
|
|
|
var rowNode = /*#__PURE__*/React.createElement(_HeaderRow.default, {
|
|
|
key: rowIndex,
|
|
|
flattenColumns: flattenColumns,
|
|
|
cells: row,
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
rowComponent: trComponent,
|
|
|
cellComponent: thComponent,
|
|
|
onHeaderRow: onHeaderRow,
|
|
|
index: rowIndex
|
|
|
});
|
|
|
return rowNode;
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
var _default = Header;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Header/HeaderRow.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Header/HeaderRow.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _Cell = _interopRequireDefault(__webpack_require__(/*! ../Cell */ "./node_modules/rc-table/lib/Cell/index.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ../context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _fixUtil = __webpack_require__(/*! ../utils/fixUtil */ "./node_modules/rc-table/lib/utils/fixUtil.js");
|
|
|
|
|
|
var _valueUtil = __webpack_require__(/*! ../utils/valueUtil */ "./node_modules/rc-table/lib/utils/valueUtil.js");
|
|
|
|
|
|
function HeaderRow(_ref) {
|
|
|
var cells = _ref.cells,
|
|
|
stickyOffsets = _ref.stickyOffsets,
|
|
|
flattenColumns = _ref.flattenColumns,
|
|
|
RowComponent = _ref.rowComponent,
|
|
|
CellComponent = _ref.cellComponent,
|
|
|
onHeaderRow = _ref.onHeaderRow,
|
|
|
index = _ref.index;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls,
|
|
|
direction = _React$useContext.direction;
|
|
|
|
|
|
var rowProps;
|
|
|
|
|
|
if (onHeaderRow) {
|
|
|
rowProps = onHeaderRow(cells.map(function (cell) {
|
|
|
return cell.column;
|
|
|
}), index);
|
|
|
}
|
|
|
|
|
|
var columnsKey = (0, _valueUtil.getColumnsKey)(cells.map(function (cell) {
|
|
|
return cell.column;
|
|
|
}));
|
|
|
return /*#__PURE__*/React.createElement(RowComponent, rowProps, cells.map(function (cell, cellIndex) {
|
|
|
var column = cell.column;
|
|
|
var fixedInfo = (0, _fixUtil.getCellFixedInfo)(cell.colStart, cell.colEnd, flattenColumns, stickyOffsets, direction);
|
|
|
var additionalProps;
|
|
|
|
|
|
if (column && column.onHeaderCell) {
|
|
|
additionalProps = cell.column.onHeaderCell(column);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement(_Cell.default, (0, _extends2.default)({}, cell, {
|
|
|
ellipsis: column.ellipsis,
|
|
|
align: column.align,
|
|
|
component: CellComponent,
|
|
|
prefixCls: prefixCls,
|
|
|
key: columnsKey[cellIndex]
|
|
|
}, fixedInfo, {
|
|
|
additionalProps: additionalProps,
|
|
|
rowType: "header"
|
|
|
}));
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
HeaderRow.displayName = 'HeaderRow';
|
|
|
var _default = HeaderRow;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Panel/index.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Panel/index.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function Panel(_ref) {
|
|
|
var className = _ref.className,
|
|
|
children = _ref.children;
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
className: className
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
var _default = Panel;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/Table.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/Table.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = exports.INTERNAL_HOOKS = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _isVisible = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Dom/isVisible */ "./node_modules/rc-util/lib/Dom/isVisible.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _shallowequal = _interopRequireDefault(__webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _rcResizeObserver = _interopRequireDefault(__webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js"));
|
|
|
|
|
|
var _getScrollBarSize = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/getScrollBarSize */ "./node_modules/rc-util/lib/getScrollBarSize.js"));
|
|
|
|
|
|
var _ColumnGroup = _interopRequireDefault(__webpack_require__(/*! ./sugar/ColumnGroup */ "./node_modules/rc-table/lib/sugar/ColumnGroup.js"));
|
|
|
|
|
|
var _Column = _interopRequireDefault(__webpack_require__(/*! ./sugar/Column */ "./node_modules/rc-table/lib/sugar/Column.js"));
|
|
|
|
|
|
var _FixedHeader = _interopRequireDefault(__webpack_require__(/*! ./Header/FixedHeader */ "./node_modules/rc-table/lib/Header/FixedHeader.js"));
|
|
|
|
|
|
var _Header = _interopRequireDefault(__webpack_require__(/*! ./Header/Header */ "./node_modules/rc-table/lib/Header/Header.js"));
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ./context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _BodyContext = _interopRequireDefault(__webpack_require__(/*! ./context/BodyContext */ "./node_modules/rc-table/lib/context/BodyContext.js"));
|
|
|
|
|
|
var _Body = _interopRequireDefault(__webpack_require__(/*! ./Body */ "./node_modules/rc-table/lib/Body/index.js"));
|
|
|
|
|
|
var _useColumns3 = _interopRequireDefault(__webpack_require__(/*! ./hooks/useColumns */ "./node_modules/rc-table/lib/hooks/useColumns.js"));
|
|
|
|
|
|
var _useFrame = __webpack_require__(/*! ./hooks/useFrame */ "./node_modules/rc-table/lib/hooks/useFrame.js");
|
|
|
|
|
|
var _valueUtil = __webpack_require__(/*! ./utils/valueUtil */ "./node_modules/rc-table/lib/utils/valueUtil.js");
|
|
|
|
|
|
var _ResizeContext = _interopRequireDefault(__webpack_require__(/*! ./context/ResizeContext */ "./node_modules/rc-table/lib/context/ResizeContext.js"));
|
|
|
|
|
|
var _useStickyOffsets = _interopRequireDefault(__webpack_require__(/*! ./hooks/useStickyOffsets */ "./node_modules/rc-table/lib/hooks/useStickyOffsets.js"));
|
|
|
|
|
|
var _ColGroup = _interopRequireDefault(__webpack_require__(/*! ./ColGroup */ "./node_modules/rc-table/lib/ColGroup.js"));
|
|
|
|
|
|
var _legacyUtil = __webpack_require__(/*! ./utils/legacyUtil */ "./node_modules/rc-table/lib/utils/legacyUtil.js");
|
|
|
|
|
|
var _Panel = _interopRequireDefault(__webpack_require__(/*! ./Panel */ "./node_modules/rc-table/lib/Panel/index.js"));
|
|
|
|
|
|
var _Footer = _interopRequireWildcard(__webpack_require__(/*! ./Footer */ "./node_modules/rc-table/lib/Footer/index.js"));
|
|
|
|
|
|
var _expandUtil = __webpack_require__(/*! ./utils/expandUtil */ "./node_modules/rc-table/lib/utils/expandUtil.js");
|
|
|
|
|
|
var _fixUtil = __webpack_require__(/*! ./utils/fixUtil */ "./node_modules/rc-table/lib/utils/fixUtil.js");
|
|
|
|
|
|
var _stickyScrollBar = _interopRequireDefault(__webpack_require__(/*! ./stickyScrollBar */ "./node_modules/rc-table/lib/stickyScrollBar.js"));
|
|
|
|
|
|
var _useSticky2 = _interopRequireDefault(__webpack_require__(/*! ./hooks/useSticky */ "./node_modules/rc-table/lib/hooks/useSticky.js"));
|
|
|
|
|
|
/**
|
|
|
* Feature:
|
|
|
* - fixed not need to set width
|
|
|
* - support `rowExpandable` to config row expand logic
|
|
|
* - add `summary` to support `() => ReactNode`
|
|
|
*
|
|
|
* Update:
|
|
|
* - `dataIndex` is `array[]` now
|
|
|
* - `expandable` wrap all the expand related props
|
|
|
*
|
|
|
* Removed:
|
|
|
* - expandIconAsCell
|
|
|
* - useFixedHeader
|
|
|
* - rowRef
|
|
|
* - columns[number].onCellClick
|
|
|
* - onRowClick
|
|
|
* - onRowDoubleClick
|
|
|
* - onRowMouseEnter
|
|
|
* - onRowMouseLeave
|
|
|
* - getBodyWrapper
|
|
|
* - bodyStyle
|
|
|
*
|
|
|
* Deprecated:
|
|
|
* - All expanded props, move into expandable
|
|
|
*/
|
|
|
// Used for conditions cache
|
|
|
var EMPTY_DATA = []; // Used for customize scroll
|
|
|
|
|
|
var EMPTY_SCROLL_TARGET = {};
|
|
|
var INTERNAL_HOOKS = 'rc-table-internal-hook';
|
|
|
exports.INTERNAL_HOOKS = INTERNAL_HOOKS;
|
|
|
var MemoTableContent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
var children = _ref.children;
|
|
|
return children;
|
|
|
}, function (prev, next) {
|
|
|
if (!(0, _shallowequal.default)(prev.props, next.props)) {
|
|
|
return false;
|
|
|
} // No additional render when pinged status change.
|
|
|
// This is not a bug.
|
|
|
|
|
|
|
|
|
return prev.pingLeft !== next.pingLeft || prev.pingRight !== next.pingRight;
|
|
|
});
|
|
|
|
|
|
function Table(props) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
rowClassName = props.rowClassName,
|
|
|
style = props.style,
|
|
|
data = props.data,
|
|
|
rowKey = props.rowKey,
|
|
|
scroll = props.scroll,
|
|
|
tableLayout = props.tableLayout,
|
|
|
direction = props.direction,
|
|
|
title = props.title,
|
|
|
footer = props.footer,
|
|
|
summary = props.summary,
|
|
|
id = props.id,
|
|
|
showHeader = props.showHeader,
|
|
|
components = props.components,
|
|
|
emptyText = props.emptyText,
|
|
|
onRow = props.onRow,
|
|
|
onHeaderRow = props.onHeaderRow,
|
|
|
internalHooks = props.internalHooks,
|
|
|
transformColumns = props.transformColumns,
|
|
|
internalRefs = props.internalRefs,
|
|
|
sticky = props.sticky;
|
|
|
var mergedData = data || EMPTY_DATA;
|
|
|
var hasData = !!mergedData.length; // ===================== Effects ======================
|
|
|
|
|
|
var _React$useState = React.useState(0),
|
|
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
|
scrollbarSize = _React$useState2[0],
|
|
|
setScrollbarSize = _React$useState2[1];
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
setScrollbarSize((0, _getScrollBarSize.default)());
|
|
|
}); // ===================== Warning ======================
|
|
|
|
|
|
if (true) {
|
|
|
['onRowClick', 'onRowDoubleClick', 'onRowContextMenu', 'onRowMouseEnter', 'onRowMouseLeave'].forEach(function (name) {
|
|
|
(0, _warning.default)(props[name] === undefined, "`".concat(name, "` is removed, please use `onRow` instead."));
|
|
|
});
|
|
|
(0, _warning.default)(!('getBodyWrapper' in props), '`getBodyWrapper` is deprecated, please use custom `components` instead.');
|
|
|
} // ==================== Customize =====================
|
|
|
|
|
|
|
|
|
var mergedComponents = React.useMemo(function () {
|
|
|
return (0, _valueUtil.mergeObject)(components, {});
|
|
|
}, [components]);
|
|
|
var getComponent = React.useCallback(function (path, defaultComponent) {
|
|
|
return (0, _valueUtil.getPathValue)(mergedComponents, path) || defaultComponent;
|
|
|
}, [mergedComponents]);
|
|
|
var getRowKey = React.useMemo(function () {
|
|
|
if (typeof rowKey === 'function') {
|
|
|
return rowKey;
|
|
|
}
|
|
|
|
|
|
return function (record) {
|
|
|
var key = record && record[rowKey];
|
|
|
|
|
|
if (true) {
|
|
|
(0, _warning.default)(key !== undefined, 'Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key.');
|
|
|
}
|
|
|
|
|
|
return key;
|
|
|
};
|
|
|
}, [rowKey]); // ====================== Expand ======================
|
|
|
|
|
|
var expandableConfig = (0, _legacyUtil.getExpandableProps)(props);
|
|
|
var expandIcon = expandableConfig.expandIcon,
|
|
|
expandedRowKeys = expandableConfig.expandedRowKeys,
|
|
|
defaultExpandedRowKeys = expandableConfig.defaultExpandedRowKeys,
|
|
|
defaultExpandAllRows = expandableConfig.defaultExpandAllRows,
|
|
|
expandedRowRender = expandableConfig.expandedRowRender,
|
|
|
onExpand = expandableConfig.onExpand,
|
|
|
onExpandedRowsChange = expandableConfig.onExpandedRowsChange,
|
|
|
expandRowByClick = expandableConfig.expandRowByClick,
|
|
|
rowExpandable = expandableConfig.rowExpandable,
|
|
|
expandIconColumnIndex = expandableConfig.expandIconColumnIndex,
|
|
|
expandedRowClassName = expandableConfig.expandedRowClassName,
|
|
|
childrenColumnName = expandableConfig.childrenColumnName,
|
|
|
indentSize = expandableConfig.indentSize;
|
|
|
var mergedExpandIcon = expandIcon || _expandUtil.renderExpandIcon;
|
|
|
var mergedChildrenColumnName = childrenColumnName || 'children';
|
|
|
var expandableType = React.useMemo(function () {
|
|
|
if (expandedRowRender) {
|
|
|
return 'row';
|
|
|
}
|
|
|
/* eslint-disable no-underscore-dangle */
|
|
|
|
|
|
/**
|
|
|
* Fix https://github.com/ant-design/ant-design/issues/21154
|
|
|
* This is a workaround to not to break current behavior.
|
|
|
* We can remove follow code after final release.
|
|
|
*
|
|
|
* To other developer:
|
|
|
* Do not use `__PARENT_RENDER_ICON__` in prod since we will remove this when refactor
|
|
|
*/
|
|
|
|
|
|
|
|
|
if (props.expandable && internalHooks === INTERNAL_HOOKS && props.expandable.__PARENT_RENDER_ICON__ || mergedData.some(function (record) {
|
|
|
return record && (0, _typeof2.default)(record) === 'object' && record[mergedChildrenColumnName];
|
|
|
})) {
|
|
|
return 'nest';
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
return false;
|
|
|
}, [!!expandedRowRender, mergedData]);
|
|
|
|
|
|
var _React$useState3 = React.useState(function () {
|
|
|
if (defaultExpandedRowKeys) {
|
|
|
return defaultExpandedRowKeys;
|
|
|
}
|
|
|
|
|
|
if (defaultExpandAllRows) {
|
|
|
return (0, _expandUtil.findAllChildrenKeys)(mergedData, getRowKey, mergedChildrenColumnName);
|
|
|
}
|
|
|
|
|
|
return [];
|
|
|
}),
|
|
|
_React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2),
|
|
|
innerExpandedKeys = _React$useState4[0],
|
|
|
setInnerExpandedKeys = _React$useState4[1];
|
|
|
|
|
|
var mergedExpandedKeys = React.useMemo(function () {
|
|
|
return new Set(expandedRowKeys || innerExpandedKeys || []);
|
|
|
}, [expandedRowKeys, innerExpandedKeys]);
|
|
|
var onTriggerExpand = React.useCallback(function (record) {
|
|
|
var key = getRowKey(record, mergedData.indexOf(record));
|
|
|
var newExpandedKeys;
|
|
|
var hasKey = mergedExpandedKeys.has(key);
|
|
|
|
|
|
if (hasKey) {
|
|
|
mergedExpandedKeys.delete(key);
|
|
|
newExpandedKeys = (0, _toConsumableArray2.default)(mergedExpandedKeys);
|
|
|
} else {
|
|
|
newExpandedKeys = [].concat((0, _toConsumableArray2.default)(mergedExpandedKeys), [key]);
|
|
|
}
|
|
|
|
|
|
setInnerExpandedKeys(newExpandedKeys);
|
|
|
|
|
|
if (onExpand) {
|
|
|
onExpand(!hasKey, record);
|
|
|
}
|
|
|
|
|
|
if (onExpandedRowsChange) {
|
|
|
onExpandedRowsChange(newExpandedKeys);
|
|
|
}
|
|
|
}, [getRowKey, mergedExpandedKeys, mergedData, onExpand, onExpandedRowsChange]); // ====================== Column ======================
|
|
|
|
|
|
var _React$useState5 = React.useState(0),
|
|
|
_React$useState6 = (0, _slicedToArray2.default)(_React$useState5, 2),
|
|
|
componentWidth = _React$useState6[0],
|
|
|
setComponentWidth = _React$useState6[1];
|
|
|
|
|
|
var _useColumns = (0, _useColumns3.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), expandableConfig), {}, {
|
|
|
expandable: !!expandedRowRender,
|
|
|
expandedKeys: mergedExpandedKeys,
|
|
|
getRowKey: getRowKey,
|
|
|
// https://github.com/ant-design/ant-design/issues/23894
|
|
|
onTriggerExpand: onTriggerExpand,
|
|
|
expandIcon: mergedExpandIcon,
|
|
|
expandIconColumnIndex: expandIconColumnIndex,
|
|
|
direction: direction
|
|
|
}), internalHooks === INTERNAL_HOOKS ? transformColumns : null),
|
|
|
_useColumns2 = (0, _slicedToArray2.default)(_useColumns, 2),
|
|
|
columns = _useColumns2[0],
|
|
|
flattenColumns = _useColumns2[1];
|
|
|
|
|
|
var columnContext = React.useMemo(function () {
|
|
|
return {
|
|
|
columns: columns,
|
|
|
flattenColumns: flattenColumns
|
|
|
};
|
|
|
}, [columns, flattenColumns]); // ====================== Scroll ======================
|
|
|
|
|
|
var fullTableRef = React.useRef();
|
|
|
var scrollHeaderRef = React.useRef();
|
|
|
var scrollBodyRef = React.useRef();
|
|
|
|
|
|
var _React$useState7 = React.useState(false),
|
|
|
_React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2),
|
|
|
pingedLeft = _React$useState8[0],
|
|
|
setPingedLeft = _React$useState8[1];
|
|
|
|
|
|
var _React$useState9 = React.useState(false),
|
|
|
_React$useState10 = (0, _slicedToArray2.default)(_React$useState9, 2),
|
|
|
pingedRight = _React$useState10[0],
|
|
|
setPingedRight = _React$useState10[1];
|
|
|
|
|
|
var _useLayoutState = (0, _useFrame.useLayoutState)(new Map()),
|
|
|
_useLayoutState2 = (0, _slicedToArray2.default)(_useLayoutState, 2),
|
|
|
colsWidths = _useLayoutState2[0],
|
|
|
updateColsWidths = _useLayoutState2[1]; // Convert map to number width
|
|
|
|
|
|
|
|
|
var colsKeys = (0, _valueUtil.getColumnsKey)(flattenColumns);
|
|
|
var pureColWidths = colsKeys.map(function (columnKey) {
|
|
|
return colsWidths.get(columnKey);
|
|
|
});
|
|
|
var colWidths = React.useMemo(function () {
|
|
|
return pureColWidths;
|
|
|
}, [pureColWidths.join('_')]);
|
|
|
var stickyOffsets = (0, _useStickyOffsets.default)(colWidths, flattenColumns.length, direction);
|
|
|
var fixHeader = scroll && (0, _valueUtil.validateValue)(scroll.y);
|
|
|
var horizonScroll = scroll && (0, _valueUtil.validateValue)(scroll.x);
|
|
|
var fixColumn = horizonScroll && flattenColumns.some(function (_ref2) {
|
|
|
var fixed = _ref2.fixed;
|
|
|
return fixed;
|
|
|
}); // Sticky
|
|
|
|
|
|
var stickyRef = React.useRef();
|
|
|
|
|
|
var _useSticky = (0, _useSticky2.default)(sticky, prefixCls),
|
|
|
isSticky = _useSticky.isSticky,
|
|
|
offsetHeader = _useSticky.offsetHeader,
|
|
|
offsetScroll = _useSticky.offsetScroll,
|
|
|
stickyClassName = _useSticky.stickyClassName,
|
|
|
container = _useSticky.container;
|
|
|
|
|
|
var scrollXStyle;
|
|
|
var scrollYStyle;
|
|
|
var scrollTableStyle;
|
|
|
|
|
|
if (fixHeader) {
|
|
|
scrollYStyle = {
|
|
|
overflowY: 'scroll',
|
|
|
maxHeight: scroll.y
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (horizonScroll) {
|
|
|
scrollXStyle = {
|
|
|
overflowX: 'auto'
|
|
|
}; // When no vertical scrollbar, should hide it
|
|
|
// https://github.com/ant-design/ant-design/pull/20705
|
|
|
// https://github.com/ant-design/ant-design/issues/21879
|
|
|
|
|
|
if (!fixHeader) {
|
|
|
scrollYStyle = {
|
|
|
overflowY: 'hidden'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
scrollTableStyle = {
|
|
|
width: scroll.x === true ? 'auto' : scroll.x,
|
|
|
minWidth: '100%'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var onColumnResize = React.useCallback(function (columnKey, width) {
|
|
|
if ((0, _isVisible.default)(fullTableRef.current)) {
|
|
|
updateColsWidths(function (widths) {
|
|
|
if (widths.get(columnKey) !== width) {
|
|
|
var newWidths = new Map(widths);
|
|
|
newWidths.set(columnKey, width);
|
|
|
return newWidths;
|
|
|
}
|
|
|
|
|
|
return widths;
|
|
|
});
|
|
|
}
|
|
|
}, []);
|
|
|
|
|
|
var _useTimeoutLock = (0, _useFrame.useTimeoutLock)(null),
|
|
|
_useTimeoutLock2 = (0, _slicedToArray2.default)(_useTimeoutLock, 2),
|
|
|
setScrollTarget = _useTimeoutLock2[0],
|
|
|
getScrollTarget = _useTimeoutLock2[1];
|
|
|
|
|
|
function forceScroll(scrollLeft, target) {
|
|
|
if (!target) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof target === 'function') {
|
|
|
target(scrollLeft);
|
|
|
} else if (target.scrollLeft !== scrollLeft) {
|
|
|
// eslint-disable-next-line no-param-reassign
|
|
|
target.scrollLeft = scrollLeft;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var onScroll = function onScroll(_ref3) {
|
|
|
var currentTarget = _ref3.currentTarget,
|
|
|
scrollLeft = _ref3.scrollLeft;
|
|
|
var isRTL = direction === 'rtl';
|
|
|
var mergedScrollLeft = typeof scrollLeft === 'number' ? scrollLeft : currentTarget.scrollLeft;
|
|
|
var compareTarget = currentTarget || EMPTY_SCROLL_TARGET;
|
|
|
|
|
|
if (!getScrollTarget() || getScrollTarget() === compareTarget) {
|
|
|
var _stickyRef$current;
|
|
|
|
|
|
setScrollTarget(compareTarget);
|
|
|
forceScroll(mergedScrollLeft, scrollHeaderRef.current);
|
|
|
forceScroll(mergedScrollLeft, scrollBodyRef.current);
|
|
|
forceScroll(mergedScrollLeft, (_stickyRef$current = stickyRef.current) === null || _stickyRef$current === void 0 ? void 0 : _stickyRef$current.setScrollLeft);
|
|
|
}
|
|
|
|
|
|
if (currentTarget) {
|
|
|
var scrollWidth = currentTarget.scrollWidth,
|
|
|
clientWidth = currentTarget.clientWidth;
|
|
|
|
|
|
if (isRTL) {
|
|
|
setPingedLeft(-mergedScrollLeft < scrollWidth - clientWidth);
|
|
|
setPingedRight(-mergedScrollLeft > 0);
|
|
|
} else {
|
|
|
setPingedLeft(mergedScrollLeft > 0);
|
|
|
setPingedRight(mergedScrollLeft < scrollWidth - clientWidth);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var triggerOnScroll = function triggerOnScroll() {
|
|
|
if (scrollBodyRef.current) {
|
|
|
onScroll({
|
|
|
currentTarget: scrollBodyRef.current
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onFullTableResize = function onFullTableResize(_ref4) {
|
|
|
var width = _ref4.width;
|
|
|
triggerOnScroll();
|
|
|
setComponentWidth(fullTableRef.current ? fullTableRef.current.offsetWidth : width);
|
|
|
}; // Sync scroll bar when init or `horizonScroll` changed
|
|
|
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
return triggerOnScroll;
|
|
|
}, []);
|
|
|
React.useEffect(function () {
|
|
|
if (horizonScroll) {
|
|
|
triggerOnScroll();
|
|
|
}
|
|
|
}, [horizonScroll]); // ================== INTERNAL HOOKS ==================
|
|
|
|
|
|
React.useEffect(function () {
|
|
|
if (internalHooks === INTERNAL_HOOKS && internalRefs) {
|
|
|
internalRefs.body.current = scrollBodyRef.current;
|
|
|
}
|
|
|
}); // ====================== Render ======================
|
|
|
|
|
|
var TableComponent = getComponent(['table'], 'table'); // Table layout
|
|
|
|
|
|
var mergedTableLayout = React.useMemo(function () {
|
|
|
if (tableLayout) {
|
|
|
return tableLayout;
|
|
|
} // https://github.com/ant-design/ant-design/issues/25227
|
|
|
// When scroll.x is max-content, no need to fix table layout
|
|
|
// it's width should stretch out to fit content
|
|
|
|
|
|
|
|
|
if (fixColumn) {
|
|
|
return scroll.x === 'max-content' ? 'auto' : 'fixed';
|
|
|
}
|
|
|
|
|
|
if (fixHeader || isSticky || flattenColumns.some(function (_ref5) {
|
|
|
var ellipsis = _ref5.ellipsis;
|
|
|
return ellipsis;
|
|
|
})) {
|
|
|
return 'fixed';
|
|
|
}
|
|
|
|
|
|
return 'auto';
|
|
|
}, [fixHeader, fixColumn, flattenColumns, tableLayout, isSticky]);
|
|
|
var groupTableNode; // Header props
|
|
|
|
|
|
var headerProps = {
|
|
|
colWidths: colWidths,
|
|
|
columCount: flattenColumns.length,
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
onHeaderRow: onHeaderRow,
|
|
|
fixHeader: fixHeader,
|
|
|
scroll: scroll
|
|
|
}; // Empty
|
|
|
|
|
|
var emptyNode = React.useMemo(function () {
|
|
|
if (hasData) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (typeof emptyText === 'function') {
|
|
|
return emptyText();
|
|
|
}
|
|
|
|
|
|
return emptyText;
|
|
|
}, [hasData, emptyText]); // Body
|
|
|
|
|
|
var bodyTable = /*#__PURE__*/React.createElement(_Body.default, {
|
|
|
data: mergedData,
|
|
|
measureColumnWidth: fixHeader || horizonScroll || isSticky,
|
|
|
expandedKeys: mergedExpandedKeys,
|
|
|
rowExpandable: rowExpandable,
|
|
|
getRowKey: getRowKey,
|
|
|
onRow: onRow,
|
|
|
emptyNode: emptyNode,
|
|
|
childrenColumnName: mergedChildrenColumnName
|
|
|
});
|
|
|
var bodyColGroup = /*#__PURE__*/React.createElement(_ColGroup.default, {
|
|
|
colWidths: flattenColumns.map(function (_ref6) {
|
|
|
var width = _ref6.width;
|
|
|
return width;
|
|
|
}),
|
|
|
columns: flattenColumns
|
|
|
});
|
|
|
var footerTable = summary && /*#__PURE__*/React.createElement(_Footer.default, null, summary(mergedData));
|
|
|
var customizeScrollBody = getComponent(['body']);
|
|
|
|
|
|
if ( true && typeof customizeScrollBody === 'function' && hasData && !fixHeader) {
|
|
|
(0, _warning.default)(false, '`components.body` with render props is only work on `scroll.y`.');
|
|
|
}
|
|
|
|
|
|
if (fixHeader || isSticky) {
|
|
|
var bodyContent;
|
|
|
|
|
|
if (typeof customizeScrollBody === 'function') {
|
|
|
bodyContent = customizeScrollBody(mergedData, {
|
|
|
scrollbarSize: scrollbarSize,
|
|
|
ref: scrollBodyRef,
|
|
|
onScroll: onScroll
|
|
|
});
|
|
|
headerProps.colWidths = flattenColumns.map(function (_ref7, index) {
|
|
|
var width = _ref7.width;
|
|
|
var colWidth = index === columns.length - 1 ? width - scrollbarSize : width;
|
|
|
|
|
|
if (typeof colWidth === 'number' && !Number.isNaN(colWidth)) {
|
|
|
return colWidth;
|
|
|
}
|
|
|
|
|
|
(0, _warning.default)(false, 'When use `components.body` with render props. Each column should have a fixed `width` value.');
|
|
|
return 0;
|
|
|
});
|
|
|
} else {
|
|
|
bodyContent = /*#__PURE__*/React.createElement("div", {
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, scrollXStyle), scrollYStyle),
|
|
|
onScroll: onScroll,
|
|
|
ref: scrollBodyRef,
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-body"))
|
|
|
}, /*#__PURE__*/React.createElement(TableComponent, {
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, scrollTableStyle), {}, {
|
|
|
tableLayout: mergedTableLayout
|
|
|
})
|
|
|
}, bodyColGroup, bodyTable, footerTable));
|
|
|
}
|
|
|
|
|
|
groupTableNode = /*#__PURE__*/React.createElement(React.Fragment, null, showHeader !== false && /*#__PURE__*/React.createElement(_FixedHeader.default, (0, _extends2.default)({
|
|
|
noData: !mergedData.length,
|
|
|
maxContentScroll: horizonScroll && scroll.x === 'max-content'
|
|
|
}, headerProps, columnContext, {
|
|
|
direction: direction // Fixed Props
|
|
|
,
|
|
|
offsetHeader: offsetHeader,
|
|
|
stickyClassName: stickyClassName,
|
|
|
ref: scrollHeaderRef,
|
|
|
onScroll: onScroll
|
|
|
})), bodyContent, isSticky && /*#__PURE__*/React.createElement(_stickyScrollBar.default, {
|
|
|
ref: stickyRef,
|
|
|
offsetScroll: offsetScroll,
|
|
|
scrollBodyRef: scrollBodyRef,
|
|
|
onScroll: onScroll,
|
|
|
container: container
|
|
|
}));
|
|
|
} else {
|
|
|
groupTableNode = /*#__PURE__*/React.createElement("div", {
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, scrollXStyle), scrollYStyle),
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-content")),
|
|
|
onScroll: onScroll,
|
|
|
ref: scrollBodyRef
|
|
|
}, /*#__PURE__*/React.createElement(TableComponent, {
|
|
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, scrollTableStyle), {}, {
|
|
|
tableLayout: mergedTableLayout
|
|
|
})
|
|
|
}, bodyColGroup, showHeader !== false && /*#__PURE__*/React.createElement(_Header.default, (0, _extends2.default)({}, headerProps, columnContext)), bodyTable, footerTable));
|
|
|
}
|
|
|
|
|
|
var ariaProps = (0, _legacyUtil.getDataAndAriaProps)(props);
|
|
|
var fullTable = /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
|
className: (0, _classnames.default)(prefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-ping-left"), pingedLeft), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-ping-right"), pingedRight), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-layout-fixed"), tableLayout === 'fixed'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-fixed-header"), fixHeader), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-fixed-column"), fixColumn), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-scroll-horizontal"), horizonScroll), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-has-fix-left"), flattenColumns[0] && flattenColumns[0].fixed), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-has-fix-right"), flattenColumns[flattenColumns.length - 1] && flattenColumns[flattenColumns.length - 1].fixed === 'right'), _classNames)),
|
|
|
style: style,
|
|
|
id: id,
|
|
|
ref: fullTableRef
|
|
|
}, ariaProps), /*#__PURE__*/React.createElement(MemoTableContent, {
|
|
|
pingLeft: pingedLeft,
|
|
|
pingRight: pingedRight,
|
|
|
props: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
|
stickyOffsets: stickyOffsets,
|
|
|
mergedExpandedKeys: mergedExpandedKeys
|
|
|
})
|
|
|
}, title && /*#__PURE__*/React.createElement(_Panel.default, {
|
|
|
className: "".concat(prefixCls, "-title")
|
|
|
}, title(mergedData)), /*#__PURE__*/React.createElement("div", {
|
|
|
className: "".concat(prefixCls, "-container")
|
|
|
}, groupTableNode), footer && /*#__PURE__*/React.createElement(_Panel.default, {
|
|
|
className: "".concat(prefixCls, "-footer")
|
|
|
}, footer(mergedData))));
|
|
|
|
|
|
if (horizonScroll) {
|
|
|
fullTable = /*#__PURE__*/React.createElement(_rcResizeObserver.default, {
|
|
|
onResize: onFullTableResize
|
|
|
}, fullTable);
|
|
|
}
|
|
|
|
|
|
var TableContextValue = React.useMemo(function () {
|
|
|
return {
|
|
|
prefixCls: prefixCls,
|
|
|
getComponent: getComponent,
|
|
|
scrollbarSize: scrollbarSize,
|
|
|
direction: direction,
|
|
|
fixedInfoList: flattenColumns.map(function (_, colIndex) {
|
|
|
return (0, _fixUtil.getCellFixedInfo)(colIndex, colIndex, flattenColumns, stickyOffsets, direction);
|
|
|
}),
|
|
|
isSticky: isSticky
|
|
|
};
|
|
|
}, [prefixCls, getComponent, scrollbarSize, direction, flattenColumns, stickyOffsets, direction, isSticky]);
|
|
|
var BodyContextValue = React.useMemo(function () {
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, columnContext), {}, {
|
|
|
tableLayout: mergedTableLayout,
|
|
|
rowClassName: rowClassName,
|
|
|
expandedRowClassName: expandedRowClassName,
|
|
|
componentWidth: componentWidth,
|
|
|
fixHeader: fixHeader,
|
|
|
fixColumn: fixColumn,
|
|
|
horizonScroll: horizonScroll,
|
|
|
expandIcon: mergedExpandIcon,
|
|
|
expandableType: expandableType,
|
|
|
expandRowByClick: expandRowByClick,
|
|
|
expandedRowRender: expandedRowRender,
|
|
|
onTriggerExpand: onTriggerExpand,
|
|
|
expandIconColumnIndex: expandIconColumnIndex,
|
|
|
indentSize: indentSize
|
|
|
});
|
|
|
}, [columnContext, mergedTableLayout, rowClassName, expandedRowClassName, componentWidth, fixHeader, fixColumn, horizonScroll, mergedExpandIcon, expandableType, expandRowByClick, expandedRowRender, onTriggerExpand, expandIconColumnIndex, indentSize]);
|
|
|
var ResizeContextValue = React.useMemo(function () {
|
|
|
return {
|
|
|
onColumnResize: onColumnResize
|
|
|
};
|
|
|
}, [onColumnResize]);
|
|
|
return /*#__PURE__*/React.createElement(_TableContext.default.Provider, {
|
|
|
value: TableContextValue
|
|
|
}, /*#__PURE__*/React.createElement(_BodyContext.default.Provider, {
|
|
|
value: BodyContextValue
|
|
|
}, /*#__PURE__*/React.createElement(_ResizeContext.default.Provider, {
|
|
|
value: ResizeContextValue
|
|
|
}, fullTable)));
|
|
|
}
|
|
|
|
|
|
Table.Column = _Column.default;
|
|
|
Table.ColumnGroup = _ColumnGroup.default;
|
|
|
Table.Summary = _Footer.FooterComponents;
|
|
|
Table.defaultProps = {
|
|
|
rowKey: 'key',
|
|
|
prefixCls: 'rc-table',
|
|
|
emptyText: function emptyText() {
|
|
|
return 'No Data';
|
|
|
}
|
|
|
};
|
|
|
var _default = Table;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/context/BodyContext.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/context/BodyContext.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var BodyContext = /*#__PURE__*/React.createContext(null);
|
|
|
var _default = BodyContext;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/context/ResizeContext.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/context/ResizeContext.js ***!
|
|
|
\************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var ResizeContext = /*#__PURE__*/React.createContext(null);
|
|
|
var _default = ResizeContext;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/context/TableContext.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/context/TableContext.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var TableContext = /*#__PURE__*/React.createContext(null);
|
|
|
var _default = TableContext;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/hooks/useColumns.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/hooks/useColumns.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.convertChildrenToColumns = convertChildrenToColumns;
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _toArray = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js"));
|
|
|
|
|
|
var _legacyUtil = __webpack_require__(/*! ../utils/legacyUtil */ "./node_modules/rc-table/lib/utils/legacyUtil.js");
|
|
|
|
|
|
function convertChildrenToColumns(children) {
|
|
|
return (0, _toArray.default)(children).filter(function (node) {
|
|
|
return /*#__PURE__*/React.isValidElement(node);
|
|
|
}).map(function (_ref) {
|
|
|
var key = _ref.key,
|
|
|
props = _ref.props;
|
|
|
var nodeChildren = props.children,
|
|
|
restProps = (0, _objectWithoutProperties2.default)(props, ["children"]);
|
|
|
var column = (0, _objectSpread2.default)({
|
|
|
key: key
|
|
|
}, restProps);
|
|
|
|
|
|
if (nodeChildren) {
|
|
|
column.children = convertChildrenToColumns(nodeChildren);
|
|
|
}
|
|
|
|
|
|
return column;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function flatColumns(columns) {
|
|
|
return columns.reduce(function (list, column) {
|
|
|
var fixed = column.fixed; // Convert `fixed='true'` to `fixed='left'` instead
|
|
|
|
|
|
var parsedFixed = fixed === true ? 'left' : fixed;
|
|
|
var subColumns = column.children;
|
|
|
|
|
|
if (subColumns && subColumns.length > 0) {
|
|
|
return [].concat((0, _toConsumableArray2.default)(list), (0, _toConsumableArray2.default)(flatColumns(subColumns).map(function (subColum) {
|
|
|
return (0, _objectSpread2.default)({
|
|
|
fixed: parsedFixed
|
|
|
}, subColum);
|
|
|
})));
|
|
|
}
|
|
|
|
|
|
return [].concat((0, _toConsumableArray2.default)(list), [(0, _objectSpread2.default)((0, _objectSpread2.default)({}, column), {}, {
|
|
|
fixed: parsedFixed
|
|
|
})]);
|
|
|
}, []);
|
|
|
}
|
|
|
|
|
|
function warningFixed(flattenColumns) {
|
|
|
var allFixLeft = true;
|
|
|
|
|
|
for (var i = 0; i < flattenColumns.length; i += 1) {
|
|
|
var col = flattenColumns[i];
|
|
|
|
|
|
if (allFixLeft && col.fixed !== 'left') {
|
|
|
allFixLeft = false;
|
|
|
} else if (!allFixLeft && col.fixed === 'left') {
|
|
|
(0, _warning.default)(false, "Index ".concat(i - 1, " of `columns` missing `fixed='left'` prop."));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var allFixRight = true;
|
|
|
|
|
|
for (var _i = flattenColumns.length - 1; _i >= 0; _i -= 1) {
|
|
|
var _col = flattenColumns[_i];
|
|
|
|
|
|
if (allFixRight && _col.fixed !== 'right') {
|
|
|
allFixRight = false;
|
|
|
} else if (!allFixRight && _col.fixed === 'right') {
|
|
|
(0, _warning.default)(false, "Index ".concat(_i + 1, " of `columns` missing `fixed='right'` prop."));
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function revertForRtl(columns) {
|
|
|
return columns.map(function (column) {
|
|
|
var fixed = column.fixed,
|
|
|
restProps = (0, _objectWithoutProperties2.default)(column, ["fixed"]); // Convert `fixed='left'` to `fixed='right'` instead
|
|
|
|
|
|
var parsedFixed = fixed;
|
|
|
|
|
|
if (fixed === 'left') {
|
|
|
parsedFixed = 'right';
|
|
|
} else if (fixed === 'right') {
|
|
|
parsedFixed = 'left';
|
|
|
}
|
|
|
|
|
|
return (0, _objectSpread2.default)({
|
|
|
fixed: parsedFixed
|
|
|
}, restProps);
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Parse `columns` & `children` into `columns`.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function useColumns(_ref2, transformColumns) {
|
|
|
var prefixCls = _ref2.prefixCls,
|
|
|
columns = _ref2.columns,
|
|
|
children = _ref2.children,
|
|
|
expandable = _ref2.expandable,
|
|
|
expandedKeys = _ref2.expandedKeys,
|
|
|
getRowKey = _ref2.getRowKey,
|
|
|
onTriggerExpand = _ref2.onTriggerExpand,
|
|
|
expandIcon = _ref2.expandIcon,
|
|
|
rowExpandable = _ref2.rowExpandable,
|
|
|
expandIconColumnIndex = _ref2.expandIconColumnIndex,
|
|
|
direction = _ref2.direction,
|
|
|
expandRowByClick = _ref2.expandRowByClick,
|
|
|
columnWidth = _ref2.columnWidth;
|
|
|
var baseColumns = React.useMemo(function () {
|
|
|
return columns || convertChildrenToColumns(children);
|
|
|
}, [columns, children]); // Add expand column
|
|
|
|
|
|
var withExpandColumns = React.useMemo(function () {
|
|
|
if (expandable) {
|
|
|
var _expandColumn;
|
|
|
|
|
|
var expandColIndex = expandIconColumnIndex || 0;
|
|
|
var prevColumn = baseColumns[expandColIndex];
|
|
|
var expandColumn = (_expandColumn = {}, (0, _defineProperty2.default)(_expandColumn, _legacyUtil.INTERNAL_COL_DEFINE, {
|
|
|
className: "".concat(prefixCls, "-expand-icon-col")
|
|
|
}), (0, _defineProperty2.default)(_expandColumn, "title", ''), (0, _defineProperty2.default)(_expandColumn, "fixed", prevColumn ? prevColumn.fixed : null), (0, _defineProperty2.default)(_expandColumn, "className", "".concat(prefixCls, "-row-expand-icon-cell")), (0, _defineProperty2.default)(_expandColumn, "width", columnWidth), (0, _defineProperty2.default)(_expandColumn, "render", function render(_, record, index) {
|
|
|
var rowKey = getRowKey(record, index);
|
|
|
var expanded = expandedKeys.has(rowKey);
|
|
|
var recordExpandable = rowExpandable ? rowExpandable(record) : true;
|
|
|
var icon = expandIcon({
|
|
|
prefixCls: prefixCls,
|
|
|
expanded: expanded,
|
|
|
expandable: recordExpandable,
|
|
|
record: record,
|
|
|
onExpand: onTriggerExpand
|
|
|
});
|
|
|
|
|
|
if (expandRowByClick) {
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
onClick: function onClick(e) {
|
|
|
return e.stopPropagation();
|
|
|
}
|
|
|
}, icon);
|
|
|
}
|
|
|
|
|
|
return icon;
|
|
|
}), _expandColumn); // Insert expand column in the target position
|
|
|
|
|
|
var cloneColumns = baseColumns.slice();
|
|
|
|
|
|
if (expandColIndex >= 0) {
|
|
|
cloneColumns.splice(expandColIndex, 0, expandColumn);
|
|
|
}
|
|
|
|
|
|
return cloneColumns;
|
|
|
}
|
|
|
|
|
|
return baseColumns;
|
|
|
}, [expandable, baseColumns, getRowKey, expandedKeys, expandIcon, direction]);
|
|
|
var mergedColumns = React.useMemo(function () {
|
|
|
var finalColumns = withExpandColumns;
|
|
|
|
|
|
if (transformColumns) {
|
|
|
finalColumns = transformColumns(finalColumns);
|
|
|
} // Always provides at least one column for table display
|
|
|
|
|
|
|
|
|
if (!finalColumns.length) {
|
|
|
finalColumns = [{
|
|
|
render: function render() {
|
|
|
return null;
|
|
|
}
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
return finalColumns;
|
|
|
}, [transformColumns, withExpandColumns, direction]);
|
|
|
var flattenColumns = React.useMemo(function () {
|
|
|
if (direction === 'rtl') {
|
|
|
return revertForRtl(flatColumns(mergedColumns));
|
|
|
}
|
|
|
|
|
|
return flatColumns(mergedColumns);
|
|
|
}, [mergedColumns, direction]); // Only check out of production since it's waste for each render
|
|
|
|
|
|
if (true) {
|
|
|
warningFixed(flattenColumns);
|
|
|
}
|
|
|
|
|
|
return [mergedColumns, flattenColumns];
|
|
|
}
|
|
|
|
|
|
var _default = useColumns;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/hooks/useFrame.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/hooks/useFrame.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.useLayoutState = useLayoutState;
|
|
|
exports.useTimeoutLock = useTimeoutLock;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
/**
|
|
|
* Execute code before next frame but async
|
|
|
*/
|
|
|
function useLayoutState(defaultState) {
|
|
|
var stateRef = (0, _react.useRef)(defaultState);
|
|
|
|
|
|
var _useState = (0, _react.useState)({}),
|
|
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
|
forceUpdate = _useState2[1];
|
|
|
|
|
|
var lastPromiseRef = (0, _react.useRef)(null);
|
|
|
var updateBatchRef = (0, _react.useRef)([]);
|
|
|
|
|
|
function setFrameState(updater) {
|
|
|
updateBatchRef.current.push(updater);
|
|
|
var promise = Promise.resolve();
|
|
|
lastPromiseRef.current = promise;
|
|
|
promise.then(function () {
|
|
|
if (lastPromiseRef.current === promise) {
|
|
|
var prevBatch = updateBatchRef.current;
|
|
|
var prevState = stateRef.current;
|
|
|
updateBatchRef.current = [];
|
|
|
prevBatch.forEach(function (batchUpdater) {
|
|
|
stateRef.current = batchUpdater(stateRef.current);
|
|
|
});
|
|
|
lastPromiseRef.current = null;
|
|
|
|
|
|
if (prevState !== stateRef.current) {
|
|
|
forceUpdate({});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
(0, _react.useEffect)(function () {
|
|
|
return function () {
|
|
|
lastPromiseRef.current = null;
|
|
|
};
|
|
|
}, []);
|
|
|
return [stateRef.current, setFrameState];
|
|
|
}
|
|
|
/** Lock frame, when frame pass reset the lock. */
|
|
|
|
|
|
|
|
|
function useTimeoutLock(defaultState) {
|
|
|
var frameRef = (0, _react.useRef)(defaultState || null);
|
|
|
var timeoutRef = (0, _react.useRef)();
|
|
|
|
|
|
function cleanUp() {
|
|
|
window.clearTimeout(timeoutRef.current);
|
|
|
}
|
|
|
|
|
|
function setState(newState) {
|
|
|
frameRef.current = newState;
|
|
|
cleanUp();
|
|
|
timeoutRef.current = window.setTimeout(function () {
|
|
|
frameRef.current = null;
|
|
|
timeoutRef.current = undefined;
|
|
|
}, 100);
|
|
|
}
|
|
|
|
|
|
function getState() {
|
|
|
return frameRef.current;
|
|
|
}
|
|
|
|
|
|
(0, _react.useEffect)(function () {
|
|
|
return cleanUp;
|
|
|
}, []);
|
|
|
return [setState, getState];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/hooks/useSticky.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/hooks/useSticky.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = useSticky;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _canUseDom = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Dom/canUseDom */ "./node_modules/rc-util/lib/Dom/canUseDom.js"));
|
|
|
|
|
|
// fix ssr render
|
|
|
var defaultContainer = (0, _canUseDom.default)() ? window : null;
|
|
|
/** Sticky header hooks */
|
|
|
|
|
|
function useSticky(sticky, prefixCls) {
|
|
|
var _ref = (0, _typeof2.default)(sticky) === 'object' ? sticky : {},
|
|
|
_ref$offsetHeader = _ref.offsetHeader,
|
|
|
offsetHeader = _ref$offsetHeader === void 0 ? 0 : _ref$offsetHeader,
|
|
|
_ref$offsetScroll = _ref.offsetScroll,
|
|
|
offsetScroll = _ref$offsetScroll === void 0 ? 0 : _ref$offsetScroll,
|
|
|
_ref$getContainer = _ref.getContainer,
|
|
|
getContainer = _ref$getContainer === void 0 ? function () {
|
|
|
return defaultContainer;
|
|
|
} : _ref$getContainer;
|
|
|
|
|
|
var container = getContainer() || defaultContainer;
|
|
|
return React.useMemo(function () {
|
|
|
var isSticky = !!sticky;
|
|
|
return {
|
|
|
isSticky: isSticky,
|
|
|
stickyClassName: isSticky ? "".concat(prefixCls, "-sticky-header") : '',
|
|
|
offsetHeader: offsetHeader,
|
|
|
offsetScroll: offsetScroll,
|
|
|
container: container
|
|
|
};
|
|
|
}, [offsetScroll, offsetHeader, prefixCls, container]);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/hooks/useStickyOffsets.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/hooks/useStickyOffsets.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
|
/**
|
|
|
* Get sticky column offset width
|
|
|
*/
|
|
|
function useStickyOffsets(colWidths, columnCount, direction) {
|
|
|
var stickyOffsets = (0, _react.useMemo)(function () {
|
|
|
var leftOffsets = [];
|
|
|
var rightOffsets = [];
|
|
|
var left = 0;
|
|
|
var right = 0;
|
|
|
|
|
|
for (var start = 0; start < columnCount; start += 1) {
|
|
|
if (direction === 'rtl') {
|
|
|
// Left offset
|
|
|
rightOffsets[start] = right;
|
|
|
right += colWidths[start] || 0; // Right offset
|
|
|
|
|
|
var end = columnCount - start - 1;
|
|
|
leftOffsets[end] = left;
|
|
|
left += colWidths[end] || 0;
|
|
|
} else {
|
|
|
// Left offset
|
|
|
leftOffsets[start] = left;
|
|
|
left += colWidths[start] || 0; // Right offset
|
|
|
|
|
|
var _end = columnCount - start - 1;
|
|
|
|
|
|
rightOffsets[_end] = right;
|
|
|
right += colWidths[_end] || 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
left: leftOffsets,
|
|
|
right: rightOffsets
|
|
|
};
|
|
|
}, [colWidths, columnCount, direction]);
|
|
|
return stickyOffsets;
|
|
|
}
|
|
|
|
|
|
var _default = useStickyOffsets;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/stickyScrollBar.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/stickyScrollBar.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _addEventListener = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Dom/addEventListener */ "./node_modules/rc-util/lib/Dom/addEventListener.js"));
|
|
|
|
|
|
var _getScrollBarSize = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/getScrollBarSize */ "./node_modules/rc-util/lib/getScrollBarSize.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _css = __webpack_require__(/*! rc-util/lib/Dom/css */ "./node_modules/rc-util/lib/Dom/css.js");
|
|
|
|
|
|
var _TableContext = _interopRequireDefault(__webpack_require__(/*! ./context/TableContext */ "./node_modules/rc-table/lib/context/TableContext.js"));
|
|
|
|
|
|
var _useFrame = __webpack_require__(/*! ./hooks/useFrame */ "./node_modules/rc-table/lib/hooks/useFrame.js");
|
|
|
|
|
|
var StickyScrollBar = function StickyScrollBar(_ref, ref) {
|
|
|
var _scrollBodyRef$curren, _scrollBodyRef$curren2;
|
|
|
|
|
|
var scrollBodyRef = _ref.scrollBodyRef,
|
|
|
onScroll = _ref.onScroll,
|
|
|
offsetScroll = _ref.offsetScroll,
|
|
|
container = _ref.container;
|
|
|
|
|
|
var _React$useContext = React.useContext(_TableContext.default),
|
|
|
prefixCls = _React$useContext.prefixCls;
|
|
|
|
|
|
var bodyScrollWidth = ((_scrollBodyRef$curren = scrollBodyRef.current) === null || _scrollBodyRef$curren === void 0 ? void 0 : _scrollBodyRef$curren.scrollWidth) || 0;
|
|
|
var bodyWidth = ((_scrollBodyRef$curren2 = scrollBodyRef.current) === null || _scrollBodyRef$curren2 === void 0 ? void 0 : _scrollBodyRef$curren2.clientWidth) || 0;
|
|
|
var scrollBarWidth = bodyScrollWidth && bodyWidth * (bodyWidth / bodyScrollWidth);
|
|
|
var scrollBarRef = React.useRef();
|
|
|
|
|
|
var _useLayoutState = (0, _useFrame.useLayoutState)({
|
|
|
scrollLeft: 0,
|
|
|
isHiddenScrollBar: false
|
|
|
}),
|
|
|
_useLayoutState2 = (0, _slicedToArray2.default)(_useLayoutState, 2),
|
|
|
scrollState = _useLayoutState2[0],
|
|
|
setScrollState = _useLayoutState2[1];
|
|
|
|
|
|
var refState = React.useRef({
|
|
|
delta: 0,
|
|
|
x: 0
|
|
|
});
|
|
|
|
|
|
var _React$useState = React.useState(false),
|
|
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
|
isActive = _React$useState2[0],
|
|
|
setActive = _React$useState2[1];
|
|
|
|
|
|
var onMouseUp = function onMouseUp() {
|
|
|
setActive(false);
|
|
|
};
|
|
|
|
|
|
var onMouseDown = function onMouseDown(event) {
|
|
|
event.persist();
|
|
|
refState.current.delta = event.pageX - scrollState.scrollLeft;
|
|
|
refState.current.x = 0;
|
|
|
setActive(true);
|
|
|
event.preventDefault();
|
|
|
};
|
|
|
|
|
|
var onMouseMove = function onMouseMove(event) {
|
|
|
var _window;
|
|
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
|
|
|
var _ref2 = event || ((_window = window) === null || _window === void 0 ? void 0 : _window.event),
|
|
|
buttons = _ref2.buttons;
|
|
|
|
|
|
if (!isActive || buttons === 0) {
|
|
|
// If out body mouse up, we can set isActive false when mouse move
|
|
|
if (isActive) {
|
|
|
setActive(false);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var left = refState.current.x + event.pageX - refState.current.x - refState.current.delta;
|
|
|
|
|
|
if (left <= 0) {
|
|
|
left = 0;
|
|
|
}
|
|
|
|
|
|
if (left + scrollBarWidth >= bodyWidth) {
|
|
|
left = bodyWidth - scrollBarWidth;
|
|
|
}
|
|
|
|
|
|
onScroll({
|
|
|
scrollLeft: left / bodyWidth * (bodyScrollWidth + 2)
|
|
|
});
|
|
|
refState.current.x = event.pageX;
|
|
|
};
|
|
|
|
|
|
var onContainerScroll = function onContainerScroll() {
|
|
|
var tableOffsetTop = (0, _css.getOffset)(scrollBodyRef.current).top;
|
|
|
var tableBottomOffset = tableOffsetTop + scrollBodyRef.current.offsetHeight;
|
|
|
var currentClientOffset = container === window ? document.documentElement.scrollTop + window.innerHeight : (0, _css.getOffset)(container).top + container.clientHeight;
|
|
|
|
|
|
if (tableBottomOffset - (0, _getScrollBarSize.default)() <= currentClientOffset || tableOffsetTop >= currentClientOffset - offsetScroll) {
|
|
|
setScrollState(function (state) {
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
|
isHiddenScrollBar: true
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
setScrollState(function (state) {
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
|
isHiddenScrollBar: false
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var setScrollLeft = function setScrollLeft(left) {
|
|
|
setScrollState(function (state) {
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
|
scrollLeft: left / bodyScrollWidth * bodyWidth || 0
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
|
|
React.useImperativeHandle(ref, function () {
|
|
|
return {
|
|
|
setScrollLeft: setScrollLeft
|
|
|
};
|
|
|
});
|
|
|
React.useEffect(function () {
|
|
|
var onMouseUpListener = (0, _addEventListener.default)(document.body, 'mouseup', onMouseUp, false);
|
|
|
var onMouseMoveListener = (0, _addEventListener.default)(document.body, 'mousemove', onMouseMove, false);
|
|
|
onContainerScroll();
|
|
|
return function () {
|
|
|
onMouseUpListener.remove();
|
|
|
onMouseMoveListener.remove();
|
|
|
};
|
|
|
}, [scrollBarWidth, isActive]);
|
|
|
React.useEffect(function () {
|
|
|
var onScrollListener = (0, _addEventListener.default)(container, 'scroll', onContainerScroll, false);
|
|
|
var onResizeListener = (0, _addEventListener.default)(window, 'resize', onContainerScroll, false);
|
|
|
return function () {
|
|
|
onScrollListener.remove();
|
|
|
onResizeListener.remove();
|
|
|
};
|
|
|
}, [container]);
|
|
|
React.useEffect(function () {
|
|
|
if (!scrollState.isHiddenScrollBar) {
|
|
|
setScrollState(function (state) {
|
|
|
var bodyNode = scrollBodyRef.current;
|
|
|
|
|
|
if (!bodyNode) {
|
|
|
return state;
|
|
|
}
|
|
|
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
|
scrollLeft: bodyNode.scrollLeft / bodyNode.scrollWidth * bodyNode.clientWidth
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}, [scrollState.isHiddenScrollBar]);
|
|
|
|
|
|
if (bodyScrollWidth <= bodyWidth || !scrollBarWidth || scrollState.isHiddenScrollBar) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("div", {
|
|
|
style: {
|
|
|
height: (0, _getScrollBarSize.default)(),
|
|
|
width: bodyWidth,
|
|
|
bottom: offsetScroll
|
|
|
},
|
|
|
className: "".concat(prefixCls, "-sticky-scroll")
|
|
|
}, /*#__PURE__*/React.createElement("div", {
|
|
|
onMouseDown: onMouseDown,
|
|
|
ref: scrollBarRef,
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-sticky-scroll-bar"), (0, _defineProperty2.default)({}, "".concat(prefixCls, "-sticky-scroll-bar-active"), isActive)),
|
|
|
style: {
|
|
|
width: "".concat(scrollBarWidth, "px"),
|
|
|
transform: "translate3d(".concat(scrollState.scrollLeft, "px, 0, 0)")
|
|
|
}
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
var _default = /*#__PURE__*/React.forwardRef(StickyScrollBar);
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/sugar/Column.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/sugar/Column.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/**
|
|
|
* This is a syntactic sugar for `columns` prop.
|
|
|
* So HOC will not work on this.
|
|
|
*/
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
function Column(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var _default = Column;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/sugar/ColumnGroup.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/sugar/ColumnGroup.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
/**
|
|
|
* This is a syntactic sugar for `columns` prop.
|
|
|
* So HOC will not work on this.
|
|
|
*/
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
function ColumnGroup(_) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var _default = ColumnGroup;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/utils/expandUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/utils/expandUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.renderExpandIcon = renderExpandIcon;
|
|
|
exports.findAllChildrenKeys = findAllChildrenKeys;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
function renderExpandIcon(_ref) {
|
|
|
var _classNames;
|
|
|
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
record = _ref.record,
|
|
|
onExpand = _ref.onExpand,
|
|
|
expanded = _ref.expanded,
|
|
|
expandable = _ref.expandable;
|
|
|
var expandClassName = "".concat(prefixCls, "-row-expand-icon");
|
|
|
|
|
|
if (!expandable) {
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)(expandClassName, "".concat(prefixCls, "-row-spaced"))
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var onClick = function onClick(event) {
|
|
|
onExpand(record, event);
|
|
|
event.stopPropagation();
|
|
|
};
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)(expandClassName, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-row-expanded"), expanded), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-row-collapsed"), !expanded), _classNames)),
|
|
|
onClick: onClick
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function findAllChildrenKeys(data, getRowKey, childrenColumnName) {
|
|
|
var keys = [];
|
|
|
|
|
|
function dig(list) {
|
|
|
(list || []).forEach(function (item, index) {
|
|
|
keys.push(getRowKey(item, index));
|
|
|
dig(item[childrenColumnName]);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(data);
|
|
|
return keys;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/utils/fixUtil.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/utils/fixUtil.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getCellFixedInfo = getCellFixedInfo;
|
|
|
|
|
|
function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets, direction) {
|
|
|
var startColumn = columns[colStart] || {};
|
|
|
var endColumn = columns[colEnd] || {};
|
|
|
var fixLeft;
|
|
|
var fixRight;
|
|
|
|
|
|
if (startColumn.fixed === 'left') {
|
|
|
fixLeft = stickyOffsets.left[colStart];
|
|
|
} else if (endColumn.fixed === 'right') {
|
|
|
fixRight = stickyOffsets.right[colEnd];
|
|
|
}
|
|
|
|
|
|
var lastFixLeft = false;
|
|
|
var firstFixRight = false;
|
|
|
var lastFixRight = false;
|
|
|
var firstFixLeft = false;
|
|
|
var nextColumn = columns[colEnd + 1];
|
|
|
var prevColumn = columns[colStart - 1];
|
|
|
|
|
|
if (direction === 'rtl') {
|
|
|
if (fixLeft !== undefined) {
|
|
|
var prevFixLeft = prevColumn && prevColumn.fixed === 'left';
|
|
|
firstFixLeft = !prevFixLeft;
|
|
|
} else if (fixRight !== undefined) {
|
|
|
var nextFixRight = nextColumn && nextColumn.fixed === 'right';
|
|
|
lastFixRight = !nextFixRight;
|
|
|
}
|
|
|
} else if (fixLeft !== undefined) {
|
|
|
var nextFixLeft = nextColumn && nextColumn.fixed === 'left';
|
|
|
lastFixLeft = !nextFixLeft;
|
|
|
} else if (fixRight !== undefined) {
|
|
|
var prevFixRight = prevColumn && prevColumn.fixed === 'right';
|
|
|
firstFixRight = !prevFixRight;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
fixLeft: fixLeft,
|
|
|
fixRight: fixRight,
|
|
|
lastFixLeft: lastFixLeft,
|
|
|
firstFixRight: firstFixRight,
|
|
|
lastFixRight: lastFixRight,
|
|
|
firstFixLeft: firstFixLeft,
|
|
|
isSticky: stickyOffsets.isSticky
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/utils/legacyUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/utils/legacyUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getExpandableProps = getExpandableProps;
|
|
|
exports.getDataAndAriaProps = getDataAndAriaProps;
|
|
|
exports.INTERNAL_COL_DEFINE = void 0;
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
|
|
|
exports.INTERNAL_COL_DEFINE = INTERNAL_COL_DEFINE;
|
|
|
|
|
|
function getExpandableProps(props) {
|
|
|
var expandable = props.expandable,
|
|
|
legacyExpandableConfig = (0, _objectWithoutProperties2.default)(props, ["expandable"]);
|
|
|
|
|
|
if ('expandable' in props) {
|
|
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, legacyExpandableConfig), expandable);
|
|
|
}
|
|
|
|
|
|
if ( true && ['indentSize', 'expandedRowKeys', 'defaultExpandedRowKeys', 'defaultExpandAllRows', 'expandedRowRender', 'expandRowByClick', 'expandIcon', 'onExpand', 'onExpandedRowsChange', 'expandedRowClassName', 'expandIconColumnIndex'].some(function (prop) {
|
|
|
return prop in props;
|
|
|
})) {
|
|
|
(0, _warning.default)(false, 'expanded related props have been moved into `expandable`.');
|
|
|
}
|
|
|
|
|
|
return legacyExpandableConfig;
|
|
|
}
|
|
|
/**
|
|
|
* Returns only data- and aria- key/value pairs
|
|
|
* @param {object} props
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getDataAndAriaProps(props) {
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
return Object.keys(props).reduce(function (memo, key) {
|
|
|
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {
|
|
|
memo[key] = props[key];
|
|
|
}
|
|
|
|
|
|
return memo;
|
|
|
}, {});
|
|
|
/* eslint-enable */
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-table/lib/utils/valueUtil.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/lib/utils/valueUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getPathValue = getPathValue;
|
|
|
exports.getColumnsKey = getColumnsKey;
|
|
|
exports.mergeObject = mergeObject;
|
|
|
exports.validateValue = validateValue;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var INTERNAL_KEY_PREFIX = 'RC_TABLE_KEY';
|
|
|
|
|
|
function toArray(arr) {
|
|
|
if (arr === undefined || arr === null) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
return Array.isArray(arr) ? arr : [arr];
|
|
|
}
|
|
|
|
|
|
function getPathValue(record, path) {
|
|
|
// Skip if path is empty
|
|
|
if (!path && typeof path !== 'number') {
|
|
|
return record;
|
|
|
}
|
|
|
|
|
|
var pathList = toArray(path);
|
|
|
var current = record;
|
|
|
|
|
|
for (var i = 0; i < pathList.length; i += 1) {
|
|
|
if (!current) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var prop = pathList[i];
|
|
|
current = current[prop];
|
|
|
}
|
|
|
|
|
|
return current;
|
|
|
}
|
|
|
|
|
|
function getColumnsKey(columns) {
|
|
|
var columnKeys = [];
|
|
|
var keys = {};
|
|
|
columns.forEach(function (column) {
|
|
|
var _ref = column || {},
|
|
|
key = _ref.key,
|
|
|
dataIndex = _ref.dataIndex;
|
|
|
|
|
|
var mergedKey = key || toArray(dataIndex).join('-') || INTERNAL_KEY_PREFIX;
|
|
|
|
|
|
while (keys[mergedKey]) {
|
|
|
mergedKey = "".concat(mergedKey, "_next");
|
|
|
}
|
|
|
|
|
|
keys[mergedKey] = true;
|
|
|
columnKeys.push(mergedKey);
|
|
|
});
|
|
|
return columnKeys;
|
|
|
}
|
|
|
|
|
|
function mergeObject() {
|
|
|
var merged = {};
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
|
|
|
function fillProps(obj, clone) {
|
|
|
if (clone) {
|
|
|
Object.keys(clone).forEach(function (key) {
|
|
|
var value = clone[key];
|
|
|
|
|
|
if (value && (0, _typeof2.default)(value) === 'object') {
|
|
|
obj[key] = obj[key] || {};
|
|
|
fillProps(obj[key], value);
|
|
|
} else {
|
|
|
obj[key] = value;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
|
|
|
for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
objects[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
objects.forEach(function (clone) {
|
|
|
fillProps(merged, clone);
|
|
|
});
|
|
|
return merged;
|
|
|
}
|
|
|
|
|
|
function validateValue(val) {
|
|
|
return val !== null && val !== undefined;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tooltip/es/Content.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/Content.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
|
|
|
var Content = function Content(props) {
|
|
|
var overlay = props.overlay,
|
|
|
prefixCls = props.prefixCls,
|
|
|
id = props.id,
|
|
|
overlayInnerStyle = props.overlayInnerStyle;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-inner"),
|
|
|
id: id,
|
|
|
role: "tooltip",
|
|
|
style: overlayInnerStyle
|
|
|
}, typeof overlay === 'function' ? overlay() : overlay);
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Content);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tooltip/es/Tooltip.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/Tooltip.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-trigger */ "./node_modules/rc-trigger/es/index.js");
|
|
|
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./placements */ "./node_modules/rc-tooltip/es/placements.js");
|
|
|
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Content */ "./node_modules/rc-tooltip/es/Content.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Tooltip = function Tooltip(props, ref) {
|
|
|
var overlayClassName = props.overlayClassName,
|
|
|
_props$trigger = props.trigger,
|
|
|
trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
|
|
|
_props$mouseEnterDela = props.mouseEnterDelay,
|
|
|
mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela,
|
|
|
_props$mouseLeaveDela = props.mouseLeaveDelay,
|
|
|
mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
|
|
|
overlayStyle = props.overlayStyle,
|
|
|
_props$prefixCls = props.prefixCls,
|
|
|
prefixCls = _props$prefixCls === void 0 ? 'rc-tooltip' : _props$prefixCls,
|
|
|
children = props.children,
|
|
|
onVisibleChange = props.onVisibleChange,
|
|
|
afterVisibleChange = props.afterVisibleChange,
|
|
|
transitionName = props.transitionName,
|
|
|
animation = props.animation,
|
|
|
motion = props.motion,
|
|
|
_props$placement = props.placement,
|
|
|
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
|
|
_props$align = props.align,
|
|
|
align = _props$align === void 0 ? {} : _props$align,
|
|
|
_props$destroyTooltip = props.destroyTooltipOnHide,
|
|
|
destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip,
|
|
|
defaultVisible = props.defaultVisible,
|
|
|
getTooltipContainer = props.getTooltipContainer,
|
|
|
overlayInnerStyle = props.overlayInnerStyle,
|
|
|
restProps = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]);
|
|
|
|
|
|
var domRef = Object(react__WEBPACK_IMPORTED_MODULE_4__["useRef"])(null);
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_4__["useImperativeHandle"])(ref, function () {
|
|
|
return domRef.current;
|
|
|
});
|
|
|
|
|
|
var extraProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, restProps);
|
|
|
|
|
|
if ('visible' in props) {
|
|
|
extraProps.popupVisible = props.visible;
|
|
|
}
|
|
|
|
|
|
var getPopupElement = function getPopupElement() {
|
|
|
var _props$arrowContent = props.arrowContent,
|
|
|
arrowContent = _props$arrowContent === void 0 ? null : _props$arrowContent,
|
|
|
overlay = props.overlay,
|
|
|
id = props.id;
|
|
|
return [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-arrow"),
|
|
|
key: "arrow"
|
|
|
}, arrowContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Content__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
key: "content",
|
|
|
prefixCls: prefixCls,
|
|
|
id: id,
|
|
|
overlay: overlay,
|
|
|
overlayInnerStyle: overlayInnerStyle
|
|
|
})];
|
|
|
};
|
|
|
|
|
|
var destroyTooltip = false;
|
|
|
var autoDestroy = false;
|
|
|
|
|
|
if (typeof destroyTooltipOnHide === 'boolean') {
|
|
|
destroyTooltip = destroyTooltipOnHide;
|
|
|
} else if (destroyTooltipOnHide && Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(destroyTooltipOnHide) === 'object') {
|
|
|
var keepParent = destroyTooltipOnHide.keepParent;
|
|
|
destroyTooltip = keepParent === true;
|
|
|
autoDestroy = keepParent === false;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](rc_trigger__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
popupClassName: overlayClassName,
|
|
|
prefixCls: prefixCls,
|
|
|
popup: getPopupElement,
|
|
|
action: trigger,
|
|
|
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_6__["placements"],
|
|
|
popupPlacement: placement,
|
|
|
ref: domRef,
|
|
|
popupAlign: align,
|
|
|
getPopupContainer: getTooltipContainer,
|
|
|
onPopupVisibleChange: onVisibleChange,
|
|
|
afterPopupVisibleChange: afterVisibleChange,
|
|
|
popupTransitionName: transitionName,
|
|
|
popupAnimation: animation,
|
|
|
popupMotion: motion,
|
|
|
defaultPopupVisible: defaultVisible,
|
|
|
destroyPopupOnHide: destroyTooltip,
|
|
|
autoDestroy: autoDestroy,
|
|
|
mouseLeaveDelay: mouseLeaveDelay,
|
|
|
popupStyle: overlayStyle,
|
|
|
mouseEnterDelay: mouseEnterDelay
|
|
|
}, extraProps), children);
|
|
|
};
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(Tooltip));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tooltip/es/index.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/index.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./node_modules/rc-tooltip/es/Tooltip.js");
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tooltip/es/placements.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/es/placements.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: placements, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
|
|
|
var autoAdjustOverflow = {
|
|
|
adjustX: 1,
|
|
|
adjustY: 1
|
|
|
};
|
|
|
var targetOffset = [0, 0];
|
|
|
var placements = {
|
|
|
left: {
|
|
|
points: ['cr', 'cl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
right: {
|
|
|
points: ['cl', 'cr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
top: {
|
|
|
points: ['bc', 'tc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottom: {
|
|
|
points: ['tc', 'bc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
leftTop: {
|
|
|
points: ['tr', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topRight: {
|
|
|
points: ['br', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
rightTop: {
|
|
|
points: ['tl', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomRight: {
|
|
|
points: ['tr', 'br'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
rightBottom: {
|
|
|
points: ['bl', 'br'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
leftBottom: {
|
|
|
points: ['br', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (placements);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tooltip/lib/placements.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-tooltip/lib/placements.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = exports.placements = void 0;
|
|
|
var autoAdjustOverflow = {
|
|
|
adjustX: 1,
|
|
|
adjustY: 1
|
|
|
};
|
|
|
var targetOffset = [0, 0];
|
|
|
var placements = {
|
|
|
left: {
|
|
|
points: ['cr', 'cl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
right: {
|
|
|
points: ['cl', 'cr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
top: {
|
|
|
points: ['bc', 'tc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottom: {
|
|
|
points: ['tc', 'bc'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topLeft: {
|
|
|
points: ['bl', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
leftTop: {
|
|
|
points: ['tr', 'tl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
topRight: {
|
|
|
points: ['br', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, -4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
rightTop: {
|
|
|
points: ['tl', 'tr'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomRight: {
|
|
|
points: ['tr', 'br'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
rightBottom: {
|
|
|
points: ['bl', 'br'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
bottomLeft: {
|
|
|
points: ['tl', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [0, 4],
|
|
|
targetOffset: targetOffset
|
|
|
},
|
|
|
leftBottom: {
|
|
|
points: ['br', 'bl'],
|
|
|
overflow: autoAdjustOverflow,
|
|
|
offset: [-4, 0],
|
|
|
targetOffset: targetOffset
|
|
|
}
|
|
|
};
|
|
|
exports.placements = placements;
|
|
|
var _default = placements;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/Indent.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/Indent.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var Indent = function Indent(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
level = _ref.level,
|
|
|
isStart = _ref.isStart,
|
|
|
isEnd = _ref.isEnd;
|
|
|
var baseClassName = "".concat(prefixCls, "-indent-unit");
|
|
|
var list = [];
|
|
|
|
|
|
for (var i = 0; i < level; i += 1) {
|
|
|
var _classNames;
|
|
|
|
|
|
list.push( /*#__PURE__*/React.createElement("span", {
|
|
|
key: i,
|
|
|
className: (0, _classnames.default)(baseClassName, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(baseClassName, "-start"), isStart[i]), (0, _defineProperty2.default)(_classNames, "".concat(baseClassName, "-end"), isEnd[i]), _classNames))
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
"aria-hidden": "true",
|
|
|
className: "".concat(prefixCls, "-indent")
|
|
|
}, list);
|
|
|
};
|
|
|
|
|
|
var _default = Indent;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/TreeNode.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/TreeNode.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = exports.InternalTreeNode = void 0;
|
|
|
|
|
|
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/extends.js"));
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
|
|
|
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
|
|
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "./node_modules/@babel/runtime/helpers/inherits.js"));
|
|
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createSuper */ "./node_modules/@babel/runtime/helpers/createSuper.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"));
|
|
|
|
|
|
var _contextTypes = __webpack_require__(/*! ./contextTypes */ "./node_modules/rc-tree/lib/contextTypes.js");
|
|
|
|
|
|
var _util = __webpack_require__(/*! ./util */ "./node_modules/rc-tree/lib/util.js");
|
|
|
|
|
|
var _Indent = _interopRequireDefault(__webpack_require__(/*! ./Indent */ "./node_modules/rc-tree/lib/Indent.js"));
|
|
|
|
|
|
var _treeUtil = __webpack_require__(/*! ./utils/treeUtil */ "./node_modules/rc-tree/lib/utils/treeUtil.js");
|
|
|
|
|
|
// @ts-ignore
|
|
|
var ICON_OPEN = 'open';
|
|
|
var ICON_CLOSE = 'close';
|
|
|
var defaultTitle = '---';
|
|
|
|
|
|
var InternalTreeNode = /*#__PURE__*/function (_React$Component) {
|
|
|
(0, _inherits2.default)(InternalTreeNode, _React$Component);
|
|
|
|
|
|
var _super = (0, _createSuper2.default)(InternalTreeNode);
|
|
|
|
|
|
function InternalTreeNode() {
|
|
|
var _this;
|
|
|
|
|
|
(0, _classCallCheck2.default)(this, InternalTreeNode);
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.state = {
|
|
|
dragNodeHighlight: false
|
|
|
};
|
|
|
|
|
|
_this.onSelectorClick = function (e) {
|
|
|
// Click trigger before select/check operation
|
|
|
var onNodeClick = _this.props.context.onNodeClick;
|
|
|
onNodeClick(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
|
|
|
if (_this.isSelectable()) {
|
|
|
_this.onSelect(e);
|
|
|
} else {
|
|
|
_this.onCheck(e);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onSelectorDoubleClick = function (e) {
|
|
|
var onNodeDoubleClick = _this.props.context.onNodeDoubleClick;
|
|
|
onNodeDoubleClick(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
};
|
|
|
|
|
|
_this.onSelect = function (e) {
|
|
|
if (_this.isDisabled()) return;
|
|
|
var onNodeSelect = _this.props.context.onNodeSelect;
|
|
|
e.preventDefault();
|
|
|
onNodeSelect(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
};
|
|
|
|
|
|
_this.onCheck = function (e) {
|
|
|
if (_this.isDisabled()) return;
|
|
|
var _this$props = _this.props,
|
|
|
disableCheckbox = _this$props.disableCheckbox,
|
|
|
checked = _this$props.checked;
|
|
|
var onNodeCheck = _this.props.context.onNodeCheck;
|
|
|
if (!_this.isCheckable() || disableCheckbox) return;
|
|
|
e.preventDefault();
|
|
|
var targetChecked = !checked;
|
|
|
onNodeCheck(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props), targetChecked);
|
|
|
};
|
|
|
|
|
|
_this.onMouseEnter = function (e) {
|
|
|
var onNodeMouseEnter = _this.props.context.onNodeMouseEnter;
|
|
|
onNodeMouseEnter(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
};
|
|
|
|
|
|
_this.onMouseLeave = function (e) {
|
|
|
var onNodeMouseLeave = _this.props.context.onNodeMouseLeave;
|
|
|
onNodeMouseLeave(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
};
|
|
|
|
|
|
_this.onContextMenu = function (e) {
|
|
|
var onNodeContextMenu = _this.props.context.onNodeContextMenu;
|
|
|
onNodeContextMenu(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
};
|
|
|
|
|
|
_this.onDragStart = function (e) {
|
|
|
var onNodeDragStart = _this.props.context.onNodeDragStart;
|
|
|
e.stopPropagation();
|
|
|
|
|
|
_this.setState({
|
|
|
dragNodeHighlight: true
|
|
|
});
|
|
|
|
|
|
onNodeDragStart(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
|
|
|
try {
|
|
|
// ie throw error
|
|
|
// firefox-need-it
|
|
|
e.dataTransfer.setData('text/plain', '');
|
|
|
} catch (error) {// empty
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onDragEnter = function (e) {
|
|
|
var onNodeDragEnter = _this.props.context.onNodeDragEnter;
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
onNodeDragEnter(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
};
|
|
|
|
|
|
_this.onDragOver = function (e) {
|
|
|
var onNodeDragOver = _this.props.context.onNodeDragOver;
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
onNodeDragOver(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
};
|
|
|
|
|
|
_this.onDragLeave = function (e) {
|
|
|
var onNodeDragLeave = _this.props.context.onNodeDragLeave;
|
|
|
e.stopPropagation();
|
|
|
onNodeDragLeave(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
};
|
|
|
|
|
|
_this.onDragEnd = function (e) {
|
|
|
var onNodeDragEnd = _this.props.context.onNodeDragEnd;
|
|
|
e.stopPropagation();
|
|
|
|
|
|
_this.setState({
|
|
|
dragNodeHighlight: false
|
|
|
});
|
|
|
|
|
|
onNodeDragEnd(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
};
|
|
|
|
|
|
_this.onDrop = function (e) {
|
|
|
var onNodeDrop = _this.props.context.onNodeDrop;
|
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
|
|
|
|
_this.setState({
|
|
|
dragNodeHighlight: false
|
|
|
});
|
|
|
|
|
|
onNodeDrop(e, (0, _assertThisInitialized2.default)(_this));
|
|
|
}; // Disabled item still can be switch
|
|
|
|
|
|
|
|
|
_this.onExpand = function (e) {
|
|
|
var _this$props2 = _this.props,
|
|
|
loading = _this$props2.loading,
|
|
|
onNodeExpand = _this$props2.context.onNodeExpand;
|
|
|
if (loading) return;
|
|
|
onNodeExpand(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
}; // Drag usage
|
|
|
|
|
|
|
|
|
_this.setSelectHandle = function (node) {
|
|
|
_this.selectHandle = node;
|
|
|
};
|
|
|
|
|
|
_this.getNodeState = function () {
|
|
|
var expanded = _this.props.expanded;
|
|
|
|
|
|
if (_this.isLeaf()) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return expanded ? ICON_OPEN : ICON_CLOSE;
|
|
|
};
|
|
|
|
|
|
_this.hasChildren = function () {
|
|
|
var eventKey = _this.props.eventKey;
|
|
|
var keyEntities = _this.props.context.keyEntities;
|
|
|
|
|
|
var _ref = keyEntities[eventKey] || {},
|
|
|
children = _ref.children;
|
|
|
|
|
|
return !!(children || []).length;
|
|
|
};
|
|
|
|
|
|
_this.isLeaf = function () {
|
|
|
var _this$props3 = _this.props,
|
|
|
isLeaf = _this$props3.isLeaf,
|
|
|
loaded = _this$props3.loaded;
|
|
|
var loadData = _this.props.context.loadData;
|
|
|
|
|
|
var hasChildren = _this.hasChildren();
|
|
|
|
|
|
if (isLeaf === false) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren;
|
|
|
};
|
|
|
|
|
|
_this.isDisabled = function () {
|
|
|
var disabled = _this.props.disabled;
|
|
|
var treeDisabled = _this.props.context.disabled;
|
|
|
return !!(treeDisabled || disabled);
|
|
|
};
|
|
|
|
|
|
_this.isCheckable = function () {
|
|
|
var checkable = _this.props.checkable;
|
|
|
var treeCheckable = _this.props.context.checkable; // Return false if tree or treeNode is not checkable
|
|
|
|
|
|
if (!treeCheckable || checkable === false) return false;
|
|
|
return treeCheckable;
|
|
|
}; // Load data to avoid default expanded tree without data
|
|
|
|
|
|
|
|
|
_this.syncLoadData = function (props) {
|
|
|
var expanded = props.expanded,
|
|
|
loading = props.loading,
|
|
|
loaded = props.loaded;
|
|
|
var _this$props$context = _this.props.context,
|
|
|
loadData = _this$props$context.loadData,
|
|
|
onNodeLoad = _this$props$context.onNodeLoad;
|
|
|
if (loading) return; // read from state to avoid loadData at same time
|
|
|
|
|
|
if (loadData && expanded && !_this.isLeaf()) {
|
|
|
// We needn't reload data when has children in sync logic
|
|
|
// It's only needed in node expanded
|
|
|
if (!_this.hasChildren() && !loaded) {
|
|
|
onNodeLoad((0, _treeUtil.convertNodePropsToEventData)(_this.props));
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.renderSwitcherIconDom = function (isLeaf) {
|
|
|
var switcherIconFromProps = _this.props.switcherIcon;
|
|
|
var switcherIconFromCtx = _this.props.context.switcherIcon;
|
|
|
var switcherIcon = switcherIconFromProps || switcherIconFromCtx; // if switcherIconDom is null, no render switcher span
|
|
|
|
|
|
if (typeof switcherIcon === 'function') {
|
|
|
return switcherIcon((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _this.props), {}, {
|
|
|
isLeaf: isLeaf
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return switcherIcon;
|
|
|
}; // Switcher
|
|
|
|
|
|
|
|
|
_this.renderSwitcher = function () {
|
|
|
var expanded = _this.props.expanded;
|
|
|
var prefixCls = _this.props.context.prefixCls;
|
|
|
|
|
|
if (_this.isLeaf()) {
|
|
|
// if switcherIconDom is null, no render switcher span
|
|
|
var _switcherIconDom = _this.renderSwitcherIconDom(true);
|
|
|
|
|
|
return _switcherIconDom !== false ? /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher-noop"))
|
|
|
}, _switcherIconDom) : null;
|
|
|
}
|
|
|
|
|
|
var switcherCls = (0, _classnames.default)("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher_").concat(expanded ? ICON_OPEN : ICON_CLOSE));
|
|
|
|
|
|
var switcherIconDom = _this.renderSwitcherIconDom(false);
|
|
|
|
|
|
return switcherIconDom !== false ? /*#__PURE__*/React.createElement("span", {
|
|
|
onClick: _this.onExpand,
|
|
|
className: switcherCls
|
|
|
}, switcherIconDom) : null;
|
|
|
}; // Checkbox
|
|
|
|
|
|
|
|
|
_this.renderCheckbox = function () {
|
|
|
var _this$props4 = _this.props,
|
|
|
checked = _this$props4.checked,
|
|
|
halfChecked = _this$props4.halfChecked,
|
|
|
disableCheckbox = _this$props4.disableCheckbox;
|
|
|
var prefixCls = _this.props.context.prefixCls;
|
|
|
|
|
|
var disabled = _this.isDisabled();
|
|
|
|
|
|
var checkable = _this.isCheckable();
|
|
|
|
|
|
if (!checkable) return null; // [Legacy] Custom element should be separate with `checkable` in future
|
|
|
|
|
|
var $custom = typeof checkable !== 'boolean' ? checkable : null;
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-checkbox"), checked && "".concat(prefixCls, "-checkbox-checked"), !checked && halfChecked && "".concat(prefixCls, "-checkbox-indeterminate"), (disabled || disableCheckbox) && "".concat(prefixCls, "-checkbox-disabled")),
|
|
|
onClick: _this.onCheck
|
|
|
}, $custom);
|
|
|
};
|
|
|
|
|
|
_this.renderIcon = function () {
|
|
|
var loading = _this.props.loading;
|
|
|
var prefixCls = _this.props.context.prefixCls;
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__").concat(_this.getNodeState() || 'docu'), loading && "".concat(prefixCls, "-icon_loading"))
|
|
|
});
|
|
|
}; // Icon + Title
|
|
|
|
|
|
|
|
|
_this.renderSelector = function () {
|
|
|
var dragNodeHighlight = _this.state.dragNodeHighlight;
|
|
|
var _this$props5 = _this.props,
|
|
|
title = _this$props5.title,
|
|
|
selected = _this$props5.selected,
|
|
|
icon = _this$props5.icon,
|
|
|
loading = _this$props5.loading,
|
|
|
data = _this$props5.data;
|
|
|
var _this$props$context2 = _this.props.context,
|
|
|
prefixCls = _this$props$context2.prefixCls,
|
|
|
showIcon = _this$props$context2.showIcon,
|
|
|
treeIcon = _this$props$context2.icon,
|
|
|
draggable = _this$props$context2.draggable,
|
|
|
loadData = _this$props$context2.loadData,
|
|
|
titleRender = _this$props$context2.titleRender;
|
|
|
|
|
|
var disabled = _this.isDisabled();
|
|
|
|
|
|
var mergedDraggable = typeof draggable === 'function' ? draggable(data) : draggable;
|
|
|
var wrapClass = "".concat(prefixCls, "-node-content-wrapper"); // Icon - Still show loading icon when loading without showIcon
|
|
|
|
|
|
var $icon;
|
|
|
|
|
|
if (showIcon) {
|
|
|
var currentIcon = icon || treeIcon;
|
|
|
$icon = currentIcon ? /*#__PURE__*/React.createElement("span", {
|
|
|
className: (0, _classnames.default)("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__customize"))
|
|
|
}, typeof currentIcon === 'function' ? currentIcon(_this.props) : currentIcon) : _this.renderIcon();
|
|
|
} else if (loadData && loading) {
|
|
|
$icon = _this.renderIcon();
|
|
|
} // Title
|
|
|
|
|
|
|
|
|
var titleNode;
|
|
|
|
|
|
if (typeof title === 'function') {
|
|
|
titleNode = title(data);
|
|
|
} else if (titleRender) {
|
|
|
titleNode = titleRender(data);
|
|
|
} else {
|
|
|
titleNode = title;
|
|
|
}
|
|
|
|
|
|
var $title = /*#__PURE__*/React.createElement("span", {
|
|
|
className: "".concat(prefixCls, "-title")
|
|
|
}, titleNode);
|
|
|
return /*#__PURE__*/React.createElement("span", {
|
|
|
ref: _this.setSelectHandle,
|
|
|
title: typeof title === 'string' ? title : '',
|
|
|
className: (0, _classnames.default)("".concat(wrapClass), "".concat(wrapClass, "-").concat(_this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && "".concat(prefixCls, "-node-selected"), !disabled && mergedDraggable && 'draggable'),
|
|
|
draggable: !disabled && mergedDraggable || undefined,
|
|
|
"aria-grabbed": !disabled && mergedDraggable || undefined,
|
|
|
onMouseEnter: _this.onMouseEnter,
|
|
|
onMouseLeave: _this.onMouseLeave,
|
|
|
onContextMenu: _this.onContextMenu,
|
|
|
onClick: _this.onSelectorClick,
|
|
|
onDoubleClick: _this.onSelectorDoubleClick,
|
|
|
onDragStart: mergedDraggable ? _this.onDragStart : undefined
|
|
|
}, $icon, $title, _this.renderDropIndicator());
|
|
|
};
|
|
|
|
|
|
_this.renderDropIndicator = function () {
|
|
|
var _this$props6 = _this.props,
|
|
|
disabled = _this$props6.disabled,
|
|
|
eventKey = _this$props6.eventKey;
|
|
|
var _this$props$context3 = _this.props.context,
|
|
|
draggable = _this$props$context3.draggable,
|
|
|
dropLevelOffset = _this$props$context3.dropLevelOffset,
|
|
|
dropPosition = _this$props$context3.dropPosition,
|
|
|
prefixCls = _this$props$context3.prefixCls,
|
|
|
indent = _this$props$context3.indent,
|
|
|
dropIndicatorRender = _this$props$context3.dropIndicatorRender,
|
|
|
dragOverNodeKey = _this$props$context3.dragOverNodeKey,
|
|
|
direction = _this$props$context3.direction;
|
|
|
var mergedDraggable = draggable !== false; // allowDrop is calculated in Tree.tsx, there is no need for calc it here
|
|
|
|
|
|
var showIndicator = !disabled && mergedDraggable && dragOverNodeKey === eventKey;
|
|
|
return showIndicator ? dropIndicatorRender({
|
|
|
dropPosition: dropPosition,
|
|
|
dropLevelOffset: dropLevelOffset,
|
|
|
indent: indent,
|
|
|
prefixCls: prefixCls,
|
|
|
direction: direction
|
|
|
}) : null;
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
} // Isomorphic needn't load data in server side
|
|
|
|
|
|
|
|
|
(0, _createClass2.default)(InternalTreeNode, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.syncLoadData(this.props);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
this.syncLoadData(this.props);
|
|
|
}
|
|
|
}, {
|
|
|
key: "isSelectable",
|
|
|
value: function isSelectable() {
|
|
|
var selectable = this.props.selectable;
|
|
|
var treeSelectable = this.props.context.selectable; // Ignore when selectable is undefined or null
|
|
|
|
|
|
if (typeof selectable === 'boolean') {
|
|
|
return selectable;
|
|
|
}
|
|
|
|
|
|
return treeSelectable;
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var _classNames;
|
|
|
|
|
|
var _this$props7 = this.props,
|
|
|
eventKey = _this$props7.eventKey,
|
|
|
className = _this$props7.className,
|
|
|
style = _this$props7.style,
|
|
|
dragOver = _this$props7.dragOver,
|
|
|
dragOverGapTop = _this$props7.dragOverGapTop,
|
|
|
dragOverGapBottom = _this$props7.dragOverGapBottom,
|
|
|
isLeaf = _this$props7.isLeaf,
|
|
|
isStart = _this$props7.isStart,
|
|
|
isEnd = _this$props7.isEnd,
|
|
|
expanded = _this$props7.expanded,
|
|
|
selected = _this$props7.selected,
|
|
|
checked = _this$props7.checked,
|
|
|
halfChecked = _this$props7.halfChecked,
|
|
|
loading = _this$props7.loading,
|
|
|
domRef = _this$props7.domRef,
|
|
|
active = _this$props7.active,
|
|
|
data = _this$props7.data,
|
|
|
onMouseMove = _this$props7.onMouseMove,
|
|
|
otherProps = (0, _objectWithoutProperties2.default)(_this$props7, ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"]);
|
|
|
var _this$props$context4 = this.props.context,
|
|
|
prefixCls = _this$props$context4.prefixCls,
|
|
|
filterTreeNode = _this$props$context4.filterTreeNode,
|
|
|
draggable = _this$props$context4.draggable,
|
|
|
keyEntities = _this$props$context4.keyEntities,
|
|
|
dropContainerKey = _this$props$context4.dropContainerKey,
|
|
|
dropTargetKey = _this$props$context4.dropTargetKey;
|
|
|
var disabled = this.isDisabled();
|
|
|
var dataOrAriaAttributeProps = (0, _util.getDataAndAria)(otherProps);
|
|
|
|
|
|
var _ref2 = keyEntities[eventKey] || {},
|
|
|
level = _ref2.level;
|
|
|
|
|
|
var isEndNode = isEnd[isEnd.length - 1];
|
|
|
var mergedDraggable = typeof draggable === 'function' ? draggable(data) : draggable;
|
|
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
|
ref: domRef,
|
|
|
className: (0, _classnames.default)(className, "".concat(prefixCls, "-treenode"), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-active"), active), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), (0, _defineProperty2.default)(_classNames, 'drop-target', dropTargetKey === eventKey), (0, _defineProperty2.default)(_classNames, 'drop-container', dropContainerKey === eventKey), (0, _defineProperty2.default)(_classNames, 'drag-over', !disabled && dragOver), (0, _defineProperty2.default)(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), (0, _defineProperty2.default)(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), (0, _defineProperty2.default)(_classNames, 'filter-node', filterTreeNode && filterTreeNode((0, _treeUtil.convertNodePropsToEventData)(this.props))), _classNames)),
|
|
|
style: style,
|
|
|
onDragEnter: mergedDraggable ? this.onDragEnter : undefined,
|
|
|
onDragOver: mergedDraggable ? this.onDragOver : undefined,
|
|
|
onDragLeave: mergedDraggable ? this.onDragLeave : undefined,
|
|
|
onDrop: mergedDraggable ? this.onDrop : undefined,
|
|
|
onDragEnd: mergedDraggable ? this.onDragEnd : undefined,
|
|
|
onMouseMove: onMouseMove
|
|
|
}, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement(_Indent.default, {
|
|
|
prefixCls: prefixCls,
|
|
|
level: level,
|
|
|
isStart: isStart,
|
|
|
isEnd: isEnd
|
|
|
}), this.renderSwitcher(), this.renderCheckbox(), this.renderSelector());
|
|
|
}
|
|
|
}]);
|
|
|
return InternalTreeNode;
|
|
|
}(React.Component);
|
|
|
|
|
|
exports.InternalTreeNode = InternalTreeNode;
|
|
|
|
|
|
var ContextTreeNode = function ContextTreeNode(props) {
|
|
|
return /*#__PURE__*/React.createElement(_contextTypes.TreeContext.Consumer, null, function (context) {
|
|
|
return /*#__PURE__*/React.createElement(InternalTreeNode, (0, _extends2.default)({}, props, {
|
|
|
context: context
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
ContextTreeNode.displayName = 'TreeNode';
|
|
|
ContextTreeNode.defaultProps = {
|
|
|
title: defaultTitle
|
|
|
};
|
|
|
ContextTreeNode.isTreeNode = 1;
|
|
|
var _default = ContextTreeNode;
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/contextTypes.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/contextTypes.js ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.TreeContext = void 0;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
/**
|
|
|
* Webpack has bug for import loop, which is not the same behavior as ES module.
|
|
|
* When util.js imports the TreeNode for tree generate will cause treeContextTypes be empty.
|
|
|
*/
|
|
|
var TreeContext = /*#__PURE__*/React.createContext(null);
|
|
|
exports.TreeContext = TreeContext;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/util.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/util.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.arrDel = arrDel;
|
|
|
exports.arrAdd = arrAdd;
|
|
|
exports.posToArr = posToArr;
|
|
|
exports.getPosition = getPosition;
|
|
|
exports.isTreeNode = isTreeNode;
|
|
|
exports.getDragChildrenKeys = getDragChildrenKeys;
|
|
|
exports.isLastChild = isLastChild;
|
|
|
exports.isFirstChild = isFirstChild;
|
|
|
exports.calcDropPosition = calcDropPosition;
|
|
|
exports.calcSelectedKeys = calcSelectedKeys;
|
|
|
exports.convertDataToTree = convertDataToTree;
|
|
|
exports.parseCheckedKeys = parseCheckedKeys;
|
|
|
exports.conductExpandParent = conductExpandParent;
|
|
|
exports.getDataAndAria = getDataAndAria;
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _TreeNode = _interopRequireDefault(__webpack_require__(/*! ./TreeNode */ "./node_modules/rc-tree/lib/TreeNode.js"));
|
|
|
|
|
|
/* eslint-disable no-lonely-if */
|
|
|
|
|
|
/**
|
|
|
* Legacy code. Should avoid to use if you are new to import these code.
|
|
|
*/
|
|
|
function arrDel(list, value) {
|
|
|
var clone = list.slice();
|
|
|
var index = clone.indexOf(value);
|
|
|
|
|
|
if (index >= 0) {
|
|
|
clone.splice(index, 1);
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
function arrAdd(list, value) {
|
|
|
var clone = list.slice();
|
|
|
|
|
|
if (clone.indexOf(value) === -1) {
|
|
|
clone.push(value);
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
function posToArr(pos) {
|
|
|
return pos.split('-');
|
|
|
}
|
|
|
|
|
|
function getPosition(level, index) {
|
|
|
return "".concat(level, "-").concat(index);
|
|
|
}
|
|
|
|
|
|
function isTreeNode(node) {
|
|
|
return node && node.type && node.type.isTreeNode;
|
|
|
}
|
|
|
|
|
|
function getDragChildrenKeys(dragNodeKey, keyEntities) {
|
|
|
// not contains self
|
|
|
// self for left or right drag
|
|
|
var dragChildrenKeys = [];
|
|
|
var entity = keyEntities[dragNodeKey];
|
|
|
|
|
|
function dig() {
|
|
|
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
list.forEach(function (_ref) {
|
|
|
var key = _ref.key,
|
|
|
children = _ref.children;
|
|
|
dragChildrenKeys.push(key);
|
|
|
dig(children);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(entity.children);
|
|
|
return dragChildrenKeys;
|
|
|
}
|
|
|
|
|
|
function isLastChild(treeNodeEntity) {
|
|
|
if (treeNodeEntity.parent) {
|
|
|
var posArr = posToArr(treeNodeEntity.pos);
|
|
|
return Number(posArr[posArr.length - 1]) === treeNodeEntity.parent.children.length - 1;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function isFirstChild(treeNodeEntity) {
|
|
|
var posArr = posToArr(treeNodeEntity.pos);
|
|
|
return Number(posArr[posArr.length - 1]) === 0;
|
|
|
} // Only used when drag, not affect SSR.
|
|
|
|
|
|
|
|
|
function calcDropPosition(event, dragNode, targetNode, indent, startMousePosition, allowDrop, flattenedNodes, keyEntities, expandKeys, direction) {
|
|
|
var _abstractDropNodeEnti;
|
|
|
|
|
|
var clientX = event.clientX,
|
|
|
clientY = event.clientY;
|
|
|
|
|
|
var _event$target$getBoun = event.target.getBoundingClientRect(),
|
|
|
top = _event$target$getBoun.top,
|
|
|
height = _event$target$getBoun.height; // optional chain for testing
|
|
|
|
|
|
|
|
|
var horizontalMouseOffset = (direction === 'rtl' ? -1 : 1) * (((startMousePosition === null || startMousePosition === void 0 ? void 0 : startMousePosition.x) || 0) - clientX);
|
|
|
var rawDropLevelOffset = (horizontalMouseOffset - 12) / indent; // find abstract drop node by horizontal offset
|
|
|
|
|
|
var abstractDropNodeEntity = keyEntities[targetNode.props.eventKey];
|
|
|
|
|
|
if (clientY < top + height / 2) {
|
|
|
// first half, set abstract drop node to previous node
|
|
|
var nodeIndex = flattenedNodes.findIndex(function (flattenedNode) {
|
|
|
return flattenedNode.data.key === abstractDropNodeEntity.key;
|
|
|
});
|
|
|
var prevNodeIndex = nodeIndex <= 0 ? 0 : nodeIndex - 1;
|
|
|
var prevNodeKey = flattenedNodes[prevNodeIndex].data.key;
|
|
|
abstractDropNodeEntity = keyEntities[prevNodeKey];
|
|
|
}
|
|
|
|
|
|
var initialAbstractDropNodeKey = abstractDropNodeEntity.key;
|
|
|
var abstractDragOverEntity = abstractDropNodeEntity;
|
|
|
var dragOverNodeKey = abstractDropNodeEntity.key;
|
|
|
var dropPosition = 0;
|
|
|
var dropLevelOffset = 0; // Only allow cross level drop when dragging on a non-expanded node
|
|
|
|
|
|
if (!expandKeys.includes(initialAbstractDropNodeKey)) {
|
|
|
for (var i = 0; i < rawDropLevelOffset; i += 1) {
|
|
|
if (isLastChild(abstractDropNodeEntity)) {
|
|
|
abstractDropNodeEntity = abstractDropNodeEntity.parent;
|
|
|
dropLevelOffset += 1;
|
|
|
} else {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var abstractDropDataNode = abstractDropNodeEntity.node;
|
|
|
var dropAllowed = true;
|
|
|
|
|
|
if (isFirstChild(abstractDropNodeEntity) && abstractDropNodeEntity.level === 0 && clientY < top + height / 2 && allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: -1
|
|
|
}) && abstractDropNodeEntity.key === targetNode.props.eventKey) {
|
|
|
// first half of first node in first level
|
|
|
dropPosition = -1;
|
|
|
} else if ((abstractDragOverEntity.children || []).length && expandKeys.includes(dragOverNodeKey)) {
|
|
|
// drop on expanded node
|
|
|
// only allow drop inside
|
|
|
if (allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: 0
|
|
|
})) {
|
|
|
dropPosition = 0;
|
|
|
} else {
|
|
|
dropAllowed = false;
|
|
|
}
|
|
|
} else if (dropLevelOffset === 0) {
|
|
|
if (rawDropLevelOffset > -1.5) {
|
|
|
// | Node | <- abstractDropNode
|
|
|
// | -^-===== | <- mousePosition
|
|
|
// 1. try drop after
|
|
|
// 2. do not allow drop
|
|
|
if (allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: 1
|
|
|
})) {
|
|
|
dropPosition = 1;
|
|
|
} else {
|
|
|
dropAllowed = false;
|
|
|
}
|
|
|
} else {
|
|
|
// | Node | <- abstractDropNode
|
|
|
// | ---==^== | <- mousePosition
|
|
|
// whether it has children or doesn't has children
|
|
|
// always
|
|
|
// 1. try drop inside
|
|
|
// 2. try drop after
|
|
|
// 3. do not allow drop
|
|
|
if (allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: 0
|
|
|
})) {
|
|
|
dropPosition = 0;
|
|
|
} else if (allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: 1
|
|
|
})) {
|
|
|
dropPosition = 1;
|
|
|
} else {
|
|
|
dropAllowed = false;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// | Node1 | <- abstractDropNode
|
|
|
// | Node2 |
|
|
|
// --^--|----=====| <- mousePosition
|
|
|
// 1. try insert after Node1
|
|
|
// 2. do not allow drop
|
|
|
if (allowDrop({
|
|
|
dropNode: abstractDropDataNode,
|
|
|
dropPosition: 1
|
|
|
})) {
|
|
|
dropPosition = 1;
|
|
|
} else {
|
|
|
dropAllowed = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
dropPosition: dropPosition,
|
|
|
dropLevelOffset: dropLevelOffset,
|
|
|
dropTargetKey: abstractDropNodeEntity.key,
|
|
|
dropTargetPos: abstractDropNodeEntity.pos,
|
|
|
dragOverNodeKey: dragOverNodeKey,
|
|
|
dropContainerKey: dropPosition === 0 ? null : ((_abstractDropNodeEnti = abstractDropNodeEntity.parent) === null || _abstractDropNodeEnti === void 0 ? void 0 : _abstractDropNodeEnti.key) || null,
|
|
|
dropAllowed: dropAllowed
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* Return selectedKeys according with multiple prop
|
|
|
* @param selectedKeys
|
|
|
* @param props
|
|
|
* @returns [string]
|
|
|
*/
|
|
|
|
|
|
|
|
|
function calcSelectedKeys(selectedKeys, props) {
|
|
|
if (!selectedKeys) return undefined;
|
|
|
var multiple = props.multiple;
|
|
|
|
|
|
if (multiple) {
|
|
|
return selectedKeys.slice();
|
|
|
}
|
|
|
|
|
|
if (selectedKeys.length) {
|
|
|
return [selectedKeys[0]];
|
|
|
}
|
|
|
|
|
|
return selectedKeys;
|
|
|
}
|
|
|
|
|
|
var internalProcessProps = function internalProcessProps(props) {
|
|
|
return props;
|
|
|
};
|
|
|
|
|
|
function convertDataToTree(treeData, processor) {
|
|
|
if (!treeData) return [];
|
|
|
|
|
|
var _ref2 = processor || {},
|
|
|
_ref2$processProps = _ref2.processProps,
|
|
|
processProps = _ref2$processProps === void 0 ? internalProcessProps : _ref2$processProps;
|
|
|
|
|
|
var list = Array.isArray(treeData) ? treeData : [treeData];
|
|
|
return list.map(function (_ref3) {
|
|
|
var children = _ref3.children,
|
|
|
props = (0, _objectWithoutProperties2.default)(_ref3, ["children"]);
|
|
|
var childrenNodes = convertDataToTree(children, processor);
|
|
|
return /*#__PURE__*/_react.default.createElement(_TreeNode.default, processProps(props), childrenNodes);
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
|
|
|
*/
|
|
|
|
|
|
|
|
|
function parseCheckedKeys(keys) {
|
|
|
if (!keys) {
|
|
|
return null;
|
|
|
} // Convert keys to object format
|
|
|
|
|
|
|
|
|
var keyProps;
|
|
|
|
|
|
if (Array.isArray(keys)) {
|
|
|
// [Legacy] Follow the api doc
|
|
|
keyProps = {
|
|
|
checkedKeys: keys,
|
|
|
halfCheckedKeys: undefined
|
|
|
};
|
|
|
} else if ((0, _typeof2.default)(keys) === 'object') {
|
|
|
keyProps = {
|
|
|
checkedKeys: keys.checked || undefined,
|
|
|
halfCheckedKeys: keys.halfChecked || undefined
|
|
|
};
|
|
|
} else {
|
|
|
(0, _warning.default)(false, '`checkedKeys` is not an array or an object');
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return keyProps;
|
|
|
}
|
|
|
/**
|
|
|
* If user use `autoExpandParent` we should get the list of parent node
|
|
|
* @param keyList
|
|
|
* @param keyEntities
|
|
|
*/
|
|
|
|
|
|
|
|
|
function conductExpandParent(keyList, keyEntities) {
|
|
|
var expandedKeys = new Set();
|
|
|
|
|
|
function conductUp(key) {
|
|
|
if (expandedKeys.has(key)) return;
|
|
|
var entity = keyEntities[key];
|
|
|
if (!entity) return;
|
|
|
expandedKeys.add(key);
|
|
|
var parent = entity.parent,
|
|
|
node = entity.node;
|
|
|
if (node.disabled) return;
|
|
|
|
|
|
if (parent) {
|
|
|
conductUp(parent.key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
(keyList || []).forEach(function (key) {
|
|
|
conductUp(key);
|
|
|
});
|
|
|
return (0, _toConsumableArray2.default)(expandedKeys);
|
|
|
}
|
|
|
/**
|
|
|
* Returns only the data- and aria- key/value pairs
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getDataAndAria(props) {
|
|
|
var omitProps = {};
|
|
|
Object.keys(props).forEach(function (key) {
|
|
|
if (key.startsWith('data-') || key.startsWith('aria-')) {
|
|
|
omitProps[key] = props[key];
|
|
|
}
|
|
|
});
|
|
|
return omitProps;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/utils/conductUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/utils/conductUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.isCheckDisabled = isCheckDisabled;
|
|
|
exports.conductCheck = conductCheck;
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
function removeFromCheckedKeys(halfCheckedKeys, checkedKeys) {
|
|
|
var filteredKeys = new Set();
|
|
|
halfCheckedKeys.forEach(function (key) {
|
|
|
if (!checkedKeys.has(key)) {
|
|
|
filteredKeys.add(key);
|
|
|
}
|
|
|
});
|
|
|
return filteredKeys;
|
|
|
}
|
|
|
|
|
|
function isCheckDisabled(node) {
|
|
|
var _ref = node || {},
|
|
|
disabled = _ref.disabled,
|
|
|
disableCheckbox = _ref.disableCheckbox,
|
|
|
checkable = _ref.checkable;
|
|
|
|
|
|
return !!(disabled || disableCheckbox) || checkable === false;
|
|
|
} // Fill miss keys
|
|
|
|
|
|
|
|
|
function fillConductCheck(keys, levelEntities, maxLevel, syntheticGetCheckDisabled) {
|
|
|
var checkedKeys = new Set(keys);
|
|
|
var halfCheckedKeys = new Set(); // Add checked keys top to bottom
|
|
|
|
|
|
for (var level = 0; level <= maxLevel; level += 1) {
|
|
|
var entities = levelEntities.get(level) || new Set();
|
|
|
entities.forEach(function (entity) {
|
|
|
var key = entity.key,
|
|
|
node = entity.node,
|
|
|
_entity$children = entity.children,
|
|
|
children = _entity$children === void 0 ? [] : _entity$children;
|
|
|
|
|
|
if (checkedKeys.has(key) && !syntheticGetCheckDisabled(node)) {
|
|
|
children.filter(function (childEntity) {
|
|
|
return !syntheticGetCheckDisabled(childEntity.node);
|
|
|
}).forEach(function (childEntity) {
|
|
|
checkedKeys.add(childEntity.key);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
} // Add checked keys from bottom to top
|
|
|
|
|
|
|
|
|
var visitedKeys = new Set();
|
|
|
|
|
|
for (var _level = maxLevel; _level >= 0; _level -= 1) {
|
|
|
var _entities = levelEntities.get(_level) || new Set();
|
|
|
|
|
|
_entities.forEach(function (entity) {
|
|
|
var parent = entity.parent,
|
|
|
node = entity.node; // Skip if no need to check
|
|
|
|
|
|
if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
|
|
|
return;
|
|
|
} // Skip if parent is disabled
|
|
|
|
|
|
|
|
|
if (syntheticGetCheckDisabled(entity.parent.node)) {
|
|
|
visitedKeys.add(parent.key);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var allChecked = true;
|
|
|
var partialChecked = false;
|
|
|
(parent.children || []).filter(function (childEntity) {
|
|
|
return !syntheticGetCheckDisabled(childEntity.node);
|
|
|
}).forEach(function (_ref2) {
|
|
|
var key = _ref2.key;
|
|
|
var checked = checkedKeys.has(key);
|
|
|
|
|
|
if (allChecked && !checked) {
|
|
|
allChecked = false;
|
|
|
}
|
|
|
|
|
|
if (!partialChecked && (checked || halfCheckedKeys.has(key))) {
|
|
|
partialChecked = true;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (allChecked) {
|
|
|
checkedKeys.add(parent.key);
|
|
|
}
|
|
|
|
|
|
if (partialChecked) {
|
|
|
halfCheckedKeys.add(parent.key);
|
|
|
}
|
|
|
|
|
|
visitedKeys.add(parent.key);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
checkedKeys: Array.from(checkedKeys),
|
|
|
halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
|
|
|
};
|
|
|
} // Remove useless key
|
|
|
|
|
|
|
|
|
function cleanConductCheck(keys, halfKeys, levelEntities, maxLevel, syntheticGetCheckDisabled) {
|
|
|
var checkedKeys = new Set(keys);
|
|
|
var halfCheckedKeys = new Set(halfKeys); // Remove checked keys from top to bottom
|
|
|
|
|
|
for (var level = 0; level <= maxLevel; level += 1) {
|
|
|
var entities = levelEntities.get(level) || new Set();
|
|
|
entities.forEach(function (entity) {
|
|
|
var key = entity.key,
|
|
|
node = entity.node,
|
|
|
_entity$children2 = entity.children,
|
|
|
children = _entity$children2 === void 0 ? [] : _entity$children2;
|
|
|
|
|
|
if (!checkedKeys.has(key) && !halfCheckedKeys.has(key) && !syntheticGetCheckDisabled(node)) {
|
|
|
children.filter(function (childEntity) {
|
|
|
return !syntheticGetCheckDisabled(childEntity.node);
|
|
|
}).forEach(function (childEntity) {
|
|
|
checkedKeys.delete(childEntity.key);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
} // Remove checked keys form bottom to top
|
|
|
|
|
|
|
|
|
halfCheckedKeys = new Set();
|
|
|
var visitedKeys = new Set();
|
|
|
|
|
|
for (var _level2 = maxLevel; _level2 >= 0; _level2 -= 1) {
|
|
|
var _entities2 = levelEntities.get(_level2) || new Set();
|
|
|
|
|
|
_entities2.forEach(function (entity) {
|
|
|
var parent = entity.parent,
|
|
|
node = entity.node; // Skip if no need to check
|
|
|
|
|
|
if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
|
|
|
return;
|
|
|
} // Skip if parent is disabled
|
|
|
|
|
|
|
|
|
if (syntheticGetCheckDisabled(entity.parent.node)) {
|
|
|
visitedKeys.add(parent.key);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var allChecked = true;
|
|
|
var partialChecked = false;
|
|
|
(parent.children || []).filter(function (childEntity) {
|
|
|
return !syntheticGetCheckDisabled(childEntity.node);
|
|
|
}).forEach(function (_ref3) {
|
|
|
var key = _ref3.key;
|
|
|
var checked = checkedKeys.has(key);
|
|
|
|
|
|
if (allChecked && !checked) {
|
|
|
allChecked = false;
|
|
|
}
|
|
|
|
|
|
if (!partialChecked && (checked || halfCheckedKeys.has(key))) {
|
|
|
partialChecked = true;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (!allChecked) {
|
|
|
checkedKeys.delete(parent.key);
|
|
|
}
|
|
|
|
|
|
if (partialChecked) {
|
|
|
halfCheckedKeys.add(parent.key);
|
|
|
}
|
|
|
|
|
|
visitedKeys.add(parent.key);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
checkedKeys: Array.from(checkedKeys),
|
|
|
halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* Conduct with keys.
|
|
|
* @param keyList current key list
|
|
|
* @param keyEntities key - dataEntity map
|
|
|
* @param mode `fill` to fill missing key, `clean` to remove useless key
|
|
|
*/
|
|
|
|
|
|
|
|
|
function conductCheck(keyList, checked, keyEntities, getCheckDisabled) {
|
|
|
var warningMissKeys = [];
|
|
|
var syntheticGetCheckDisabled;
|
|
|
|
|
|
if (getCheckDisabled) {
|
|
|
syntheticGetCheckDisabled = getCheckDisabled;
|
|
|
} else {
|
|
|
syntheticGetCheckDisabled = isCheckDisabled;
|
|
|
} // We only handle exist keys
|
|
|
|
|
|
|
|
|
var keys = new Set(keyList.filter(function (key) {
|
|
|
var hasEntity = !!keyEntities[key];
|
|
|
|
|
|
if (!hasEntity) {
|
|
|
warningMissKeys.push(key);
|
|
|
}
|
|
|
|
|
|
return hasEntity;
|
|
|
}));
|
|
|
var levelEntities = new Map();
|
|
|
var maxLevel = 0; // Convert entities by level for calculation
|
|
|
|
|
|
Object.keys(keyEntities).forEach(function (key) {
|
|
|
var entity = keyEntities[key];
|
|
|
var level = entity.level;
|
|
|
var levelSet = levelEntities.get(level);
|
|
|
|
|
|
if (!levelSet) {
|
|
|
levelSet = new Set();
|
|
|
levelEntities.set(level, levelSet);
|
|
|
}
|
|
|
|
|
|
levelSet.add(entity);
|
|
|
maxLevel = Math.max(maxLevel, level);
|
|
|
});
|
|
|
(0, _warning.default)(!warningMissKeys.length, "Tree missing follow keys: ".concat(warningMissKeys.slice(0, 100).map(function (key) {
|
|
|
return "'".concat(key, "'");
|
|
|
}).join(', ')));
|
|
|
var result;
|
|
|
|
|
|
if (checked === true) {
|
|
|
result = fillConductCheck(keys, levelEntities, maxLevel, syntheticGetCheckDisabled);
|
|
|
} else {
|
|
|
result = cleanConductCheck(keys, checked.halfCheckedKeys, levelEntities, maxLevel, syntheticGetCheckDisabled);
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-tree/lib/utils/treeUtil.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/lib/utils/treeUtil.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.getKey = getKey;
|
|
|
exports.warningWithoutKey = warningWithoutKey;
|
|
|
exports.convertTreeToData = convertTreeToData;
|
|
|
exports.flattenTreeData = flattenTreeData;
|
|
|
exports.traverseDataNodes = traverseDataNodes;
|
|
|
exports.convertDataToEntities = convertDataToEntities;
|
|
|
exports.getTreeNodeProps = getTreeNodeProps;
|
|
|
exports.convertNodePropsToEventData = convertNodePropsToEventData;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/toConsumableArray.js"));
|
|
|
|
|
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectSpread2 */ "./node_modules/@babel/runtime/helpers/objectSpread2.js"));
|
|
|
|
|
|
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"));
|
|
|
|
|
|
var _toArray = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js"));
|
|
|
|
|
|
var _warning = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/warning */ "./node_modules/rc-util/lib/warning.js"));
|
|
|
|
|
|
var _util = __webpack_require__(/*! ../util */ "./node_modules/rc-tree/lib/util.js");
|
|
|
|
|
|
function getKey(key, pos) {
|
|
|
if (key !== null && key !== undefined) {
|
|
|
return key;
|
|
|
}
|
|
|
|
|
|
return pos;
|
|
|
}
|
|
|
/**
|
|
|
* Warning if TreeNode do not provides key
|
|
|
*/
|
|
|
|
|
|
|
|
|
function warningWithoutKey() {
|
|
|
var treeData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
var keys = new Map();
|
|
|
|
|
|
function dig(list) {
|
|
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
|
(list || []).forEach(function (treeNode) {
|
|
|
var key = treeNode.key,
|
|
|
children = treeNode.children;
|
|
|
(0, _warning.default)(key !== null && key !== undefined, "Tree node must have a certain key: [".concat(path).concat(key, "]"));
|
|
|
var recordKey = String(key);
|
|
|
(0, _warning.default)(!keys.has(recordKey) || key === null || key === undefined, "Same 'key' exist in the Tree: ".concat(recordKey));
|
|
|
keys.set(recordKey, true);
|
|
|
dig(children, "".concat(path).concat(recordKey, " > "));
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(treeData);
|
|
|
}
|
|
|
/**
|
|
|
* Convert `children` of Tree into `treeData` structure.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function convertTreeToData(rootNodes) {
|
|
|
function dig(node) {
|
|
|
var treeNodes = (0, _toArray.default)(node);
|
|
|
return treeNodes.map(function (treeNode) {
|
|
|
// Filter invalidate node
|
|
|
if (!(0, _util.isTreeNode)(treeNode)) {
|
|
|
(0, _warning.default)(!treeNode, 'Tree/TreeNode can only accept TreeNode as children.');
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var key = treeNode.key;
|
|
|
var _treeNode$props = treeNode.props,
|
|
|
children = _treeNode$props.children,
|
|
|
rest = (0, _objectWithoutProperties2.default)(_treeNode$props, ["children"]);
|
|
|
var dataNode = (0, _objectSpread2.default)({
|
|
|
key: key
|
|
|
}, rest);
|
|
|
var parsedChildren = dig(children);
|
|
|
|
|
|
if (parsedChildren.length) {
|
|
|
dataNode.children = parsedChildren;
|
|
|
}
|
|
|
|
|
|
return dataNode;
|
|
|
}).filter(function (dataNode) {
|
|
|
return dataNode;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return dig(rootNodes);
|
|
|
}
|
|
|
/**
|
|
|
* Flat nest tree data into flatten list. This is used for virtual list render.
|
|
|
* @param treeNodeList Origin data node list
|
|
|
* @param expandedKeys
|
|
|
* need expanded keys, provides `true` means all expanded (used in `rc-tree-select`).
|
|
|
*/
|
|
|
|
|
|
|
|
|
function flattenTreeData() {
|
|
|
var treeNodeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
|
var expandedKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
|
var expandedKeySet = new Set(expandedKeys === true ? [] : expandedKeys);
|
|
|
var flattenList = [];
|
|
|
|
|
|
function dig(list) {
|
|
|
var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
|
return list.map(function (treeNode, index) {
|
|
|
var pos = (0, _util.getPosition)(parent ? parent.pos : '0', index);
|
|
|
var mergedKey = getKey(treeNode.key, pos); // Add FlattenDataNode into list
|
|
|
|
|
|
var flattenNode = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, treeNode), {}, {
|
|
|
parent: parent,
|
|
|
pos: pos,
|
|
|
children: null,
|
|
|
data: treeNode,
|
|
|
isStart: [].concat((0, _toConsumableArray2.default)(parent ? parent.isStart : []), [index === 0]),
|
|
|
isEnd: [].concat((0, _toConsumableArray2.default)(parent ? parent.isEnd : []), [index === list.length - 1])
|
|
|
});
|
|
|
flattenList.push(flattenNode); // Loop treeNode children
|
|
|
|
|
|
if (expandedKeys === true || expandedKeySet.has(mergedKey)) {
|
|
|
flattenNode.children = dig(treeNode.children || [], flattenNode);
|
|
|
} else {
|
|
|
flattenNode.children = [];
|
|
|
}
|
|
|
|
|
|
return flattenNode;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
dig(treeNodeList);
|
|
|
return flattenList;
|
|
|
}
|
|
|
/**
|
|
|
* Traverse all the data by `treeData`.
|
|
|
* Please not use it out of the `rc-tree` since we may refactor this code.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function traverseDataNodes(dataNodes, callback, // To avoid too many params, let use config instead of origin param
|
|
|
config) {
|
|
|
// Init config
|
|
|
var externalGetKey = null;
|
|
|
var childrenPropName;
|
|
|
var configType = (0, _typeof2.default)(config);
|
|
|
|
|
|
if (configType === 'function' || configType === 'string') {
|
|
|
// Legacy getKey param
|
|
|
externalGetKey = config;
|
|
|
} else if (config && configType === 'object') {
|
|
|
childrenPropName = config.childrenPropName;
|
|
|
externalGetKey = config.externalGetKey;
|
|
|
}
|
|
|
|
|
|
childrenPropName = childrenPropName || 'children'; // Get keys
|
|
|
|
|
|
var syntheticGetKey;
|
|
|
|
|
|
if (externalGetKey) {
|
|
|
if (typeof externalGetKey === 'string') {
|
|
|
syntheticGetKey = function syntheticGetKey(node) {
|
|
|
return node[externalGetKey];
|
|
|
};
|
|
|
} else if (typeof externalGetKey === 'function') {
|
|
|
syntheticGetKey = function syntheticGetKey(node) {
|
|
|
return externalGetKey(node);
|
|
|
};
|
|
|
}
|
|
|
} else {
|
|
|
syntheticGetKey = function syntheticGetKey(node, pos) {
|
|
|
return getKey(node.key, pos);
|
|
|
};
|
|
|
} // Process
|
|
|
|
|
|
|
|
|
function processNode(node, index, parent) {
|
|
|
var children = node ? node[childrenPropName] : dataNodes;
|
|
|
var pos = node ? (0, _util.getPosition)(parent.pos, index) : '0'; // Process node if is not root
|
|
|
|
|
|
if (node) {
|
|
|
var key = syntheticGetKey(node, pos);
|
|
|
var data = {
|
|
|
node: node,
|
|
|
index: index,
|
|
|
pos: pos,
|
|
|
key: key,
|
|
|
parentPos: parent.node ? parent.pos : null,
|
|
|
level: parent.level + 1
|
|
|
};
|
|
|
callback(data);
|
|
|
} // Process children node
|
|
|
|
|
|
|
|
|
if (children) {
|
|
|
children.forEach(function (subNode, subIndex) {
|
|
|
processNode(subNode, subIndex, {
|
|
|
node: node,
|
|
|
pos: pos,
|
|
|
level: parent ? parent.level + 1 : -1
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
processNode(null);
|
|
|
}
|
|
|
/**
|
|
|
* Convert `treeData` into entity records.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function convertDataToEntities(dataNodes) {
|
|
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
|
initWrapper = _ref.initWrapper,
|
|
|
processEntity = _ref.processEntity,
|
|
|
onProcessFinished = _ref.onProcessFinished,
|
|
|
externalGetKey = _ref.externalGetKey,
|
|
|
childrenPropName = _ref.childrenPropName;
|
|
|
|
|
|
var
|
|
|
/** @deprecated Use `config.externalGetKey` instead */
|
|
|
legacyExternalGetKey = arguments.length > 2 ? arguments[2] : undefined;
|
|
|
// Init config
|
|
|
var mergedExternalGetKey = externalGetKey || legacyExternalGetKey;
|
|
|
var posEntities = {};
|
|
|
var keyEntities = {};
|
|
|
var wrapper = {
|
|
|
posEntities: posEntities,
|
|
|
keyEntities: keyEntities
|
|
|
};
|
|
|
|
|
|
if (initWrapper) {
|
|
|
wrapper = initWrapper(wrapper) || wrapper;
|
|
|
}
|
|
|
|
|
|
traverseDataNodes(dataNodes, function (item) {
|
|
|
var node = item.node,
|
|
|
index = item.index,
|
|
|
pos = item.pos,
|
|
|
key = item.key,
|
|
|
parentPos = item.parentPos,
|
|
|
level = item.level;
|
|
|
var entity = {
|
|
|
node: node,
|
|
|
index: index,
|
|
|
key: key,
|
|
|
pos: pos,
|
|
|
level: level
|
|
|
};
|
|
|
var mergedKey = getKey(key, pos);
|
|
|
posEntities[pos] = entity;
|
|
|
keyEntities[mergedKey] = entity; // Fill children
|
|
|
|
|
|
entity.parent = posEntities[parentPos];
|
|
|
|
|
|
if (entity.parent) {
|
|
|
entity.parent.children = entity.parent.children || [];
|
|
|
entity.parent.children.push(entity);
|
|
|
}
|
|
|
|
|
|
if (processEntity) {
|
|
|
processEntity(entity, wrapper);
|
|
|
}
|
|
|
}, {
|
|
|
externalGetKey: mergedExternalGetKey,
|
|
|
childrenPropName: childrenPropName
|
|
|
});
|
|
|
|
|
|
if (onProcessFinished) {
|
|
|
onProcessFinished(wrapper);
|
|
|
}
|
|
|
|
|
|
return wrapper;
|
|
|
}
|
|
|
/**
|
|
|
* Get TreeNode props with Tree props.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getTreeNodeProps(key, _ref2) {
|
|
|
var expandedKeys = _ref2.expandedKeys,
|
|
|
selectedKeys = _ref2.selectedKeys,
|
|
|
loadedKeys = _ref2.loadedKeys,
|
|
|
loadingKeys = _ref2.loadingKeys,
|
|
|
checkedKeys = _ref2.checkedKeys,
|
|
|
halfCheckedKeys = _ref2.halfCheckedKeys,
|
|
|
dragOverNodeKey = _ref2.dragOverNodeKey,
|
|
|
dropPosition = _ref2.dropPosition,
|
|
|
keyEntities = _ref2.keyEntities;
|
|
|
var entity = keyEntities[key];
|
|
|
var treeNodeProps = {
|
|
|
eventKey: key,
|
|
|
expanded: expandedKeys.indexOf(key) !== -1,
|
|
|
selected: selectedKeys.indexOf(key) !== -1,
|
|
|
loaded: loadedKeys.indexOf(key) !== -1,
|
|
|
loading: loadingKeys.indexOf(key) !== -1,
|
|
|
checked: checkedKeys.indexOf(key) !== -1,
|
|
|
halfChecked: halfCheckedKeys.indexOf(key) !== -1,
|
|
|
pos: String(entity ? entity.pos : ''),
|
|
|
// [Legacy] Drag props
|
|
|
// Since the interaction of drag is changed, the semantic of the props are
|
|
|
// not accuracy, I think it should be finally removed
|
|
|
dragOver: dragOverNodeKey === key && dropPosition === 0,
|
|
|
dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,
|
|
|
dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1
|
|
|
};
|
|
|
return treeNodeProps;
|
|
|
}
|
|
|
|
|
|
function convertNodePropsToEventData(props) {
|
|
|
var data = props.data,
|
|
|
expanded = props.expanded,
|
|
|
selected = props.selected,
|
|
|
checked = props.checked,
|
|
|
loaded = props.loaded,
|
|
|
loading = props.loading,
|
|
|
halfChecked = props.halfChecked,
|
|
|
dragOver = props.dragOver,
|
|
|
dragOverGapTop = props.dragOverGapTop,
|
|
|
dragOverGapBottom = props.dragOverGapBottom,
|
|
|
pos = props.pos,
|
|
|
active = props.active;
|
|
|
var eventData = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
|
expanded: expanded,
|
|
|
selected: selected,
|
|
|
checked: checked,
|
|
|
loaded: loaded,
|
|
|
loading: loading,
|
|
|
halfChecked: halfChecked,
|
|
|
dragOver: dragOver,
|
|
|
dragOverGapTop: dragOverGapTop,
|
|
|
dragOverGapBottom: dragOverGapBottom,
|
|
|
pos: pos,
|
|
|
active: active
|
|
|
});
|
|
|
|
|
|
if (!('props' in eventData)) {
|
|
|
Object.defineProperty(eventData, 'props', {
|
|
|
get: function get() {
|
|
|
(0, _warning.default)(false, 'Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`.');
|
|
|
return props;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return eventData;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/Mask.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/Mask.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mask; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/legacyUtil */ "./node_modules/rc-trigger/es/utils/legacyUtil.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Mask(props) {
|
|
|
var prefixCls = props.prefixCls,
|
|
|
visible = props.visible,
|
|
|
zIndex = props.zIndex,
|
|
|
mask = props.mask,
|
|
|
maskMotion = props.maskMotion,
|
|
|
maskAnimation = props.maskAnimation,
|
|
|
maskTransitionName = props.maskTransitionName;
|
|
|
|
|
|
if (!mask) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var motion = {};
|
|
|
|
|
|
if (maskMotion || maskTransitionName || maskAnimation) {
|
|
|
motion = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
motionAppear: true
|
|
|
}, Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_5__["getMotion"])({
|
|
|
motion: maskMotion,
|
|
|
prefixCls: prefixCls,
|
|
|
transitionName: maskTransitionName,
|
|
|
animation: maskAnimation
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_4__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, motion, {
|
|
|
visible: visible,
|
|
|
removeOnLeave: true
|
|
|
}), function (_ref) {
|
|
|
var className = _ref.className;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
|
style: {
|
|
|
zIndex: zIndex
|
|
|
},
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()("".concat(prefixCls, "-mask"), className)
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/MobilePopupInner.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/MobilePopupInner.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MobilePopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function (props, ref) {
|
|
|
var prefixCls = props.prefixCls,
|
|
|
visible = props.visible,
|
|
|
zIndex = props.zIndex,
|
|
|
children = props.children,
|
|
|
_props$mobile = props.mobile;
|
|
|
_props$mobile = _props$mobile === void 0 ? {} : _props$mobile;
|
|
|
var popupClassName = _props$mobile.popupClassName,
|
|
|
popupStyle = _props$mobile.popupStyle,
|
|
|
_props$mobile$popupMo = _props$mobile.popupMotion,
|
|
|
popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
|
|
|
popupRender = _props$mobile.popupRender;
|
|
|
var elementRef = react__WEBPACK_IMPORTED_MODULE_2__["useRef"](); // ========================= Refs =========================
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_2__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
forceAlign: function forceAlign() {},
|
|
|
getElement: function getElement() {
|
|
|
return elementRef.current;
|
|
|
}
|
|
|
};
|
|
|
}); // ======================== Render ========================
|
|
|
|
|
|
var mergedStyle = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
zIndex: zIndex
|
|
|
}, popupStyle);
|
|
|
|
|
|
var childNode = children; // Wrapper when multiple children
|
|
|
|
|
|
if (react__WEBPACK_IMPORTED_MODULE_2__["Children"].count(children) > 1) {
|
|
|
childNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-content")
|
|
|
}, children);
|
|
|
} // Mobile support additional render
|
|
|
|
|
|
|
|
|
if (popupRender) {
|
|
|
childNode = popupRender(childNode);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_3__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
visible: visible,
|
|
|
ref: elementRef,
|
|
|
removeOnLeave: true
|
|
|
}, popupMotion), function (_ref, motionRef) {
|
|
|
var motionClassName = _ref.className,
|
|
|
motionStyle = _ref.style;
|
|
|
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, popupClassName, motionClassName);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", {
|
|
|
ref: motionRef,
|
|
|
className: mergedClassName,
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
|
|
|
}, childNode);
|
|
|
});
|
|
|
});
|
|
|
MobilePopupInner.displayName = 'MobilePopupInner';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MobilePopupInner);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/PopupInner.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/PopupInner.js ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_align__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-align */ "./node_modules/rc-align/es/index.js");
|
|
|
/* harmony import */ var rc_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-motion */ "./node_modules/rc-motion/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
/* harmony import */ var _useVisibleStatus__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./useVisibleStatus */ "./node_modules/rc-trigger/es/Popup/useVisibleStatus.js");
|
|
|
/* harmony import */ var _utils_legacyUtil__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/legacyUtil */ "./node_modules/rc-trigger/es/utils/legacyUtil.js");
|
|
|
/* harmony import */ var _useStretchStyle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useStretchStyle */ "./node_modules/rc-trigger/es/Popup/useStretchStyle.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PopupInner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](function (props, ref) {
|
|
|
var visible = props.visible,
|
|
|
prefixCls = props.prefixCls,
|
|
|
className = props.className,
|
|
|
style = props.style,
|
|
|
children = props.children,
|
|
|
zIndex = props.zIndex,
|
|
|
stretch = props.stretch,
|
|
|
destroyPopupOnHide = props.destroyPopupOnHide,
|
|
|
forceRender = props.forceRender,
|
|
|
align = props.align,
|
|
|
point = props.point,
|
|
|
getRootDomNode = props.getRootDomNode,
|
|
|
getClassNameFromAlign = props.getClassNameFromAlign,
|
|
|
onAlign = props.onAlign,
|
|
|
onMouseEnter = props.onMouseEnter,
|
|
|
onMouseLeave = props.onMouseLeave,
|
|
|
onMouseDown = props.onMouseDown,
|
|
|
onTouchStart = props.onTouchStart;
|
|
|
var alignRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
|
|
|
var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
|
alignedClassName = _useState2[0],
|
|
|
setAlignedClassName = _useState2[1]; // ======================= Measure ========================
|
|
|
|
|
|
|
|
|
var _useStretchStyle = Object(_useStretchStyle__WEBPACK_IMPORTED_MODULE_9__["default"])(stretch),
|
|
|
_useStretchStyle2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useStretchStyle, 2),
|
|
|
stretchStyle = _useStretchStyle2[0],
|
|
|
measureStretchStyle = _useStretchStyle2[1];
|
|
|
|
|
|
function doMeasure() {
|
|
|
if (stretch) {
|
|
|
measureStretchStyle(getRootDomNode());
|
|
|
}
|
|
|
} // ======================== Status ========================
|
|
|
|
|
|
|
|
|
var _useVisibleStatus = Object(_useVisibleStatus__WEBPACK_IMPORTED_MODULE_7__["default"])(visible, doMeasure),
|
|
|
_useVisibleStatus2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useVisibleStatus, 2),
|
|
|
status = _useVisibleStatus2[0],
|
|
|
goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================
|
|
|
|
|
|
|
|
|
var prepareResolveRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(); // `target` on `rc-align` can accept as a function to get the bind element or a point.
|
|
|
// ref: https://www.npmjs.com/package/rc-align
|
|
|
|
|
|
function getAlignTarget() {
|
|
|
if (point) {
|
|
|
return point;
|
|
|
}
|
|
|
|
|
|
return getRootDomNode;
|
|
|
}
|
|
|
|
|
|
function forceAlign() {
|
|
|
var _alignRef$current;
|
|
|
|
|
|
(_alignRef$current = alignRef.current) === null || _alignRef$current === void 0 ? void 0 : _alignRef$current.forceAlign();
|
|
|
}
|
|
|
|
|
|
function onInternalAlign(popupDomNode, matchAlign) {
|
|
|
if (status === 'align') {
|
|
|
var nextAlignedClassName = getClassNameFromAlign(matchAlign);
|
|
|
setAlignedClassName(nextAlignedClassName); // Repeat until not more align needed
|
|
|
|
|
|
if (alignedClassName !== nextAlignedClassName) {
|
|
|
Promise.resolve().then(function () {
|
|
|
forceAlign();
|
|
|
});
|
|
|
} else {
|
|
|
goNextStatus(function () {
|
|
|
var _prepareResolveRef$cu;
|
|
|
|
|
|
(_prepareResolveRef$cu = prepareResolveRef.current) === null || _prepareResolveRef$cu === void 0 ? void 0 : _prepareResolveRef$cu.call(prepareResolveRef);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
onAlign === null || onAlign === void 0 ? void 0 : onAlign(popupDomNode, matchAlign);
|
|
|
}
|
|
|
} // ======================== Motion ========================
|
|
|
|
|
|
|
|
|
var motion = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(_utils_legacyUtil__WEBPACK_IMPORTED_MODULE_8__["getMotion"])(props));
|
|
|
|
|
|
['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
|
|
|
var originHandler = motion[eventName];
|
|
|
|
|
|
motion[eventName] = function (element, event) {
|
|
|
goNextStatus();
|
|
|
return originHandler === null || originHandler === void 0 ? void 0 : originHandler(element, event);
|
|
|
};
|
|
|
});
|
|
|
|
|
|
function onShowPrepare() {
|
|
|
return new Promise(function (resolve) {
|
|
|
prepareResolveRef.current = resolve;
|
|
|
});
|
|
|
} // Go to stable directly when motion not provided
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () {
|
|
|
if (!motion.motionName && status === 'motion') {
|
|
|
goNextStatus();
|
|
|
}
|
|
|
}, [motion.motionName, status]); // ========================= Refs =========================
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_3__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
forceAlign: forceAlign,
|
|
|
getElement: function getElement() {
|
|
|
return elementRef.current;
|
|
|
}
|
|
|
};
|
|
|
}); // ======================== Render ========================
|
|
|
|
|
|
var mergedStyle = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, stretchStyle), {}, {
|
|
|
zIndex: zIndex
|
|
|
}, style), {}, {
|
|
|
opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
|
|
|
pointerEvents: status === 'stable' ? undefined : 'none'
|
|
|
}); // Align status
|
|
|
|
|
|
|
|
|
var alignDisabled = true;
|
|
|
|
|
|
if ((align === null || align === void 0 ? void 0 : align.points) && (status === 'align' || status === 'stable')) {
|
|
|
alignDisabled = false;
|
|
|
}
|
|
|
|
|
|
var childNode = children; // Wrapper when multiple children
|
|
|
|
|
|
if (react__WEBPACK_IMPORTED_MODULE_3__["Children"].count(children) > 1) {
|
|
|
childNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
|
|
|
className: "".concat(prefixCls, "-content")
|
|
|
}, children);
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_motion__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
|
|
|
visible: visible,
|
|
|
ref: elementRef,
|
|
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
|
}, motion, {
|
|
|
onAppearPrepare: onShowPrepare,
|
|
|
onEnterPrepare: onShowPrepare,
|
|
|
removeOnLeave: destroyPopupOnHide,
|
|
|
forceRender: forceRender
|
|
|
}), function (_ref, motionRef) {
|
|
|
var motionClassName = _ref.className,
|
|
|
motionStyle = _ref.style;
|
|
|
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, className, alignedClassName, motionClassName);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](rc_align__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
target: getAlignTarget(),
|
|
|
key: "popup",
|
|
|
ref: alignRef,
|
|
|
monitorWindowResize: true,
|
|
|
disabled: alignDisabled,
|
|
|
align: align,
|
|
|
onAlign: onInternalAlign
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("div", {
|
|
|
ref: motionRef,
|
|
|
className: mergedClassName,
|
|
|
onMouseEnter: onMouseEnter,
|
|
|
onMouseLeave: onMouseLeave,
|
|
|
onMouseDownCapture: onMouseDown,
|
|
|
onTouchStartCapture: onTouchStart,
|
|
|
style: Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, motionStyle), mergedStyle)
|
|
|
}, childNode));
|
|
|
});
|
|
|
});
|
|
|
PopupInner.displayName = 'PopupInner';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (PopupInner);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/index.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/index.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
/* harmony import */ var rc_util_es_isMobile__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rc-util/es/isMobile */ "./node_modules/rc-util/es/isMobile.js");
|
|
|
/* harmony import */ var _Mask__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Mask */ "./node_modules/rc-trigger/es/Popup/Mask.js");
|
|
|
/* harmony import */ var _PopupInner__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PopupInner */ "./node_modules/rc-trigger/es/Popup/PopupInner.js");
|
|
|
/* harmony import */ var _MobilePopupInner__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./MobilePopupInner */ "./node_modules/rc-trigger/es/Popup/MobilePopupInner.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Popup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](function (_ref, ref) {
|
|
|
var visible = _ref.visible,
|
|
|
mobile = _ref.mobile,
|
|
|
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(_ref, ["visible", "mobile"]);
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_4__["useState"])(visible),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
|
innerVisible = _useState2[0],
|
|
|
serInnerVisible = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_4__["useState"])(false),
|
|
|
_useState4 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2),
|
|
|
inMobile = _useState4[0],
|
|
|
setInMobile = _useState4[1];
|
|
|
|
|
|
var cloneProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props), {}, {
|
|
|
visible: innerVisible
|
|
|
}); // We check mobile in visible changed here.
|
|
|
// And this also delay set `innerVisible` to avoid popup component render flash
|
|
|
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_4__["useEffect"])(function () {
|
|
|
serInnerVisible(visible);
|
|
|
|
|
|
if (visible && mobile) {
|
|
|
setInMobile(Object(rc_util_es_isMobile__WEBPACK_IMPORTED_MODULE_5__["default"])());
|
|
|
}
|
|
|
}, [visible, mobile]);
|
|
|
var popupNode = inMobile ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_MobilePopupInner__WEBPACK_IMPORTED_MODULE_8__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cloneProps, {
|
|
|
mobile: mobile,
|
|
|
ref: ref
|
|
|
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_PopupInner__WEBPACK_IMPORTED_MODULE_7__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cloneProps, {
|
|
|
ref: ref
|
|
|
})); // We can use fragment directly but this may failed some selector usage. Keep as origin logic
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"](_Mask__WEBPACK_IMPORTED_MODULE_6__["default"], cloneProps), popupNode);
|
|
|
});
|
|
|
Popup.displayName = 'Popup';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Popup);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/useStretchStyle.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/useStretchStyle.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (stretch) {
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"]({
|
|
|
width: 0,
|
|
|
height: 0
|
|
|
}),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
targetSize = _React$useState2[0],
|
|
|
setTargetSize = _React$useState2[1];
|
|
|
|
|
|
function measureStretch(element) {
|
|
|
setTargetSize({
|
|
|
width: element.offsetWidth,
|
|
|
height: element.offsetHeight
|
|
|
});
|
|
|
} // Merge stretch style
|
|
|
|
|
|
|
|
|
var style = react__WEBPACK_IMPORTED_MODULE_1__["useMemo"](function () {
|
|
|
var sizeStyle = {};
|
|
|
|
|
|
if (stretch) {
|
|
|
var width = targetSize.width,
|
|
|
height = targetSize.height; // Stretch with target
|
|
|
|
|
|
if (stretch.indexOf('height') !== -1 && height) {
|
|
|
sizeStyle.height = height;
|
|
|
} else if (stretch.indexOf('minHeight') !== -1 && height) {
|
|
|
sizeStyle.minHeight = height;
|
|
|
}
|
|
|
|
|
|
if (stretch.indexOf('width') !== -1 && width) {
|
|
|
sizeStyle.width = width;
|
|
|
} else if (stretch.indexOf('minWidth') !== -1 && width) {
|
|
|
sizeStyle.minWidth = width;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return sizeStyle;
|
|
|
}, [stretch, targetSize]);
|
|
|
return [style, measureStretch];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/Popup/useVisibleStatus.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/Popup/useVisibleStatus.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var StatusQueue = ['measure', 'align', null, 'motion'];
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (visible, doMeasure) {
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(null),
|
|
|
_useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
|
|
|
status = _useState2[0],
|
|
|
setInternalStatus = _useState2[1];
|
|
|
|
|
|
var rafRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])();
|
|
|
var destroyRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
|
|
|
|
|
|
function setStatus(nextStatus) {
|
|
|
if (!destroyRef.current) {
|
|
|
setInternalStatus(nextStatus);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function cancelRaf() {
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"].cancel(rafRef.current);
|
|
|
}
|
|
|
|
|
|
function goNextStatus(callback) {
|
|
|
cancelRaf();
|
|
|
rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])(function () {
|
|
|
// Only align should be manually trigger
|
|
|
setStatus(function (prev) {
|
|
|
switch (status) {
|
|
|
case 'align':
|
|
|
return 'motion';
|
|
|
|
|
|
case 'motion':
|
|
|
return 'stable';
|
|
|
|
|
|
default:
|
|
|
}
|
|
|
|
|
|
return prev;
|
|
|
});
|
|
|
callback === null || callback === void 0 ? void 0 : callback();
|
|
|
});
|
|
|
} // Init status
|
|
|
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
setStatus('measure');
|
|
|
}, [visible]); // Go next status
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
switch (status) {
|
|
|
case 'measure':
|
|
|
doMeasure();
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
}
|
|
|
|
|
|
if (status) {
|
|
|
rafRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_4__["default"])( /*#__PURE__*/Object(_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
|
|
var index, nextStatus;
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
index = StatusQueue.indexOf(status);
|
|
|
nextStatus = StatusQueue[index + 1];
|
|
|
|
|
|
if (nextStatus && index !== -1) {
|
|
|
setStatus(nextStatus);
|
|
|
}
|
|
|
|
|
|
case 3:
|
|
|
case "end":
|
|
|
return _context.stop();
|
|
|
}
|
|
|
}
|
|
|
}, _callee);
|
|
|
})));
|
|
|
}
|
|
|
}, [status]);
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
destroyRef.current = true;
|
|
|
cancelRaf();
|
|
|
};
|
|
|
}, []);
|
|
|
return [status, goNextStatus];
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/context.js":
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/context.js ***!
|
|
|
\***********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
var TriggerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createContext"](null);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (TriggerContext);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/index.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/index.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: generateTrigger, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateTrigger", function() { return generateTrigger; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createSuper */ "./node_modules/@babel/runtime/helpers/esm/createSuper.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_8__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rc-util/es/Dom/contains */ "./node_modules/rc-util/es/Dom/contains.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/Dom/findDOMNode */ "./node_modules/rc-util/es/Dom/findDOMNode.js");
|
|
|
/* harmony import */ var rc_util_es_ref__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rc-util/es/ref */ "./node_modules/rc-util/es/ref.js");
|
|
|
/* harmony import */ var rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rc-util/es/Dom/addEventListener */ "./node_modules/rc-util/es/Dom/addEventListener.js");
|
|
|
/* harmony import */ var rc_util_es_Portal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rc-util/es/Portal */ "./node_modules/rc-util/es/Portal.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_15__);
|
|
|
/* harmony import */ var _utils_alignUtil__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/alignUtil */ "./node_modules/rc-trigger/es/utils/alignUtil.js");
|
|
|
/* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Popup */ "./node_modules/rc-trigger/es/Popup/index.js");
|
|
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./context */ "./node_modules/rc-trigger/es/context.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function noop() {}
|
|
|
|
|
|
function returnEmptyString() {
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
function returnDocument(element) {
|
|
|
if (element) {
|
|
|
return element.ownerDocument;
|
|
|
}
|
|
|
|
|
|
return window.document;
|
|
|
}
|
|
|
|
|
|
var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];
|
|
|
/**
|
|
|
* Internal usage. Do not use in your code since this will be removed.
|
|
|
*/
|
|
|
|
|
|
function generateTrigger(PortalComponent) {
|
|
|
var Trigger = /*#__PURE__*/function (_React$Component) {
|
|
|
Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_5__["default"])(Trigger, _React$Component);
|
|
|
|
|
|
var _super = Object(_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_6__["default"])(Trigger);
|
|
|
|
|
|
function Trigger(props) {
|
|
|
var _this;
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, Trigger);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
_this.popupRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createRef"]();
|
|
|
_this.triggerRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createRef"]();
|
|
|
|
|
|
_this.onMouseEnter = function (e) {
|
|
|
var mouseEnterDelay = _this.props.mouseEnterDelay;
|
|
|
|
|
|
_this.fireEvents('onMouseEnter', e);
|
|
|
|
|
|
_this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
|
|
|
};
|
|
|
|
|
|
_this.onMouseMove = function (e) {
|
|
|
_this.fireEvents('onMouseMove', e);
|
|
|
|
|
|
_this.setPoint(e);
|
|
|
};
|
|
|
|
|
|
_this.onMouseLeave = function (e) {
|
|
|
_this.fireEvents('onMouseLeave', e);
|
|
|
|
|
|
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
|
|
};
|
|
|
|
|
|
_this.onPopupMouseEnter = function () {
|
|
|
_this.clearDelayTimer();
|
|
|
};
|
|
|
|
|
|
_this.onPopupMouseLeave = function (e) {
|
|
|
var _this$popupRef$curren;
|
|
|
|
|
|
// https://github.com/react-component/trigger/pull/13
|
|
|
// react bug?
|
|
|
if (e.relatedTarget && !e.relatedTarget.setTimeout && Object(rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_10__["default"])((_this$popupRef$curren = _this.popupRef.current) === null || _this$popupRef$curren === void 0 ? void 0 : _this$popupRef$curren.getElement(), e.relatedTarget)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
|
|
|
};
|
|
|
|
|
|
_this.onFocus = function (e) {
|
|
|
_this.fireEvents('onFocus', e); // incase focusin and focusout
|
|
|
|
|
|
|
|
|
_this.clearDelayTimer();
|
|
|
|
|
|
if (_this.isFocusToShow()) {
|
|
|
_this.focusTime = Date.now();
|
|
|
|
|
|
_this.delaySetPopupVisible(true, _this.props.focusDelay);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onMouseDown = function (e) {
|
|
|
_this.fireEvents('onMouseDown', e);
|
|
|
|
|
|
_this.preClickTime = Date.now();
|
|
|
};
|
|
|
|
|
|
_this.onTouchStart = function (e) {
|
|
|
_this.fireEvents('onTouchStart', e);
|
|
|
|
|
|
_this.preTouchTime = Date.now();
|
|
|
};
|
|
|
|
|
|
_this.onBlur = function (e) {
|
|
|
_this.fireEvents('onBlur', e);
|
|
|
|
|
|
_this.clearDelayTimer();
|
|
|
|
|
|
if (_this.isBlurToHide()) {
|
|
|
_this.delaySetPopupVisible(false, _this.props.blurDelay);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onContextMenu = function (e) {
|
|
|
e.preventDefault();
|
|
|
|
|
|
_this.fireEvents('onContextMenu', e);
|
|
|
|
|
|
_this.setPopupVisible(true, e);
|
|
|
};
|
|
|
|
|
|
_this.onContextMenuClose = function () {
|
|
|
if (_this.isContextMenuToShow()) {
|
|
|
_this.close();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onClick = function (event) {
|
|
|
_this.fireEvents('onClick', event); // focus will trigger click
|
|
|
|
|
|
|
|
|
if (_this.focusTime) {
|
|
|
var preTime;
|
|
|
|
|
|
if (_this.preClickTime && _this.preTouchTime) {
|
|
|
preTime = Math.min(_this.preClickTime, _this.preTouchTime);
|
|
|
} else if (_this.preClickTime) {
|
|
|
preTime = _this.preClickTime;
|
|
|
} else if (_this.preTouchTime) {
|
|
|
preTime = _this.preTouchTime;
|
|
|
}
|
|
|
|
|
|
if (Math.abs(preTime - _this.focusTime) < 20) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_this.focusTime = 0;
|
|
|
}
|
|
|
|
|
|
_this.preClickTime = 0;
|
|
|
_this.preTouchTime = 0; // Only prevent default when all the action is click.
|
|
|
// https://github.com/ant-design/ant-design/issues/17043
|
|
|
// https://github.com/ant-design/ant-design/issues/17291
|
|
|
|
|
|
if (_this.isClickToShow() && (_this.isClickToHide() || _this.isBlurToHide()) && event && event.preventDefault) {
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
var nextVisible = !_this.state.popupVisible;
|
|
|
|
|
|
if (_this.isClickToHide() && !nextVisible || nextVisible && _this.isClickToShow()) {
|
|
|
_this.setPopupVisible(!_this.state.popupVisible, event);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onPopupMouseDown = function () {
|
|
|
_this.hasPopupMouseDown = true;
|
|
|
clearTimeout(_this.mouseDownTimeout);
|
|
|
_this.mouseDownTimeout = window.setTimeout(function () {
|
|
|
_this.hasPopupMouseDown = false;
|
|
|
}, 0);
|
|
|
|
|
|
if (_this.context) {
|
|
|
var _this$context;
|
|
|
|
|
|
(_this$context = _this.context).onPopupMouseDown.apply(_this$context, arguments);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onDocumentClick = function (event) {
|
|
|
if (_this.props.mask && !_this.props.maskClosable) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var target = event.target;
|
|
|
|
|
|
var root = _this.getRootDomNode();
|
|
|
|
|
|
var popupNode = _this.getPopupDomNode();
|
|
|
|
|
|
if (!Object(rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_10__["default"])(root, target) && !Object(rc_util_es_Dom_contains__WEBPACK_IMPORTED_MODULE_10__["default"])(popupNode, target) && !_this.hasPopupMouseDown) {
|
|
|
_this.close();
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.getRootDomNode = function () {
|
|
|
var getTriggerDOMNode = _this.props.getTriggerDOMNode;
|
|
|
|
|
|
if (getTriggerDOMNode) {
|
|
|
return getTriggerDOMNode(_this.triggerRef.current);
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
var domNode = Object(rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_11__["default"])(_this.triggerRef.current);
|
|
|
|
|
|
if (domNode) {
|
|
|
return domNode;
|
|
|
}
|
|
|
} catch (err) {// Do nothing
|
|
|
}
|
|
|
|
|
|
return react_dom__WEBPACK_IMPORTED_MODULE_8___default.a.findDOMNode(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__["default"])(_this));
|
|
|
};
|
|
|
|
|
|
_this.getPopupClassNameFromAlign = function (align) {
|
|
|
var className = [];
|
|
|
var _this$props = _this.props,
|
|
|
popupPlacement = _this$props.popupPlacement,
|
|
|
builtinPlacements = _this$props.builtinPlacements,
|
|
|
prefixCls = _this$props.prefixCls,
|
|
|
alignPoint = _this$props.alignPoint,
|
|
|
getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
|
|
|
|
|
|
if (popupPlacement && builtinPlacements) {
|
|
|
className.push(Object(_utils_alignUtil__WEBPACK_IMPORTED_MODULE_16__["getAlignPopupClassName"])(builtinPlacements, prefixCls, align, alignPoint));
|
|
|
}
|
|
|
|
|
|
if (getPopupClassNameFromAlign) {
|
|
|
className.push(getPopupClassNameFromAlign(align));
|
|
|
}
|
|
|
|
|
|
return className.join(' ');
|
|
|
};
|
|
|
|
|
|
_this.getComponent = function () {
|
|
|
var _this$props2 = _this.props,
|
|
|
prefixCls = _this$props2.prefixCls,
|
|
|
destroyPopupOnHide = _this$props2.destroyPopupOnHide,
|
|
|
popupClassName = _this$props2.popupClassName,
|
|
|
onPopupAlign = _this$props2.onPopupAlign,
|
|
|
popupMotion = _this$props2.popupMotion,
|
|
|
popupAnimation = _this$props2.popupAnimation,
|
|
|
popupTransitionName = _this$props2.popupTransitionName,
|
|
|
popupStyle = _this$props2.popupStyle,
|
|
|
mask = _this$props2.mask,
|
|
|
maskAnimation = _this$props2.maskAnimation,
|
|
|
maskTransitionName = _this$props2.maskTransitionName,
|
|
|
maskMotion = _this$props2.maskMotion,
|
|
|
zIndex = _this$props2.zIndex,
|
|
|
popup = _this$props2.popup,
|
|
|
stretch = _this$props2.stretch,
|
|
|
alignPoint = _this$props2.alignPoint,
|
|
|
mobile = _this$props2.mobile,
|
|
|
forceRender = _this$props2.forceRender;
|
|
|
var _this$state = _this.state,
|
|
|
popupVisible = _this$state.popupVisible,
|
|
|
point = _this$state.point;
|
|
|
|
|
|
var align = _this.getPopupAlign();
|
|
|
|
|
|
var mouseProps = {};
|
|
|
|
|
|
if (_this.isMouseEnterToShow()) {
|
|
|
mouseProps.onMouseEnter = _this.onPopupMouseEnter;
|
|
|
}
|
|
|
|
|
|
if (_this.isMouseLeaveToHide()) {
|
|
|
mouseProps.onMouseLeave = _this.onPopupMouseLeave;
|
|
|
}
|
|
|
|
|
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_Popup__WEBPACK_IMPORTED_MODULE_17__["default"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
prefixCls: prefixCls,
|
|
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
|
visible: popupVisible,
|
|
|
point: alignPoint && point,
|
|
|
className: popupClassName,
|
|
|
align: align,
|
|
|
onAlign: onPopupAlign,
|
|
|
animation: popupAnimation,
|
|
|
getClassNameFromAlign: _this.getPopupClassNameFromAlign
|
|
|
}, mouseProps, {
|
|
|
stretch: stretch,
|
|
|
getRootDomNode: _this.getRootDomNode,
|
|
|
style: popupStyle,
|
|
|
mask: mask,
|
|
|
zIndex: zIndex,
|
|
|
transitionName: popupTransitionName,
|
|
|
maskAnimation: maskAnimation,
|
|
|
maskTransitionName: maskTransitionName,
|
|
|
maskMotion: maskMotion,
|
|
|
ref: _this.popupRef,
|
|
|
motion: popupMotion,
|
|
|
mobile: mobile,
|
|
|
forceRender: forceRender
|
|
|
}), typeof popup === 'function' ? popup() : popup);
|
|
|
};
|
|
|
|
|
|
_this.attachParent = function (popupContainer) {
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_9__["default"].cancel(_this.attachId);
|
|
|
var _this$props3 = _this.props,
|
|
|
getPopupContainer = _this$props3.getPopupContainer,
|
|
|
getDocument = _this$props3.getDocument;
|
|
|
|
|
|
var domNode = _this.getRootDomNode();
|
|
|
|
|
|
var mountNode;
|
|
|
|
|
|
if (!getPopupContainer) {
|
|
|
mountNode = getDocument(_this.getRootDomNode()).body;
|
|
|
} else if (domNode || getPopupContainer.length === 0) {
|
|
|
// Compatible for legacy getPopupContainer with domNode argument.
|
|
|
// If no need `domNode` argument, will call directly.
|
|
|
// https://codesandbox.io/s/eloquent-mclean-ss93m?file=/src/App.js
|
|
|
mountNode = getPopupContainer(domNode);
|
|
|
}
|
|
|
|
|
|
if (mountNode) {
|
|
|
mountNode.appendChild(popupContainer);
|
|
|
} else {
|
|
|
// Retry after frame render in case parent not ready
|
|
|
_this.attachId = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_9__["default"])(function () {
|
|
|
_this.attachParent(popupContainer);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.getContainer = function () {
|
|
|
var getDocument = _this.props.getDocument;
|
|
|
var popupContainer = getDocument(_this.getRootDomNode()).createElement('div'); // Make sure default popup container will never cause scrollbar appearing
|
|
|
// https://github.com/react-component/trigger/issues/41
|
|
|
|
|
|
popupContainer.style.position = 'absolute';
|
|
|
popupContainer.style.top = '0';
|
|
|
popupContainer.style.left = '0';
|
|
|
popupContainer.style.width = '100%';
|
|
|
|
|
|
_this.attachParent(popupContainer);
|
|
|
|
|
|
return popupContainer;
|
|
|
};
|
|
|
|
|
|
_this.setPoint = function (point) {
|
|
|
var alignPoint = _this.props.alignPoint;
|
|
|
if (!alignPoint || !point) return;
|
|
|
|
|
|
_this.setState({
|
|
|
point: {
|
|
|
pageX: point.pageX,
|
|
|
pageY: point.pageY
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_this.handlePortalUpdate = function () {
|
|
|
if (_this.state.prevPopupVisible !== _this.state.popupVisible) {
|
|
|
_this.props.afterPopupVisibleChange(_this.state.popupVisible);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var popupVisible;
|
|
|
|
|
|
if ('popupVisible' in props) {
|
|
|
popupVisible = !!props.popupVisible;
|
|
|
} else {
|
|
|
popupVisible = !!props.defaultPopupVisible;
|
|
|
}
|
|
|
|
|
|
_this.state = {
|
|
|
prevPopupVisible: popupVisible,
|
|
|
popupVisible: popupVisible
|
|
|
};
|
|
|
ALL_HANDLERS.forEach(function (h) {
|
|
|
_this["fire".concat(h)] = function (e) {
|
|
|
_this.fireEvents(h, e);
|
|
|
};
|
|
|
});
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(Trigger, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.componentDidUpdate();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate() {
|
|
|
var props = this.props;
|
|
|
var state = this.state; // We must listen to `mousedown` or `touchstart`, edge case:
|
|
|
// https://github.com/ant-design/ant-design/issues/5804
|
|
|
// https://github.com/react-component/calendar/issues/250
|
|
|
// https://github.com/react-component/trigger/issues/50
|
|
|
|
|
|
if (state.popupVisible) {
|
|
|
var currentDocument;
|
|
|
|
|
|
if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {
|
|
|
currentDocument = props.getDocument(this.getRootDomNode());
|
|
|
this.clickOutsideHandler = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_13__["default"])(currentDocument, 'mousedown', this.onDocumentClick);
|
|
|
} // always hide on mobile
|
|
|
|
|
|
|
|
|
if (!this.touchOutsideHandler) {
|
|
|
currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
|
|
|
this.touchOutsideHandler = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_13__["default"])(currentDocument, 'touchstart', this.onDocumentClick);
|
|
|
} // close popup when trigger type contains 'onContextMenu' and document is scrolling.
|
|
|
|
|
|
|
|
|
if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {
|
|
|
currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
|
|
|
this.contextMenuOutsideHandler1 = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_13__["default"])(currentDocument, 'scroll', this.onContextMenuClose);
|
|
|
} // close popup when trigger type contains 'onContextMenu' and window is blur.
|
|
|
|
|
|
|
|
|
if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {
|
|
|
this.contextMenuOutsideHandler2 = Object(rc_util_es_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_13__["default"])(window, 'blur', this.onContextMenuClose);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.clearOutsideHandler();
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.clearDelayTimer();
|
|
|
this.clearOutsideHandler();
|
|
|
clearTimeout(this.mouseDownTimeout);
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_9__["default"].cancel(this.attachId);
|
|
|
}
|
|
|
}, {
|
|
|
key: "getPopupDomNode",
|
|
|
value: function getPopupDomNode() {
|
|
|
var _this$popupRef$curren2;
|
|
|
|
|
|
// for test
|
|
|
return ((_this$popupRef$curren2 = this.popupRef.current) === null || _this$popupRef$curren2 === void 0 ? void 0 : _this$popupRef$curren2.getElement()) || null;
|
|
|
}
|
|
|
}, {
|
|
|
key: "getPopupAlign",
|
|
|
value: function getPopupAlign() {
|
|
|
var props = this.props;
|
|
|
var popupPlacement = props.popupPlacement,
|
|
|
popupAlign = props.popupAlign,
|
|
|
builtinPlacements = props.builtinPlacements;
|
|
|
|
|
|
if (popupPlacement && builtinPlacements) {
|
|
|
return Object(_utils_alignUtil__WEBPACK_IMPORTED_MODULE_16__["getAlignFromPlacement"])(builtinPlacements, popupPlacement, popupAlign);
|
|
|
}
|
|
|
|
|
|
return popupAlign;
|
|
|
}
|
|
|
/**
|
|
|
* @param popupVisible Show or not the popup element
|
|
|
* @param event SyntheticEvent, used for `pointAlign`
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "setPopupVisible",
|
|
|
value: function setPopupVisible(popupVisible, event) {
|
|
|
var alignPoint = this.props.alignPoint;
|
|
|
var prevPopupVisible = this.state.popupVisible;
|
|
|
this.clearDelayTimer();
|
|
|
|
|
|
if (prevPopupVisible !== popupVisible) {
|
|
|
if (!('popupVisible' in this.props)) {
|
|
|
this.setState({
|
|
|
popupVisible: popupVisible,
|
|
|
prevPopupVisible: prevPopupVisible
|
|
|
});
|
|
|
}
|
|
|
|
|
|
this.props.onPopupVisibleChange(popupVisible);
|
|
|
} // Always record the point position since mouseEnterDelay will delay the show
|
|
|
|
|
|
|
|
|
if (alignPoint && event && popupVisible) {
|
|
|
this.setPoint(event);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "delaySetPopupVisible",
|
|
|
value: function delaySetPopupVisible(visible, delayS, event) {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var delay = delayS * 1000;
|
|
|
this.clearDelayTimer();
|
|
|
|
|
|
if (delay) {
|
|
|
var point = event ? {
|
|
|
pageX: event.pageX,
|
|
|
pageY: event.pageY
|
|
|
} : null;
|
|
|
this.delayTimer = window.setTimeout(function () {
|
|
|
_this2.setPopupVisible(visible, point);
|
|
|
|
|
|
_this2.clearDelayTimer();
|
|
|
}, delay);
|
|
|
} else {
|
|
|
this.setPopupVisible(visible, event);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "clearDelayTimer",
|
|
|
value: function clearDelayTimer() {
|
|
|
if (this.delayTimer) {
|
|
|
clearTimeout(this.delayTimer);
|
|
|
this.delayTimer = null;
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "clearOutsideHandler",
|
|
|
value: function clearOutsideHandler() {
|
|
|
if (this.clickOutsideHandler) {
|
|
|
this.clickOutsideHandler.remove();
|
|
|
this.clickOutsideHandler = null;
|
|
|
}
|
|
|
|
|
|
if (this.contextMenuOutsideHandler1) {
|
|
|
this.contextMenuOutsideHandler1.remove();
|
|
|
this.contextMenuOutsideHandler1 = null;
|
|
|
}
|
|
|
|
|
|
if (this.contextMenuOutsideHandler2) {
|
|
|
this.contextMenuOutsideHandler2.remove();
|
|
|
this.contextMenuOutsideHandler2 = null;
|
|
|
}
|
|
|
|
|
|
if (this.touchOutsideHandler) {
|
|
|
this.touchOutsideHandler.remove();
|
|
|
this.touchOutsideHandler = null;
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "createTwoChains",
|
|
|
value: function createTwoChains(event) {
|
|
|
var childPros = this.props.children.props;
|
|
|
var props = this.props;
|
|
|
|
|
|
if (childPros[event] && props[event]) {
|
|
|
return this["fire".concat(event)];
|
|
|
}
|
|
|
|
|
|
return childPros[event] || props[event];
|
|
|
}
|
|
|
}, {
|
|
|
key: "isClickToShow",
|
|
|
value: function isClickToShow() {
|
|
|
var _this$props4 = this.props,
|
|
|
action = _this$props4.action,
|
|
|
showAction = _this$props4.showAction;
|
|
|
return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isContextMenuToShow",
|
|
|
value: function isContextMenuToShow() {
|
|
|
var _this$props5 = this.props,
|
|
|
action = _this$props5.action,
|
|
|
showAction = _this$props5.showAction;
|
|
|
return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isClickToHide",
|
|
|
value: function isClickToHide() {
|
|
|
var _this$props6 = this.props,
|
|
|
action = _this$props6.action,
|
|
|
hideAction = _this$props6.hideAction;
|
|
|
return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isMouseEnterToShow",
|
|
|
value: function isMouseEnterToShow() {
|
|
|
var _this$props7 = this.props,
|
|
|
action = _this$props7.action,
|
|
|
showAction = _this$props7.showAction;
|
|
|
return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isMouseLeaveToHide",
|
|
|
value: function isMouseLeaveToHide() {
|
|
|
var _this$props8 = this.props,
|
|
|
action = _this$props8.action,
|
|
|
hideAction = _this$props8.hideAction;
|
|
|
return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isFocusToShow",
|
|
|
value: function isFocusToShow() {
|
|
|
var _this$props9 = this.props,
|
|
|
action = _this$props9.action,
|
|
|
showAction = _this$props9.showAction;
|
|
|
return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isBlurToHide",
|
|
|
value: function isBlurToHide() {
|
|
|
var _this$props10 = this.props,
|
|
|
action = _this$props10.action,
|
|
|
hideAction = _this$props10.hideAction;
|
|
|
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
|
|
|
}
|
|
|
}, {
|
|
|
key: "forcePopupAlign",
|
|
|
value: function forcePopupAlign() {
|
|
|
if (this.state.popupVisible) {
|
|
|
var _this$popupRef$curren3;
|
|
|
|
|
|
(_this$popupRef$curren3 = this.popupRef.current) === null || _this$popupRef$curren3 === void 0 ? void 0 : _this$popupRef$curren3.forceAlign();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "fireEvents",
|
|
|
value: function fireEvents(type, e) {
|
|
|
var childCallback = this.props.children.props[type];
|
|
|
|
|
|
if (childCallback) {
|
|
|
childCallback(e);
|
|
|
}
|
|
|
|
|
|
var callback = this.props[type];
|
|
|
|
|
|
if (callback) {
|
|
|
callback(e);
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "close",
|
|
|
value: function close() {
|
|
|
this.setPopupVisible(false);
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var popupVisible = this.state.popupVisible;
|
|
|
var _this$props11 = this.props,
|
|
|
children = _this$props11.children,
|
|
|
forceRender = _this$props11.forceRender,
|
|
|
alignPoint = _this$props11.alignPoint,
|
|
|
className = _this$props11.className,
|
|
|
autoDestroy = _this$props11.autoDestroy;
|
|
|
var child = react__WEBPACK_IMPORTED_MODULE_7__["Children"].only(children);
|
|
|
var newChildProps = {
|
|
|
key: 'trigger'
|
|
|
}; // ============================== Visible Handlers ==============================
|
|
|
// >>> ContextMenu
|
|
|
|
|
|
if (this.isContextMenuToShow()) {
|
|
|
newChildProps.onContextMenu = this.onContextMenu;
|
|
|
} else {
|
|
|
newChildProps.onContextMenu = this.createTwoChains('onContextMenu');
|
|
|
} // >>> Click
|
|
|
|
|
|
|
|
|
if (this.isClickToHide() || this.isClickToShow()) {
|
|
|
newChildProps.onClick = this.onClick;
|
|
|
newChildProps.onMouseDown = this.onMouseDown;
|
|
|
newChildProps.onTouchStart = this.onTouchStart;
|
|
|
} else {
|
|
|
newChildProps.onClick = this.createTwoChains('onClick');
|
|
|
newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
|
|
|
newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
|
|
|
} // >>> Hover(enter)
|
|
|
|
|
|
|
|
|
if (this.isMouseEnterToShow()) {
|
|
|
newChildProps.onMouseEnter = this.onMouseEnter; // Point align
|
|
|
|
|
|
if (alignPoint) {
|
|
|
newChildProps.onMouseMove = this.onMouseMove;
|
|
|
}
|
|
|
} else {
|
|
|
newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
|
|
|
} // >>> Hover(leave)
|
|
|
|
|
|
|
|
|
if (this.isMouseLeaveToHide()) {
|
|
|
newChildProps.onMouseLeave = this.onMouseLeave;
|
|
|
} else {
|
|
|
newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
|
|
|
} // >>> Focus
|
|
|
|
|
|
|
|
|
if (this.isFocusToShow() || this.isBlurToHide()) {
|
|
|
newChildProps.onFocus = this.onFocus;
|
|
|
newChildProps.onBlur = this.onBlur;
|
|
|
} else {
|
|
|
newChildProps.onFocus = this.createTwoChains('onFocus');
|
|
|
newChildProps.onBlur = this.createTwoChains('onBlur');
|
|
|
} // =================================== Render ===================================
|
|
|
|
|
|
|
|
|
var childrenClassName = classnames__WEBPACK_IMPORTED_MODULE_15___default()(child && child.props && child.props.className, className);
|
|
|
|
|
|
if (childrenClassName) {
|
|
|
newChildProps.className = childrenClassName;
|
|
|
}
|
|
|
|
|
|
var cloneProps = Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, newChildProps);
|
|
|
|
|
|
if (Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_12__["supportRef"])(child)) {
|
|
|
cloneProps.ref = Object(rc_util_es_ref__WEBPACK_IMPORTED_MODULE_12__["composeRef"])(this.triggerRef, child.ref);
|
|
|
}
|
|
|
|
|
|
var trigger = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["cloneElement"](child, cloneProps);
|
|
|
var portal; // prevent unmounting after it's rendered
|
|
|
|
|
|
if (popupVisible || this.popupRef.current || forceRender) {
|
|
|
portal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](PortalComponent, {
|
|
|
key: "portal",
|
|
|
getContainer: this.getContainer,
|
|
|
didUpdate: this.handlePortalUpdate
|
|
|
}, this.getComponent());
|
|
|
}
|
|
|
|
|
|
if (!popupVisible && autoDestroy) {
|
|
|
portal = null;
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__["createElement"](_context__WEBPACK_IMPORTED_MODULE_18__["default"].Provider, {
|
|
|
value: {
|
|
|
onPopupMouseDown: this.onPopupMouseDown
|
|
|
}
|
|
|
}, trigger, portal);
|
|
|
}
|
|
|
}], [{
|
|
|
key: "getDerivedStateFromProps",
|
|
|
value: function getDerivedStateFromProps(_ref, prevState) {
|
|
|
var popupVisible = _ref.popupVisible;
|
|
|
var newState = {};
|
|
|
|
|
|
if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {
|
|
|
newState.popupVisible = popupVisible;
|
|
|
newState.prevPopupVisible = prevState.popupVisible;
|
|
|
}
|
|
|
|
|
|
return newState;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Trigger;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_7__["Component"]);
|
|
|
|
|
|
Trigger.contextType = _context__WEBPACK_IMPORTED_MODULE_18__["default"];
|
|
|
Trigger.defaultProps = {
|
|
|
prefixCls: 'rc-trigger-popup',
|
|
|
getPopupClassNameFromAlign: returnEmptyString,
|
|
|
getDocument: returnDocument,
|
|
|
onPopupVisibleChange: noop,
|
|
|
afterPopupVisibleChange: noop,
|
|
|
onPopupAlign: noop,
|
|
|
popupClassName: '',
|
|
|
mouseEnterDelay: 0,
|
|
|
mouseLeaveDelay: 0.1,
|
|
|
focusDelay: 0,
|
|
|
blurDelay: 0.15,
|
|
|
popupStyle: {},
|
|
|
destroyPopupOnHide: false,
|
|
|
popupAlign: {},
|
|
|
defaultPopupVisible: false,
|
|
|
mask: false,
|
|
|
maskClosable: true,
|
|
|
action: [],
|
|
|
showAction: [],
|
|
|
hideAction: [],
|
|
|
autoDestroy: false
|
|
|
};
|
|
|
return Trigger;
|
|
|
}
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (generateTrigger(rc_util_es_Portal__WEBPACK_IMPORTED_MODULE_14__["default"]));
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/utils/alignUtil.js":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/utils/alignUtil.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: getAlignFromPlacement, getAlignPopupClassName */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignFromPlacement", function() { return getAlignFromPlacement; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignPopupClassName", function() { return getAlignPopupClassName; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
|
|
|
|
|
|
|
|
|
function isPointsEq(a1, a2, isAlignPoint) {
|
|
|
if (isAlignPoint) {
|
|
|
return a1[0] === a2[0];
|
|
|
}
|
|
|
|
|
|
return a1[0] === a2[0] && a1[1] === a2[1];
|
|
|
}
|
|
|
|
|
|
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
|
|
|
var baseAlign = builtinPlacements[placementStr] || {};
|
|
|
return Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, baseAlign), align);
|
|
|
}
|
|
|
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
|
|
|
var points = align.points;
|
|
|
var placements = Object.keys(builtinPlacements);
|
|
|
|
|
|
for (var i = 0; i < placements.length; i += 1) {
|
|
|
var placement = placements[i];
|
|
|
|
|
|
if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
|
|
|
return "".concat(prefixCls, "-placement-").concat(placement);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-trigger/es/utils/legacyUtil.js":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-trigger/es/utils/legacyUtil.js ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: getMotion */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMotion", function() { return getMotion; });
|
|
|
function getMotion(_ref) {
|
|
|
var prefixCls = _ref.prefixCls,
|
|
|
motion = _ref.motion,
|
|
|
animation = _ref.animation,
|
|
|
transitionName = _ref.transitionName;
|
|
|
|
|
|
if (motion) {
|
|
|
return motion;
|
|
|
}
|
|
|
|
|
|
if (animation) {
|
|
|
return {
|
|
|
motionName: "".concat(prefixCls, "-").concat(animation)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (transitionName) {
|
|
|
return {
|
|
|
motionName: transitionName
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Children/toArray.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Children/toArray.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toArray; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
function toArray(children) {
|
|
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
var ret = [];
|
|
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) {
|
|
|
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(child)) {
|
|
|
ret = ret.concat(toArray(child));
|
|
|
} else if (Object(react_is__WEBPACK_IMPORTED_MODULE_1__["isFragment"])(child) && child.props) {
|
|
|
ret = ret.concat(toArray(child.props.children, option));
|
|
|
} else {
|
|
|
ret.push(child);
|
|
|
}
|
|
|
});
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/addEventListener.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/addEventListener.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addEventListenerWrap; });
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function addEventListenerWrap(target, eventType, cb, option) {
|
|
|
/* eslint camelcase: 2 */
|
|
|
var callback = react_dom__WEBPACK_IMPORTED_MODULE_0___default.a.unstable_batchedUpdates ? function run(e) {
|
|
|
react_dom__WEBPACK_IMPORTED_MODULE_0___default.a.unstable_batchedUpdates(cb, e);
|
|
|
} : cb;
|
|
|
|
|
|
if (target.addEventListener) {
|
|
|
target.addEventListener(eventType, callback, option);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
remove: function remove() {
|
|
|
if (target.removeEventListener) {
|
|
|
target.removeEventListener(eventType, callback);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/canUseDom.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/canUseDom.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return canUseDom; });
|
|
|
function canUseDom() {
|
|
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/contains.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/contains.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
|
|
|
function contains(root, n) {
|
|
|
if (!root) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return root.contains(n);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/css.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/css.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: get, set, getOuterWidth, getOuterHeight, getDocSize, getClientSize, getScroll, getOffset */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOuterWidth", function() { return getOuterWidth; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOuterHeight", function() { return getOuterHeight; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDocSize", function() { return getDocSize; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClientSize", function() { return getClientSize; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScroll", function() { return getScroll; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOffset", function() { return getOffset; });
|
|
|
/* eslint-disable no-nested-ternary */
|
|
|
var PIXEL_PATTERN = /margin|padding|width|height|max|min|offset/;
|
|
|
var removePixel = {
|
|
|
left: true,
|
|
|
top: true
|
|
|
};
|
|
|
var floatMap = {
|
|
|
cssFloat: 1,
|
|
|
styleFloat: 1,
|
|
|
float: 1
|
|
|
};
|
|
|
|
|
|
function getComputedStyle(node) {
|
|
|
return node.nodeType === 1 ? node.ownerDocument.defaultView.getComputedStyle(node, null) : {};
|
|
|
}
|
|
|
|
|
|
function getStyleValue(node, type, value) {
|
|
|
type = type.toLowerCase();
|
|
|
|
|
|
if (value === 'auto') {
|
|
|
if (type === 'height') {
|
|
|
return node.offsetHeight;
|
|
|
}
|
|
|
|
|
|
if (type === 'width') {
|
|
|
return node.offsetWidth;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(type in removePixel)) {
|
|
|
removePixel[type] = PIXEL_PATTERN.test(type);
|
|
|
}
|
|
|
|
|
|
return removePixel[type] ? parseFloat(value) || 0 : value;
|
|
|
}
|
|
|
|
|
|
function get(node, name) {
|
|
|
var length = arguments.length;
|
|
|
var style = getComputedStyle(node);
|
|
|
name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
|
|
|
return length === 1 ? style : getStyleValue(node, name, style[name] || node.style[name]);
|
|
|
}
|
|
|
function set(node, name, value) {
|
|
|
var length = arguments.length;
|
|
|
name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
|
|
|
|
|
|
if (length === 3) {
|
|
|
if (typeof value === 'number' && PIXEL_PATTERN.test(name)) {
|
|
|
value = "".concat(value, "px");
|
|
|
}
|
|
|
|
|
|
node.style[name] = value; // Number
|
|
|
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
for (var x in name) {
|
|
|
if (name.hasOwnProperty(x)) {
|
|
|
set(node, x, name[x]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return getComputedStyle(node);
|
|
|
}
|
|
|
function getOuterWidth(el) {
|
|
|
if (el === document.body) {
|
|
|
return document.documentElement.clientWidth;
|
|
|
}
|
|
|
|
|
|
return el.offsetWidth;
|
|
|
}
|
|
|
function getOuterHeight(el) {
|
|
|
if (el === document.body) {
|
|
|
return window.innerHeight || document.documentElement.clientHeight;
|
|
|
}
|
|
|
|
|
|
return el.offsetHeight;
|
|
|
}
|
|
|
function getDocSize() {
|
|
|
var width = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);
|
|
|
var height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
|
|
|
return {
|
|
|
width: width,
|
|
|
height: height
|
|
|
};
|
|
|
}
|
|
|
function getClientSize() {
|
|
|
var width = document.documentElement.clientWidth;
|
|
|
var height = window.innerHeight || document.documentElement.clientHeight;
|
|
|
return {
|
|
|
width: width,
|
|
|
height: height
|
|
|
};
|
|
|
}
|
|
|
function getScroll() {
|
|
|
return {
|
|
|
scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),
|
|
|
scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop)
|
|
|
};
|
|
|
}
|
|
|
function getOffset(node) {
|
|
|
var box = node.getBoundingClientRect();
|
|
|
var docElem = document.documentElement; // < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft
|
|
|
|
|
|
return {
|
|
|
left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
|
|
|
top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/findDOMNode.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/findDOMNode.js ***!
|
|
|
\****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return findDOMNode; });
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/**
|
|
|
* Return if a node is a DOM node. Else will return by `findDOMNode`
|
|
|
*/
|
|
|
|
|
|
function findDOMNode(node) {
|
|
|
if (node instanceof HTMLElement) {
|
|
|
return node;
|
|
|
}
|
|
|
|
|
|
return react_dom__WEBPACK_IMPORTED_MODULE_0___default.a.findDOMNode(node);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Dom/isVisible.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/isVisible.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (element) {
|
|
|
if (!element) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (element.offsetParent) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (element.getBBox) {
|
|
|
var box = element.getBBox();
|
|
|
|
|
|
if (box.width || box.height) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (element.getBoundingClientRect) {
|
|
|
var _box = element.getBoundingClientRect();
|
|
|
|
|
|
if (_box.width || _box.height) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/KeyCode.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/KeyCode.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/**
|
|
|
* @ignore
|
|
|
* some key-codes definition and utils from closure-library
|
|
|
* @author yiminghe@gmail.com
|
|
|
*/
|
|
|
var KeyCode = {
|
|
|
/**
|
|
|
* MAC_ENTER
|
|
|
*/
|
|
|
MAC_ENTER: 3,
|
|
|
|
|
|
/**
|
|
|
* BACKSPACE
|
|
|
*/
|
|
|
BACKSPACE: 8,
|
|
|
|
|
|
/**
|
|
|
* TAB
|
|
|
*/
|
|
|
TAB: 9,
|
|
|
|
|
|
/**
|
|
|
* NUMLOCK on FF/Safari Mac
|
|
|
*/
|
|
|
NUM_CENTER: 12,
|
|
|
|
|
|
/**
|
|
|
* ENTER
|
|
|
*/
|
|
|
ENTER: 13,
|
|
|
|
|
|
/**
|
|
|
* SHIFT
|
|
|
*/
|
|
|
SHIFT: 16,
|
|
|
|
|
|
/**
|
|
|
* CTRL
|
|
|
*/
|
|
|
CTRL: 17,
|
|
|
|
|
|
/**
|
|
|
* ALT
|
|
|
*/
|
|
|
ALT: 18,
|
|
|
|
|
|
/**
|
|
|
* PAUSE
|
|
|
*/
|
|
|
PAUSE: 19,
|
|
|
|
|
|
/**
|
|
|
* CAPS_LOCK
|
|
|
*/
|
|
|
CAPS_LOCK: 20,
|
|
|
|
|
|
/**
|
|
|
* ESC
|
|
|
*/
|
|
|
ESC: 27,
|
|
|
|
|
|
/**
|
|
|
* SPACE
|
|
|
*/
|
|
|
SPACE: 32,
|
|
|
|
|
|
/**
|
|
|
* PAGE_UP
|
|
|
*/
|
|
|
PAGE_UP: 33,
|
|
|
|
|
|
/**
|
|
|
* PAGE_DOWN
|
|
|
*/
|
|
|
PAGE_DOWN: 34,
|
|
|
|
|
|
/**
|
|
|
* END
|
|
|
*/
|
|
|
END: 35,
|
|
|
|
|
|
/**
|
|
|
* HOME
|
|
|
*/
|
|
|
HOME: 36,
|
|
|
|
|
|
/**
|
|
|
* LEFT
|
|
|
*/
|
|
|
LEFT: 37,
|
|
|
|
|
|
/**
|
|
|
* UP
|
|
|
*/
|
|
|
UP: 38,
|
|
|
|
|
|
/**
|
|
|
* RIGHT
|
|
|
*/
|
|
|
RIGHT: 39,
|
|
|
|
|
|
/**
|
|
|
* DOWN
|
|
|
*/
|
|
|
DOWN: 40,
|
|
|
|
|
|
/**
|
|
|
* PRINT_SCREEN
|
|
|
*/
|
|
|
PRINT_SCREEN: 44,
|
|
|
|
|
|
/**
|
|
|
* INSERT
|
|
|
*/
|
|
|
INSERT: 45,
|
|
|
|
|
|
/**
|
|
|
* DELETE
|
|
|
*/
|
|
|
DELETE: 46,
|
|
|
|
|
|
/**
|
|
|
* ZERO
|
|
|
*/
|
|
|
ZERO: 48,
|
|
|
|
|
|
/**
|
|
|
* ONE
|
|
|
*/
|
|
|
ONE: 49,
|
|
|
|
|
|
/**
|
|
|
* TWO
|
|
|
*/
|
|
|
TWO: 50,
|
|
|
|
|
|
/**
|
|
|
* THREE
|
|
|
*/
|
|
|
THREE: 51,
|
|
|
|
|
|
/**
|
|
|
* FOUR
|
|
|
*/
|
|
|
FOUR: 52,
|
|
|
|
|
|
/**
|
|
|
* FIVE
|
|
|
*/
|
|
|
FIVE: 53,
|
|
|
|
|
|
/**
|
|
|
* SIX
|
|
|
*/
|
|
|
SIX: 54,
|
|
|
|
|
|
/**
|
|
|
* SEVEN
|
|
|
*/
|
|
|
SEVEN: 55,
|
|
|
|
|
|
/**
|
|
|
* EIGHT
|
|
|
*/
|
|
|
EIGHT: 56,
|
|
|
|
|
|
/**
|
|
|
* NINE
|
|
|
*/
|
|
|
NINE: 57,
|
|
|
|
|
|
/**
|
|
|
* QUESTION_MARK
|
|
|
*/
|
|
|
QUESTION_MARK: 63,
|
|
|
|
|
|
/**
|
|
|
* A
|
|
|
*/
|
|
|
A: 65,
|
|
|
|
|
|
/**
|
|
|
* B
|
|
|
*/
|
|
|
B: 66,
|
|
|
|
|
|
/**
|
|
|
* C
|
|
|
*/
|
|
|
C: 67,
|
|
|
|
|
|
/**
|
|
|
* D
|
|
|
*/
|
|
|
D: 68,
|
|
|
|
|
|
/**
|
|
|
* E
|
|
|
*/
|
|
|
E: 69,
|
|
|
|
|
|
/**
|
|
|
* F
|
|
|
*/
|
|
|
F: 70,
|
|
|
|
|
|
/**
|
|
|
* G
|
|
|
*/
|
|
|
G: 71,
|
|
|
|
|
|
/**
|
|
|
* H
|
|
|
*/
|
|
|
H: 72,
|
|
|
|
|
|
/**
|
|
|
* I
|
|
|
*/
|
|
|
I: 73,
|
|
|
|
|
|
/**
|
|
|
* J
|
|
|
*/
|
|
|
J: 74,
|
|
|
|
|
|
/**
|
|
|
* K
|
|
|
*/
|
|
|
K: 75,
|
|
|
|
|
|
/**
|
|
|
* L
|
|
|
*/
|
|
|
L: 76,
|
|
|
|
|
|
/**
|
|
|
* M
|
|
|
*/
|
|
|
M: 77,
|
|
|
|
|
|
/**
|
|
|
* N
|
|
|
*/
|
|
|
N: 78,
|
|
|
|
|
|
/**
|
|
|
* O
|
|
|
*/
|
|
|
O: 79,
|
|
|
|
|
|
/**
|
|
|
* P
|
|
|
*/
|
|
|
P: 80,
|
|
|
|
|
|
/**
|
|
|
* Q
|
|
|
*/
|
|
|
Q: 81,
|
|
|
|
|
|
/**
|
|
|
* R
|
|
|
*/
|
|
|
R: 82,
|
|
|
|
|
|
/**
|
|
|
* S
|
|
|
*/
|
|
|
S: 83,
|
|
|
|
|
|
/**
|
|
|
* T
|
|
|
*/
|
|
|
T: 84,
|
|
|
|
|
|
/**
|
|
|
* U
|
|
|
*/
|
|
|
U: 85,
|
|
|
|
|
|
/**
|
|
|
* V
|
|
|
*/
|
|
|
V: 86,
|
|
|
|
|
|
/**
|
|
|
* W
|
|
|
*/
|
|
|
W: 87,
|
|
|
|
|
|
/**
|
|
|
* X
|
|
|
*/
|
|
|
X: 88,
|
|
|
|
|
|
/**
|
|
|
* Y
|
|
|
*/
|
|
|
Y: 89,
|
|
|
|
|
|
/**
|
|
|
* Z
|
|
|
*/
|
|
|
Z: 90,
|
|
|
|
|
|
/**
|
|
|
* META
|
|
|
*/
|
|
|
META: 91,
|
|
|
|
|
|
/**
|
|
|
* WIN_KEY_RIGHT
|
|
|
*/
|
|
|
WIN_KEY_RIGHT: 92,
|
|
|
|
|
|
/**
|
|
|
* CONTEXT_MENU
|
|
|
*/
|
|
|
CONTEXT_MENU: 93,
|
|
|
|
|
|
/**
|
|
|
* NUM_ZERO
|
|
|
*/
|
|
|
NUM_ZERO: 96,
|
|
|
|
|
|
/**
|
|
|
* NUM_ONE
|
|
|
*/
|
|
|
NUM_ONE: 97,
|
|
|
|
|
|
/**
|
|
|
* NUM_TWO
|
|
|
*/
|
|
|
NUM_TWO: 98,
|
|
|
|
|
|
/**
|
|
|
* NUM_THREE
|
|
|
*/
|
|
|
NUM_THREE: 99,
|
|
|
|
|
|
/**
|
|
|
* NUM_FOUR
|
|
|
*/
|
|
|
NUM_FOUR: 100,
|
|
|
|
|
|
/**
|
|
|
* NUM_FIVE
|
|
|
*/
|
|
|
NUM_FIVE: 101,
|
|
|
|
|
|
/**
|
|
|
* NUM_SIX
|
|
|
*/
|
|
|
NUM_SIX: 102,
|
|
|
|
|
|
/**
|
|
|
* NUM_SEVEN
|
|
|
*/
|
|
|
NUM_SEVEN: 103,
|
|
|
|
|
|
/**
|
|
|
* NUM_EIGHT
|
|
|
*/
|
|
|
NUM_EIGHT: 104,
|
|
|
|
|
|
/**
|
|
|
* NUM_NINE
|
|
|
*/
|
|
|
NUM_NINE: 105,
|
|
|
|
|
|
/**
|
|
|
* NUM_MULTIPLY
|
|
|
*/
|
|
|
NUM_MULTIPLY: 106,
|
|
|
|
|
|
/**
|
|
|
* NUM_PLUS
|
|
|
*/
|
|
|
NUM_PLUS: 107,
|
|
|
|
|
|
/**
|
|
|
* NUM_MINUS
|
|
|
*/
|
|
|
NUM_MINUS: 109,
|
|
|
|
|
|
/**
|
|
|
* NUM_PERIOD
|
|
|
*/
|
|
|
NUM_PERIOD: 110,
|
|
|
|
|
|
/**
|
|
|
* NUM_DIVISION
|
|
|
*/
|
|
|
NUM_DIVISION: 111,
|
|
|
|
|
|
/**
|
|
|
* F1
|
|
|
*/
|
|
|
F1: 112,
|
|
|
|
|
|
/**
|
|
|
* F2
|
|
|
*/
|
|
|
F2: 113,
|
|
|
|
|
|
/**
|
|
|
* F3
|
|
|
*/
|
|
|
F3: 114,
|
|
|
|
|
|
/**
|
|
|
* F4
|
|
|
*/
|
|
|
F4: 115,
|
|
|
|
|
|
/**
|
|
|
* F5
|
|
|
*/
|
|
|
F5: 116,
|
|
|
|
|
|
/**
|
|
|
* F6
|
|
|
*/
|
|
|
F6: 117,
|
|
|
|
|
|
/**
|
|
|
* F7
|
|
|
*/
|
|
|
F7: 118,
|
|
|
|
|
|
/**
|
|
|
* F8
|
|
|
*/
|
|
|
F8: 119,
|
|
|
|
|
|
/**
|
|
|
* F9
|
|
|
*/
|
|
|
F9: 120,
|
|
|
|
|
|
/**
|
|
|
* F10
|
|
|
*/
|
|
|
F10: 121,
|
|
|
|
|
|
/**
|
|
|
* F11
|
|
|
*/
|
|
|
F11: 122,
|
|
|
|
|
|
/**
|
|
|
* F12
|
|
|
*/
|
|
|
F12: 123,
|
|
|
|
|
|
/**
|
|
|
* NUMLOCK
|
|
|
*/
|
|
|
NUMLOCK: 144,
|
|
|
|
|
|
/**
|
|
|
* SEMICOLON
|
|
|
*/
|
|
|
SEMICOLON: 186,
|
|
|
|
|
|
/**
|
|
|
* DASH
|
|
|
*/
|
|
|
DASH: 189,
|
|
|
|
|
|
/**
|
|
|
* EQUALS
|
|
|
*/
|
|
|
EQUALS: 187,
|
|
|
|
|
|
/**
|
|
|
* COMMA
|
|
|
*/
|
|
|
COMMA: 188,
|
|
|
|
|
|
/**
|
|
|
* PERIOD
|
|
|
*/
|
|
|
PERIOD: 190,
|
|
|
|
|
|
/**
|
|
|
* SLASH
|
|
|
*/
|
|
|
SLASH: 191,
|
|
|
|
|
|
/**
|
|
|
* APOSTROPHE
|
|
|
*/
|
|
|
APOSTROPHE: 192,
|
|
|
|
|
|
/**
|
|
|
* SINGLE_QUOTE
|
|
|
*/
|
|
|
SINGLE_QUOTE: 222,
|
|
|
|
|
|
/**
|
|
|
* OPEN_SQUARE_BRACKET
|
|
|
*/
|
|
|
OPEN_SQUARE_BRACKET: 219,
|
|
|
|
|
|
/**
|
|
|
* BACKSLASH
|
|
|
*/
|
|
|
BACKSLASH: 220,
|
|
|
|
|
|
/**
|
|
|
* CLOSE_SQUARE_BRACKET
|
|
|
*/
|
|
|
CLOSE_SQUARE_BRACKET: 221,
|
|
|
|
|
|
/**
|
|
|
* WIN_KEY
|
|
|
*/
|
|
|
WIN_KEY: 224,
|
|
|
|
|
|
/**
|
|
|
* MAC_FF_META
|
|
|
*/
|
|
|
MAC_FF_META: 224,
|
|
|
|
|
|
/**
|
|
|
* WIN_IME
|
|
|
*/
|
|
|
WIN_IME: 229,
|
|
|
// ======================== Function ========================
|
|
|
|
|
|
/**
|
|
|
* whether text and modified key is entered at the same time.
|
|
|
*/
|
|
|
isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
|
|
|
var keyCode = e.keyCode;
|
|
|
|
|
|
if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
|
|
|
keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
|
|
|
return false;
|
|
|
} // The following keys are quite harmless, even in combination with
|
|
|
// CTRL, ALT or SHIFT.
|
|
|
|
|
|
|
|
|
switch (keyCode) {
|
|
|
case KeyCode.ALT:
|
|
|
case KeyCode.CAPS_LOCK:
|
|
|
case KeyCode.CONTEXT_MENU:
|
|
|
case KeyCode.CTRL:
|
|
|
case KeyCode.DOWN:
|
|
|
case KeyCode.END:
|
|
|
case KeyCode.ESC:
|
|
|
case KeyCode.HOME:
|
|
|
case KeyCode.INSERT:
|
|
|
case KeyCode.LEFT:
|
|
|
case KeyCode.MAC_FF_META:
|
|
|
case KeyCode.META:
|
|
|
case KeyCode.NUMLOCK:
|
|
|
case KeyCode.NUM_CENTER:
|
|
|
case KeyCode.PAGE_DOWN:
|
|
|
case KeyCode.PAGE_UP:
|
|
|
case KeyCode.PAUSE:
|
|
|
case KeyCode.PRINT_SCREEN:
|
|
|
case KeyCode.RIGHT:
|
|
|
case KeyCode.SHIFT:
|
|
|
case KeyCode.UP:
|
|
|
case KeyCode.WIN_KEY:
|
|
|
case KeyCode.WIN_KEY_RIGHT:
|
|
|
return false;
|
|
|
|
|
|
default:
|
|
|
return true;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* whether character is entered.
|
|
|
*/
|
|
|
isCharacterKey: function isCharacterKey(keyCode) {
|
|
|
if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
|
|
|
return true;
|
|
|
} // Safari sends zero key code for non-latin characters.
|
|
|
|
|
|
|
|
|
if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
switch (keyCode) {
|
|
|
case KeyCode.SPACE:
|
|
|
case KeyCode.QUESTION_MARK:
|
|
|
case KeyCode.NUM_PLUS:
|
|
|
case KeyCode.NUM_MINUS:
|
|
|
case KeyCode.NUM_PERIOD:
|
|
|
case KeyCode.NUM_DIVISION:
|
|
|
case KeyCode.SEMICOLON:
|
|
|
case KeyCode.DASH:
|
|
|
case KeyCode.EQUALS:
|
|
|
case KeyCode.COMMA:
|
|
|
case KeyCode.PERIOD:
|
|
|
case KeyCode.SLASH:
|
|
|
case KeyCode.APOSTROPHE:
|
|
|
case KeyCode.SINGLE_QUOTE:
|
|
|
case KeyCode.OPEN_SQUARE_BRACKET:
|
|
|
case KeyCode.BACKSLASH:
|
|
|
case KeyCode.CLOSE_SQUARE_BRACKET:
|
|
|
return true;
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (KeyCode);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/Portal.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Portal.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js");
|
|
|
|
|
|
|
|
|
|
|
|
var Portal = Object(react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function (props, ref) {
|
|
|
var didUpdate = props.didUpdate,
|
|
|
getContainer = props.getContainer,
|
|
|
children = props.children;
|
|
|
var containerRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(); // Ref return nothing, only for wrapper check exist
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_0__["useImperativeHandle"])(ref, function () {
|
|
|
return {};
|
|
|
}); // Create container in client side with sync to avoid useEffect not get ref
|
|
|
|
|
|
var initRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false);
|
|
|
|
|
|
if (!initRef.current && Object(_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_2__["default"])()) {
|
|
|
containerRef.current = getContainer();
|
|
|
initRef.current = true;
|
|
|
} // [Legacy] Used by `rc-trigger`
|
|
|
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
|
|
didUpdate === null || didUpdate === void 0 ? void 0 : didUpdate(props);
|
|
|
});
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
|
|
return function () {
|
|
|
var _containerRef$current, _containerRef$current2;
|
|
|
|
|
|
// [Legacy] This should not be handle by Portal but parent PortalWrapper instead.
|
|
|
// Since some component use `Portal` directly, we have to keep the logic here.
|
|
|
(_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : (_containerRef$current2 = _containerRef$current.parentNode) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.removeChild(containerRef.current);
|
|
|
};
|
|
|
}, []);
|
|
|
return containerRef.current ? react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.createPortal(children, containerRef.current) : null;
|
|
|
});
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Portal);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/createChainedFunction.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/createChainedFunction.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createChainedFunction; });
|
|
|
/**
|
|
|
* Safe chained function
|
|
|
*
|
|
|
* Will only create a new function if needed,
|
|
|
* otherwise will pass back existing functions or null.
|
|
|
*
|
|
|
* @returns {function|null}
|
|
|
*/
|
|
|
function createChainedFunction() {
|
|
|
var args = [].slice.call(arguments, 0);
|
|
|
|
|
|
if (args.length === 1) {
|
|
|
return args[0];
|
|
|
}
|
|
|
|
|
|
return function chainedFunction() {
|
|
|
for (var i = 0; i < args.length; i++) {
|
|
|
if (args[i] && args[i].apply) {
|
|
|
args[i].apply(this, arguments);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/getScrollBarSize.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/getScrollBarSize.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollBarSize; });
|
|
|
var cached;
|
|
|
function getScrollBarSize(fresh) {
|
|
|
if (typeof document === 'undefined') {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
if (fresh || cached === undefined) {
|
|
|
var inner = document.createElement('div');
|
|
|
inner.style.width = '100%';
|
|
|
inner.style.height = '200px';
|
|
|
var outer = document.createElement('div');
|
|
|
var outerStyle = outer.style;
|
|
|
outerStyle.position = 'absolute';
|
|
|
outerStyle.top = 0;
|
|
|
outerStyle.left = 0;
|
|
|
outerStyle.pointerEvents = 'none';
|
|
|
outerStyle.visibility = 'hidden';
|
|
|
outerStyle.width = '200px';
|
|
|
outerStyle.height = '150px';
|
|
|
outerStyle.overflow = 'hidden';
|
|
|
outer.appendChild(inner);
|
|
|
document.body.appendChild(outer);
|
|
|
var widthContained = inner.offsetWidth;
|
|
|
outer.style.overflow = 'scroll';
|
|
|
var widthScroll = inner.offsetWidth;
|
|
|
|
|
|
if (widthContained === widthScroll) {
|
|
|
widthScroll = outer.clientWidth;
|
|
|
}
|
|
|
|
|
|
document.body.removeChild(outer);
|
|
|
cached = widthContained - widthScroll;
|
|
|
}
|
|
|
|
|
|
return cached;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/hooks/useMemo.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/hooks/useMemo.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useMemo; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function useMemo(getValue, condition, shouldUpdate) {
|
|
|
var cacheRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]({});
|
|
|
|
|
|
if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
|
cacheRef.current.value = getValue();
|
|
|
cacheRef.current.condition = condition;
|
|
|
}
|
|
|
|
|
|
return cacheRef.current.value;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/hooks/useMergedState.js":
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/hooks/useMergedState.js ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useControlledState; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
function useControlledState(defaultStateValue, option) {
|
|
|
var _ref = option || {},
|
|
|
defaultValue = _ref.defaultValue,
|
|
|
value = _ref.value,
|
|
|
onChange = _ref.onChange,
|
|
|
postState = _ref.postState;
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](function () {
|
|
|
if (value !== undefined) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
if (defaultValue !== undefined) {
|
|
|
return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
|
|
|
}
|
|
|
|
|
|
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
|
|
}),
|
|
|
_React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_React$useState, 2),
|
|
|
innerValue = _React$useState2[0],
|
|
|
setInnerValue = _React$useState2[1];
|
|
|
|
|
|
var mergedValue = value !== undefined ? value : innerValue;
|
|
|
|
|
|
if (postState) {
|
|
|
mergedValue = postState(mergedValue);
|
|
|
}
|
|
|
|
|
|
function triggerChange(newValue) {
|
|
|
setInnerValue(newValue);
|
|
|
|
|
|
if (mergedValue !== newValue && onChange) {
|
|
|
onChange(newValue, mergedValue);
|
|
|
}
|
|
|
} // Effect of reset value to `undefined`
|
|
|
|
|
|
|
|
|
var firstRenderRef = react__WEBPACK_IMPORTED_MODULE_1__["useRef"](true);
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () {
|
|
|
if (firstRenderRef.current) {
|
|
|
firstRenderRef.current = false;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (value === undefined) {
|
|
|
setInnerValue(value);
|
|
|
}
|
|
|
}, [value]);
|
|
|
return [mergedValue, triggerChange];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/isMobile.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/isMobile.js ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function () {
|
|
|
if (typeof navigator === 'undefined' || typeof window === 'undefined') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var agent = navigator.userAgent || navigator.vendor || window.opera;
|
|
|
|
|
|
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4))) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/omit.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return omit; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
function omit(obj, fields) {
|
|
|
var clone = _objectSpread({}, obj);
|
|
|
|
|
|
if (Array.isArray(fields)) {
|
|
|
fields.forEach(function (key) {
|
|
|
delete clone[key];
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/pickAttrs.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pickAttrs; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
|
|
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
|
|
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
|
|
/* eslint-enable max-len */
|
|
|
|
|
|
var ariaPrefix = 'aria-';
|
|
|
var dataPrefix = 'data-';
|
|
|
|
|
|
function match(key, prefix) {
|
|
|
return key.indexOf(prefix) === 0;
|
|
|
}
|
|
|
/**
|
|
|
* Picker props from exist props with filter
|
|
|
* @param props Passed props
|
|
|
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
|
|
*/
|
|
|
|
|
|
|
|
|
function pickAttrs(props) {
|
|
|
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
var mergedConfig;
|
|
|
|
|
|
if (ariaOnly === false) {
|
|
|
mergedConfig = {
|
|
|
aria: true,
|
|
|
data: true,
|
|
|
attr: true
|
|
|
};
|
|
|
} else if (ariaOnly === true) {
|
|
|
mergedConfig = {
|
|
|
aria: true
|
|
|
};
|
|
|
} else {
|
|
|
mergedConfig = _objectSpread({}, ariaOnly);
|
|
|
}
|
|
|
|
|
|
var attrs = {};
|
|
|
Object.keys(props).forEach(function (key) {
|
|
|
if ( // Aria
|
|
|
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) || // Data
|
|
|
mergedConfig.data && match(key, dataPrefix) || // Attr
|
|
|
mergedConfig.attr && propList.includes(key)) {
|
|
|
attrs[key] = props[key];
|
|
|
}
|
|
|
});
|
|
|
return attrs;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/raf.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/raf.js ***!
|
|
|
\****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapperRaf; });
|
|
|
var raf = function raf(callback) {
|
|
|
return +setTimeout(callback, 16);
|
|
|
};
|
|
|
|
|
|
var caf = function caf(num) {
|
|
|
return clearTimeout(num);
|
|
|
};
|
|
|
|
|
|
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
|
raf = function raf(callback) {
|
|
|
return window.requestAnimationFrame(callback);
|
|
|
};
|
|
|
|
|
|
caf = function caf(handle) {
|
|
|
return window.cancelAnimationFrame(handle);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var rafUUID = 0;
|
|
|
var rafIds = new Map();
|
|
|
|
|
|
function cleanup(id) {
|
|
|
rafIds.delete(id);
|
|
|
}
|
|
|
|
|
|
function wrapperRaf(callback) {
|
|
|
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
|
rafUUID += 1;
|
|
|
var id = rafUUID;
|
|
|
|
|
|
function callRef(leftTimes) {
|
|
|
if (leftTimes === 0) {
|
|
|
// Clean up
|
|
|
cleanup(id); // Trigger
|
|
|
|
|
|
callback();
|
|
|
} else {
|
|
|
// Next raf
|
|
|
var realId = raf(function () {
|
|
|
callRef(leftTimes - 1);
|
|
|
}); // Bind real raf id
|
|
|
|
|
|
rafIds.set(id, realId);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callRef(times);
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
wrapperRaf.cancel = function (id) {
|
|
|
var realId = rafIds.get(id);
|
|
|
cleanup(realId);
|
|
|
return caf(realId);
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/ref.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/ref.js ***!
|
|
|
\****************************************/
|
|
|
/*! exports provided: fillRef, composeRef, supportRef */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fillRef", function() { return fillRef; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "composeRef", function() { return composeRef; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportRef", function() { return supportRef; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
|
|
|
|
function fillRef(ref, node) {
|
|
|
if (typeof ref === 'function') {
|
|
|
ref(node);
|
|
|
} else if (Object(_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(ref) === 'object' && ref && 'current' in ref) {
|
|
|
ref.current = node;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Merge refs into one ref function to support ref passing.
|
|
|
*/
|
|
|
|
|
|
function composeRef() {
|
|
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
refs[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
return function (node) {
|
|
|
refs.forEach(function (ref) {
|
|
|
fillRef(ref, node);
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
function supportRef(nodeOrComponent) {
|
|
|
var _type$prototype, _nodeOrComponent$prot;
|
|
|
|
|
|
var type = Object(react_is__WEBPACK_IMPORTED_MODULE_1__["isMemo"])(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
|
|
|
|
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
|
return false;
|
|
|
} // Class component
|
|
|
|
|
|
|
|
|
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/utils/get.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/utils/get.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return get; });
|
|
|
function get(entity, path) {
|
|
|
var current = entity;
|
|
|
|
|
|
for (var i = 0; i < path.length; i += 1) {
|
|
|
if (current === null || current === undefined) {
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
current = current[path[i]];
|
|
|
}
|
|
|
|
|
|
return current;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/utils/set.js":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/utils/set.js ***!
|
|
|
\**********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return set; });
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "./node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
|
/* harmony import */ var _get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get */ "./node_modules/rc-util/es/utils/get.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
if (!paths.length) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
var _paths = Object(_babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_2__["default"])(paths),
|
|
|
path = _paths[0],
|
|
|
restPath = _paths.slice(1);
|
|
|
|
|
|
var clone;
|
|
|
|
|
|
if (!entity && typeof path === 'number') {
|
|
|
clone = [];
|
|
|
} else if (Array.isArray(entity)) {
|
|
|
clone = Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(entity);
|
|
|
} else {
|
|
|
clone = _objectSpread({}, entity);
|
|
|
} // Delete prop if `removeIfUndefined` and value is undefined
|
|
|
|
|
|
|
|
|
if (removeIfUndefined && value === undefined && restPath.length === 1) {
|
|
|
delete clone[path][restPath[0]];
|
|
|
} else {
|
|
|
clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
function set(entity, paths, value) {
|
|
|
var removeIfUndefined = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
|
|
|
|
// Do nothing if `removeIfUndefined` and parent object not exist
|
|
|
if (paths.length && removeIfUndefined && value === undefined && !Object(_get__WEBPACK_IMPORTED_MODULE_3__["default"])(entity, paths.slice(0, -1))) {
|
|
|
return entity;
|
|
|
}
|
|
|
|
|
|
return internalSet(entity, paths, value, removeIfUndefined);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/es/warning.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/warning.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: warning, note, resetWarned, call, warningOnce, noteOnce, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "note", function() { return note; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return resetWarned; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "call", function() { return call; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningOnce", function() { return warningOnce; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noteOnce", function() { return noteOnce; });
|
|
|
/* eslint-disable no-console */
|
|
|
var warned = {};
|
|
|
function warning(valid, message) {
|
|
|
// Support uglify
|
|
|
if ( true && !valid && console !== undefined) {
|
|
|
console.error("Warning: ".concat(message));
|
|
|
}
|
|
|
}
|
|
|
function note(valid, message) {
|
|
|
// Support uglify
|
|
|
if ( true && !valid && console !== undefined) {
|
|
|
console.warn("Note: ".concat(message));
|
|
|
}
|
|
|
}
|
|
|
function resetWarned() {
|
|
|
warned = {};
|
|
|
}
|
|
|
function call(method, valid, message) {
|
|
|
if (!valid && !warned[message]) {
|
|
|
method(false, message);
|
|
|
warned[message] = true;
|
|
|
}
|
|
|
}
|
|
|
function warningOnce(valid, message) {
|
|
|
call(warning, valid, message);
|
|
|
}
|
|
|
function noteOnce(valid, message) {
|
|
|
call(note, valid, message);
|
|
|
}
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (warningOnce);
|
|
|
/* eslint-enable */
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Children/toArray.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Children/toArray.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = toArray;
|
|
|
|
|
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
|
|
|
function toArray(children) {
|
|
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
var ret = [];
|
|
|
|
|
|
_react.default.Children.forEach(children, function (child) {
|
|
|
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(child)) {
|
|
|
ret = ret.concat(toArray(child));
|
|
|
} else if ((0, _reactIs.isFragment)(child) && child.props) {
|
|
|
ret = ret.concat(toArray(child.props.children, option));
|
|
|
} else {
|
|
|
ret.push(child);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Dom/addEventListener.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Dom/addEventListener.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = addEventListenerWrap;
|
|
|
|
|
|
var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"));
|
|
|
|
|
|
function addEventListenerWrap(target, eventType, cb, option) {
|
|
|
/* eslint camelcase: 2 */
|
|
|
var callback = _reactDom.default.unstable_batchedUpdates ? function run(e) {
|
|
|
_reactDom.default.unstable_batchedUpdates(cb, e);
|
|
|
} : cb;
|
|
|
|
|
|
if (target.addEventListener) {
|
|
|
target.addEventListener(eventType, callback, option);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
remove: function remove() {
|
|
|
if (target.removeEventListener) {
|
|
|
target.removeEventListener(eventType, callback);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Dom/canUseDom.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Dom/canUseDom.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = canUseDom;
|
|
|
|
|
|
function canUseDom() {
|
|
|
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Dom/css.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Dom/css.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.get = get;
|
|
|
exports.set = set;
|
|
|
exports.getOuterWidth = getOuterWidth;
|
|
|
exports.getOuterHeight = getOuterHeight;
|
|
|
exports.getDocSize = getDocSize;
|
|
|
exports.getClientSize = getClientSize;
|
|
|
exports.getScroll = getScroll;
|
|
|
exports.getOffset = getOffset;
|
|
|
|
|
|
/* eslint-disable no-nested-ternary */
|
|
|
var PIXEL_PATTERN = /margin|padding|width|height|max|min|offset/;
|
|
|
var removePixel = {
|
|
|
left: true,
|
|
|
top: true
|
|
|
};
|
|
|
var floatMap = {
|
|
|
cssFloat: 1,
|
|
|
styleFloat: 1,
|
|
|
float: 1
|
|
|
};
|
|
|
|
|
|
function getComputedStyle(node) {
|
|
|
return node.nodeType === 1 ? node.ownerDocument.defaultView.getComputedStyle(node, null) : {};
|
|
|
}
|
|
|
|
|
|
function getStyleValue(node, type, value) {
|
|
|
type = type.toLowerCase();
|
|
|
|
|
|
if (value === 'auto') {
|
|
|
if (type === 'height') {
|
|
|
return node.offsetHeight;
|
|
|
}
|
|
|
|
|
|
if (type === 'width') {
|
|
|
return node.offsetWidth;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(type in removePixel)) {
|
|
|
removePixel[type] = PIXEL_PATTERN.test(type);
|
|
|
}
|
|
|
|
|
|
return removePixel[type] ? parseFloat(value) || 0 : value;
|
|
|
}
|
|
|
|
|
|
function get(node, name) {
|
|
|
var length = arguments.length;
|
|
|
var style = getComputedStyle(node);
|
|
|
name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
|
|
|
return length === 1 ? style : getStyleValue(node, name, style[name] || node.style[name]);
|
|
|
}
|
|
|
|
|
|
function set(node, name, value) {
|
|
|
var length = arguments.length;
|
|
|
name = floatMap[name] ? 'cssFloat' in node.style ? 'cssFloat' : 'styleFloat' : name;
|
|
|
|
|
|
if (length === 3) {
|
|
|
if (typeof value === 'number' && PIXEL_PATTERN.test(name)) {
|
|
|
value = "".concat(value, "px");
|
|
|
}
|
|
|
|
|
|
node.style[name] = value; // Number
|
|
|
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
for (var x in name) {
|
|
|
if (name.hasOwnProperty(x)) {
|
|
|
set(node, x, name[x]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return getComputedStyle(node);
|
|
|
}
|
|
|
|
|
|
function getOuterWidth(el) {
|
|
|
if (el === document.body) {
|
|
|
return document.documentElement.clientWidth;
|
|
|
}
|
|
|
|
|
|
return el.offsetWidth;
|
|
|
}
|
|
|
|
|
|
function getOuterHeight(el) {
|
|
|
if (el === document.body) {
|
|
|
return window.innerHeight || document.documentElement.clientHeight;
|
|
|
}
|
|
|
|
|
|
return el.offsetHeight;
|
|
|
}
|
|
|
|
|
|
function getDocSize() {
|
|
|
var width = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);
|
|
|
var height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
|
|
|
return {
|
|
|
width: width,
|
|
|
height: height
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getClientSize() {
|
|
|
var width = document.documentElement.clientWidth;
|
|
|
var height = window.innerHeight || document.documentElement.clientHeight;
|
|
|
return {
|
|
|
width: width,
|
|
|
height: height
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getScroll() {
|
|
|
return {
|
|
|
scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),
|
|
|
scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getOffset(node) {
|
|
|
var box = node.getBoundingClientRect();
|
|
|
var docElem = document.documentElement; // < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft
|
|
|
|
|
|
return {
|
|
|
left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
|
|
|
top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Dom/dynamicCSS.js":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Dom/dynamicCSS.js ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.injectCSS = injectCSS;
|
|
|
exports.updateCSS = updateCSS;
|
|
|
|
|
|
var _canUseDom = _interopRequireDefault(__webpack_require__(/*! ./canUseDom */ "./node_modules/rc-util/lib/Dom/canUseDom.js"));
|
|
|
|
|
|
var MARK_KEY = "rc-util-key";
|
|
|
|
|
|
function getContainer(option) {
|
|
|
if (option.attachTo) {
|
|
|
return option.attachTo;
|
|
|
}
|
|
|
|
|
|
var head = document.querySelector('head');
|
|
|
return head || document.body;
|
|
|
}
|
|
|
|
|
|
function injectCSS(css) {
|
|
|
var _option$csp;
|
|
|
|
|
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
|
|
|
|
if (!(0, _canUseDom.default)()) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var styleNode = document.createElement('style');
|
|
|
|
|
|
if ((_option$csp = option.csp) === null || _option$csp === void 0 ? void 0 : _option$csp.nonce) {
|
|
|
var _option$csp2;
|
|
|
|
|
|
styleNode.nonce = (_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce;
|
|
|
}
|
|
|
|
|
|
styleNode.innerHTML = css;
|
|
|
var container = getContainer(option);
|
|
|
var firstChild = container.firstChild;
|
|
|
|
|
|
if (option.prepend && firstChild) {
|
|
|
container.insertBefore(styleNode, firstChild);
|
|
|
} else {
|
|
|
container.appendChild(styleNode);
|
|
|
}
|
|
|
|
|
|
return styleNode;
|
|
|
}
|
|
|
|
|
|
var containerCache = new Map();
|
|
|
|
|
|
function updateCSS(css, key) {
|
|
|
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
|
var container = getContainer(option); // Get real parent
|
|
|
|
|
|
if (!containerCache.has(container)) {
|
|
|
var placeholderStyle = injectCSS('', option);
|
|
|
var parentNode = placeholderStyle.parentNode;
|
|
|
containerCache.set(container, parentNode);
|
|
|
parentNode.removeChild(placeholderStyle);
|
|
|
}
|
|
|
|
|
|
var existNode = Array.from(containerCache.get(container).children).find(function (node) {
|
|
|
return node.tagName === 'STYLE' && node[MARK_KEY] === key;
|
|
|
});
|
|
|
|
|
|
if (existNode) {
|
|
|
var _option$csp3, _option$csp4;
|
|
|
|
|
|
if (((_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce) && existNode.nonce !== ((_option$csp4 = option.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) {
|
|
|
var _option$csp5;
|
|
|
|
|
|
existNode.nonce = (_option$csp5 = option.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce;
|
|
|
}
|
|
|
|
|
|
if (existNode.innerHTML !== css) {
|
|
|
existNode.innerHTML = css;
|
|
|
}
|
|
|
|
|
|
return existNode;
|
|
|
}
|
|
|
|
|
|
var newNode = injectCSS(css, option);
|
|
|
newNode[MARK_KEY] = key;
|
|
|
return newNode;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/Dom/isVisible.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/Dom/isVisible.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
|
|
|
var _default = function _default(element) {
|
|
|
if (!element) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (element.offsetParent) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (element.getBBox) {
|
|
|
var box = element.getBBox();
|
|
|
|
|
|
if (box.width || box.height) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (element.getBoundingClientRect) {
|
|
|
var _box = element.getBoundingClientRect();
|
|
|
|
|
|
if (_box.width || _box.height) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/getScrollBarSize.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/getScrollBarSize.js ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = getScrollBarSize;
|
|
|
var cached;
|
|
|
|
|
|
function getScrollBarSize(fresh) {
|
|
|
if (typeof document === 'undefined') {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
if (fresh || cached === undefined) {
|
|
|
var inner = document.createElement('div');
|
|
|
inner.style.width = '100%';
|
|
|
inner.style.height = '200px';
|
|
|
var outer = document.createElement('div');
|
|
|
var outerStyle = outer.style;
|
|
|
outerStyle.position = 'absolute';
|
|
|
outerStyle.top = 0;
|
|
|
outerStyle.left = 0;
|
|
|
outerStyle.pointerEvents = 'none';
|
|
|
outerStyle.visibility = 'hidden';
|
|
|
outerStyle.width = '200px';
|
|
|
outerStyle.height = '150px';
|
|
|
outerStyle.overflow = 'hidden';
|
|
|
outer.appendChild(inner);
|
|
|
document.body.appendChild(outer);
|
|
|
var widthContained = inner.offsetWidth;
|
|
|
outer.style.overflow = 'scroll';
|
|
|
var widthScroll = inner.offsetWidth;
|
|
|
|
|
|
if (widthContained === widthScroll) {
|
|
|
widthScroll = outer.clientWidth;
|
|
|
}
|
|
|
|
|
|
document.body.removeChild(outer);
|
|
|
cached = widthContained - widthScroll;
|
|
|
}
|
|
|
|
|
|
return cached;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/hooks/useMemo.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/hooks/useMemo.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = useMemo;
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function useMemo(getValue, condition, shouldUpdate) {
|
|
|
var cacheRef = React.useRef({});
|
|
|
|
|
|
if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
|
cacheRef.current.value = getValue();
|
|
|
cacheRef.current.condition = condition;
|
|
|
}
|
|
|
|
|
|
return cacheRef.current.value;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/hooks/useMergedState.js":
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/hooks/useMergedState.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime/helpers/interopRequireWildcard */ "./node_modules/@babel/runtime/helpers/interopRequireWildcard.js");
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = useControlledState;
|
|
|
|
|
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js"));
|
|
|
|
|
|
var React = _interopRequireWildcard(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
|
|
|
|
|
|
function useControlledState(defaultStateValue, option) {
|
|
|
var _ref = option || {},
|
|
|
defaultValue = _ref.defaultValue,
|
|
|
value = _ref.value,
|
|
|
onChange = _ref.onChange,
|
|
|
postState = _ref.postState;
|
|
|
|
|
|
var _React$useState = React.useState(function () {
|
|
|
if (value !== undefined) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
if (defaultValue !== undefined) {
|
|
|
return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
|
|
|
}
|
|
|
|
|
|
return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
|
|
|
}),
|
|
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
|
innerValue = _React$useState2[0],
|
|
|
setInnerValue = _React$useState2[1];
|
|
|
|
|
|
var mergedValue = value !== undefined ? value : innerValue;
|
|
|
|
|
|
if (postState) {
|
|
|
mergedValue = postState(mergedValue);
|
|
|
}
|
|
|
|
|
|
function triggerChange(newValue) {
|
|
|
setInnerValue(newValue);
|
|
|
|
|
|
if (mergedValue !== newValue && onChange) {
|
|
|
onChange(newValue, mergedValue);
|
|
|
}
|
|
|
} // Effect of reset value to `undefined`
|
|
|
|
|
|
|
|
|
var firstRenderRef = React.useRef(true);
|
|
|
React.useEffect(function () {
|
|
|
if (firstRenderRef.current) {
|
|
|
firstRenderRef.current = false;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (value === undefined) {
|
|
|
setInnerValue(value);
|
|
|
}
|
|
|
}, [value]);
|
|
|
return [mergedValue, triggerChange];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/omit.js":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/omit.js ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = omit;
|
|
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
function omit(obj, fields) {
|
|
|
var clone = _objectSpread({}, obj);
|
|
|
|
|
|
if (Array.isArray(fields)) {
|
|
|
fields.forEach(function (key) {
|
|
|
delete clone[key];
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/raf.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/raf.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = wrapperRaf;
|
|
|
|
|
|
var raf = function raf(callback) {
|
|
|
return +setTimeout(callback, 16);
|
|
|
};
|
|
|
|
|
|
var caf = function caf(num) {
|
|
|
return clearTimeout(num);
|
|
|
};
|
|
|
|
|
|
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
|
|
|
raf = function raf(callback) {
|
|
|
return window.requestAnimationFrame(callback);
|
|
|
};
|
|
|
|
|
|
caf = function caf(handle) {
|
|
|
return window.cancelAnimationFrame(handle);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var rafUUID = 0;
|
|
|
var rafIds = new Map();
|
|
|
|
|
|
function cleanup(id) {
|
|
|
rafIds.delete(id);
|
|
|
}
|
|
|
|
|
|
function wrapperRaf(callback) {
|
|
|
var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
|
rafUUID += 1;
|
|
|
var id = rafUUID;
|
|
|
|
|
|
function callRef(leftTimes) {
|
|
|
if (leftTimes === 0) {
|
|
|
// Clean up
|
|
|
cleanup(id); // Trigger
|
|
|
|
|
|
callback();
|
|
|
} else {
|
|
|
// Next raf
|
|
|
var realId = raf(function () {
|
|
|
callRef(leftTimes - 1);
|
|
|
}); // Bind real raf id
|
|
|
|
|
|
rafIds.set(id, realId);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callRef(times);
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
wrapperRaf.cancel = function (id) {
|
|
|
var realId = rafIds.get(id);
|
|
|
cleanup(realId);
|
|
|
return caf(realId);
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/ref.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/ref.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.fillRef = fillRef;
|
|
|
exports.composeRef = composeRef;
|
|
|
exports.supportRef = supportRef;
|
|
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js"));
|
|
|
|
|
|
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
|
|
|
function fillRef(ref, node) {
|
|
|
if (typeof ref === 'function') {
|
|
|
ref(node);
|
|
|
} else if ((0, _typeof2.default)(ref) === 'object' && ref && 'current' in ref) {
|
|
|
ref.current = node;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Merge refs into one ref function to support ref passing.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function composeRef() {
|
|
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
refs[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
return function (node) {
|
|
|
refs.forEach(function (ref) {
|
|
|
fillRef(ref, node);
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function supportRef(nodeOrComponent) {
|
|
|
var _type$prototype, _nodeOrComponent$prot;
|
|
|
|
|
|
var type = (0, _reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node
|
|
|
|
|
|
if (typeof type === 'function' && !((_type$prototype = type.prototype) === null || _type$prototype === void 0 ? void 0 : _type$prototype.render)) {
|
|
|
return false;
|
|
|
} // Class component
|
|
|
|
|
|
|
|
|
if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) === null || _nodeOrComponent$prot === void 0 ? void 0 : _nodeOrComponent$prot.render)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
/* eslint-enable */
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-util/lib/warning.js":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./node_modules/rc-util/lib/warning.js ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.warning = warning;
|
|
|
exports.note = note;
|
|
|
exports.resetWarned = resetWarned;
|
|
|
exports.call = call;
|
|
|
exports.warningOnce = warningOnce;
|
|
|
exports.noteOnce = noteOnce;
|
|
|
exports.default = void 0;
|
|
|
|
|
|
/* eslint-disable no-console */
|
|
|
var warned = {};
|
|
|
|
|
|
function warning(valid, message) {
|
|
|
// Support uglify
|
|
|
if ( true && !valid && console !== undefined) {
|
|
|
console.error("Warning: ".concat(message));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function note(valid, message) {
|
|
|
// Support uglify
|
|
|
if ( true && !valid && console !== undefined) {
|
|
|
console.warn("Note: ".concat(message));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function resetWarned() {
|
|
|
warned = {};
|
|
|
}
|
|
|
|
|
|
function call(method, valid, message) {
|
|
|
if (!valid && !warned[message]) {
|
|
|
method(false, message);
|
|
|
warned[message] = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function warningOnce(valid, message) {
|
|
|
call(warning, valid, message);
|
|
|
}
|
|
|
|
|
|
function noteOnce(valid, message) {
|
|
|
call(note, valid, message);
|
|
|
}
|
|
|
|
|
|
var _default = warningOnce;
|
|
|
/* eslint-enable */
|
|
|
|
|
|
exports.default = _default;
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/Filler.js":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/Filler.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_resize_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-resize-observer */ "./node_modules/rc-resize-observer/es/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Fill component to provided the scroll content real height.
|
|
|
*/
|
|
|
|
|
|
var Filler = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](function (_ref, ref) {
|
|
|
var height = _ref.height,
|
|
|
offset = _ref.offset,
|
|
|
children = _ref.children,
|
|
|
prefixCls = _ref.prefixCls,
|
|
|
onInnerResize = _ref.onInnerResize;
|
|
|
var outerStyle = {};
|
|
|
var innerStyle = {
|
|
|
display: 'flex',
|
|
|
flexDirection: 'column'
|
|
|
};
|
|
|
|
|
|
if (offset !== undefined) {
|
|
|
outerStyle = {
|
|
|
height: height,
|
|
|
position: 'relative',
|
|
|
overflow: 'hidden'
|
|
|
};
|
|
|
innerStyle = _objectSpread(_objectSpread({}, innerStyle), {}, {
|
|
|
transform: "translateY(".concat(offset, "px)"),
|
|
|
position: 'absolute',
|
|
|
left: 0,
|
|
|
right: 0,
|
|
|
top: 0
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
style: outerStyle
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](rc_resize_observer__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
onResize: function onResize(_ref2) {
|
|
|
var offsetHeight = _ref2.offsetHeight;
|
|
|
|
|
|
if (offsetHeight && onInnerResize) {
|
|
|
onInnerResize();
|
|
|
}
|
|
|
}
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
style: innerStyle,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
|
|
|
ref: ref
|
|
|
}, children)));
|
|
|
});
|
|
|
Filler.displayName = 'Filler';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Filler);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/Item.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/Item.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: Item */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return Item; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function Item(_ref) {
|
|
|
var children = _ref.children,
|
|
|
setRef = _ref.setRef;
|
|
|
var refFunc = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (node) {
|
|
|
setRef(node);
|
|
|
}, []);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["cloneElement"](children, {
|
|
|
ref: refFunc
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/List.js":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/List.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: RawList, default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RawList", function() { return RawList; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _Filler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Filler */ "./node_modules/rc-virtual-list/es/Filler.js");
|
|
|
/* harmony import */ var _ScrollBar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ScrollBar */ "./node_modules/rc-virtual-list/es/ScrollBar.js");
|
|
|
/* harmony import */ var _hooks_useChildren__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/useChildren */ "./node_modules/rc-virtual-list/es/hooks/useChildren.js");
|
|
|
/* harmony import */ var _hooks_useHeights__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/useHeights */ "./node_modules/rc-virtual-list/es/hooks/useHeights.js");
|
|
|
/* harmony import */ var _hooks_useScrollTo__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hooks/useScrollTo */ "./node_modules/rc-virtual-list/es/hooks/useScrollTo.js");
|
|
|
/* harmony import */ var _hooks_useDiffItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hooks/useDiffItem */ "./node_modules/rc-virtual-list/es/hooks/useDiffItem.js");
|
|
|
/* harmony import */ var _hooks_useFrameWheel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./hooks/useFrameWheel */ "./node_modules/rc-virtual-list/es/hooks/useFrameWheel.js");
|
|
|
/* harmony import */ var _hooks_useMobileTouchMove__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./hooks/useMobileTouchMove */ "./node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js");
|
|
|
/* harmony import */ var _hooks_useOriginScroll__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./hooks/useOriginScroll */ "./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js");
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
|
|
|
|
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
|
|
|
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
|
|
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
|
|
|
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var EMPTY_DATA = [];
|
|
|
var ScrollStyle = {
|
|
|
overflowY: 'auto',
|
|
|
overflowAnchor: 'none'
|
|
|
};
|
|
|
function RawList(props, ref) {
|
|
|
var _props$prefixCls = props.prefixCls,
|
|
|
prefixCls = _props$prefixCls === void 0 ? 'rc-virtual-list' : _props$prefixCls,
|
|
|
className = props.className,
|
|
|
height = props.height,
|
|
|
itemHeight = props.itemHeight,
|
|
|
_props$fullHeight = props.fullHeight,
|
|
|
fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight,
|
|
|
style = props.style,
|
|
|
data = props.data,
|
|
|
children = props.children,
|
|
|
itemKey = props.itemKey,
|
|
|
virtual = props.virtual,
|
|
|
_props$component = props.component,
|
|
|
Component = _props$component === void 0 ? 'div' : _props$component,
|
|
|
onScroll = props.onScroll,
|
|
|
restProps = _objectWithoutProperties(props, ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "component", "onScroll"]); // ================================= MISC =================================
|
|
|
|
|
|
|
|
|
var useVirtual = !!(virtual !== false && height && itemHeight);
|
|
|
var inVirtual = useVirtual && data && itemHeight * data.length > height;
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(0),
|
|
|
_useState2 = _slicedToArray(_useState, 2),
|
|
|
scrollTop = _useState2[0],
|
|
|
setScrollTop = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(false),
|
|
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
|
scrollMoving = _useState4[0],
|
|
|
setScrollMoving = _useState4[1];
|
|
|
|
|
|
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className);
|
|
|
var mergedData = data || EMPTY_DATA;
|
|
|
var componentRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
|
var fillerInnerRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
|
var scrollBarRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(); // Hack on scrollbar to enable flash call
|
|
|
// =============================== Item Key ===============================
|
|
|
|
|
|
var getKey = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (item) {
|
|
|
if (typeof itemKey === 'function') {
|
|
|
return itemKey(item);
|
|
|
}
|
|
|
|
|
|
return item === null || item === void 0 ? void 0 : item[itemKey];
|
|
|
}, [itemKey]);
|
|
|
var sharedConfig = {
|
|
|
getKey: getKey
|
|
|
}; // ================================ Scroll ================================
|
|
|
|
|
|
function syncScrollTop(newTop) {
|
|
|
setScrollTop(function (origin) {
|
|
|
var value;
|
|
|
|
|
|
if (typeof newTop === 'function') {
|
|
|
value = newTop(origin);
|
|
|
} else {
|
|
|
value = newTop;
|
|
|
}
|
|
|
|
|
|
var alignedTop = keepInRange(value);
|
|
|
componentRef.current.scrollTop = alignedTop;
|
|
|
return alignedTop;
|
|
|
});
|
|
|
} // ================================ Legacy ================================
|
|
|
// Put ref here since the range is generate by follow
|
|
|
|
|
|
|
|
|
var rangeRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])({
|
|
|
start: 0,
|
|
|
end: mergedData.length
|
|
|
});
|
|
|
var diffItemRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
|
|
|
|
var _useDiffItem = Object(_hooks_useDiffItem__WEBPACK_IMPORTED_MODULE_7__["default"])(mergedData, getKey),
|
|
|
_useDiffItem2 = _slicedToArray(_useDiffItem, 1),
|
|
|
diffItem = _useDiffItem2[0];
|
|
|
|
|
|
diffItemRef.current = diffItem; // ================================ Height ================================
|
|
|
|
|
|
var _useHeights = Object(_hooks_useHeights__WEBPACK_IMPORTED_MODULE_5__["default"])(getKey, null, null),
|
|
|
_useHeights2 = _slicedToArray(_useHeights, 4),
|
|
|
setInstanceRef = _useHeights2[0],
|
|
|
collectHeight = _useHeights2[1],
|
|
|
heights = _useHeights2[2],
|
|
|
heightUpdatedMark = _useHeights2[3]; // ========================== Visible Calculation =========================
|
|
|
|
|
|
|
|
|
var _React$useMemo = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
|
|
|
if (!useVirtual) {
|
|
|
return {
|
|
|
scrollHeight: undefined,
|
|
|
start: 0,
|
|
|
end: mergedData.length - 1,
|
|
|
offset: undefined
|
|
|
};
|
|
|
} // Always use virtual scroll bar in avoid shaking
|
|
|
|
|
|
|
|
|
if (!inVirtual) {
|
|
|
var _fillerInnerRef$curre;
|
|
|
|
|
|
return {
|
|
|
scrollHeight: ((_fillerInnerRef$curre = fillerInnerRef.current) === null || _fillerInnerRef$curre === void 0 ? void 0 : _fillerInnerRef$curre.offsetHeight) || 0,
|
|
|
start: 0,
|
|
|
end: mergedData.length - 1,
|
|
|
offset: undefined
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var itemTop = 0;
|
|
|
var startIndex;
|
|
|
var startOffset;
|
|
|
var endIndex;
|
|
|
var dataLen = mergedData.length;
|
|
|
|
|
|
for (var i = 0; i < dataLen; i += 1) {
|
|
|
var item = mergedData[i];
|
|
|
var key = getKey(item);
|
|
|
var cacheHeight = heights.get(key);
|
|
|
var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
|
|
|
|
|
|
if (currentItemBottom >= scrollTop && startIndex === undefined) {
|
|
|
startIndex = i;
|
|
|
startOffset = itemTop;
|
|
|
} // Check item bottom in the range. We will render additional one item for motion usage
|
|
|
|
|
|
|
|
|
if (currentItemBottom > scrollTop + height && endIndex === undefined) {
|
|
|
endIndex = i;
|
|
|
}
|
|
|
|
|
|
itemTop = currentItemBottom;
|
|
|
} // Fallback to normal if not match. This code should never reach
|
|
|
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
|
|
|
if (startIndex === undefined) {
|
|
|
startIndex = 0;
|
|
|
startOffset = 0;
|
|
|
}
|
|
|
|
|
|
if (endIndex === undefined) {
|
|
|
endIndex = mergedData.length - 1;
|
|
|
} // Give cache to improve scroll experience
|
|
|
|
|
|
|
|
|
endIndex = Math.min(endIndex + 1, mergedData.length);
|
|
|
return {
|
|
|
scrollHeight: itemTop,
|
|
|
start: startIndex,
|
|
|
end: endIndex,
|
|
|
offset: startOffset
|
|
|
};
|
|
|
}, [inVirtual, useVirtual, scrollTop, mergedData, heightUpdatedMark, height]),
|
|
|
scrollHeight = _React$useMemo.scrollHeight,
|
|
|
start = _React$useMemo.start,
|
|
|
end = _React$useMemo.end,
|
|
|
offset = _React$useMemo.offset;
|
|
|
|
|
|
rangeRef.current.start = start;
|
|
|
rangeRef.current.end = end; // =============================== In Range ===============================
|
|
|
|
|
|
var maxScrollHeight = scrollHeight - height;
|
|
|
var maxScrollHeightRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(maxScrollHeight);
|
|
|
maxScrollHeightRef.current = maxScrollHeight;
|
|
|
|
|
|
function keepInRange(newScrollTop) {
|
|
|
var newTop = newScrollTop;
|
|
|
|
|
|
if (!Number.isNaN(maxScrollHeightRef.current)) {
|
|
|
newTop = Math.min(newTop, maxScrollHeightRef.current);
|
|
|
}
|
|
|
|
|
|
newTop = Math.max(newTop, 0);
|
|
|
return newTop;
|
|
|
}
|
|
|
|
|
|
var isScrollAtTop = scrollTop <= 0;
|
|
|
var isScrollAtBottom = scrollTop >= maxScrollHeight;
|
|
|
var originScroll = Object(_hooks_useOriginScroll__WEBPACK_IMPORTED_MODULE_10__["default"])(isScrollAtTop, isScrollAtBottom); // ================================ Scroll ================================
|
|
|
|
|
|
function onScrollBar(newScrollTop) {
|
|
|
var newTop = newScrollTop;
|
|
|
syncScrollTop(newTop);
|
|
|
} // When data size reduce. It may trigger native scroll event back to fit scroll position
|
|
|
|
|
|
|
|
|
function onFallbackScroll(e) {
|
|
|
var newScrollTop = e.currentTarget.scrollTop;
|
|
|
|
|
|
if (newScrollTop !== scrollTop) {
|
|
|
syncScrollTop(newScrollTop);
|
|
|
} // Trigger origin onScroll
|
|
|
|
|
|
|
|
|
onScroll === null || onScroll === void 0 ? void 0 : onScroll(e);
|
|
|
} // Since this added in global,should use ref to keep update
|
|
|
|
|
|
|
|
|
var _useFrameWheel = Object(_hooks_useFrameWheel__WEBPACK_IMPORTED_MODULE_8__["default"])(useVirtual, isScrollAtTop, isScrollAtBottom, function (offsetY) {
|
|
|
syncScrollTop(function (top) {
|
|
|
var newTop = top + offsetY;
|
|
|
return newTop;
|
|
|
});
|
|
|
}),
|
|
|
_useFrameWheel2 = _slicedToArray(_useFrameWheel, 2),
|
|
|
onRawWheel = _useFrameWheel2[0],
|
|
|
onFireFoxScroll = _useFrameWheel2[1]; // Mobile touch move
|
|
|
|
|
|
|
|
|
Object(_hooks_useMobileTouchMove__WEBPACK_IMPORTED_MODULE_9__["default"])(useVirtual, componentRef, function (deltaY, smoothOffset) {
|
|
|
if (originScroll(deltaY, smoothOffset)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
onRawWheel({
|
|
|
preventDefault: function preventDefault() {},
|
|
|
deltaY: deltaY
|
|
|
});
|
|
|
return true;
|
|
|
});
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"](function () {
|
|
|
// Firefox only
|
|
|
function onMozMousePixelScroll(e) {
|
|
|
if (useVirtual) {
|
|
|
e.preventDefault();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
componentRef.current.addEventListener('wheel', onRawWheel);
|
|
|
componentRef.current.addEventListener('DOMMouseScroll', onFireFoxScroll);
|
|
|
componentRef.current.addEventListener('MozMousePixelScroll', onMozMousePixelScroll);
|
|
|
return function () {
|
|
|
componentRef.current.removeEventListener('wheel', onRawWheel);
|
|
|
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
|
|
|
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
|
|
|
};
|
|
|
}, [useVirtual]); // ================================= Ref ==================================
|
|
|
|
|
|
var scrollTo = Object(_hooks_useScrollTo__WEBPACK_IMPORTED_MODULE_6__["default"])(componentRef, mergedData, heights, itemHeight, getKey, collectHeight, syncScrollTop, function () {
|
|
|
var _scrollBarRef$current;
|
|
|
|
|
|
(_scrollBarRef$current = scrollBarRef.current) === null || _scrollBarRef$current === void 0 ? void 0 : _scrollBarRef$current.delayHidden();
|
|
|
});
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useImperativeHandle"](ref, function () {
|
|
|
return {
|
|
|
scrollTo: scrollTo
|
|
|
};
|
|
|
}); // ================================ Render ================================
|
|
|
|
|
|
var listChildren = Object(_hooks_useChildren__WEBPACK_IMPORTED_MODULE_4__["default"])(mergedData, start, end, setInstanceRef, children, sharedConfig);
|
|
|
var componentStyle = null;
|
|
|
|
|
|
if (height) {
|
|
|
componentStyle = _objectSpread(_defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
|
|
|
|
|
|
if (useVirtual) {
|
|
|
componentStyle.overflowY = 'hidden';
|
|
|
|
|
|
if (scrollMoving) {
|
|
|
componentStyle.pointerEvents = 'none';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", Object.assign({
|
|
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
|
position: 'relative'
|
|
|
}),
|
|
|
className: mergedClassName
|
|
|
}, restProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](Component, {
|
|
|
className: "".concat(prefixCls, "-holder"),
|
|
|
style: componentStyle,
|
|
|
ref: componentRef,
|
|
|
onScroll: onFallbackScroll
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Filler__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
|
prefixCls: prefixCls,
|
|
|
height: scrollHeight,
|
|
|
offset: offset,
|
|
|
onInnerResize: collectHeight,
|
|
|
ref: fillerInnerRef
|
|
|
}, listChildren)), useVirtual && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_ScrollBar__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
|
ref: scrollBarRef,
|
|
|
prefixCls: prefixCls,
|
|
|
scrollTop: scrollTop,
|
|
|
height: height,
|
|
|
scrollHeight: scrollHeight,
|
|
|
count: mergedData.length,
|
|
|
onScroll: onScrollBar,
|
|
|
onStartMove: function onStartMove() {
|
|
|
setScrollMoving(true);
|
|
|
},
|
|
|
onStopMove: function onStopMove() {
|
|
|
setScrollMoving(false);
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
var List = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["forwardRef"](RawList);
|
|
|
List.displayName = 'List';
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (List);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/ScrollBar.js":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/ScrollBar.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ScrollBar; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
|
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
|
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
|
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
|
|
|
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
|
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
|
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
|
|
|
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
|
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MIN_SIZE = 20;
|
|
|
|
|
|
function getPageY(e) {
|
|
|
return 'touches' in e ? e.touches[0].pageY : e.pageY;
|
|
|
}
|
|
|
|
|
|
var ScrollBar = /*#__PURE__*/function (_React$Component) {
|
|
|
_inherits(ScrollBar, _React$Component);
|
|
|
|
|
|
var _super = _createSuper(ScrollBar);
|
|
|
|
|
|
function ScrollBar() {
|
|
|
var _this;
|
|
|
|
|
|
_classCallCheck(this, ScrollBar);
|
|
|
|
|
|
_this = _super.apply(this, arguments);
|
|
|
_this.moveRaf = null;
|
|
|
_this.scrollbarRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createRef"]();
|
|
|
_this.thumbRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createRef"]();
|
|
|
_this.visibleTimeout = null;
|
|
|
_this.state = {
|
|
|
dragging: false,
|
|
|
pageY: null,
|
|
|
startTop: null,
|
|
|
visible: false
|
|
|
};
|
|
|
|
|
|
_this.delayHidden = function () {
|
|
|
clearTimeout(_this.visibleTimeout);
|
|
|
|
|
|
_this.setState({
|
|
|
visible: true
|
|
|
});
|
|
|
|
|
|
_this.visibleTimeout = setTimeout(function () {
|
|
|
_this.setState({
|
|
|
visible: false
|
|
|
});
|
|
|
}, 2000);
|
|
|
};
|
|
|
|
|
|
_this.onScrollbarTouchStart = function (e) {
|
|
|
e.preventDefault();
|
|
|
};
|
|
|
|
|
|
_this.onContainerMouseDown = function (e) {
|
|
|
e.stopPropagation();
|
|
|
e.preventDefault();
|
|
|
}; // ======================= Clean =======================
|
|
|
|
|
|
|
|
|
_this.patchEvents = function () {
|
|
|
window.addEventListener('mousemove', _this.onMouseMove);
|
|
|
window.addEventListener('mouseup', _this.onMouseUp);
|
|
|
|
|
|
_this.thumbRef.current.addEventListener('touchmove', _this.onMouseMove);
|
|
|
|
|
|
_this.thumbRef.current.addEventListener('touchend', _this.onMouseUp);
|
|
|
};
|
|
|
|
|
|
_this.removeEvents = function () {
|
|
|
window.removeEventListener('mousemove', _this.onMouseMove);
|
|
|
window.removeEventListener('mouseup', _this.onMouseUp);
|
|
|
|
|
|
_this.scrollbarRef.current.removeEventListener('touchstart', _this.onScrollbarTouchStart);
|
|
|
|
|
|
_this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown);
|
|
|
|
|
|
_this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove);
|
|
|
|
|
|
_this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp);
|
|
|
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"].cancel(_this.moveRaf);
|
|
|
}; // ======================= Thumb =======================
|
|
|
|
|
|
|
|
|
_this.onMouseDown = function (e) {
|
|
|
var onStartMove = _this.props.onStartMove;
|
|
|
|
|
|
_this.setState({
|
|
|
dragging: true,
|
|
|
pageY: getPageY(e),
|
|
|
startTop: _this.getTop()
|
|
|
});
|
|
|
|
|
|
onStartMove();
|
|
|
|
|
|
_this.patchEvents();
|
|
|
|
|
|
e.stopPropagation();
|
|
|
e.preventDefault();
|
|
|
};
|
|
|
|
|
|
_this.onMouseMove = function (e) {
|
|
|
var _this$state = _this.state,
|
|
|
dragging = _this$state.dragging,
|
|
|
pageY = _this$state.pageY,
|
|
|
startTop = _this$state.startTop;
|
|
|
var onScroll = _this.props.onScroll;
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"].cancel(_this.moveRaf);
|
|
|
|
|
|
if (dragging) {
|
|
|
var offsetY = getPageY(e) - pageY;
|
|
|
var newTop = startTop + offsetY;
|
|
|
|
|
|
var enableScrollRange = _this.getEnableScrollRange();
|
|
|
|
|
|
var enableHeightRange = _this.getEnableHeightRange();
|
|
|
|
|
|
var ptg = enableHeightRange ? newTop / enableHeightRange : 0;
|
|
|
var newScrollTop = Math.ceil(ptg * enableScrollRange);
|
|
|
_this.moveRaf = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_2__["default"])(function () {
|
|
|
onScroll(newScrollTop);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_this.onMouseUp = function () {
|
|
|
var onStopMove = _this.props.onStopMove;
|
|
|
|
|
|
_this.setState({
|
|
|
dragging: false
|
|
|
});
|
|
|
|
|
|
onStopMove();
|
|
|
|
|
|
_this.removeEvents();
|
|
|
}; // ===================== Calculate =====================
|
|
|
|
|
|
|
|
|
_this.getSpinHeight = function () {
|
|
|
var _this$props = _this.props,
|
|
|
height = _this$props.height,
|
|
|
count = _this$props.count;
|
|
|
var baseHeight = height / count * 10;
|
|
|
baseHeight = Math.max(baseHeight, MIN_SIZE);
|
|
|
baseHeight = Math.min(baseHeight, height / 2);
|
|
|
return Math.floor(baseHeight);
|
|
|
};
|
|
|
|
|
|
_this.getEnableScrollRange = function () {
|
|
|
var _this$props2 = _this.props,
|
|
|
scrollHeight = _this$props2.scrollHeight,
|
|
|
height = _this$props2.height;
|
|
|
return scrollHeight - height || 0;
|
|
|
};
|
|
|
|
|
|
_this.getEnableHeightRange = function () {
|
|
|
var height = _this.props.height;
|
|
|
|
|
|
var spinHeight = _this.getSpinHeight();
|
|
|
|
|
|
return height - spinHeight || 0;
|
|
|
};
|
|
|
|
|
|
_this.getTop = function () {
|
|
|
var scrollTop = _this.props.scrollTop;
|
|
|
|
|
|
var enableScrollRange = _this.getEnableScrollRange();
|
|
|
|
|
|
var enableHeightRange = _this.getEnableHeightRange();
|
|
|
|
|
|
if (scrollTop === 0 || enableScrollRange === 0) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
var ptg = scrollTop / enableScrollRange;
|
|
|
return ptg * enableHeightRange;
|
|
|
}; // Not show scrollbar when height is large thane scrollHeight
|
|
|
|
|
|
|
|
|
_this.getVisible = function () {
|
|
|
var visible = _this.state.visible;
|
|
|
var _this$props3 = _this.props,
|
|
|
height = _this$props3.height,
|
|
|
scrollHeight = _this$props3.scrollHeight;
|
|
|
|
|
|
if (height >= scrollHeight) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return visible;
|
|
|
};
|
|
|
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
_createClass(ScrollBar, [{
|
|
|
key: "componentDidMount",
|
|
|
value: function componentDidMount() {
|
|
|
this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
|
|
|
this.thumbRef.current.addEventListener('touchstart', this.onMouseDown);
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps) {
|
|
|
if (prevProps.scrollTop !== this.props.scrollTop) {
|
|
|
this.delayHidden();
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentWillUnmount",
|
|
|
value: function componentWillUnmount() {
|
|
|
this.removeEvents();
|
|
|
clearTimeout(this.visibleTimeout);
|
|
|
} // ====================== Render =======================
|
|
|
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var dragging = this.state.dragging;
|
|
|
var prefixCls = this.props.prefixCls;
|
|
|
var spinHeight = this.getSpinHeight();
|
|
|
var top = this.getTop();
|
|
|
var visible = this.getVisible();
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
ref: this.scrollbarRef,
|
|
|
className: "".concat(prefixCls, "-scrollbar"),
|
|
|
style: {
|
|
|
width: 8,
|
|
|
top: 0,
|
|
|
bottom: 0,
|
|
|
right: 0,
|
|
|
position: 'absolute',
|
|
|
display: visible ? null : 'none'
|
|
|
},
|
|
|
onMouseDown: this.onContainerMouseDown,
|
|
|
onMouseMove: this.delayHidden
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", {
|
|
|
ref: this.thumbRef,
|
|
|
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()("".concat(prefixCls, "-scrollbar-thumb"), _defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
|
|
|
style: {
|
|
|
width: '100%',
|
|
|
height: spinHeight,
|
|
|
top: top,
|
|
|
left: 0,
|
|
|
position: 'absolute',
|
|
|
background: 'rgba(0, 0, 0, 0.5)',
|
|
|
borderRadius: 99,
|
|
|
cursor: 'pointer',
|
|
|
userSelect: 'none'
|
|
|
},
|
|
|
onMouseDown: this.onMouseDown
|
|
|
}));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return ScrollBar;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useChildren.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useChildren.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useChildren; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Item */ "./node_modules/rc-virtual-list/es/Item.js");
|
|
|
|
|
|
|
|
|
function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
|
|
|
var getKey = _ref.getKey;
|
|
|
return list.slice(startIndex, endIndex + 1).map(function (item, index) {
|
|
|
var eleIndex = startIndex + index;
|
|
|
var node = renderFunc(item, eleIndex, {// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
|
|
|
});
|
|
|
var key = getKey(item);
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_Item__WEBPACK_IMPORTED_MODULE_1__["Item"], {
|
|
|
key: key,
|
|
|
setRef: function setRef(ele) {
|
|
|
return setNodeRef(item, ele);
|
|
|
}
|
|
|
}, node);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useDiffItem.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useDiffItem.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useDiffItem; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _utils_algorithmUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/algorithmUtil */ "./node_modules/rc-virtual-list/es/utils/algorithmUtil.js");
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
|
|
|
|
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
|
|
|
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
|
|
|
|
|
|
|
|
|
function useDiffItem(data, getKey, onDiff) {
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](data),
|
|
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
|
prevData = _React$useState2[0],
|
|
|
setPrevData = _React$useState2[1];
|
|
|
|
|
|
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_0__["useState"](null),
|
|
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
|
diffItem = _React$useState4[0],
|
|
|
setDiffItem = _React$useState4[1];
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () {
|
|
|
var diff = Object(_utils_algorithmUtil__WEBPACK_IMPORTED_MODULE_1__["findListDiffIndex"])(prevData || [], data || [], getKey);
|
|
|
|
|
|
if ((diff === null || diff === void 0 ? void 0 : diff.index) !== undefined) {
|
|
|
onDiff === null || onDiff === void 0 ? void 0 : onDiff(diff.index);
|
|
|
setDiffItem(data[diff.index]);
|
|
|
}
|
|
|
|
|
|
setPrevData(data);
|
|
|
}, [data]);
|
|
|
return [diffItem];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useFrameWheel.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useFrameWheel.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useFrameWheel; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
/* harmony import */ var _utils_isFirefox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/isFirefox */ "./node_modules/rc-virtual-list/es/utils/isFirefox.js");
|
|
|
/* harmony import */ var _useOriginScroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useOriginScroll */ "./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, onWheelDelta) {
|
|
|
var offsetRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0);
|
|
|
var nextFrameRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null); // Firefox patch
|
|
|
|
|
|
var wheelValueRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
|
|
|
var isMouseScrollRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false); // Scroll status sync
|
|
|
|
|
|
var originScroll = Object(_useOriginScroll__WEBPACK_IMPORTED_MODULE_3__["default"])(isScrollAtTop, isScrollAtBottom);
|
|
|
|
|
|
function onWheel(event) {
|
|
|
if (!inVirtual) return;
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(nextFrameRef.current);
|
|
|
var deltaY = event.deltaY;
|
|
|
offsetRef.current += deltaY;
|
|
|
wheelValueRef.current = deltaY; // Do nothing when scroll at the edge, Skip check when is in scroll
|
|
|
|
|
|
if (originScroll(deltaY)) return; // Proxy of scroll events
|
|
|
|
|
|
if (!_utils_isFirefox__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
nextFrameRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
|
|
|
// Patch a multiple for Firefox to fix wheel number too small
|
|
|
// ref: https://github.com/ant-design/ant-design/issues/26372#issuecomment-679460266
|
|
|
var patchMultiple = isMouseScrollRef.current ? 10 : 1;
|
|
|
onWheelDelta(offsetRef.current * patchMultiple);
|
|
|
offsetRef.current = 0;
|
|
|
});
|
|
|
} // A patch for firefox
|
|
|
|
|
|
|
|
|
function onFireFoxScroll(event) {
|
|
|
if (!inVirtual) return;
|
|
|
isMouseScrollRef.current = event.detail === wheelValueRef.current;
|
|
|
}
|
|
|
|
|
|
return [onWheel, onFireFoxScroll];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useHeights.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useHeights.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useHeights; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/findDOMNode */ "./node_modules/rc-util/es/Dom/findDOMNode.js");
|
|
|
/* harmony import */ var _utils_CacheMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/CacheMap */ "./node_modules/rc-virtual-list/es/utils/CacheMap.js");
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
|
|
|
|
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
|
|
|
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function useHeights(getKey, onItemAdd, onItemRemove) {
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](0),
|
|
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
|
updatedMark = _React$useState2[0],
|
|
|
setUpdatedMark = _React$useState2[1];
|
|
|
|
|
|
var instanceRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(new Map());
|
|
|
var heightsRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(new _utils_CacheMap__WEBPACK_IMPORTED_MODULE_2__["default"]());
|
|
|
var heightUpdateIdRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0);
|
|
|
|
|
|
function collectHeight() {
|
|
|
heightUpdateIdRef.current += 1;
|
|
|
var currentId = heightUpdateIdRef.current;
|
|
|
Promise.resolve().then(function () {
|
|
|
// Only collect when it's latest call
|
|
|
if (currentId !== heightUpdateIdRef.current) return;
|
|
|
instanceRef.current.forEach(function (element, key) {
|
|
|
if (element && element.offsetParent) {
|
|
|
var htmlElement = Object(rc_util_es_Dom_findDOMNode__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
|
|
|
var offsetHeight = htmlElement.offsetHeight;
|
|
|
|
|
|
if (heightsRef.current.get(key) !== offsetHeight) {
|
|
|
heightsRef.current.set(key, htmlElement.offsetHeight);
|
|
|
}
|
|
|
}
|
|
|
}); // Always trigger update mark to tell parent that should re-calculate heights when resized
|
|
|
|
|
|
setUpdatedMark(function (c) {
|
|
|
return c + 1;
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function setInstanceRef(item, instance) {
|
|
|
var key = getKey(item);
|
|
|
var origin = instanceRef.current.get(key);
|
|
|
|
|
|
if (instance) {
|
|
|
instanceRef.current.set(key, instance);
|
|
|
collectHeight();
|
|
|
} else {
|
|
|
instanceRef.current.delete(key);
|
|
|
} // Instance changed
|
|
|
|
|
|
|
|
|
if (!origin !== !instance) {
|
|
|
if (instance) {
|
|
|
onItemAdd === null || onItemAdd === void 0 ? void 0 : onItemAdd(item);
|
|
|
} else {
|
|
|
onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(item);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [setInstanceRef, collectHeight, heightsRef.current, updatedMark];
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useMobileTouchMove; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
|
|
|
var SMOOTH_PTG = 14 / 15;
|
|
|
function useMobileTouchMove(inVirtual, listRef, callback) {
|
|
|
var touchedRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false);
|
|
|
var touchYRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(0);
|
|
|
var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null); // Smooth scroll
|
|
|
|
|
|
var intervalRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
|
|
|
var cleanUpEvents;
|
|
|
|
|
|
var onTouchMove = function onTouchMove(e) {
|
|
|
if (touchedRef.current) {
|
|
|
var currentY = Math.ceil(e.touches[0].pageY);
|
|
|
var offsetY = touchYRef.current - currentY;
|
|
|
touchYRef.current = currentY;
|
|
|
|
|
|
if (callback(offsetY)) {
|
|
|
e.preventDefault();
|
|
|
} // Smooth interval
|
|
|
|
|
|
|
|
|
clearInterval(intervalRef.current);
|
|
|
intervalRef.current = setInterval(function () {
|
|
|
offsetY *= SMOOTH_PTG;
|
|
|
|
|
|
if (!callback(offsetY, true) || Math.abs(offsetY) <= 0.1) {
|
|
|
clearInterval(intervalRef.current);
|
|
|
}
|
|
|
}, 16);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var onTouchEnd = function onTouchEnd() {
|
|
|
touchedRef.current = false;
|
|
|
cleanUpEvents();
|
|
|
};
|
|
|
|
|
|
var onTouchStart = function onTouchStart(e) {
|
|
|
cleanUpEvents();
|
|
|
|
|
|
if (e.touches.length === 1 && !touchedRef.current) {
|
|
|
touchedRef.current = true;
|
|
|
touchYRef.current = Math.ceil(e.touches[0].pageY);
|
|
|
elementRef.current = e.target;
|
|
|
elementRef.current.addEventListener('touchmove', onTouchMove);
|
|
|
elementRef.current.addEventListener('touchend', onTouchEnd);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
cleanUpEvents = function cleanUpEvents() {
|
|
|
if (elementRef.current) {
|
|
|
elementRef.current.removeEventListener('touchmove', onTouchMove);
|
|
|
elementRef.current.removeEventListener('touchend', onTouchEnd);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"](function () {
|
|
|
if (inVirtual) {
|
|
|
listRef.current.addEventListener('touchstart', onTouchStart);
|
|
|
}
|
|
|
|
|
|
return function () {
|
|
|
listRef.current.removeEventListener('touchstart', onTouchStart);
|
|
|
cleanUpEvents();
|
|
|
clearInterval(intervalRef.current);
|
|
|
};
|
|
|
}, [inVirtual]);
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useOriginScroll.js ***!
|
|
|
\******************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (function (isScrollAtTop, isScrollAtBottom) {
|
|
|
// Do lock for a wheel when scrolling
|
|
|
var lockRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false);
|
|
|
var lockTimeoutRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(null);
|
|
|
|
|
|
function lockScroll() {
|
|
|
clearTimeout(lockTimeoutRef.current);
|
|
|
lockRef.current = true;
|
|
|
lockTimeoutRef.current = setTimeout(function () {
|
|
|
lockRef.current = false;
|
|
|
}, 50);
|
|
|
} // Pass to ref since global add is in closure
|
|
|
|
|
|
|
|
|
var scrollPingRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])({
|
|
|
top: isScrollAtTop,
|
|
|
bottom: isScrollAtBottom
|
|
|
});
|
|
|
scrollPingRef.current.top = isScrollAtTop;
|
|
|
scrollPingRef.current.bottom = isScrollAtBottom;
|
|
|
return function (deltaY) {
|
|
|
var smoothOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
|
var originScroll = // Pass origin wheel when on the top
|
|
|
deltaY < 0 && scrollPingRef.current.top || // Pass origin wheel when on the bottom
|
|
|
deltaY > 0 && scrollPingRef.current.bottom;
|
|
|
|
|
|
if (smoothOffset && originScroll) {
|
|
|
// No need lock anymore when it's smooth offset from touchMove interval
|
|
|
clearTimeout(lockTimeoutRef.current);
|
|
|
lockRef.current = false;
|
|
|
} else if (!originScroll || lockRef.current) {
|
|
|
lockScroll();
|
|
|
}
|
|
|
|
|
|
return !lockRef.current && originScroll;
|
|
|
};
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/hooks/useScrollTo.js":
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/hooks/useScrollTo.js ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return useScrollTo; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js");
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
|
|
|
|
/* eslint-disable no-param-reassign */
|
|
|
|
|
|
|
|
|
function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHeight, syncScrollTop, triggerFlash) {
|
|
|
var scrollRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"]();
|
|
|
return function (arg) {
|
|
|
// When not argument provided, we think dev may want to show the scrollbar
|
|
|
if (arg === null || arg === undefined) {
|
|
|
triggerFlash();
|
|
|
return;
|
|
|
} // Normal scroll logic
|
|
|
|
|
|
|
|
|
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(scrollRef.current);
|
|
|
|
|
|
if (typeof arg === 'number') {
|
|
|
syncScrollTop(arg);
|
|
|
} else if (arg && _typeof(arg) === 'object') {
|
|
|
var index;
|
|
|
var align = arg.align;
|
|
|
|
|
|
if ('index' in arg) {
|
|
|
index = arg.index;
|
|
|
} else {
|
|
|
index = data.findIndex(function (item) {
|
|
|
return getKey(item) === arg.key;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var _arg$offset = arg.offset,
|
|
|
offset = _arg$offset === void 0 ? 0 : _arg$offset; // We will retry 3 times in case dynamic height shaking
|
|
|
|
|
|
var syncScroll = function syncScroll(times, targetAlign) {
|
|
|
if (times < 0 || !containerRef.current) return;
|
|
|
var height = containerRef.current.clientHeight;
|
|
|
var needCollectHeight = false;
|
|
|
var newTargetAlign = targetAlign; // Go to next frame if height not exist
|
|
|
|
|
|
if (height) {
|
|
|
var mergedAlign = targetAlign || align; // Get top & bottom
|
|
|
|
|
|
var stackTop = 0;
|
|
|
var itemTop = 0;
|
|
|
var itemBottom = 0;
|
|
|
var maxLen = Math.min(data.length, index);
|
|
|
|
|
|
for (var i = 0; i <= maxLen; i += 1) {
|
|
|
var key = getKey(data[i]);
|
|
|
itemTop = stackTop;
|
|
|
var cacheHeight = heights.get(key);
|
|
|
itemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
|
|
|
stackTop = itemBottom;
|
|
|
|
|
|
if (i === index && cacheHeight === undefined) {
|
|
|
needCollectHeight = true;
|
|
|
}
|
|
|
} // Scroll to
|
|
|
|
|
|
|
|
|
var targetTop = null;
|
|
|
|
|
|
switch (mergedAlign) {
|
|
|
case 'top':
|
|
|
targetTop = itemTop - offset;
|
|
|
break;
|
|
|
|
|
|
case 'bottom':
|
|
|
targetTop = itemBottom - height + offset;
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
var scrollTop = containerRef.current.scrollTop;
|
|
|
var scrollBottom = scrollTop + height;
|
|
|
|
|
|
if (itemTop < scrollTop) {
|
|
|
newTargetAlign = 'top';
|
|
|
} else if (itemBottom > scrollBottom) {
|
|
|
newTargetAlign = 'bottom';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (targetTop !== null && targetTop !== containerRef.current.scrollTop) {
|
|
|
syncScrollTop(targetTop);
|
|
|
}
|
|
|
} // We will retry since element may not sync height as it described
|
|
|
|
|
|
|
|
|
scrollRef.current = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
|
|
|
if (needCollectHeight) {
|
|
|
collectHeight();
|
|
|
}
|
|
|
|
|
|
syncScroll(times - 1, newTargetAlign);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
syncScroll(3);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/index.js":
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/index.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./List */ "./node_modules/rc-virtual-list/es/List.js");
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_List__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/utils/CacheMap.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/utils/CacheMap.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
|
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
|
|
// Firefox has low performance of map.
|
|
|
var CacheMap = /*#__PURE__*/function () {
|
|
|
function CacheMap() {
|
|
|
_classCallCheck(this, CacheMap);
|
|
|
|
|
|
this.maps = {};
|
|
|
this.maps.prototype = null;
|
|
|
}
|
|
|
|
|
|
_createClass(CacheMap, [{
|
|
|
key: "set",
|
|
|
value: function set(key, value) {
|
|
|
this.maps[key] = value;
|
|
|
}
|
|
|
}, {
|
|
|
key: "get",
|
|
|
value: function get(key) {
|
|
|
return this.maps[key];
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return CacheMap;
|
|
|
}();
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (CacheMap);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/utils/algorithmUtil.js":
|
|
|
/*!****************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/utils/algorithmUtil.js ***!
|
|
|
\****************************************************************/
|
|
|
/*! exports provided: getIndexByStartLoc, findListDiffIndex */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getIndexByStartLoc", function() { return getIndexByStartLoc; });
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findListDiffIndex", function() { return findListDiffIndex; });
|
|
|
/**
|
|
|
* Get index with specific start index one by one. e.g.
|
|
|
* min: 3, max: 9, start: 6
|
|
|
*
|
|
|
* Return index is:
|
|
|
* [0]: 6
|
|
|
* [1]: 7
|
|
|
* [2]: 5
|
|
|
* [3]: 8
|
|
|
* [4]: 4
|
|
|
* [5]: 9
|
|
|
* [6]: 3
|
|
|
*/
|
|
|
function getIndexByStartLoc(min, max, start, index) {
|
|
|
var beforeCount = start - min;
|
|
|
var afterCount = max - start;
|
|
|
var balanceCount = Math.min(beforeCount, afterCount) * 2; // Balance
|
|
|
|
|
|
if (index <= balanceCount) {
|
|
|
var stepIndex = Math.floor(index / 2);
|
|
|
|
|
|
if (index % 2) {
|
|
|
return start + stepIndex + 1;
|
|
|
}
|
|
|
|
|
|
return start - stepIndex;
|
|
|
} // One is out of range
|
|
|
|
|
|
|
|
|
if (beforeCount > afterCount) {
|
|
|
return start - (index - afterCount);
|
|
|
}
|
|
|
|
|
|
return start + (index - beforeCount);
|
|
|
}
|
|
|
/**
|
|
|
* We assume that 2 list has only 1 item diff and others keeping the order.
|
|
|
* So we can use dichotomy algorithm to find changed one.
|
|
|
*/
|
|
|
|
|
|
function findListDiffIndex(originList, targetList, getKey) {
|
|
|
var originLen = originList.length;
|
|
|
var targetLen = targetList.length;
|
|
|
var shortList;
|
|
|
var longList;
|
|
|
|
|
|
if (originLen === 0 && targetLen === 0) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (originLen < targetLen) {
|
|
|
shortList = originList;
|
|
|
longList = targetList;
|
|
|
} else {
|
|
|
shortList = targetList;
|
|
|
longList = originList;
|
|
|
}
|
|
|
|
|
|
var notExistKey = {
|
|
|
__EMPTY_ITEM__: true
|
|
|
};
|
|
|
|
|
|
function getItemKey(item) {
|
|
|
if (item !== undefined) {
|
|
|
return getKey(item);
|
|
|
}
|
|
|
|
|
|
return notExistKey;
|
|
|
} // Loop to find diff one
|
|
|
|
|
|
|
|
|
var diffIndex = null;
|
|
|
var multiple = Math.abs(originLen - targetLen) !== 1;
|
|
|
|
|
|
for (var i = 0; i < longList.length; i += 1) {
|
|
|
var shortKey = getItemKey(shortList[i]);
|
|
|
var longKey = getItemKey(longList[i]);
|
|
|
|
|
|
if (shortKey !== longKey) {
|
|
|
diffIndex = i;
|
|
|
multiple = multiple || shortKey !== getItemKey(longList[i + 1]);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return diffIndex === null ? null : {
|
|
|
index: diffIndex,
|
|
|
multiple: multiple
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/rc-virtual-list/es/utils/isFirefox.js":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-virtual-list/es/utils/isFirefox.js ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
|
|
|
|
var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (isFF);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react-dom/cjs/react-dom.development.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/** @license React v16.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 <input> host component that allows setting these optional
|
|
|
* props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
|
|
|
*
|
|
|
* If `checked` or `value` are not supplied (or null/undefined), user actions
|
|
|
* that affect the checked state or value will trigger updates to the element.
|
|
|
*
|
|
|
* If they are supplied (and not null/undefined), the rendered element will not
|
|
|
* trigger updates to the element. Instead, the props must change in order for
|
|
|
* the rendered element to be updated.
|
|
|
*
|
|
|
* The rendered element will be initialized as unchecked (or `defaultChecked`)
|
|
|
* with an empty value (or `defaultValue`).
|
|
|
*
|
|
|
* See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getHostProps(element, props) {
|
|
|
var node = element;
|
|
|
var checked = props.checked;
|
|
|
|
|
|
var hostProps = _assign({}, props, {
|
|
|
defaultChecked: undefined,
|
|
|
defaultValue: undefined,
|
|
|
value: undefined,
|
|
|
checked: checked != null ? checked : node._wrapperState.initialChecked
|
|
|
});
|
|
|
|
|
|
return hostProps;
|
|
|
}
|
|
|
function initWrapperState(element, props) {
|
|
|
{
|
|
|
ReactControlledValuePropTypes.checkPropTypes('input', props);
|
|
|
|
|
|
if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
|
|
|
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 <x> is not a valid email address".
|
|
|
//
|
|
|
// Here we check to see if the defaultValue has actually changed, avoiding these problems
|
|
|
// when the user is inputting text
|
|
|
//
|
|
|
// https://github.com/facebook/react/issues/7253
|
|
|
|
|
|
|
|
|
function setDefaultValue(node, type, value) {
|
|
|
if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
|
|
|
type !== 'number' || node.ownerDocument.activeElement !== node) {
|
|
|
if (value == null) {
|
|
|
node.defaultValue = toString(node._wrapperState.initialValue);
|
|
|
} else if (node.defaultValue !== toString(value)) {
|
|
|
node.defaultValue = toString(value);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnSelectedSetOnOption = false;
|
|
|
var didWarnInvalidChild = false;
|
|
|
|
|
|
function flattenChildren(children) {
|
|
|
var content = ''; // Flatten children. We'll warn if they are invalid
|
|
|
// during validateProps() which runs for hydration too.
|
|
|
// Note that this would throw on non-element objects.
|
|
|
// Elements are stringified (which is normally irrelevant
|
|
|
// but matters for <fbt>).
|
|
|
|
|
|
React.Children.forEach(children, function (child) {
|
|
|
if (child == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
content += child; // Note: we don't warn about invalid children here.
|
|
|
// Instead, this is done separately below so that
|
|
|
// it happens during the hydration codepath too.
|
|
|
});
|
|
|
return content;
|
|
|
}
|
|
|
/**
|
|
|
* Implements an <option> host component that warns when `selected` is set.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validateProps(element, props) {
|
|
|
{
|
|
|
// This mirrors the codepath above, but runs for hydration too.
|
|
|
// Warn about invalid children here so that client and hydration are consistent.
|
|
|
// TODO: this seems like it could cause a DEV-only throw for hydration
|
|
|
// if children contains a non-element object. We should try to avoid that.
|
|
|
if (typeof props.children === 'object' && props.children !== null) {
|
|
|
React.Children.forEach(props.children, function (child) {
|
|
|
if (child == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof child === 'string' || typeof child === 'number') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof child.type !== 'string') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!didWarnInvalidChild) {
|
|
|
didWarnInvalidChild = true;
|
|
|
|
|
|
error('Only strings and numbers are supported as <option> children.');
|
|
|
}
|
|
|
});
|
|
|
} // TODO: Remove support for `selected` in <option>.
|
|
|
|
|
|
|
|
|
if (props.selected != null && !didWarnSelectedSetOnOption) {
|
|
|
error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
|
|
|
|
|
|
didWarnSelectedSetOnOption = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function postMountWrapper$1(element, props) {
|
|
|
// value="" should make a value attribute (#6219)
|
|
|
if (props.value != null) {
|
|
|
element.setAttribute('value', toString(getToStringValue(props.value)));
|
|
|
}
|
|
|
}
|
|
|
function getHostProps$1(element, props) {
|
|
|
var hostProps = _assign({
|
|
|
children: undefined
|
|
|
}, props);
|
|
|
|
|
|
var content = flattenChildren(props.children);
|
|
|
|
|
|
if (content) {
|
|
|
hostProps.children = content;
|
|
|
}
|
|
|
|
|
|
return hostProps;
|
|
|
}
|
|
|
|
|
|
var didWarnValueDefaultValue$1;
|
|
|
|
|
|
{
|
|
|
didWarnValueDefaultValue$1 = false;
|
|
|
}
|
|
|
|
|
|
function getDeclarationErrorAddendum() {
|
|
|
var ownerName = getCurrentFiberOwnerNameInDevOrNull();
|
|
|
|
|
|
if (ownerName) {
|
|
|
return '\n\nCheck the render method of `' + ownerName + '`.';
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
var valuePropNames = ['value', 'defaultValue'];
|
|
|
/**
|
|
|
* Validation function for `value` and `defaultValue`.
|
|
|
*/
|
|
|
|
|
|
function checkSelectPropTypes(props) {
|
|
|
{
|
|
|
ReactControlledValuePropTypes.checkPropTypes('select', props);
|
|
|
|
|
|
for (var i = 0; i < valuePropNames.length; i++) {
|
|
|
var propName = valuePropNames[i];
|
|
|
|
|
|
if (props[propName] == null) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
var isArray = Array.isArray(props[propName]);
|
|
|
|
|
|
if (props.multiple && !isArray) {
|
|
|
error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
|
|
|
} else if (!props.multiple && isArray) {
|
|
|
error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateOptions(node, multiple, propValue, setDefaultSelected) {
|
|
|
var options = node.options;
|
|
|
|
|
|
if (multiple) {
|
|
|
var selectedValues = propValue;
|
|
|
var selectedValue = {};
|
|
|
|
|
|
for (var i = 0; i < selectedValues.length; i++) {
|
|
|
// Prefix to avoid chaos with special keys.
|
|
|
selectedValue['$' + selectedValues[i]] = true;
|
|
|
}
|
|
|
|
|
|
for (var _i = 0; _i < options.length; _i++) {
|
|
|
var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
|
|
|
|
|
|
if (options[_i].selected !== selected) {
|
|
|
options[_i].selected = selected;
|
|
|
}
|
|
|
|
|
|
if (selected && setDefaultSelected) {
|
|
|
options[_i].defaultSelected = true;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// Do not set `select.value` as exact behavior isn't consistent across all
|
|
|
// browsers for all cases.
|
|
|
var _selectedValue = toString(getToStringValue(propValue));
|
|
|
|
|
|
var defaultSelected = null;
|
|
|
|
|
|
for (var _i2 = 0; _i2 < options.length; _i2++) {
|
|
|
if (options[_i2].value === _selectedValue) {
|
|
|
options[_i2].selected = true;
|
|
|
|
|
|
if (setDefaultSelected) {
|
|
|
options[_i2].defaultSelected = true;
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (defaultSelected === null && !options[_i2].disabled) {
|
|
|
defaultSelected = options[_i2];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (defaultSelected !== null) {
|
|
|
defaultSelected.selected = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Implements a <select> host component that allows optionally setting the
|
|
|
* props `value` and `defaultValue`. If `multiple` is false, the prop must be a
|
|
|
* stringable. If `multiple` is true, the prop must be an array of stringables.
|
|
|
*
|
|
|
* If `value` is not supplied (or null/undefined), user actions that change the
|
|
|
* selected option will trigger updates to the rendered options.
|
|
|
*
|
|
|
* If it is supplied (and not null/undefined), the rendered options will not
|
|
|
* update in response to user actions. Instead, the `value` prop must change in
|
|
|
* order for the rendered options to update.
|
|
|
*
|
|
|
* If `defaultValue` is provided, any options with the supplied values will be
|
|
|
* selected.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getHostProps$2(element, props) {
|
|
|
return _assign({}, props, {
|
|
|
value: undefined
|
|
|
});
|
|
|
}
|
|
|
function initWrapperState$1(element, props) {
|
|
|
var node = element;
|
|
|
|
|
|
{
|
|
|
checkSelectPropTypes(props);
|
|
|
}
|
|
|
|
|
|
node._wrapperState = {
|
|
|
wasMultiple: !!props.multiple
|
|
|
};
|
|
|
|
|
|
{
|
|
|
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
|
|
|
error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
|
|
|
|
|
|
didWarnValueDefaultValue$1 = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function postMountWrapper$2(element, props) {
|
|
|
var node = element;
|
|
|
node.multiple = !!props.multiple;
|
|
|
var value = props.value;
|
|
|
|
|
|
if (value != null) {
|
|
|
updateOptions(node, !!props.multiple, value, false);
|
|
|
} else if (props.defaultValue != null) {
|
|
|
updateOptions(node, !!props.multiple, props.defaultValue, true);
|
|
|
}
|
|
|
}
|
|
|
function postUpdateWrapper(element, props) {
|
|
|
var node = element;
|
|
|
var wasMultiple = node._wrapperState.wasMultiple;
|
|
|
node._wrapperState.wasMultiple = !!props.multiple;
|
|
|
var value = props.value;
|
|
|
|
|
|
if (value != null) {
|
|
|
updateOptions(node, !!props.multiple, value, false);
|
|
|
} else if (wasMultiple !== !!props.multiple) {
|
|
|
// For simplicity, reapply `defaultValue` if `multiple` is toggled.
|
|
|
if (props.defaultValue != null) {
|
|
|
updateOptions(node, !!props.multiple, props.defaultValue, true);
|
|
|
} else {
|
|
|
// Revert the select back to its default unselected state.
|
|
|
updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function restoreControlledState$1(element, props) {
|
|
|
var node = element;
|
|
|
var value = props.value;
|
|
|
|
|
|
if (value != null) {
|
|
|
updateOptions(node, !!props.multiple, value, false);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnValDefaultVal = false;
|
|
|
|
|
|
/**
|
|
|
* Implements a <textarea> host component that allows setting `value`, and
|
|
|
* `defaultValue`. This differs from the traditional DOM API because value is
|
|
|
* usually set as PCDATA children.
|
|
|
*
|
|
|
* If `value` is not supplied (or null/undefined), user actions that affect the
|
|
|
* value will trigger updates to the element.
|
|
|
*
|
|
|
* If `value` is supplied (and not null/undefined), the rendered element will
|
|
|
* not trigger updates to the element. Instead, the `value` prop must change in
|
|
|
* order for the rendered element to be updated.
|
|
|
*
|
|
|
* The rendered element will be initialized with an empty value, the prop
|
|
|
* `defaultValue` if specified, or the children content (deprecated).
|
|
|
*/
|
|
|
function getHostProps$3(element, props) {
|
|
|
var node = element;
|
|
|
|
|
|
if (!(props.dangerouslySetInnerHTML == null)) {
|
|
|
{
|
|
|
throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
|
|
|
}
|
|
|
} // Always set children to the same thing. In IE9, the selection range will
|
|
|
// get reset if `textContent` is mutated. We could add a check in setTextContent
|
|
|
// to only set the value if/when the value differs from the node value (which would
|
|
|
// completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
|
|
|
// solution. The value can be a boolean or object so that's why it's forced
|
|
|
// to be a string.
|
|
|
|
|
|
|
|
|
var hostProps = _assign({}, props, {
|
|
|
value: undefined,
|
|
|
defaultValue: undefined,
|
|
|
children: toString(node._wrapperState.initialValue)
|
|
|
});
|
|
|
|
|
|
return hostProps;
|
|
|
}
|
|
|
function initWrapperState$2(element, props) {
|
|
|
var node = element;
|
|
|
|
|
|
{
|
|
|
ReactControlledValuePropTypes.checkPropTypes('textarea', props);
|
|
|
|
|
|
if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
|
|
|
error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
|
|
|
|
|
|
didWarnValDefaultVal = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var initialValue = props.value; // Only bother fetching default value if we're going to use it
|
|
|
|
|
|
if (initialValue == null) {
|
|
|
var children = props.children,
|
|
|
defaultValue = props.defaultValue;
|
|
|
|
|
|
if (children != null) {
|
|
|
{
|
|
|
error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (!(defaultValue == null)) {
|
|
|
{
|
|
|
throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(children)) {
|
|
|
if (!(children.length <= 1)) {
|
|
|
{
|
|
|
throw Error( "<textarea> can only have at most one child." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
children = children[0];
|
|
|
}
|
|
|
|
|
|
defaultValue = children;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (defaultValue == null) {
|
|
|
defaultValue = '';
|
|
|
}
|
|
|
|
|
|
initialValue = defaultValue;
|
|
|
}
|
|
|
|
|
|
node._wrapperState = {
|
|
|
initialValue: getToStringValue(initialValue)
|
|
|
};
|
|
|
}
|
|
|
function updateWrapper$1(element, props) {
|
|
|
var node = element;
|
|
|
var value = getToStringValue(props.value);
|
|
|
var defaultValue = getToStringValue(props.defaultValue);
|
|
|
|
|
|
if (value != null) {
|
|
|
// Cast `value` to a string to ensure the value is set correctly. While
|
|
|
// browsers typically do this as necessary, jsdom doesn't.
|
|
|
var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed
|
|
|
|
|
|
if (newValue !== node.value) {
|
|
|
node.value = newValue;
|
|
|
}
|
|
|
|
|
|
if (props.defaultValue == null && node.defaultValue !== newValue) {
|
|
|
node.defaultValue = newValue;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (defaultValue != null) {
|
|
|
node.defaultValue = toString(defaultValue);
|
|
|
}
|
|
|
}
|
|
|
function postMountWrapper$3(element, props) {
|
|
|
var node = element; // This is in postMount because we need access to the DOM node, which is not
|
|
|
// available until after the component has mounted.
|
|
|
|
|
|
var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
|
|
|
// initial value. In IE10/IE11 there is a bug where the placeholder attribute
|
|
|
// will populate textContent as well.
|
|
|
// https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
|
|
|
|
|
|
if (textContent === node._wrapperState.initialValue) {
|
|
|
if (textContent !== '' && textContent !== null) {
|
|
|
node.value = textContent;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function restoreControlledState$2(element, props) {
|
|
|
// DOM component is still mounted; update
|
|
|
updateWrapper$1(element, props);
|
|
|
}
|
|
|
|
|
|
var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
|
var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
|
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
|
var Namespaces = {
|
|
|
html: HTML_NAMESPACE,
|
|
|
mathml: MATH_NAMESPACE,
|
|
|
svg: SVG_NAMESPACE
|
|
|
}; // Assumes there is no parent namespace.
|
|
|
|
|
|
function getIntrinsicNamespace(type) {
|
|
|
switch (type) {
|
|
|
case 'svg':
|
|
|
return SVG_NAMESPACE;
|
|
|
|
|
|
case 'math':
|
|
|
return MATH_NAMESPACE;
|
|
|
|
|
|
default:
|
|
|
return HTML_NAMESPACE;
|
|
|
}
|
|
|
}
|
|
|
function getChildNamespace(parentNamespace, type) {
|
|
|
if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
|
|
|
// No (or default) parent namespace: potential entry point.
|
|
|
return getIntrinsicNamespace(type);
|
|
|
}
|
|
|
|
|
|
if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
|
|
|
// We're leaving SVG.
|
|
|
return HTML_NAMESPACE;
|
|
|
} // By default, pass namespace below.
|
|
|
|
|
|
|
|
|
return parentNamespace;
|
|
|
}
|
|
|
|
|
|
/* globals MSApp */
|
|
|
|
|
|
/**
|
|
|
* Create a function which has 'unsafe' privileges (required by windows8 apps)
|
|
|
*/
|
|
|
var createMicrosoftUnsafeLocalFunction = function (func) {
|
|
|
if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
|
|
|
return function (arg0, arg1, arg2, arg3) {
|
|
|
MSApp.execUnsafeLocalFunction(function () {
|
|
|
return func(arg0, arg1, arg2, arg3);
|
|
|
});
|
|
|
};
|
|
|
} else {
|
|
|
return func;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var reusableSVGContainer;
|
|
|
/**
|
|
|
* Set the innerHTML property of a node
|
|
|
*
|
|
|
* @param {DOMElement} node
|
|
|
* @param {string} html
|
|
|
* @internal
|
|
|
*/
|
|
|
|
|
|
var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
|
|
|
if (node.namespaceURI === Namespaces.svg) {
|
|
|
|
|
|
if (!('innerHTML' in node)) {
|
|
|
// IE does not have innerHTML for SVG nodes, so instead we inject the
|
|
|
// new markup in a temp node and then move the child nodes across into
|
|
|
// the target node
|
|
|
reusableSVGContainer = reusableSVGContainer || document.createElement('div');
|
|
|
reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
|
|
|
var svgNode = reusableSVGContainer.firstChild;
|
|
|
|
|
|
while (node.firstChild) {
|
|
|
node.removeChild(node.firstChild);
|
|
|
}
|
|
|
|
|
|
while (svgNode.firstChild) {
|
|
|
node.appendChild(svgNode.firstChild);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node.innerHTML = html;
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* HTML nodeType values that represent the type of the node
|
|
|
*/
|
|
|
var ELEMENT_NODE = 1;
|
|
|
var TEXT_NODE = 3;
|
|
|
var COMMENT_NODE = 8;
|
|
|
var DOCUMENT_NODE = 9;
|
|
|
var DOCUMENT_FRAGMENT_NODE = 11;
|
|
|
|
|
|
/**
|
|
|
* Set the textContent property of a node. For text updates, it's faster
|
|
|
* to set the `nodeValue` of the Text node directly instead of using
|
|
|
* `.textContent` which will remove the existing node and create a new one.
|
|
|
*
|
|
|
* @param {DOMElement} node
|
|
|
* @param {string} text
|
|
|
* @internal
|
|
|
*/
|
|
|
|
|
|
var setTextContent = function (node, text) {
|
|
|
if (text) {
|
|
|
var firstChild = node.firstChild;
|
|
|
|
|
|
if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
|
|
|
firstChild.nodeValue = text;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node.textContent = text;
|
|
|
};
|
|
|
|
|
|
// Do not use the below two methods directly!
|
|
|
// Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
|
|
|
// (It is the only module that is allowed to access these methods.)
|
|
|
function unsafeCastStringToDOMTopLevelType(topLevelType) {
|
|
|
return topLevelType;
|
|
|
}
|
|
|
function unsafeCastDOMTopLevelTypeToString(topLevelType) {
|
|
|
return topLevelType;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Generate a mapping of standard vendor prefixes using the defined style property and event name.
|
|
|
*
|
|
|
* @param {string} styleProp
|
|
|
* @param {string} eventName
|
|
|
* @returns {object}
|
|
|
*/
|
|
|
|
|
|
function makePrefixMap(styleProp, eventName) {
|
|
|
var prefixes = {};
|
|
|
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
|
|
prefixes['Webkit' + styleProp] = 'webkit' + eventName;
|
|
|
prefixes['Moz' + styleProp] = 'moz' + eventName;
|
|
|
return prefixes;
|
|
|
}
|
|
|
/**
|
|
|
* A list of event names to a configurable list of vendor prefixes.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var vendorPrefixes = {
|
|
|
animationend: makePrefixMap('Animation', 'AnimationEnd'),
|
|
|
animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
|
|
|
animationstart: makePrefixMap('Animation', 'AnimationStart'),
|
|
|
transitionend: makePrefixMap('Transition', 'TransitionEnd')
|
|
|
};
|
|
|
/**
|
|
|
* Event names that have already been detected and prefixed (if applicable).
|
|
|
*/
|
|
|
|
|
|
var prefixedEventNames = {};
|
|
|
/**
|
|
|
* Element to check for prefixes on.
|
|
|
*/
|
|
|
|
|
|
var style = {};
|
|
|
/**
|
|
|
* Bootstrap if a DOM exists.
|
|
|
*/
|
|
|
|
|
|
if (canUseDOM) {
|
|
|
style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
|
|
|
// the un-prefixed "animation" and "transition" properties are defined on the
|
|
|
// style object but the events that fire will still be prefixed, so we need
|
|
|
// to check if the un-prefixed events are usable, and if not remove them from the map.
|
|
|
|
|
|
if (!('AnimationEvent' in window)) {
|
|
|
delete vendorPrefixes.animationend.animation;
|
|
|
delete vendorPrefixes.animationiteration.animation;
|
|
|
delete vendorPrefixes.animationstart.animation;
|
|
|
} // Same as above
|
|
|
|
|
|
|
|
|
if (!('TransitionEvent' in window)) {
|
|
|
delete vendorPrefixes.transitionend.transition;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Attempts to determine the correct vendor prefixed event name.
|
|
|
*
|
|
|
* @param {string} eventName
|
|
|
* @returns {string}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getVendorPrefixedEventName(eventName) {
|
|
|
if (prefixedEventNames[eventName]) {
|
|
|
return prefixedEventNames[eventName];
|
|
|
} else if (!vendorPrefixes[eventName]) {
|
|
|
return eventName;
|
|
|
}
|
|
|
|
|
|
var prefixMap = vendorPrefixes[eventName];
|
|
|
|
|
|
for (var styleProp in prefixMap) {
|
|
|
if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
|
|
|
return prefixedEventNames[eventName] = prefixMap[styleProp];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return eventName;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* To identify top level events in ReactDOM, we use constants defined by this
|
|
|
* module. This is the only module that uses the unsafe* methods to express
|
|
|
* that the constants actually correspond to the browser event names. This lets
|
|
|
* us save some bundle size by avoiding a top level type -> event name map.
|
|
|
* The rest of ReactDOM code should import top level types from this file.
|
|
|
*/
|
|
|
|
|
|
var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
|
|
|
var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
|
|
|
var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
|
|
|
var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
|
|
|
var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
|
|
|
var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
|
|
|
var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
|
|
|
var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
|
|
|
var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
|
|
|
var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
|
|
|
var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
|
|
|
var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
|
|
|
var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
|
|
|
var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
|
|
|
var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
|
|
|
var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
|
|
|
var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
|
|
|
var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
|
|
|
var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
|
|
|
var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
|
|
|
var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
|
|
|
var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
|
|
|
var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
|
|
|
var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
|
|
|
var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
|
|
|
var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
|
|
|
var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
|
|
|
var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
|
|
|
var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
|
|
|
var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
|
|
|
var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
|
|
|
var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
|
|
|
var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
|
|
|
var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
|
|
|
var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
|
|
|
var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
|
|
|
var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
|
|
|
var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
|
|
|
var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
|
|
|
var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
|
|
|
var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
|
|
|
var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
|
|
|
var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
|
|
|
var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
|
|
|
var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
|
|
|
var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
|
|
|
var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
|
|
|
var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
|
|
|
var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
|
|
|
var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
|
|
|
var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
|
|
|
var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
|
|
|
var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
|
|
|
var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
|
|
|
var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
|
|
|
var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
|
|
|
var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
|
|
|
var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
|
|
|
var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
|
|
|
var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
|
|
|
var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
|
|
|
var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
|
|
|
var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
|
|
|
var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
|
|
|
var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
|
|
|
var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
|
|
|
var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
|
|
|
var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
|
|
|
var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
|
|
|
var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
|
|
|
var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
|
|
|
var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
|
|
|
var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
|
|
|
var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
|
|
|
var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
|
|
|
var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
|
|
|
var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
|
|
|
var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
|
|
|
var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
|
|
|
var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.
|
|
|
// Note that events in this list will *not* be listened to at the top level
|
|
|
// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
|
|
|
|
|
|
var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
|
|
|
function getRawEventName(topLevelType) {
|
|
|
return unsafeCastDOMTopLevelTypeToString(topLevelType);
|
|
|
}
|
|
|
|
|
|
var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // prettier-ignore
|
|
|
|
|
|
var elementListenerMap = new PossiblyWeakMap();
|
|
|
function getListenerMapForElement(element) {
|
|
|
var listenerMap = elementListenerMap.get(element);
|
|
|
|
|
|
if (listenerMap === undefined) {
|
|
|
listenerMap = new Map();
|
|
|
elementListenerMap.set(element, listenerMap);
|
|
|
}
|
|
|
|
|
|
return listenerMap;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* `ReactInstanceMap` maintains a mapping from a public facing stateful
|
|
|
* instance (key) and the internal representation (value). This allows public
|
|
|
* methods to accept the user facing instance as an argument and map them back
|
|
|
* to internal methods.
|
|
|
*
|
|
|
* Note that this module is currently shared and assumed to be stateless.
|
|
|
* If this becomes an actual Map, that will break.
|
|
|
*/
|
|
|
function get(key) {
|
|
|
return key._reactInternalFiber;
|
|
|
}
|
|
|
function has(key) {
|
|
|
return key._reactInternalFiber !== undefined;
|
|
|
}
|
|
|
function set(key, value) {
|
|
|
key._reactInternalFiber = value;
|
|
|
}
|
|
|
|
|
|
// Don't change these two values. They're used by React Dev Tools.
|
|
|
var NoEffect =
|
|
|
/* */
|
|
|
0;
|
|
|
var PerformedWork =
|
|
|
/* */
|
|
|
1; // You can change the rest (and add more).
|
|
|
|
|
|
var Placement =
|
|
|
/* */
|
|
|
2;
|
|
|
var Update =
|
|
|
/* */
|
|
|
4;
|
|
|
var PlacementAndUpdate =
|
|
|
/* */
|
|
|
6;
|
|
|
var Deletion =
|
|
|
/* */
|
|
|
8;
|
|
|
var ContentReset =
|
|
|
/* */
|
|
|
16;
|
|
|
var Callback =
|
|
|
/* */
|
|
|
32;
|
|
|
var DidCapture =
|
|
|
/* */
|
|
|
64;
|
|
|
var Ref =
|
|
|
/* */
|
|
|
128;
|
|
|
var Snapshot =
|
|
|
/* */
|
|
|
256;
|
|
|
var Passive =
|
|
|
/* */
|
|
|
512;
|
|
|
var Hydrating =
|
|
|
/* */
|
|
|
1024;
|
|
|
var HydratingAndUpdate =
|
|
|
/* */
|
|
|
1028; // Passive & Update & Callback & Ref & Snapshot
|
|
|
|
|
|
var LifecycleEffectMask =
|
|
|
/* */
|
|
|
932; // Union of all host effects
|
|
|
|
|
|
var HostEffectMask =
|
|
|
/* */
|
|
|
2047;
|
|
|
var Incomplete =
|
|
|
/* */
|
|
|
2048;
|
|
|
var ShouldCapture =
|
|
|
/* */
|
|
|
4096;
|
|
|
|
|
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
|
function getNearestMountedFiber(fiber) {
|
|
|
var node = fiber;
|
|
|
var nearestMounted = fiber;
|
|
|
|
|
|
if (!fiber.alternate) {
|
|
|
// If there is no alternate, this might be a new tree that isn't inserted
|
|
|
// yet. If it is, then it will have a pending insertion effect on it.
|
|
|
var nextNode = node;
|
|
|
|
|
|
do {
|
|
|
node = nextNode;
|
|
|
|
|
|
if ((node.effectTag & (Placement | Hydrating)) !== NoEffect) {
|
|
|
// This is an insertion or in-progress hydration. The nearest possible
|
|
|
// mounted fiber is the parent but we need to continue to figure out
|
|
|
// if that one is still mounted.
|
|
|
nearestMounted = node.return;
|
|
|
}
|
|
|
|
|
|
nextNode = node.return;
|
|
|
} while (nextNode);
|
|
|
} else {
|
|
|
while (node.return) {
|
|
|
node = node.return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (node.tag === HostRoot) {
|
|
|
// TODO: Check if this was a nested HostRoot when used with
|
|
|
// renderContainerIntoSubtree.
|
|
|
return nearestMounted;
|
|
|
} // If we didn't hit the root, that means that we're in an disconnected tree
|
|
|
// that has been unmounted.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
function getSuspenseInstanceFromFiber(fiber) {
|
|
|
if (fiber.tag === SuspenseComponent) {
|
|
|
var suspenseState = fiber.memoizedState;
|
|
|
|
|
|
if (suspenseState === null) {
|
|
|
var current = fiber.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
suspenseState = current.memoizedState;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (suspenseState !== null) {
|
|
|
return suspenseState.dehydrated;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
function getContainerFromFiber(fiber) {
|
|
|
return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
|
|
|
}
|
|
|
function isFiberMounted(fiber) {
|
|
|
return getNearestMountedFiber(fiber) === fiber;
|
|
|
}
|
|
|
function isMounted(component) {
|
|
|
{
|
|
|
var owner = ReactCurrentOwner.current;
|
|
|
|
|
|
if (owner !== null && owner.tag === ClassComponent) {
|
|
|
var ownerFiber = owner;
|
|
|
var instance = ownerFiber.stateNode;
|
|
|
|
|
|
if (!instance._warnedAboutRefsInRender) {
|
|
|
error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component');
|
|
|
}
|
|
|
|
|
|
instance._warnedAboutRefsInRender = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var fiber = get(component);
|
|
|
|
|
|
if (!fiber) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return getNearestMountedFiber(fiber) === fiber;
|
|
|
}
|
|
|
|
|
|
function assertIsMounted(fiber) {
|
|
|
if (!(getNearestMountedFiber(fiber) === fiber)) {
|
|
|
{
|
|
|
throw Error( "Unable to find node on an unmounted component." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (!alternate) {
|
|
|
// If there is no alternate, then we only need to check if it is mounted.
|
|
|
var nearestMounted = getNearestMountedFiber(fiber);
|
|
|
|
|
|
if (!(nearestMounted !== null)) {
|
|
|
{
|
|
|
throw Error( "Unable to find node on an unmounted component." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (nearestMounted !== fiber) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return fiber;
|
|
|
} // If we have two possible branches, we'll walk backwards up to the root
|
|
|
// to see what path the root points to. On the way we may hit one of the
|
|
|
// special cases and we'll deal with them.
|
|
|
|
|
|
|
|
|
var a = fiber;
|
|
|
var b = alternate;
|
|
|
|
|
|
while (true) {
|
|
|
var parentA = a.return;
|
|
|
|
|
|
if (parentA === null) {
|
|
|
// We're at the root.
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var parentB = parentA.alternate;
|
|
|
|
|
|
if (parentB === null) {
|
|
|
// There is no alternate. This is an unusual case. Currently, it only
|
|
|
// happens when a Suspense component is hidden. An extra fragment fiber
|
|
|
// is inserted in between the Suspense fiber and its children. Skip
|
|
|
// over this extra fragment fiber and proceed to the next parent.
|
|
|
var nextParent = parentA.return;
|
|
|
|
|
|
if (nextParent !== null) {
|
|
|
a = b = nextParent;
|
|
|
continue;
|
|
|
} // If there's no parent, we're at the root.
|
|
|
|
|
|
|
|
|
break;
|
|
|
} // If both copies of the parent fiber point to the same child, we can
|
|
|
// assume that the child is current. This happens when we bailout on low
|
|
|
// priority: the bailed out fiber's child reuses the current child.
|
|
|
|
|
|
|
|
|
if (parentA.child === parentB.child) {
|
|
|
var child = parentA.child;
|
|
|
|
|
|
while (child) {
|
|
|
if (child === a) {
|
|
|
// We've determined that A is the current branch.
|
|
|
assertIsMounted(parentA);
|
|
|
return fiber;
|
|
|
}
|
|
|
|
|
|
if (child === b) {
|
|
|
// We've determined that B is the current branch.
|
|
|
assertIsMounted(parentA);
|
|
|
return alternate;
|
|
|
}
|
|
|
|
|
|
child = child.sibling;
|
|
|
} // We should never have an alternate for any mounting node. So the only
|
|
|
// way this could possibly happen is if this was unmounted, if at all.
|
|
|
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unable to find node on an unmounted component." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (a.return !== b.return) {
|
|
|
// The return pointer of A and the return pointer of B point to different
|
|
|
// fibers. We assume that return pointers never criss-cross, so A must
|
|
|
// belong to the child set of A.return, and B must belong to the child
|
|
|
// set of B.return.
|
|
|
a = parentA;
|
|
|
b = parentB;
|
|
|
} else {
|
|
|
// The return pointers point to the same fiber. We'll have to use the
|
|
|
// default, slow path: scan the child sets of each parent alternate to see
|
|
|
// which child belongs to which set.
|
|
|
//
|
|
|
// Search parent A's child set
|
|
|
var didFindChild = false;
|
|
|
var _child = parentA.child;
|
|
|
|
|
|
while (_child) {
|
|
|
if (_child === a) {
|
|
|
didFindChild = true;
|
|
|
a = parentA;
|
|
|
b = parentB;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (_child === b) {
|
|
|
didFindChild = true;
|
|
|
b = parentA;
|
|
|
a = parentB;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
_child = _child.sibling;
|
|
|
}
|
|
|
|
|
|
if (!didFindChild) {
|
|
|
// Search parent B's child set
|
|
|
_child = parentB.child;
|
|
|
|
|
|
while (_child) {
|
|
|
if (_child === a) {
|
|
|
didFindChild = true;
|
|
|
a = parentB;
|
|
|
b = parentA;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (_child === b) {
|
|
|
didFindChild = true;
|
|
|
b = parentB;
|
|
|
a = parentA;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
_child = _child.sibling;
|
|
|
}
|
|
|
|
|
|
if (!didFindChild) {
|
|
|
{
|
|
|
throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(a.alternate === b)) {
|
|
|
{
|
|
|
throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
} // If the root is not a host container, we're in a disconnected tree. I.e.
|
|
|
// unmounted.
|
|
|
|
|
|
|
|
|
if (!(a.tag === HostRoot)) {
|
|
|
{
|
|
|
throw Error( "Unable to find node on an unmounted component." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (a.stateNode.current === a) {
|
|
|
// We've determined that A is the current branch.
|
|
|
return fiber;
|
|
|
} // Otherwise B has to be current branch.
|
|
|
|
|
|
|
|
|
return alternate;
|
|
|
}
|
|
|
function findCurrentHostFiber(parent) {
|
|
|
var currentParent = findCurrentFiberUsingSlowPath(parent);
|
|
|
|
|
|
if (!currentParent) {
|
|
|
return null;
|
|
|
} // Next we'll drill down this component to find the first HostComponent/Text.
|
|
|
|
|
|
|
|
|
var node = currentParent;
|
|
|
|
|
|
while (true) {
|
|
|
if (node.tag === HostComponent || node.tag === HostText) {
|
|
|
return node;
|
|
|
} else if (node.child) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === currentParent) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
while (!node.sibling) {
|
|
|
if (!node.return || node.return === currentParent) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
} // Flow needs the return null here, but ESLint complains about it.
|
|
|
// eslint-disable-next-line no-unreachable
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
function findCurrentHostFiberWithNoPortals(parent) {
|
|
|
var currentParent = findCurrentFiberUsingSlowPath(parent);
|
|
|
|
|
|
if (!currentParent) {
|
|
|
return null;
|
|
|
} // Next we'll drill down this component to find the first HostComponent/Text.
|
|
|
|
|
|
|
|
|
var node = currentParent;
|
|
|
|
|
|
while (true) {
|
|
|
if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
|
|
|
return node;
|
|
|
} else if (node.child && node.tag !== HostPortal) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === currentParent) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
while (!node.sibling) {
|
|
|
if (!node.return || node.return === currentParent) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
} // Flow needs the return null here, but ESLint complains about it.
|
|
|
// eslint-disable-next-line no-unreachable
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Accumulates items that must not be null or undefined into the first one. This
|
|
|
* is used to conserve memory by avoiding array allocations, and thus sacrifices
|
|
|
* API cleanness. Since `current` can be null before being passed in and not
|
|
|
* null after this function, make sure to assign it back to `current`:
|
|
|
*
|
|
|
* `a = accumulateInto(a, b);`
|
|
|
*
|
|
|
* This API should be sparingly used. Try `accumulate` for something cleaner.
|
|
|
*
|
|
|
* @return {*|array<*>} An accumulation of items.
|
|
|
*/
|
|
|
|
|
|
function accumulateInto(current, next) {
|
|
|
if (!(next != null)) {
|
|
|
{
|
|
|
throw Error( "accumulateInto(...): Accumulated items must not be null or undefined." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (current == null) {
|
|
|
return next;
|
|
|
} // Both are not empty. Warning: Never call x.concat(y) when you are not
|
|
|
// certain that x is an Array (x could be a string with concat method).
|
|
|
|
|
|
|
|
|
if (Array.isArray(current)) {
|
|
|
if (Array.isArray(next)) {
|
|
|
current.push.apply(current, next);
|
|
|
return current;
|
|
|
}
|
|
|
|
|
|
current.push(next);
|
|
|
return current;
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(next)) {
|
|
|
// A bit too dangerous to mutate `next`.
|
|
|
return [current].concat(next);
|
|
|
}
|
|
|
|
|
|
return [current, next];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @param {array} arr an "accumulation" of items which is either an Array or
|
|
|
* a single item. Useful when paired with the `accumulate` module. This is a
|
|
|
* simple utility that allows us to reason about a collection of items, but
|
|
|
* handling the case when there is exactly one item (and we do not need to
|
|
|
* allocate an array).
|
|
|
* @param {function} cb Callback invoked with each element or a collection.
|
|
|
* @param {?} [scope] Scope used as `this` in a callback.
|
|
|
*/
|
|
|
function forEachAccumulated(arr, cb, scope) {
|
|
|
if (Array.isArray(arr)) {
|
|
|
arr.forEach(cb, scope);
|
|
|
} else if (arr) {
|
|
|
cb.call(scope, arr);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Internal queue of events that have accumulated their dispatches and are
|
|
|
* waiting to have their dispatches executed.
|
|
|
*/
|
|
|
|
|
|
var eventQueue = null;
|
|
|
/**
|
|
|
* Dispatches an event and releases it back into the pool, unless persistent.
|
|
|
*
|
|
|
* @param {?object} event Synthetic event to be dispatched.
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var executeDispatchesAndRelease = function (event) {
|
|
|
if (event) {
|
|
|
executeDispatchesInOrder(event);
|
|
|
|
|
|
if (!event.isPersistent()) {
|
|
|
event.constructor.release(event);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var executeDispatchesAndReleaseTopLevel = function (e) {
|
|
|
return executeDispatchesAndRelease(e);
|
|
|
};
|
|
|
|
|
|
function runEventsInBatch(events) {
|
|
|
if (events !== null) {
|
|
|
eventQueue = accumulateInto(eventQueue, events);
|
|
|
} // Set `eventQueue` to null before processing it so that we can tell if more
|
|
|
// events get enqueued while processing.
|
|
|
|
|
|
|
|
|
var processingEventQueue = eventQueue;
|
|
|
eventQueue = null;
|
|
|
|
|
|
if (!processingEventQueue) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
|
|
|
|
|
|
if (!!eventQueue) {
|
|
|
{
|
|
|
throw Error( "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented." );
|
|
|
}
|
|
|
} // This would be a good time to rethrow if any of the event handlers threw.
|
|
|
|
|
|
|
|
|
rethrowCaughtError();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gets the target node from a native browser event by accounting for
|
|
|
* inconsistencies in browser DOM APIs.
|
|
|
*
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @return {DOMEventTarget} Target node.
|
|
|
*/
|
|
|
|
|
|
function getEventTarget(nativeEvent) {
|
|
|
// Fallback to nativeEvent.srcElement for IE9
|
|
|
// https://github.com/facebook/react/issues/12506
|
|
|
var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963
|
|
|
|
|
|
if (target.correspondingUseElement) {
|
|
|
target = target.correspondingUseElement;
|
|
|
} // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
|
|
|
// @see http://www.quirksmode.org/js/events_properties.html
|
|
|
|
|
|
|
|
|
return target.nodeType === TEXT_NODE ? target.parentNode : target;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Checks if an event is supported in the current execution environment.
|
|
|
*
|
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
|
* `reset`, `load`, `error`, and `select`.
|
|
|
*
|
|
|
* Borrows from Modernizr.
|
|
|
*
|
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
|
* @return {boolean} True if the event is supported.
|
|
|
* @internal
|
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
|
*/
|
|
|
|
|
|
function isEventSupported(eventNameSuffix) {
|
|
|
if (!canUseDOM) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var eventName = 'on' + eventNameSuffix;
|
|
|
var isSupported = eventName in document;
|
|
|
|
|
|
if (!isSupported) {
|
|
|
var element = document.createElement('div');
|
|
|
element.setAttribute(eventName, 'return;');
|
|
|
isSupported = typeof element[eventName] === 'function';
|
|
|
}
|
|
|
|
|
|
return isSupported;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Summary of `DOMEventPluginSystem` event handling:
|
|
|
*
|
|
|
* - Top-level delegation is used to trap most native browser events. This
|
|
|
* may only occur in the main thread and is the responsibility of
|
|
|
* ReactDOMEventListener, which is injected and can therefore support
|
|
|
* pluggable event sources. This is the only work that occurs in the main
|
|
|
* thread.
|
|
|
*
|
|
|
* - We normalize and de-duplicate events to account for browser quirks. This
|
|
|
* may be done in the worker thread.
|
|
|
*
|
|
|
* - Forward these native events (with the associated top-level type used to
|
|
|
* trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want
|
|
|
* to extract any synthetic events.
|
|
|
*
|
|
|
* - The `EventPluginRegistry` will then process each event by annotating them with
|
|
|
* "dispatches", a sequence of listeners and IDs that care about that event.
|
|
|
*
|
|
|
* - The `EventPluginRegistry` then dispatches the events.
|
|
|
*
|
|
|
* Overview of React and the event system:
|
|
|
*
|
|
|
* +------------+ .
|
|
|
* | DOM | .
|
|
|
* +------------+ .
|
|
|
* | .
|
|
|
* v .
|
|
|
* +------------+ .
|
|
|
* | ReactEvent | .
|
|
|
* | Listener | .
|
|
|
* +------------+ . +-----------+
|
|
|
* | . +--------+|SimpleEvent|
|
|
|
* | . | |Plugin |
|
|
|
* +-----|------+ . v +-----------+
|
|
|
* | | | . +--------------+ +------------+
|
|
|
* | +-----------.--->|PluginRegistry| | Event |
|
|
|
* | | . | | +-----------+ | Propagators|
|
|
|
* | ReactEvent | . | | |TapEvent | |------------|
|
|
|
* | Emitter | . | |<---+|Plugin | |other plugin|
|
|
|
* | | . | | +-----------+ | utilities |
|
|
|
* | +-----------.--->| | +------------+
|
|
|
* | | | . +--------------+
|
|
|
* +-----|------+ . ^ +-----------+
|
|
|
* | . | |Enter/Leave|
|
|
|
* + . +-------+|Plugin |
|
|
|
* +-------------+ . +-----------+
|
|
|
* | application | .
|
|
|
* |-------------| .
|
|
|
* | | .
|
|
|
* | | .
|
|
|
* +-------------+ .
|
|
|
* .
|
|
|
* React Core . General Purpose Event Plugin System
|
|
|
*/
|
|
|
|
|
|
var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
|
|
|
var callbackBookkeepingPool = [];
|
|
|
|
|
|
function releaseTopLevelCallbackBookKeeping(instance) {
|
|
|
instance.topLevelType = null;
|
|
|
instance.nativeEvent = null;
|
|
|
instance.targetInst = null;
|
|
|
instance.ancestors.length = 0;
|
|
|
|
|
|
if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
|
|
|
callbackBookkeepingPool.push(instance);
|
|
|
}
|
|
|
} // Used to store ancestor hierarchy in top level callback
|
|
|
|
|
|
|
|
|
function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags) {
|
|
|
if (callbackBookkeepingPool.length) {
|
|
|
var instance = callbackBookkeepingPool.pop();
|
|
|
instance.topLevelType = topLevelType;
|
|
|
instance.eventSystemFlags = eventSystemFlags;
|
|
|
instance.nativeEvent = nativeEvent;
|
|
|
instance.targetInst = targetInst;
|
|
|
return instance;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
topLevelType: topLevelType,
|
|
|
eventSystemFlags: eventSystemFlags,
|
|
|
nativeEvent: nativeEvent,
|
|
|
targetInst: targetInst,
|
|
|
ancestors: []
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* Find the deepest React component completely containing the root of the
|
|
|
* passed-in instance (for use when entire React trees are nested within each
|
|
|
* other). If React trees are not nested, returns null.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function findRootContainerNode(inst) {
|
|
|
if (inst.tag === HostRoot) {
|
|
|
return inst.stateNode.containerInfo;
|
|
|
} // TODO: It may be a good idea to cache this to prevent unnecessary DOM
|
|
|
// traversal, but caching is difficult to do correctly without using a
|
|
|
// mutation observer to listen for all DOM changes.
|
|
|
|
|
|
|
|
|
while (inst.return) {
|
|
|
inst = inst.return;
|
|
|
}
|
|
|
|
|
|
if (inst.tag !== HostRoot) {
|
|
|
// This can happen if we're in a detached tree.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return inst.stateNode.containerInfo;
|
|
|
}
|
|
|
/**
|
|
|
* Allows registered plugins an opportunity to extract events from top-level
|
|
|
* native browser events.
|
|
|
*
|
|
|
* @return {*} An accumulation of synthetic events.
|
|
|
* @internal
|
|
|
*/
|
|
|
|
|
|
|
|
|
function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var events = null;
|
|
|
|
|
|
for (var i = 0; i < plugins.length; i++) {
|
|
|
// Not every plugin in the ordering may be loaded at runtime.
|
|
|
var possiblePlugin = plugins[i];
|
|
|
|
|
|
if (possiblePlugin) {
|
|
|
var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
|
|
|
|
|
|
if (extractedEvents) {
|
|
|
events = accumulateInto(events, extractedEvents);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return events;
|
|
|
}
|
|
|
|
|
|
function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
|
|
|
runEventsInBatch(events);
|
|
|
}
|
|
|
|
|
|
function handleTopLevel(bookKeeping) {
|
|
|
var targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.
|
|
|
// It's important that we build the array of ancestors before calling any
|
|
|
// event handlers, because event handlers can modify the DOM, leading to
|
|
|
// inconsistencies with ReactMount's node cache. See #1105.
|
|
|
|
|
|
var ancestor = targetInst;
|
|
|
|
|
|
do {
|
|
|
if (!ancestor) {
|
|
|
var ancestors = bookKeeping.ancestors;
|
|
|
ancestors.push(ancestor);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var root = findRootContainerNode(ancestor);
|
|
|
|
|
|
if (!root) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var tag = ancestor.tag;
|
|
|
|
|
|
if (tag === HostComponent || tag === HostText) {
|
|
|
bookKeeping.ancestors.push(ancestor);
|
|
|
}
|
|
|
|
|
|
ancestor = getClosestInstanceFromNode(root);
|
|
|
} while (ancestor);
|
|
|
|
|
|
for (var i = 0; i < bookKeeping.ancestors.length; i++) {
|
|
|
targetInst = bookKeeping.ancestors[i];
|
|
|
var eventTarget = getEventTarget(bookKeeping.nativeEvent);
|
|
|
var topLevelType = bookKeeping.topLevelType;
|
|
|
var nativeEvent = bookKeeping.nativeEvent;
|
|
|
var eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags
|
|
|
|
|
|
if (i === 0) {
|
|
|
eventSystemFlags |= IS_FIRST_ANCESTOR;
|
|
|
}
|
|
|
|
|
|
runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
|
|
|
var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);
|
|
|
|
|
|
try {
|
|
|
// Event queue being processed in the same cycle allows
|
|
|
// `preventDefault`.
|
|
|
batchedEventUpdates(handleTopLevel, bookKeeping);
|
|
|
} finally {
|
|
|
releaseTopLevelCallbackBookKeeping(bookKeeping);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* We listen for bubbled touch events on the document object.
|
|
|
*
|
|
|
* Firefox v8.01 (and possibly others) exhibited strange behavior when
|
|
|
* mounting `onmousemove` events at some node that was not the document
|
|
|
* element. The symptoms were that if your mouse is not moving over something
|
|
|
* contained within that mount point (for example on the background) the
|
|
|
* top-level listeners for `onmousemove` won't be called. However, if you
|
|
|
* register the `mousemove` on the document object, then it will of course
|
|
|
* catch all `mousemove`s. This along with iOS quirks, justifies restricting
|
|
|
* top-level listeners to the document object only, at least for these
|
|
|
* movement types of events and possibly all events.
|
|
|
*
|
|
|
* @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
|
|
|
*
|
|
|
* Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
|
|
|
* they bubble to document.
|
|
|
*
|
|
|
* @param {string} registrationName Name of listener (e.g. `onClick`).
|
|
|
* @param {object} mountAt Container where to mount the listener
|
|
|
*/
|
|
|
|
|
|
function legacyListenToEvent(registrationName, mountAt) {
|
|
|
var listenerMap = getListenerMapForElement(mountAt);
|
|
|
var dependencies = registrationNameDependencies[registrationName];
|
|
|
|
|
|
for (var i = 0; i < dependencies.length; i++) {
|
|
|
var dependency = dependencies[i];
|
|
|
legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);
|
|
|
}
|
|
|
}
|
|
|
function legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap) {
|
|
|
if (!listenerMap.has(topLevelType)) {
|
|
|
switch (topLevelType) {
|
|
|
case TOP_SCROLL:
|
|
|
trapCapturedEvent(TOP_SCROLL, mountAt);
|
|
|
break;
|
|
|
|
|
|
case TOP_FOCUS:
|
|
|
case TOP_BLUR:
|
|
|
trapCapturedEvent(TOP_FOCUS, mountAt);
|
|
|
trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,
|
|
|
// but this ensures we mark both as attached rather than just one.
|
|
|
|
|
|
listenerMap.set(TOP_BLUR, null);
|
|
|
listenerMap.set(TOP_FOCUS, null);
|
|
|
break;
|
|
|
|
|
|
case TOP_CANCEL:
|
|
|
case TOP_CLOSE:
|
|
|
if (isEventSupported(getRawEventName(topLevelType))) {
|
|
|
trapCapturedEvent(topLevelType, mountAt);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case TOP_INVALID:
|
|
|
case TOP_SUBMIT:
|
|
|
case TOP_RESET:
|
|
|
// We listen to them on the target DOM elements.
|
|
|
// Some of them bubble so we don't want them to fire twice.
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
// By default, listen on the top level to all non-media events.
|
|
|
// Media events don't bubble so adding the listener wouldn't do anything.
|
|
|
var isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1;
|
|
|
|
|
|
if (!isMediaEvent) {
|
|
|
trapBubbledEvent(topLevelType, mountAt);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
listenerMap.set(topLevelType, null);
|
|
|
}
|
|
|
}
|
|
|
function isListeningToAllDependencies(registrationName, mountAt) {
|
|
|
var listenerMap = getListenerMapForElement(mountAt);
|
|
|
var dependencies = registrationNameDependencies[registrationName];
|
|
|
|
|
|
for (var i = 0; i < dependencies.length; i++) {
|
|
|
var dependency = dependencies[i];
|
|
|
|
|
|
if (!listenerMap.has(dependency)) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var attemptUserBlockingHydration;
|
|
|
function setAttemptUserBlockingHydration(fn) {
|
|
|
attemptUserBlockingHydration = fn;
|
|
|
}
|
|
|
var attemptContinuousHydration;
|
|
|
function setAttemptContinuousHydration(fn) {
|
|
|
attemptContinuousHydration = fn;
|
|
|
}
|
|
|
var attemptHydrationAtCurrentPriority;
|
|
|
function setAttemptHydrationAtCurrentPriority(fn) {
|
|
|
attemptHydrationAtCurrentPriority = fn;
|
|
|
} // TODO: Upgrade this definition once we're on a newer version of Flow that
|
|
|
var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.
|
|
|
|
|
|
var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
|
|
|
// if the last target was dehydrated.
|
|
|
|
|
|
var queuedFocus = null;
|
|
|
var queuedDrag = null;
|
|
|
var queuedMouse = null; // For pointer events there can be one latest event per pointerId.
|
|
|
|
|
|
var queuedPointers = new Map();
|
|
|
var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.
|
|
|
|
|
|
var queuedExplicitHydrationTargets = [];
|
|
|
function hasQueuedDiscreteEvents() {
|
|
|
return queuedDiscreteEvents.length > 0;
|
|
|
}
|
|
|
var discreteReplayableEvents = [TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];
|
|
|
var continuousReplayableEvents = [TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];
|
|
|
function isReplayableDiscreteEvent(eventType) {
|
|
|
return discreteReplayableEvents.indexOf(eventType) > -1;
|
|
|
}
|
|
|
|
|
|
function trapReplayableEventForDocument(topLevelType, document, listenerMap) {
|
|
|
legacyListenToTopLevelEvent(topLevelType, document, listenerMap);
|
|
|
}
|
|
|
|
|
|
function eagerlyTrapReplayableEvents(container, document) {
|
|
|
var listenerMapForDoc = getListenerMapForElement(document); // Discrete
|
|
|
|
|
|
discreteReplayableEvents.forEach(function (topLevelType) {
|
|
|
trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
|
|
|
}); // Continuous
|
|
|
|
|
|
continuousReplayableEvents.forEach(function (topLevelType) {
|
|
|
trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
return {
|
|
|
blockedOn: blockedOn,
|
|
|
topLevelType: topLevelType,
|
|
|
eventSystemFlags: eventSystemFlags | IS_REPLAYED,
|
|
|
nativeEvent: nativeEvent,
|
|
|
container: container
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
queuedDiscreteEvents.push(queuedEvent);
|
|
|
} // Resets the replaying for this type of continuous event to no event.
|
|
|
|
|
|
function clearIfContinuousEvent(topLevelType, nativeEvent) {
|
|
|
switch (topLevelType) {
|
|
|
case TOP_FOCUS:
|
|
|
case TOP_BLUR:
|
|
|
queuedFocus = null;
|
|
|
break;
|
|
|
|
|
|
case TOP_DRAG_ENTER:
|
|
|
case TOP_DRAG_LEAVE:
|
|
|
queuedDrag = null;
|
|
|
break;
|
|
|
|
|
|
case TOP_MOUSE_OVER:
|
|
|
case TOP_MOUSE_OUT:
|
|
|
queuedMouse = null;
|
|
|
break;
|
|
|
|
|
|
case TOP_POINTER_OVER:
|
|
|
case TOP_POINTER_OUT:
|
|
|
{
|
|
|
var pointerId = nativeEvent.pointerId;
|
|
|
queuedPointers.delete(pointerId);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case TOP_GOT_POINTER_CAPTURE:
|
|
|
case TOP_LOST_POINTER_CAPTURE:
|
|
|
{
|
|
|
var _pointerId = nativeEvent.pointerId;
|
|
|
queuedPointerCaptures.delete(_pointerId);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
|
|
|
var queuedEvent = createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
|
|
|
if (blockedOn !== null) {
|
|
|
var _fiber2 = getInstanceFromNode$1(blockedOn);
|
|
|
|
|
|
if (_fiber2 !== null) {
|
|
|
// Attempt to increase the priority of this target.
|
|
|
attemptContinuousHydration(_fiber2);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return queuedEvent;
|
|
|
} // If we have already queued this exact event, then it's because
|
|
|
// the different event systems have different DOM event listeners.
|
|
|
// We can accumulate the flags and store a single event to be
|
|
|
// replayed.
|
|
|
|
|
|
|
|
|
existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
|
|
|
return existingQueuedEvent;
|
|
|
}
|
|
|
|
|
|
function queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
// These set relatedTarget to null because the replayed event will be treated as if we
|
|
|
// moved from outside the window (no target) onto the target once it hydrates.
|
|
|
// Instead of mutating we could clone the event.
|
|
|
switch (topLevelType) {
|
|
|
case TOP_FOCUS:
|
|
|
{
|
|
|
var focusEvent = nativeEvent;
|
|
|
queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
case TOP_DRAG_ENTER:
|
|
|
{
|
|
|
var dragEvent = nativeEvent;
|
|
|
queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
case TOP_MOUSE_OVER:
|
|
|
{
|
|
|
var mouseEvent = nativeEvent;
|
|
|
queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
case TOP_POINTER_OVER:
|
|
|
{
|
|
|
var pointerEvent = nativeEvent;
|
|
|
var pointerId = pointerEvent.pointerId;
|
|
|
queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
case TOP_GOT_POINTER_CAPTURE:
|
|
|
{
|
|
|
var _pointerEvent = nativeEvent;
|
|
|
var _pointerId2 = _pointerEvent.pointerId;
|
|
|
queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
} // Check if this target is unblocked. Returns true if it's unblocked.
|
|
|
|
|
|
function attemptExplicitHydrationTarget(queuedTarget) {
|
|
|
// TODO: This function shares a lot of logic with attemptToDispatchEvent.
|
|
|
// Try to unify them. It's a bit tricky since it would require two return
|
|
|
// values.
|
|
|
var targetInst = getClosestInstanceFromNode(queuedTarget.target);
|
|
|
|
|
|
if (targetInst !== null) {
|
|
|
var nearestMounted = getNearestMountedFiber(targetInst);
|
|
|
|
|
|
if (nearestMounted !== null) {
|
|
|
var tag = nearestMounted.tag;
|
|
|
|
|
|
if (tag === SuspenseComponent) {
|
|
|
var instance = getSuspenseInstanceFromFiber(nearestMounted);
|
|
|
|
|
|
if (instance !== null) {
|
|
|
// We're blocked on hydrating this boundary.
|
|
|
// Increase its priority.
|
|
|
queuedTarget.blockedOn = instance;
|
|
|
Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
|
|
|
attemptHydrationAtCurrentPriority(nearestMounted);
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
} else if (tag === HostRoot) {
|
|
|
var root = nearestMounted.stateNode;
|
|
|
|
|
|
if (root.hydrate) {
|
|
|
queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
|
|
|
// a root other than sync.
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
queuedTarget.blockedOn = null;
|
|
|
}
|
|
|
|
|
|
function attemptReplayContinuousQueuedEvent(queuedEvent) {
|
|
|
if (queuedEvent.blockedOn !== null) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var nextBlockedOn = attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);
|
|
|
|
|
|
if (nextBlockedOn !== null) {
|
|
|
// We're still blocked. Try again later.
|
|
|
var _fiber3 = getInstanceFromNode$1(nextBlockedOn);
|
|
|
|
|
|
if (_fiber3 !== null) {
|
|
|
attemptContinuousHydration(_fiber3);
|
|
|
}
|
|
|
|
|
|
queuedEvent.blockedOn = nextBlockedOn;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
|
|
|
if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
|
|
|
map.delete(key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function replayUnblockedEvents() {
|
|
|
hasScheduledReplayAttempt = false; // First replay discrete events.
|
|
|
|
|
|
while (queuedDiscreteEvents.length > 0) {
|
|
|
var nextDiscreteEvent = queuedDiscreteEvents[0];
|
|
|
|
|
|
if (nextDiscreteEvent.blockedOn !== null) {
|
|
|
// We're still blocked.
|
|
|
// Increase the priority of this boundary to unblock
|
|
|
// the next discrete event.
|
|
|
var _fiber4 = getInstanceFromNode$1(nextDiscreteEvent.blockedOn);
|
|
|
|
|
|
if (_fiber4 !== null) {
|
|
|
attemptUserBlockingHydration(_fiber4);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);
|
|
|
|
|
|
if (nextBlockedOn !== null) {
|
|
|
// We're still blocked. Try again later.
|
|
|
nextDiscreteEvent.blockedOn = nextBlockedOn;
|
|
|
} else {
|
|
|
// We've successfully replayed the first event. Let's try the next one.
|
|
|
queuedDiscreteEvents.shift();
|
|
|
}
|
|
|
} // Next replay any continuous events.
|
|
|
|
|
|
|
|
|
if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
|
|
|
queuedFocus = null;
|
|
|
}
|
|
|
|
|
|
if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
|
|
|
queuedDrag = null;
|
|
|
}
|
|
|
|
|
|
if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
|
|
|
queuedMouse = null;
|
|
|
}
|
|
|
|
|
|
queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
|
|
|
queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
|
|
|
}
|
|
|
|
|
|
function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
|
|
|
if (queuedEvent.blockedOn === unblocked) {
|
|
|
queuedEvent.blockedOn = null;
|
|
|
|
|
|
if (!hasScheduledReplayAttempt) {
|
|
|
hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
|
|
|
// now unblocked. This first might not actually be unblocked yet.
|
|
|
// We could check it early to avoid scheduling an unnecessary callback.
|
|
|
|
|
|
Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function retryIfBlockedOn(unblocked) {
|
|
|
// Mark anything that was blocked on this as no longer blocked
|
|
|
// and eligible for a replay.
|
|
|
if (queuedDiscreteEvents.length > 0) {
|
|
|
scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
|
|
|
// worth it because we expect very few discrete events to queue up and once
|
|
|
// we are actually fully unblocked it will be fast to replay them.
|
|
|
|
|
|
for (var i = 1; i < queuedDiscreteEvents.length; i++) {
|
|
|
var queuedEvent = queuedDiscreteEvents[i];
|
|
|
|
|
|
if (queuedEvent.blockedOn === unblocked) {
|
|
|
queuedEvent.blockedOn = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (queuedFocus !== null) {
|
|
|
scheduleCallbackIfUnblocked(queuedFocus, unblocked);
|
|
|
}
|
|
|
|
|
|
if (queuedDrag !== null) {
|
|
|
scheduleCallbackIfUnblocked(queuedDrag, unblocked);
|
|
|
}
|
|
|
|
|
|
if (queuedMouse !== null) {
|
|
|
scheduleCallbackIfUnblocked(queuedMouse, unblocked);
|
|
|
}
|
|
|
|
|
|
var unblock = function (queuedEvent) {
|
|
|
return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
|
|
|
};
|
|
|
|
|
|
queuedPointers.forEach(unblock);
|
|
|
queuedPointerCaptures.forEach(unblock);
|
|
|
|
|
|
for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
|
|
|
var queuedTarget = queuedExplicitHydrationTargets[_i];
|
|
|
|
|
|
if (queuedTarget.blockedOn === unblocked) {
|
|
|
queuedTarget.blockedOn = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
while (queuedExplicitHydrationTargets.length > 0) {
|
|
|
var nextExplicitTarget = queuedExplicitHydrationTargets[0];
|
|
|
|
|
|
if (nextExplicitTarget.blockedOn !== null) {
|
|
|
// We're still blocked.
|
|
|
break;
|
|
|
} else {
|
|
|
attemptExplicitHydrationTarget(nextExplicitTarget);
|
|
|
|
|
|
if (nextExplicitTarget.blockedOn === null) {
|
|
|
// We're unblocked.
|
|
|
queuedExplicitHydrationTargets.shift();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function addEventBubbleListener(element, eventType, listener) {
|
|
|
element.addEventListener(eventType, listener, false);
|
|
|
}
|
|
|
function addEventCaptureListener(element, eventType, listener) {
|
|
|
element.addEventListener(eventType, listener, true);
|
|
|
}
|
|
|
|
|
|
// do it in two places, which duplicates logic
|
|
|
// and increases the bundle size, we do it all
|
|
|
// here once. If we remove or refactor the
|
|
|
// SimpleEventPlugin, we should also remove or
|
|
|
// update the below line.
|
|
|
|
|
|
var simpleEventPluginEventTypes = {};
|
|
|
var topLevelEventsToDispatchConfig = new Map();
|
|
|
var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
|
|
|
// the code required to apply the same logic for event prioritization and that of the
|
|
|
// SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
|
|
|
// duplication (for which there would be quite a bit). For the events that are not needed
|
|
|
// for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
|
|
|
// array of top level events.
|
|
|
// Lastly, we ignore prettier so we can keep the formatting sane.
|
|
|
// prettier-ignore
|
|
|
|
|
|
var discreteEventPairsForSimpleEventPlugin = [TOP_BLUR, 'blur', TOP_CANCEL, 'cancel', TOP_CLICK, 'click', TOP_CLOSE, 'close', TOP_CONTEXT_MENU, 'contextMenu', TOP_COPY, 'copy', TOP_CUT, 'cut', TOP_AUX_CLICK, 'auxClick', TOP_DOUBLE_CLICK, 'doubleClick', TOP_DRAG_END, 'dragEnd', TOP_DRAG_START, 'dragStart', TOP_DROP, 'drop', TOP_FOCUS, 'focus', TOP_INPUT, 'input', TOP_INVALID, 'invalid', TOP_KEY_DOWN, 'keyDown', TOP_KEY_PRESS, 'keyPress', TOP_KEY_UP, 'keyUp', TOP_MOUSE_DOWN, 'mouseDown', TOP_MOUSE_UP, 'mouseUp', TOP_PASTE, 'paste', TOP_PAUSE, 'pause', TOP_PLAY, 'play', TOP_POINTER_CANCEL, 'pointerCancel', TOP_POINTER_DOWN, 'pointerDown', TOP_POINTER_UP, 'pointerUp', TOP_RATE_CHANGE, 'rateChange', TOP_RESET, 'reset', TOP_SEEKED, 'seeked', TOP_SUBMIT, 'submit', TOP_TOUCH_CANCEL, 'touchCancel', TOP_TOUCH_END, 'touchEnd', TOP_TOUCH_START, 'touchStart', TOP_VOLUME_CHANGE, 'volumeChange'];
|
|
|
var otherDiscreteEvents = [TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore
|
|
|
|
|
|
var userBlockingPairsForSimpleEventPlugin = [TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore
|
|
|
|
|
|
var continuousPairsForSimpleEventPlugin = [TOP_ABORT, 'abort', TOP_ANIMATION_END, 'animationEnd', TOP_ANIMATION_ITERATION, 'animationIteration', TOP_ANIMATION_START, 'animationStart', TOP_CAN_PLAY, 'canPlay', TOP_CAN_PLAY_THROUGH, 'canPlayThrough', TOP_DURATION_CHANGE, 'durationChange', TOP_EMPTIED, 'emptied', TOP_ENCRYPTED, 'encrypted', TOP_ENDED, 'ended', TOP_ERROR, 'error', TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', TOP_LOAD, 'load', TOP_LOADED_DATA, 'loadedData', TOP_LOADED_METADATA, 'loadedMetadata', TOP_LOAD_START, 'loadStart', TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', TOP_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting'];
|
|
|
/**
|
|
|
* Turns
|
|
|
* ['abort', ...]
|
|
|
* into
|
|
|
* eventTypes = {
|
|
|
* 'abort': {
|
|
|
* phasedRegistrationNames: {
|
|
|
* bubbled: 'onAbort',
|
|
|
* captured: 'onAbortCapture',
|
|
|
* },
|
|
|
* dependencies: [TOP_ABORT],
|
|
|
* },
|
|
|
* ...
|
|
|
* };
|
|
|
* topLevelEventsToDispatchConfig = new Map([
|
|
|
* [TOP_ABORT, { sameConfig }],
|
|
|
* ]);
|
|
|
*/
|
|
|
|
|
|
function processSimpleEventPluginPairsByPriority(eventTypes, priority) {
|
|
|
// As the event types are in pairs of two, we need to iterate
|
|
|
// through in twos. The events are in pairs of two to save code
|
|
|
// and improve init perf of processing this array, as it will
|
|
|
// result in far fewer object allocations and property accesses
|
|
|
// if we only use three arrays to process all the categories of
|
|
|
// instead of tuples.
|
|
|
for (var i = 0; i < eventTypes.length; i += 2) {
|
|
|
var topEvent = eventTypes[i];
|
|
|
var event = eventTypes[i + 1];
|
|
|
var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
|
|
|
var onEvent = 'on' + capitalizedEvent;
|
|
|
var config = {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: onEvent,
|
|
|
captured: onEvent + 'Capture'
|
|
|
},
|
|
|
dependencies: [topEvent],
|
|
|
eventPriority: priority
|
|
|
};
|
|
|
eventPriorities.set(topEvent, priority);
|
|
|
topLevelEventsToDispatchConfig.set(topEvent, config);
|
|
|
simpleEventPluginEventTypes[event] = config;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function processTopEventPairsByPriority(eventTypes, priority) {
|
|
|
for (var i = 0; i < eventTypes.length; i++) {
|
|
|
eventPriorities.set(eventTypes[i], priority);
|
|
|
}
|
|
|
} // SimpleEventPlugin
|
|
|
|
|
|
|
|
|
processSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
|
|
|
processSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
|
|
|
processSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin
|
|
|
|
|
|
processTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);
|
|
|
function getEventPriorityForPluginSystem(topLevelType) {
|
|
|
var priority = eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might
|
|
|
// want to warn if we can't detect the priority
|
|
|
// for the event.
|
|
|
|
|
|
return priority === undefined ? ContinuousEvent : priority;
|
|
|
}
|
|
|
|
|
|
// Intentionally not named imports because Rollup would use dynamic dispatch for
|
|
|
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
|
|
|
runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?
|
|
|
|
|
|
var _enabled = true;
|
|
|
function setEnabled(enabled) {
|
|
|
_enabled = !!enabled;
|
|
|
}
|
|
|
function isEnabled() {
|
|
|
return _enabled;
|
|
|
}
|
|
|
function trapBubbledEvent(topLevelType, element) {
|
|
|
trapEventForPluginEventSystem(element, topLevelType, false);
|
|
|
}
|
|
|
function trapCapturedEvent(topLevelType, element) {
|
|
|
trapEventForPluginEventSystem(element, topLevelType, true);
|
|
|
}
|
|
|
|
|
|
function trapEventForPluginEventSystem(container, topLevelType, capture) {
|
|
|
var listener;
|
|
|
|
|
|
switch (getEventPriorityForPluginSystem(topLevelType)) {
|
|
|
case DiscreteEvent:
|
|
|
listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
|
|
|
break;
|
|
|
|
|
|
case UserBlockingEvent:
|
|
|
listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
|
|
|
break;
|
|
|
|
|
|
case ContinuousEvent:
|
|
|
default:
|
|
|
listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var rawEventName = getRawEventName(topLevelType);
|
|
|
|
|
|
if (capture) {
|
|
|
addEventCaptureListener(container, rawEventName, listener);
|
|
|
} else {
|
|
|
addEventBubbleListener(container, rawEventName, listener);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
|
|
|
discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
}
|
|
|
|
|
|
function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));
|
|
|
}
|
|
|
|
|
|
function dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
if (!_enabled) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(topLevelType)) {
|
|
|
// If we already have a queue of discrete events, and this is another discrete
|
|
|
// event, then we can't dispatch it regardless of its target, since they
|
|
|
// need to dispatch in order.
|
|
|
queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
|
|
|
topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var blockedOn = attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
|
|
|
if (blockedOn === null) {
|
|
|
// We successfully dispatched this event.
|
|
|
clearIfContinuousEvent(topLevelType, nativeEvent);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (isReplayableDiscreteEvent(topLevelType)) {
|
|
|
// This this to be replayed later once the target is available.
|
|
|
queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)) {
|
|
|
return;
|
|
|
} // We need to clear only if we didn't queue because
|
|
|
// queueing is accummulative.
|
|
|
|
|
|
|
|
|
clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,
|
|
|
// in case the event system needs to trace it.
|
|
|
|
|
|
{
|
|
|
dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);
|
|
|
}
|
|
|
} // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.
|
|
|
|
|
|
function attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent) {
|
|
|
// TODO: Warn if _enabled is false.
|
|
|
var nativeEventTarget = getEventTarget(nativeEvent);
|
|
|
var targetInst = getClosestInstanceFromNode(nativeEventTarget);
|
|
|
|
|
|
if (targetInst !== null) {
|
|
|
var nearestMounted = getNearestMountedFiber(targetInst);
|
|
|
|
|
|
if (nearestMounted === null) {
|
|
|
// This tree has been unmounted already. Dispatch without a target.
|
|
|
targetInst = null;
|
|
|
} else {
|
|
|
var tag = nearestMounted.tag;
|
|
|
|
|
|
if (tag === SuspenseComponent) {
|
|
|
var instance = getSuspenseInstanceFromFiber(nearestMounted);
|
|
|
|
|
|
if (instance !== null) {
|
|
|
// Queue the event to be replayed later. Abort dispatching since we
|
|
|
// don't want this event dispatched twice through the event system.
|
|
|
// TODO: If this is the first discrete event in the queue. Schedule an increased
|
|
|
// priority for this boundary.
|
|
|
return instance;
|
|
|
} // This shouldn't happen, something went wrong but to avoid blocking
|
|
|
// the whole system, dispatch the event without a target.
|
|
|
// TODO: Warn.
|
|
|
|
|
|
|
|
|
targetInst = null;
|
|
|
} else if (tag === HostRoot) {
|
|
|
var root = nearestMounted.stateNode;
|
|
|
|
|
|
if (root.hydrate) {
|
|
|
// If this happens during a replay something went wrong and it might block
|
|
|
// the whole system.
|
|
|
return getContainerFromFiber(nearestMounted);
|
|
|
}
|
|
|
|
|
|
targetInst = null;
|
|
|
} else if (nearestMounted !== targetInst) {
|
|
|
// If we get an event (ex: img onload) before committing that
|
|
|
// component's mount, ignore it for now (that is, treat it as if it was an
|
|
|
// event on a non-React tree). We might also consider queueing events and
|
|
|
// dispatching them after the mount.
|
|
|
targetInst = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
|
|
|
} // We're not blocked on anything.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
// List derived from Gecko source code:
|
|
|
// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
|
|
|
var shorthandToLonghand = {
|
|
|
animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
|
|
|
background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
|
|
|
backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
|
|
|
border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
|
|
|
borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
|
|
|
borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
|
|
|
borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
|
|
|
borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
|
|
|
borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
|
|
|
borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
|
|
|
borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
|
|
|
borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
|
|
|
borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
|
|
|
borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
|
|
|
borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
|
|
|
borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
|
|
|
borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
|
|
|
columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
|
|
|
columns: ['columnCount', 'columnWidth'],
|
|
|
flex: ['flexBasis', 'flexGrow', 'flexShrink'],
|
|
|
flexFlow: ['flexDirection', 'flexWrap'],
|
|
|
font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
|
|
|
fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
|
|
|
gap: ['columnGap', 'rowGap'],
|
|
|
grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
|
|
|
gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
|
|
|
gridColumn: ['gridColumnEnd', 'gridColumnStart'],
|
|
|
gridColumnGap: ['columnGap'],
|
|
|
gridGap: ['columnGap', 'rowGap'],
|
|
|
gridRow: ['gridRowEnd', 'gridRowStart'],
|
|
|
gridRowGap: ['rowGap'],
|
|
|
gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
|
|
|
listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
|
|
|
margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
|
|
|
marker: ['markerEnd', 'markerMid', 'markerStart'],
|
|
|
mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
|
|
|
maskPosition: ['maskPositionX', 'maskPositionY'],
|
|
|
outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
|
|
|
overflow: ['overflowX', 'overflowY'],
|
|
|
padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
|
|
|
placeContent: ['alignContent', 'justifyContent'],
|
|
|
placeItems: ['alignItems', 'justifyItems'],
|
|
|
placeSelf: ['alignSelf', 'justifySelf'],
|
|
|
textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
|
|
|
textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
|
|
|
transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
|
|
|
wordWrap: ['overflowWrap']
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* CSS properties which accept numbers but are not in units of "px".
|
|
|
*/
|
|
|
var isUnitlessNumber = {
|
|
|
animationIterationCount: true,
|
|
|
borderImageOutset: true,
|
|
|
borderImageSlice: true,
|
|
|
borderImageWidth: true,
|
|
|
boxFlex: true,
|
|
|
boxFlexGroup: true,
|
|
|
boxOrdinalGroup: true,
|
|
|
columnCount: true,
|
|
|
columns: true,
|
|
|
flex: true,
|
|
|
flexGrow: true,
|
|
|
flexPositive: true,
|
|
|
flexShrink: true,
|
|
|
flexNegative: true,
|
|
|
flexOrder: true,
|
|
|
gridArea: true,
|
|
|
gridRow: true,
|
|
|
gridRowEnd: true,
|
|
|
gridRowSpan: true,
|
|
|
gridRowStart: true,
|
|
|
gridColumn: true,
|
|
|
gridColumnEnd: true,
|
|
|
gridColumnSpan: true,
|
|
|
gridColumnStart: true,
|
|
|
fontWeight: true,
|
|
|
lineClamp: true,
|
|
|
lineHeight: true,
|
|
|
opacity: true,
|
|
|
order: true,
|
|
|
orphans: true,
|
|
|
tabSize: true,
|
|
|
widows: true,
|
|
|
zIndex: true,
|
|
|
zoom: true,
|
|
|
// SVG-related properties
|
|
|
fillOpacity: true,
|
|
|
floodOpacity: true,
|
|
|
stopOpacity: true,
|
|
|
strokeDasharray: true,
|
|
|
strokeDashoffset: true,
|
|
|
strokeMiterlimit: true,
|
|
|
strokeOpacity: true,
|
|
|
strokeWidth: true
|
|
|
};
|
|
|
/**
|
|
|
* @param {string} prefix vendor-specific prefix, eg: Webkit
|
|
|
* @param {string} key style name, eg: transitionDuration
|
|
|
* @return {string} style name prefixed with `prefix`, properly camelCased, eg:
|
|
|
* WebkitTransitionDuration
|
|
|
*/
|
|
|
|
|
|
function prefixKey(prefix, key) {
|
|
|
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
|
|
}
|
|
|
/**
|
|
|
* Support style names that may come passed in prefixed by adding permutations
|
|
|
* of vendor prefixes.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
|
|
|
// infinite loop, because it iterates over the newly added props too.
|
|
|
|
|
|
Object.keys(isUnitlessNumber).forEach(function (prop) {
|
|
|
prefixes.forEach(function (prefix) {
|
|
|
isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
|
|
|
});
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* Convert a value into the proper css writable value. The style name `name`
|
|
|
* should be logical (no hyphens), as specified
|
|
|
* in `CSSProperty.isUnitlessNumber`.
|
|
|
*
|
|
|
* @param {string} name CSS property name such as `topMargin`.
|
|
|
* @param {*} value CSS property value such as `10px`.
|
|
|
* @return {string} Normalized style value with dimensions applied.
|
|
|
*/
|
|
|
|
|
|
function dangerousStyleValue(name, value, isCustomProperty) {
|
|
|
// Note that we've removed escapeTextForBrowser() calls here since the
|
|
|
// whole string will be escaped when the attribute is injected into
|
|
|
// the markup. If you provide unsafe user data here they can inject
|
|
|
// arbitrary CSS which may be problematic (I couldn't repro this):
|
|
|
// https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
|
|
|
// http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
|
|
|
// This is not an XSS hole but instead a potential CSS injection issue
|
|
|
// which has lead to a greater discussion about how we're going to
|
|
|
// trust URLs moving forward. See #2115901
|
|
|
var isEmpty = value == null || typeof value === 'boolean' || value === '';
|
|
|
|
|
|
if (isEmpty) {
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
|
|
|
return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
|
|
|
}
|
|
|
|
|
|
return ('' + value).trim();
|
|
|
}
|
|
|
|
|
|
var uppercasePattern = /([A-Z])/g;
|
|
|
var msPattern = /^ms-/;
|
|
|
/**
|
|
|
* Hyphenates a camelcased CSS property name, for example:
|
|
|
*
|
|
|
* > hyphenateStyleName('backgroundColor')
|
|
|
* < "background-color"
|
|
|
* > hyphenateStyleName('MozTransition')
|
|
|
* < "-moz-transition"
|
|
|
* > hyphenateStyleName('msTransition')
|
|
|
* < "-ms-transition"
|
|
|
*
|
|
|
* As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
|
|
|
* is converted to `-ms-`.
|
|
|
*/
|
|
|
|
|
|
function hyphenateStyleName(name) {
|
|
|
return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
|
|
|
}
|
|
|
|
|
|
var warnValidStyle = function () {};
|
|
|
|
|
|
{
|
|
|
// 'msTransform' is correct, but the other prefixes should be capitalized
|
|
|
var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
|
|
|
var msPattern$1 = /^-ms-/;
|
|
|
var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon
|
|
|
|
|
|
var badStyleValueWithSemicolonPattern = /;\s*$/;
|
|
|
var warnedStyleNames = {};
|
|
|
var warnedStyleValues = {};
|
|
|
var warnedForNaNValue = false;
|
|
|
var warnedForInfinityValue = false;
|
|
|
|
|
|
var camelize = function (string) {
|
|
|
return string.replace(hyphenPattern, function (_, character) {
|
|
|
return character.toUpperCase();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
var warnHyphenatedStyleName = function (name) {
|
|
|
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnedStyleNames[name] = true;
|
|
|
|
|
|
error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
|
|
|
// (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
|
|
|
// is converted to lowercase `ms`.
|
|
|
camelize(name.replace(msPattern$1, 'ms-')));
|
|
|
};
|
|
|
|
|
|
var warnBadVendoredStyleName = function (name) {
|
|
|
if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnedStyleNames[name] = true;
|
|
|
|
|
|
error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
|
|
|
};
|
|
|
|
|
|
var warnStyleValueWithSemicolon = function (name, value) {
|
|
|
if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnedStyleValues[value] = true;
|
|
|
|
|
|
error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
|
|
|
};
|
|
|
|
|
|
var warnStyleValueIsNaN = function (name, value) {
|
|
|
if (warnedForNaNValue) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnedForNaNValue = true;
|
|
|
|
|
|
error('`NaN` is an invalid value for the `%s` css style property.', name);
|
|
|
};
|
|
|
|
|
|
var warnStyleValueIsInfinity = function (name, value) {
|
|
|
if (warnedForInfinityValue) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnedForInfinityValue = true;
|
|
|
|
|
|
error('`Infinity` is an invalid value for the `%s` css style property.', name);
|
|
|
};
|
|
|
|
|
|
warnValidStyle = function (name, value) {
|
|
|
if (name.indexOf('-') > -1) {
|
|
|
warnHyphenatedStyleName(name);
|
|
|
} else if (badVendoredStyleNamePattern.test(name)) {
|
|
|
warnBadVendoredStyleName(name);
|
|
|
} else if (badStyleValueWithSemicolonPattern.test(value)) {
|
|
|
warnStyleValueWithSemicolon(name, value);
|
|
|
}
|
|
|
|
|
|
if (typeof value === 'number') {
|
|
|
if (isNaN(value)) {
|
|
|
warnStyleValueIsNaN(name, value);
|
|
|
} else if (!isFinite(value)) {
|
|
|
warnStyleValueIsInfinity(name, value);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var warnValidStyle$1 = warnValidStyle;
|
|
|
|
|
|
/**
|
|
|
* Operations for dealing with CSS properties.
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* This creates a string that is expected to be equivalent to the style
|
|
|
* attribute generated by server-side rendering. It by-passes warnings and
|
|
|
* security checks so it's not safe to use this value for anything other than
|
|
|
* comparison. It is only used in DEV for SSR validation.
|
|
|
*/
|
|
|
|
|
|
function createDangerousStringForStyles(styles) {
|
|
|
{
|
|
|
var serialized = '';
|
|
|
var delimiter = '';
|
|
|
|
|
|
for (var styleName in styles) {
|
|
|
if (!styles.hasOwnProperty(styleName)) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
var styleValue = styles[styleName];
|
|
|
|
|
|
if (styleValue != null) {
|
|
|
var isCustomProperty = styleName.indexOf('--') === 0;
|
|
|
serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
|
|
|
serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
|
|
|
delimiter = ';';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return serialized || null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Sets the value for multiple styles on a node. If a value is specified as
|
|
|
* '' (empty string), the corresponding style property will be unset.
|
|
|
*
|
|
|
* @param {DOMElement} node
|
|
|
* @param {object} styles
|
|
|
*/
|
|
|
|
|
|
function setValueForStyles(node, styles) {
|
|
|
var style = node.style;
|
|
|
|
|
|
for (var styleName in styles) {
|
|
|
if (!styles.hasOwnProperty(styleName)) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
var isCustomProperty = styleName.indexOf('--') === 0;
|
|
|
|
|
|
{
|
|
|
if (!isCustomProperty) {
|
|
|
warnValidStyle$1(styleName, styles[styleName]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
|
|
|
|
|
|
if (styleName === 'float') {
|
|
|
styleName = 'cssFloat';
|
|
|
}
|
|
|
|
|
|
if (isCustomProperty) {
|
|
|
style.setProperty(styleName, styleValue);
|
|
|
} else {
|
|
|
style[styleName] = styleValue;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isValueEmpty(value) {
|
|
|
return value == null || typeof value === 'boolean' || value === '';
|
|
|
}
|
|
|
/**
|
|
|
* Given {color: 'red', overflow: 'hidden'} returns {
|
|
|
* color: 'color',
|
|
|
* overflowX: 'overflow',
|
|
|
* overflowY: 'overflow',
|
|
|
* }. This can be read as "the overflowY property was set by the overflow
|
|
|
* shorthand". That is, the values are the property that each was derived from.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function expandShorthandMap(styles) {
|
|
|
var expanded = {};
|
|
|
|
|
|
for (var key in styles) {
|
|
|
var longhands = shorthandToLonghand[key] || [key];
|
|
|
|
|
|
for (var i = 0; i < longhands.length; i++) {
|
|
|
expanded[longhands[i]] = key;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return expanded;
|
|
|
}
|
|
|
/**
|
|
|
* When mixing shorthand and longhand property names, we warn during updates if
|
|
|
* we expect an incorrect result to occur. In particular, we warn for:
|
|
|
*
|
|
|
* Updating a shorthand property (longhand gets overwritten):
|
|
|
* {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
|
|
|
* becomes .style.font = 'baz'
|
|
|
* Removing a shorthand property (longhand gets lost too):
|
|
|
* {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
|
|
|
* becomes .style.font = ''
|
|
|
* Removing a longhand property (should revert to shorthand; doesn't):
|
|
|
* {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
|
|
|
* becomes .style.fontVariant = ''
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
|
|
|
{
|
|
|
|
|
|
if (!nextStyles) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var expandedUpdates = expandShorthandMap(styleUpdates);
|
|
|
var expandedStyles = expandShorthandMap(nextStyles);
|
|
|
var warnedAbout = {};
|
|
|
|
|
|
for (var key in expandedUpdates) {
|
|
|
var originalKey = expandedUpdates[key];
|
|
|
var correctOriginalKey = expandedStyles[key];
|
|
|
|
|
|
if (correctOriginalKey && originalKey !== correctOriginalKey) {
|
|
|
var warningKey = originalKey + ',' + correctOriginalKey;
|
|
|
|
|
|
if (warnedAbout[warningKey]) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
warnedAbout[warningKey] = true;
|
|
|
|
|
|
error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// For HTML, certain tags should omit their close tag. We keep a whitelist for
|
|
|
// those special-case tags.
|
|
|
var omittedCloseTags = {
|
|
|
area: true,
|
|
|
base: true,
|
|
|
br: true,
|
|
|
col: true,
|
|
|
embed: true,
|
|
|
hr: true,
|
|
|
img: true,
|
|
|
input: true,
|
|
|
keygen: true,
|
|
|
link: true,
|
|
|
meta: true,
|
|
|
param: true,
|
|
|
source: true,
|
|
|
track: true,
|
|
|
wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.
|
|
|
|
|
|
};
|
|
|
|
|
|
// `omittedCloseTags` except that `menuitem` should still have its closing tag.
|
|
|
|
|
|
var voidElementTags = _assign({
|
|
|
menuitem: true
|
|
|
}, omittedCloseTags);
|
|
|
|
|
|
var HTML = '__html';
|
|
|
var ReactDebugCurrentFrame$3 = null;
|
|
|
|
|
|
{
|
|
|
ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
|
}
|
|
|
|
|
|
function assertValidProps(tag, props) {
|
|
|
if (!props) {
|
|
|
return;
|
|
|
} // Note the use of `==` which checks for null or undefined.
|
|
|
|
|
|
|
|
|
if (voidElementTags[tag]) {
|
|
|
if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
|
|
|
{
|
|
|
throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (props.dangerouslySetInnerHTML != null) {
|
|
|
if (!(props.children == null)) {
|
|
|
{
|
|
|
throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
|
|
|
{
|
|
|
throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
|
|
|
error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(props.style == null || typeof props.style === 'object')) {
|
|
|
{
|
|
|
throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + ( ReactDebugCurrentFrame$3.getStackAddendum() ) );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isCustomComponent(tagName, props) {
|
|
|
if (tagName.indexOf('-') === -1) {
|
|
|
return typeof props.is === 'string';
|
|
|
}
|
|
|
|
|
|
switch (tagName) {
|
|
|
// These are reserved SVG and MathML elements.
|
|
|
// We don't mind this whitelist too much because we expect it to never grow.
|
|
|
// The alternative is to track the namespace in a few places which is convoluted.
|
|
|
// https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
|
|
|
case 'annotation-xml':
|
|
|
case 'color-profile':
|
|
|
case 'font-face':
|
|
|
case 'font-face-src':
|
|
|
case 'font-face-uri':
|
|
|
case 'font-face-format':
|
|
|
case 'font-face-name':
|
|
|
case 'missing-glyph':
|
|
|
return false;
|
|
|
|
|
|
default:
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// When adding attributes to the HTML or SVG whitelist, be sure to
|
|
|
// also add them to this module to ensure casing and incorrect name
|
|
|
// warnings.
|
|
|
var possibleStandardNames = {
|
|
|
// HTML
|
|
|
accept: 'accept',
|
|
|
acceptcharset: 'acceptCharset',
|
|
|
'accept-charset': 'acceptCharset',
|
|
|
accesskey: 'accessKey',
|
|
|
action: 'action',
|
|
|
allowfullscreen: 'allowFullScreen',
|
|
|
alt: 'alt',
|
|
|
as: 'as',
|
|
|
async: 'async',
|
|
|
autocapitalize: 'autoCapitalize',
|
|
|
autocomplete: 'autoComplete',
|
|
|
autocorrect: 'autoCorrect',
|
|
|
autofocus: 'autoFocus',
|
|
|
autoplay: 'autoPlay',
|
|
|
autosave: 'autoSave',
|
|
|
capture: 'capture',
|
|
|
cellpadding: 'cellPadding',
|
|
|
cellspacing: 'cellSpacing',
|
|
|
challenge: 'challenge',
|
|
|
charset: 'charSet',
|
|
|
checked: 'checked',
|
|
|
children: 'children',
|
|
|
cite: 'cite',
|
|
|
class: 'className',
|
|
|
classid: 'classID',
|
|
|
classname: 'className',
|
|
|
cols: 'cols',
|
|
|
colspan: 'colSpan',
|
|
|
content: 'content',
|
|
|
contenteditable: 'contentEditable',
|
|
|
contextmenu: 'contextMenu',
|
|
|
controls: 'controls',
|
|
|
controlslist: 'controlsList',
|
|
|
coords: 'coords',
|
|
|
crossorigin: 'crossOrigin',
|
|
|
dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
|
|
|
data: 'data',
|
|
|
datetime: 'dateTime',
|
|
|
default: 'default',
|
|
|
defaultchecked: 'defaultChecked',
|
|
|
defaultvalue: 'defaultValue',
|
|
|
defer: 'defer',
|
|
|
dir: 'dir',
|
|
|
disabled: 'disabled',
|
|
|
disablepictureinpicture: 'disablePictureInPicture',
|
|
|
download: 'download',
|
|
|
draggable: 'draggable',
|
|
|
enctype: 'encType',
|
|
|
for: 'htmlFor',
|
|
|
form: 'form',
|
|
|
formmethod: 'formMethod',
|
|
|
formaction: 'formAction',
|
|
|
formenctype: 'formEncType',
|
|
|
formnovalidate: 'formNoValidate',
|
|
|
formtarget: 'formTarget',
|
|
|
frameborder: 'frameBorder',
|
|
|
headers: 'headers',
|
|
|
height: 'height',
|
|
|
hidden: 'hidden',
|
|
|
high: 'high',
|
|
|
href: 'href',
|
|
|
hreflang: 'hrefLang',
|
|
|
htmlfor: 'htmlFor',
|
|
|
httpequiv: 'httpEquiv',
|
|
|
'http-equiv': 'httpEquiv',
|
|
|
icon: 'icon',
|
|
|
id: 'id',
|
|
|
innerhtml: 'innerHTML',
|
|
|
inputmode: 'inputMode',
|
|
|
integrity: 'integrity',
|
|
|
is: 'is',
|
|
|
itemid: 'itemID',
|
|
|
itemprop: 'itemProp',
|
|
|
itemref: 'itemRef',
|
|
|
itemscope: 'itemScope',
|
|
|
itemtype: 'itemType',
|
|
|
keyparams: 'keyParams',
|
|
|
keytype: 'keyType',
|
|
|
kind: 'kind',
|
|
|
label: 'label',
|
|
|
lang: 'lang',
|
|
|
list: 'list',
|
|
|
loop: 'loop',
|
|
|
low: 'low',
|
|
|
manifest: 'manifest',
|
|
|
marginwidth: 'marginWidth',
|
|
|
marginheight: 'marginHeight',
|
|
|
max: 'max',
|
|
|
maxlength: 'maxLength',
|
|
|
media: 'media',
|
|
|
mediagroup: 'mediaGroup',
|
|
|
method: 'method',
|
|
|
min: 'min',
|
|
|
minlength: 'minLength',
|
|
|
multiple: 'multiple',
|
|
|
muted: 'muted',
|
|
|
name: 'name',
|
|
|
nomodule: 'noModule',
|
|
|
nonce: 'nonce',
|
|
|
novalidate: 'noValidate',
|
|
|
open: 'open',
|
|
|
optimum: 'optimum',
|
|
|
pattern: 'pattern',
|
|
|
placeholder: 'placeholder',
|
|
|
playsinline: 'playsInline',
|
|
|
poster: 'poster',
|
|
|
preload: 'preload',
|
|
|
profile: 'profile',
|
|
|
radiogroup: 'radioGroup',
|
|
|
readonly: 'readOnly',
|
|
|
referrerpolicy: 'referrerPolicy',
|
|
|
rel: 'rel',
|
|
|
required: 'required',
|
|
|
reversed: 'reversed',
|
|
|
role: 'role',
|
|
|
rows: 'rows',
|
|
|
rowspan: 'rowSpan',
|
|
|
sandbox: 'sandbox',
|
|
|
scope: 'scope',
|
|
|
scoped: 'scoped',
|
|
|
scrolling: 'scrolling',
|
|
|
seamless: 'seamless',
|
|
|
selected: 'selected',
|
|
|
shape: 'shape',
|
|
|
size: 'size',
|
|
|
sizes: 'sizes',
|
|
|
span: 'span',
|
|
|
spellcheck: 'spellCheck',
|
|
|
src: 'src',
|
|
|
srcdoc: 'srcDoc',
|
|
|
srclang: 'srcLang',
|
|
|
srcset: 'srcSet',
|
|
|
start: 'start',
|
|
|
step: 'step',
|
|
|
style: 'style',
|
|
|
summary: 'summary',
|
|
|
tabindex: 'tabIndex',
|
|
|
target: 'target',
|
|
|
title: 'title',
|
|
|
type: 'type',
|
|
|
usemap: 'useMap',
|
|
|
value: 'value',
|
|
|
width: 'width',
|
|
|
wmode: 'wmode',
|
|
|
wrap: 'wrap',
|
|
|
// SVG
|
|
|
about: 'about',
|
|
|
accentheight: 'accentHeight',
|
|
|
'accent-height': 'accentHeight',
|
|
|
accumulate: 'accumulate',
|
|
|
additive: 'additive',
|
|
|
alignmentbaseline: 'alignmentBaseline',
|
|
|
'alignment-baseline': 'alignmentBaseline',
|
|
|
allowreorder: 'allowReorder',
|
|
|
alphabetic: 'alphabetic',
|
|
|
amplitude: 'amplitude',
|
|
|
arabicform: 'arabicForm',
|
|
|
'arabic-form': 'arabicForm',
|
|
|
ascent: 'ascent',
|
|
|
attributename: 'attributeName',
|
|
|
attributetype: 'attributeType',
|
|
|
autoreverse: 'autoReverse',
|
|
|
azimuth: 'azimuth',
|
|
|
basefrequency: 'baseFrequency',
|
|
|
baselineshift: 'baselineShift',
|
|
|
'baseline-shift': 'baselineShift',
|
|
|
baseprofile: 'baseProfile',
|
|
|
bbox: 'bbox',
|
|
|
begin: 'begin',
|
|
|
bias: 'bias',
|
|
|
by: 'by',
|
|
|
calcmode: 'calcMode',
|
|
|
capheight: 'capHeight',
|
|
|
'cap-height': 'capHeight',
|
|
|
clip: 'clip',
|
|
|
clippath: 'clipPath',
|
|
|
'clip-path': 'clipPath',
|
|
|
clippathunits: 'clipPathUnits',
|
|
|
cliprule: 'clipRule',
|
|
|
'clip-rule': 'clipRule',
|
|
|
color: 'color',
|
|
|
colorinterpolation: 'colorInterpolation',
|
|
|
'color-interpolation': 'colorInterpolation',
|
|
|
colorinterpolationfilters: 'colorInterpolationFilters',
|
|
|
'color-interpolation-filters': 'colorInterpolationFilters',
|
|
|
colorprofile: 'colorProfile',
|
|
|
'color-profile': 'colorProfile',
|
|
|
colorrendering: 'colorRendering',
|
|
|
'color-rendering': 'colorRendering',
|
|
|
contentscripttype: 'contentScriptType',
|
|
|
contentstyletype: 'contentStyleType',
|
|
|
cursor: 'cursor',
|
|
|
cx: 'cx',
|
|
|
cy: 'cy',
|
|
|
d: 'd',
|
|
|
datatype: 'datatype',
|
|
|
decelerate: 'decelerate',
|
|
|
descent: 'descent',
|
|
|
diffuseconstant: 'diffuseConstant',
|
|
|
direction: 'direction',
|
|
|
display: 'display',
|
|
|
divisor: 'divisor',
|
|
|
dominantbaseline: 'dominantBaseline',
|
|
|
'dominant-baseline': 'dominantBaseline',
|
|
|
dur: 'dur',
|
|
|
dx: 'dx',
|
|
|
dy: 'dy',
|
|
|
edgemode: 'edgeMode',
|
|
|
elevation: 'elevation',
|
|
|
enablebackground: 'enableBackground',
|
|
|
'enable-background': 'enableBackground',
|
|
|
end: 'end',
|
|
|
exponent: 'exponent',
|
|
|
externalresourcesrequired: 'externalResourcesRequired',
|
|
|
fill: 'fill',
|
|
|
fillopacity: 'fillOpacity',
|
|
|
'fill-opacity': 'fillOpacity',
|
|
|
fillrule: 'fillRule',
|
|
|
'fill-rule': 'fillRule',
|
|
|
filter: 'filter',
|
|
|
filterres: 'filterRes',
|
|
|
filterunits: 'filterUnits',
|
|
|
floodopacity: 'floodOpacity',
|
|
|
'flood-opacity': 'floodOpacity',
|
|
|
floodcolor: 'floodColor',
|
|
|
'flood-color': 'floodColor',
|
|
|
focusable: 'focusable',
|
|
|
fontfamily: 'fontFamily',
|
|
|
'font-family': 'fontFamily',
|
|
|
fontsize: 'fontSize',
|
|
|
'font-size': 'fontSize',
|
|
|
fontsizeadjust: 'fontSizeAdjust',
|
|
|
'font-size-adjust': 'fontSizeAdjust',
|
|
|
fontstretch: 'fontStretch',
|
|
|
'font-stretch': 'fontStretch',
|
|
|
fontstyle: 'fontStyle',
|
|
|
'font-style': 'fontStyle',
|
|
|
fontvariant: 'fontVariant',
|
|
|
'font-variant': 'fontVariant',
|
|
|
fontweight: 'fontWeight',
|
|
|
'font-weight': 'fontWeight',
|
|
|
format: 'format',
|
|
|
from: 'from',
|
|
|
fx: 'fx',
|
|
|
fy: 'fy',
|
|
|
g1: 'g1',
|
|
|
g2: 'g2',
|
|
|
glyphname: 'glyphName',
|
|
|
'glyph-name': 'glyphName',
|
|
|
glyphorientationhorizontal: 'glyphOrientationHorizontal',
|
|
|
'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
|
|
|
glyphorientationvertical: 'glyphOrientationVertical',
|
|
|
'glyph-orientation-vertical': 'glyphOrientationVertical',
|
|
|
glyphref: 'glyphRef',
|
|
|
gradienttransform: 'gradientTransform',
|
|
|
gradientunits: 'gradientUnits',
|
|
|
hanging: 'hanging',
|
|
|
horizadvx: 'horizAdvX',
|
|
|
'horiz-adv-x': 'horizAdvX',
|
|
|
horizoriginx: 'horizOriginX',
|
|
|
'horiz-origin-x': 'horizOriginX',
|
|
|
ideographic: 'ideographic',
|
|
|
imagerendering: 'imageRendering',
|
|
|
'image-rendering': 'imageRendering',
|
|
|
in2: 'in2',
|
|
|
in: 'in',
|
|
|
inlist: 'inlist',
|
|
|
intercept: 'intercept',
|
|
|
k1: 'k1',
|
|
|
k2: 'k2',
|
|
|
k3: 'k3',
|
|
|
k4: 'k4',
|
|
|
k: 'k',
|
|
|
kernelmatrix: 'kernelMatrix',
|
|
|
kernelunitlength: 'kernelUnitLength',
|
|
|
kerning: 'kerning',
|
|
|
keypoints: 'keyPoints',
|
|
|
keysplines: 'keySplines',
|
|
|
keytimes: 'keyTimes',
|
|
|
lengthadjust: 'lengthAdjust',
|
|
|
letterspacing: 'letterSpacing',
|
|
|
'letter-spacing': 'letterSpacing',
|
|
|
lightingcolor: 'lightingColor',
|
|
|
'lighting-color': 'lightingColor',
|
|
|
limitingconeangle: 'limitingConeAngle',
|
|
|
local: 'local',
|
|
|
markerend: 'markerEnd',
|
|
|
'marker-end': 'markerEnd',
|
|
|
markerheight: 'markerHeight',
|
|
|
markermid: 'markerMid',
|
|
|
'marker-mid': 'markerMid',
|
|
|
markerstart: 'markerStart',
|
|
|
'marker-start': 'markerStart',
|
|
|
markerunits: 'markerUnits',
|
|
|
markerwidth: 'markerWidth',
|
|
|
mask: 'mask',
|
|
|
maskcontentunits: 'maskContentUnits',
|
|
|
maskunits: 'maskUnits',
|
|
|
mathematical: 'mathematical',
|
|
|
mode: 'mode',
|
|
|
numoctaves: 'numOctaves',
|
|
|
offset: 'offset',
|
|
|
opacity: 'opacity',
|
|
|
operator: 'operator',
|
|
|
order: 'order',
|
|
|
orient: 'orient',
|
|
|
orientation: 'orientation',
|
|
|
origin: 'origin',
|
|
|
overflow: 'overflow',
|
|
|
overlineposition: 'overlinePosition',
|
|
|
'overline-position': 'overlinePosition',
|
|
|
overlinethickness: 'overlineThickness',
|
|
|
'overline-thickness': 'overlineThickness',
|
|
|
paintorder: 'paintOrder',
|
|
|
'paint-order': 'paintOrder',
|
|
|
panose1: 'panose1',
|
|
|
'panose-1': 'panose1',
|
|
|
pathlength: 'pathLength',
|
|
|
patterncontentunits: 'patternContentUnits',
|
|
|
patterntransform: 'patternTransform',
|
|
|
patternunits: 'patternUnits',
|
|
|
pointerevents: 'pointerEvents',
|
|
|
'pointer-events': 'pointerEvents',
|
|
|
points: 'points',
|
|
|
pointsatx: 'pointsAtX',
|
|
|
pointsaty: 'pointsAtY',
|
|
|
pointsatz: 'pointsAtZ',
|
|
|
prefix: 'prefix',
|
|
|
preservealpha: 'preserveAlpha',
|
|
|
preserveaspectratio: 'preserveAspectRatio',
|
|
|
primitiveunits: 'primitiveUnits',
|
|
|
property: 'property',
|
|
|
r: 'r',
|
|
|
radius: 'radius',
|
|
|
refx: 'refX',
|
|
|
refy: 'refY',
|
|
|
renderingintent: 'renderingIntent',
|
|
|
'rendering-intent': 'renderingIntent',
|
|
|
repeatcount: 'repeatCount',
|
|
|
repeatdur: 'repeatDur',
|
|
|
requiredextensions: 'requiredExtensions',
|
|
|
requiredfeatures: 'requiredFeatures',
|
|
|
resource: 'resource',
|
|
|
restart: 'restart',
|
|
|
result: 'result',
|
|
|
results: 'results',
|
|
|
rotate: 'rotate',
|
|
|
rx: 'rx',
|
|
|
ry: 'ry',
|
|
|
scale: 'scale',
|
|
|
security: 'security',
|
|
|
seed: 'seed',
|
|
|
shaperendering: 'shapeRendering',
|
|
|
'shape-rendering': 'shapeRendering',
|
|
|
slope: 'slope',
|
|
|
spacing: 'spacing',
|
|
|
specularconstant: 'specularConstant',
|
|
|
specularexponent: 'specularExponent',
|
|
|
speed: 'speed',
|
|
|
spreadmethod: 'spreadMethod',
|
|
|
startoffset: 'startOffset',
|
|
|
stddeviation: 'stdDeviation',
|
|
|
stemh: 'stemh',
|
|
|
stemv: 'stemv',
|
|
|
stitchtiles: 'stitchTiles',
|
|
|
stopcolor: 'stopColor',
|
|
|
'stop-color': 'stopColor',
|
|
|
stopopacity: 'stopOpacity',
|
|
|
'stop-opacity': 'stopOpacity',
|
|
|
strikethroughposition: 'strikethroughPosition',
|
|
|
'strikethrough-position': 'strikethroughPosition',
|
|
|
strikethroughthickness: 'strikethroughThickness',
|
|
|
'strikethrough-thickness': 'strikethroughThickness',
|
|
|
string: 'string',
|
|
|
stroke: 'stroke',
|
|
|
strokedasharray: 'strokeDasharray',
|
|
|
'stroke-dasharray': 'strokeDasharray',
|
|
|
strokedashoffset: 'strokeDashoffset',
|
|
|
'stroke-dashoffset': 'strokeDashoffset',
|
|
|
strokelinecap: 'strokeLinecap',
|
|
|
'stroke-linecap': 'strokeLinecap',
|
|
|
strokelinejoin: 'strokeLinejoin',
|
|
|
'stroke-linejoin': 'strokeLinejoin',
|
|
|
strokemiterlimit: 'strokeMiterlimit',
|
|
|
'stroke-miterlimit': 'strokeMiterlimit',
|
|
|
strokewidth: 'strokeWidth',
|
|
|
'stroke-width': 'strokeWidth',
|
|
|
strokeopacity: 'strokeOpacity',
|
|
|
'stroke-opacity': 'strokeOpacity',
|
|
|
suppresscontenteditablewarning: 'suppressContentEditableWarning',
|
|
|
suppresshydrationwarning: 'suppressHydrationWarning',
|
|
|
surfacescale: 'surfaceScale',
|
|
|
systemlanguage: 'systemLanguage',
|
|
|
tablevalues: 'tableValues',
|
|
|
targetx: 'targetX',
|
|
|
targety: 'targetY',
|
|
|
textanchor: 'textAnchor',
|
|
|
'text-anchor': 'textAnchor',
|
|
|
textdecoration: 'textDecoration',
|
|
|
'text-decoration': 'textDecoration',
|
|
|
textlength: 'textLength',
|
|
|
textrendering: 'textRendering',
|
|
|
'text-rendering': 'textRendering',
|
|
|
to: 'to',
|
|
|
transform: 'transform',
|
|
|
typeof: 'typeof',
|
|
|
u1: 'u1',
|
|
|
u2: 'u2',
|
|
|
underlineposition: 'underlinePosition',
|
|
|
'underline-position': 'underlinePosition',
|
|
|
underlinethickness: 'underlineThickness',
|
|
|
'underline-thickness': 'underlineThickness',
|
|
|
unicode: 'unicode',
|
|
|
unicodebidi: 'unicodeBidi',
|
|
|
'unicode-bidi': 'unicodeBidi',
|
|
|
unicoderange: 'unicodeRange',
|
|
|
'unicode-range': 'unicodeRange',
|
|
|
unitsperem: 'unitsPerEm',
|
|
|
'units-per-em': 'unitsPerEm',
|
|
|
unselectable: 'unselectable',
|
|
|
valphabetic: 'vAlphabetic',
|
|
|
'v-alphabetic': 'vAlphabetic',
|
|
|
values: 'values',
|
|
|
vectoreffect: 'vectorEffect',
|
|
|
'vector-effect': 'vectorEffect',
|
|
|
version: 'version',
|
|
|
vertadvy: 'vertAdvY',
|
|
|
'vert-adv-y': 'vertAdvY',
|
|
|
vertoriginx: 'vertOriginX',
|
|
|
'vert-origin-x': 'vertOriginX',
|
|
|
vertoriginy: 'vertOriginY',
|
|
|
'vert-origin-y': 'vertOriginY',
|
|
|
vhanging: 'vHanging',
|
|
|
'v-hanging': 'vHanging',
|
|
|
videographic: 'vIdeographic',
|
|
|
'v-ideographic': 'vIdeographic',
|
|
|
viewbox: 'viewBox',
|
|
|
viewtarget: 'viewTarget',
|
|
|
visibility: 'visibility',
|
|
|
vmathematical: 'vMathematical',
|
|
|
'v-mathematical': 'vMathematical',
|
|
|
vocab: 'vocab',
|
|
|
widths: 'widths',
|
|
|
wordspacing: 'wordSpacing',
|
|
|
'word-spacing': 'wordSpacing',
|
|
|
writingmode: 'writingMode',
|
|
|
'writing-mode': 'writingMode',
|
|
|
x1: 'x1',
|
|
|
x2: 'x2',
|
|
|
x: 'x',
|
|
|
xchannelselector: 'xChannelSelector',
|
|
|
xheight: 'xHeight',
|
|
|
'x-height': 'xHeight',
|
|
|
xlinkactuate: 'xlinkActuate',
|
|
|
'xlink:actuate': 'xlinkActuate',
|
|
|
xlinkarcrole: 'xlinkArcrole',
|
|
|
'xlink:arcrole': 'xlinkArcrole',
|
|
|
xlinkhref: 'xlinkHref',
|
|
|
'xlink:href': 'xlinkHref',
|
|
|
xlinkrole: 'xlinkRole',
|
|
|
'xlink:role': 'xlinkRole',
|
|
|
xlinkshow: 'xlinkShow',
|
|
|
'xlink:show': 'xlinkShow',
|
|
|
xlinktitle: 'xlinkTitle',
|
|
|
'xlink:title': 'xlinkTitle',
|
|
|
xlinktype: 'xlinkType',
|
|
|
'xlink:type': 'xlinkType',
|
|
|
xmlbase: 'xmlBase',
|
|
|
'xml:base': 'xmlBase',
|
|
|
xmllang: 'xmlLang',
|
|
|
'xml:lang': 'xmlLang',
|
|
|
xmlns: 'xmlns',
|
|
|
'xml:space': 'xmlSpace',
|
|
|
xmlnsxlink: 'xmlnsXlink',
|
|
|
'xmlns:xlink': 'xmlnsXlink',
|
|
|
xmlspace: 'xmlSpace',
|
|
|
y1: 'y1',
|
|
|
y2: 'y2',
|
|
|
y: 'y',
|
|
|
ychannelselector: 'yChannelSelector',
|
|
|
z: 'z',
|
|
|
zoomandpan: 'zoomAndPan'
|
|
|
};
|
|
|
|
|
|
var ariaProperties = {
|
|
|
'aria-current': 0,
|
|
|
// state
|
|
|
'aria-details': 0,
|
|
|
'aria-disabled': 0,
|
|
|
// state
|
|
|
'aria-hidden': 0,
|
|
|
// state
|
|
|
'aria-invalid': 0,
|
|
|
// state
|
|
|
'aria-keyshortcuts': 0,
|
|
|
'aria-label': 0,
|
|
|
'aria-roledescription': 0,
|
|
|
// Widget Attributes
|
|
|
'aria-autocomplete': 0,
|
|
|
'aria-checked': 0,
|
|
|
'aria-expanded': 0,
|
|
|
'aria-haspopup': 0,
|
|
|
'aria-level': 0,
|
|
|
'aria-modal': 0,
|
|
|
'aria-multiline': 0,
|
|
|
'aria-multiselectable': 0,
|
|
|
'aria-orientation': 0,
|
|
|
'aria-placeholder': 0,
|
|
|
'aria-pressed': 0,
|
|
|
'aria-readonly': 0,
|
|
|
'aria-required': 0,
|
|
|
'aria-selected': 0,
|
|
|
'aria-sort': 0,
|
|
|
'aria-valuemax': 0,
|
|
|
'aria-valuemin': 0,
|
|
|
'aria-valuenow': 0,
|
|
|
'aria-valuetext': 0,
|
|
|
// Live Region Attributes
|
|
|
'aria-atomic': 0,
|
|
|
'aria-busy': 0,
|
|
|
'aria-live': 0,
|
|
|
'aria-relevant': 0,
|
|
|
// Drag-and-Drop Attributes
|
|
|
'aria-dropeffect': 0,
|
|
|
'aria-grabbed': 0,
|
|
|
// Relationship Attributes
|
|
|
'aria-activedescendant': 0,
|
|
|
'aria-colcount': 0,
|
|
|
'aria-colindex': 0,
|
|
|
'aria-colspan': 0,
|
|
|
'aria-controls': 0,
|
|
|
'aria-describedby': 0,
|
|
|
'aria-errormessage': 0,
|
|
|
'aria-flowto': 0,
|
|
|
'aria-labelledby': 0,
|
|
|
'aria-owns': 0,
|
|
|
'aria-posinset': 0,
|
|
|
'aria-rowcount': 0,
|
|
|
'aria-rowindex': 0,
|
|
|
'aria-rowspan': 0,
|
|
|
'aria-setsize': 0
|
|
|
};
|
|
|
|
|
|
var warnedProperties = {};
|
|
|
var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
|
var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
|
|
|
|
function validateProperty(tagName, name) {
|
|
|
{
|
|
|
if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (rARIACamel.test(name)) {
|
|
|
var ariaName = 'aria-' + name.slice(4).toLowerCase();
|
|
|
var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
|
|
|
// DOM properties, then it is an invalid aria-* attribute.
|
|
|
|
|
|
if (correctName == null) {
|
|
|
error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
|
|
|
|
|
|
warnedProperties[name] = true;
|
|
|
return true;
|
|
|
} // aria-* attributes should be lowercase; suggest the lowercase version.
|
|
|
|
|
|
|
|
|
if (name !== correctName) {
|
|
|
error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
|
|
|
|
|
|
warnedProperties[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (rARIA.test(name)) {
|
|
|
var lowerCasedName = name.toLowerCase();
|
|
|
var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
|
|
|
// DOM properties, then it is an invalid aria-* attribute.
|
|
|
|
|
|
if (standardName == null) {
|
|
|
warnedProperties[name] = true;
|
|
|
return false;
|
|
|
} // aria-* attributes should be lowercase; suggest the lowercase version.
|
|
|
|
|
|
|
|
|
if (name !== standardName) {
|
|
|
error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
|
|
|
|
|
|
warnedProperties[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function warnInvalidARIAProps(type, props) {
|
|
|
{
|
|
|
var invalidProps = [];
|
|
|
|
|
|
for (var key in props) {
|
|
|
var isValid = validateProperty(type, key);
|
|
|
|
|
|
if (!isValid) {
|
|
|
invalidProps.push(key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var unknownPropString = invalidProps.map(function (prop) {
|
|
|
return '`' + prop + '`';
|
|
|
}).join(', ');
|
|
|
|
|
|
if (invalidProps.length === 1) {
|
|
|
error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
|
|
|
} else if (invalidProps.length > 1) {
|
|
|
error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function validateProperties(type, props) {
|
|
|
if (isCustomComponent(type, props)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnInvalidARIAProps(type, props);
|
|
|
}
|
|
|
|
|
|
var didWarnValueNull = false;
|
|
|
function validateProperties$1(type, props) {
|
|
|
{
|
|
|
if (type !== 'input' && type !== 'textarea' && type !== 'select') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (props != null && props.value === null && !didWarnValueNull) {
|
|
|
didWarnValueNull = true;
|
|
|
|
|
|
if (type === 'select' && props.multiple) {
|
|
|
error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
|
|
|
} else {
|
|
|
error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var validateProperty$1 = function () {};
|
|
|
|
|
|
{
|
|
|
var warnedProperties$1 = {};
|
|
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
var EVENT_NAME_REGEX = /^on./;
|
|
|
var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
|
|
|
var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
|
var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
|
|
|
|
|
|
validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
|
|
|
if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var lowerCasedName = name.toLowerCase();
|
|
|
|
|
|
if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
|
|
|
error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
} // We can't rely on the event system being injected on the server.
|
|
|
|
|
|
|
|
|
if (canUseEventSystem) {
|
|
|
if (registrationNameModules.hasOwnProperty(name)) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
|
|
|
|
|
|
if (registrationName != null) {
|
|
|
error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (EVENT_NAME_REGEX.test(name)) {
|
|
|
error('Unknown event handler property `%s`. It will be ignored.', name);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
} else if (EVENT_NAME_REGEX.test(name)) {
|
|
|
// If no event plugins have been injected, we are in a server environment.
|
|
|
// So we can't tell if the event name is correct for sure, but we can filter
|
|
|
// out known bad ones like `onclick`. We can't suggest a specific replacement though.
|
|
|
if (INVALID_EVENT_NAME_REGEX.test(name)) {
|
|
|
error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
|
|
|
}
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
} // Let the ARIA attribute hook validate ARIA attributes
|
|
|
|
|
|
|
|
|
if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (lowerCasedName === 'innerhtml') {
|
|
|
error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (lowerCasedName === 'aria') {
|
|
|
error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
|
|
|
error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (typeof value === 'number' && isNaN(value)) {
|
|
|
error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var propertyInfo = getPropertyInfo(name);
|
|
|
var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.
|
|
|
|
|
|
if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
|
|
|
var standardName = possibleStandardNames[lowerCasedName];
|
|
|
|
|
|
if (standardName !== name) {
|
|
|
error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
} else if (!isReserved && name !== lowerCasedName) {
|
|
|
// Unknown attributes should have lowercase casing since that's how they
|
|
|
// will be cased anyway with server rendering.
|
|
|
error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
|
|
|
if (value) {
|
|
|
error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
|
|
|
} else {
|
|
|
error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
|
|
|
}
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
} // Now that we've validated casing, do not validate
|
|
|
// data types for reserved props
|
|
|
|
|
|
|
|
|
if (isReserved) {
|
|
|
return true;
|
|
|
} // Warn when a known attribute is a bad type
|
|
|
|
|
|
|
|
|
if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
|
|
|
warnedProperties$1[name] = true;
|
|
|
return false;
|
|
|
} // Warn when passing the strings 'false' or 'true' into a boolean prop
|
|
|
|
|
|
|
|
|
if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
|
|
|
error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
|
|
|
|
|
|
warnedProperties$1[name] = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var warnUnknownProperties = function (type, props, canUseEventSystem) {
|
|
|
{
|
|
|
var unknownProps = [];
|
|
|
|
|
|
for (var key in props) {
|
|
|
var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
|
|
|
|
|
|
if (!isValid) {
|
|
|
unknownProps.push(key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var unknownPropString = unknownProps.map(function (prop) {
|
|
|
return '`' + prop + '`';
|
|
|
}).join(', ');
|
|
|
|
|
|
if (unknownProps.length === 1) {
|
|
|
error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
|
|
|
} else if (unknownProps.length > 1) {
|
|
|
error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function validateProperties$2(type, props, canUseEventSystem) {
|
|
|
if (isCustomComponent(type, props)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
warnUnknownProperties(type, props, canUseEventSystem);
|
|
|
}
|
|
|
|
|
|
var didWarnInvalidHydration = false;
|
|
|
var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
|
|
|
var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
|
|
|
var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
|
|
|
var AUTOFOCUS = 'autoFocus';
|
|
|
var CHILDREN = 'children';
|
|
|
var STYLE = 'style';
|
|
|
var HTML$1 = '__html';
|
|
|
var HTML_NAMESPACE$1 = Namespaces.html;
|
|
|
var warnedUnknownTags;
|
|
|
var suppressHydrationWarning;
|
|
|
var validatePropertiesInDevelopment;
|
|
|
var warnForTextDifference;
|
|
|
var warnForPropDifference;
|
|
|
var warnForExtraAttributes;
|
|
|
var warnForInvalidEventListener;
|
|
|
var canDiffStyleForHydrationWarning;
|
|
|
var normalizeMarkupForTextOrAttribute;
|
|
|
var normalizeHTML;
|
|
|
|
|
|
{
|
|
|
warnedUnknownTags = {
|
|
|
// Chrome is the only major browser not shipping <time>. But as of July
|
|
|
// 2017 it intends to ship it due to widespread usage. We intentionally
|
|
|
// *don't* warn for <time> even if it's unrecognized by Chrome because
|
|
|
// it soon will be, and many apps have been using it anyway.
|
|
|
time: true,
|
|
|
// There are working polyfills for <dialog>. Let people use it.
|
|
|
dialog: true,
|
|
|
// Electron ships a custom <webview> tag to display external web content in
|
|
|
// an isolated frame and process.
|
|
|
// This tag is not present in non Electron environments such as JSDom which
|
|
|
// is often used for testing purposes.
|
|
|
// @see https://electronjs.org/docs/api/webview-tag
|
|
|
webview: true
|
|
|
};
|
|
|
|
|
|
validatePropertiesInDevelopment = function (type, props) {
|
|
|
validateProperties(type, props);
|
|
|
validateProperties$1(type, props);
|
|
|
validateProperties$2(type, props,
|
|
|
/* canUseEventSystem */
|
|
|
true);
|
|
|
}; // IE 11 parses & normalizes the style attribute as opposed to other
|
|
|
// browsers. It adds spaces and sorts the properties in some
|
|
|
// non-alphabetical order. Handling that would require sorting CSS
|
|
|
// properties in the client & server versions or applying
|
|
|
// `expectedStyle` to a temporary DOM node to read its `style` attribute
|
|
|
// normalized. Since it only affects IE, we're skipping style warnings
|
|
|
// in that browser completely in favor of doing all that work.
|
|
|
// See https://github.com/facebook/react/issues/11807
|
|
|
|
|
|
|
|
|
canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
|
|
|
// It also can turn \u0000 into \uFFFD inside attributes.
|
|
|
// https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
|
|
|
// If we have a mismatch, it might be caused by that.
|
|
|
// We will still patch up in this case but not fire the warning.
|
|
|
|
|
|
var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
|
|
|
var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
|
|
|
|
|
|
normalizeMarkupForTextOrAttribute = function (markup) {
|
|
|
var markupString = typeof markup === 'string' ? markup : '' + markup;
|
|
|
return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
|
|
|
};
|
|
|
|
|
|
warnForTextDifference = function (serverText, clientText) {
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
|
|
|
var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
|
|
|
|
|
|
if (normalizedServerText === normalizedClientText) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
|
|
|
};
|
|
|
|
|
|
warnForPropDifference = function (propName, serverValue, clientValue) {
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
|
|
|
var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
|
|
|
|
|
|
if (normalizedServerValue === normalizedClientValue) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
|
|
|
};
|
|
|
|
|
|
warnForExtraAttributes = function (attributeNames) {
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
var names = [];
|
|
|
attributeNames.forEach(function (name) {
|
|
|
names.push(name);
|
|
|
});
|
|
|
|
|
|
error('Extra attributes from the server: %s', names);
|
|
|
};
|
|
|
|
|
|
warnForInvalidEventListener = function (registrationName, listener) {
|
|
|
if (listener === false) {
|
|
|
error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
|
|
|
} else {
|
|
|
error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
|
|
|
}
|
|
|
}; // Parse the HTML and read it back to normalize the HTML string so that it
|
|
|
// can be used for comparison.
|
|
|
|
|
|
|
|
|
normalizeHTML = function (parent, html) {
|
|
|
// We could have created a separate document here to avoid
|
|
|
// re-initializing custom elements if they exist. But this breaks
|
|
|
// how <noscript> is being handled. So we use the same document.
|
|
|
// See the discussion in https://github.com/facebook/react/pull/11157.
|
|
|
var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
|
|
|
testElement.innerHTML = html;
|
|
|
return testElement.innerHTML;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function ensureListeningTo(rootContainerElement, registrationName) {
|
|
|
var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
|
|
|
var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
|
|
|
legacyListenToEvent(registrationName, doc);
|
|
|
}
|
|
|
|
|
|
function getOwnerDocumentFromRootContainer(rootContainerElement) {
|
|
|
return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
|
|
|
}
|
|
|
|
|
|
function noop() {}
|
|
|
|
|
|
function trapClickOnNonInteractiveElement(node) {
|
|
|
// Mobile Safari does not fire properly bubble click events on
|
|
|
// non-interactive elements, which means delegated click listeners do not
|
|
|
// fire. The workaround for this bug involves attaching an empty click
|
|
|
// listener on the target node.
|
|
|
// http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
|
|
|
// Just set it using the onclick property so that we don't have to manage any
|
|
|
// bookkeeping for it. Not sure if we need to clear it when the listener is
|
|
|
// removed.
|
|
|
// TODO: Only do this for the relevant Safaris maybe?
|
|
|
node.onclick = noop;
|
|
|
}
|
|
|
|
|
|
function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
|
|
|
for (var propKey in nextProps) {
|
|
|
if (!nextProps.hasOwnProperty(propKey)) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
var nextProp = nextProps[propKey];
|
|
|
|
|
|
if (propKey === STYLE) {
|
|
|
{
|
|
|
if (nextProp) {
|
|
|
// Freeze the next style object so that we can assume it won't be
|
|
|
// mutated. We have already warned for this in the past.
|
|
|
Object.freeze(nextProp);
|
|
|
}
|
|
|
} // Relies on `updateStylesByID` not mutating `styleUpdates`.
|
|
|
|
|
|
|
|
|
setValueForStyles(domElement, nextProp);
|
|
|
} else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
|
|
|
var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
|
|
|
|
|
|
if (nextHtml != null) {
|
|
|
setInnerHTML(domElement, nextHtml);
|
|
|
}
|
|
|
} else if (propKey === CHILDREN) {
|
|
|
if (typeof nextProp === 'string') {
|
|
|
// Avoid setting initial textContent when the text is empty. In IE11 setting
|
|
|
// textContent on a <textarea> will cause the placeholder to not
|
|
|
// show within the <textarea> until it has been focused and blurred again.
|
|
|
// https://github.com/facebook/react/issues/6731#issuecomment-254874553
|
|
|
var canSetTextContent = tag !== 'textarea' || nextProp !== '';
|
|
|
|
|
|
if (canSetTextContent) {
|
|
|
setTextContent(domElement, nextProp);
|
|
|
}
|
|
|
} else if (typeof nextProp === 'number') {
|
|
|
setTextContent(domElement, '' + nextProp);
|
|
|
}
|
|
|
} else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
|
|
|
if (nextProp != null) {
|
|
|
if ( typeof nextProp !== 'function') {
|
|
|
warnForInvalidEventListener(propKey, nextProp);
|
|
|
}
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, propKey);
|
|
|
}
|
|
|
} else if (nextProp != null) {
|
|
|
setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
|
|
|
// TODO: Handle wasCustomComponentTag
|
|
|
for (var i = 0; i < updatePayload.length; i += 2) {
|
|
|
var propKey = updatePayload[i];
|
|
|
var propValue = updatePayload[i + 1];
|
|
|
|
|
|
if (propKey === STYLE) {
|
|
|
setValueForStyles(domElement, propValue);
|
|
|
} else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
|
|
|
setInnerHTML(domElement, propValue);
|
|
|
} else if (propKey === CHILDREN) {
|
|
|
setTextContent(domElement, propValue);
|
|
|
} else {
|
|
|
setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createElement(type, props, rootContainerElement, parentNamespace) {
|
|
|
var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
|
|
|
// tags get no namespace.
|
|
|
|
|
|
var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
|
|
|
var domElement;
|
|
|
var namespaceURI = parentNamespace;
|
|
|
|
|
|
if (namespaceURI === HTML_NAMESPACE$1) {
|
|
|
namespaceURI = getIntrinsicNamespace(type);
|
|
|
}
|
|
|
|
|
|
if (namespaceURI === HTML_NAMESPACE$1) {
|
|
|
{
|
|
|
isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
|
|
|
// allow <SVG> or <mATH>.
|
|
|
|
|
|
if (!isCustomComponentTag && type !== type.toLowerCase()) {
|
|
|
error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (type === 'script') {
|
|
|
// Create the script via .innerHTML so its "parser-inserted" flag is
|
|
|
// set to true and it does not execute
|
|
|
var div = ownerDocument.createElement('div');
|
|
|
|
|
|
div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
|
|
|
// This is guaranteed to yield a script element.
|
|
|
|
|
|
var firstChild = div.firstChild;
|
|
|
domElement = div.removeChild(firstChild);
|
|
|
} else if (typeof props.is === 'string') {
|
|
|
// $FlowIssue `createElement` should be updated for Web Components
|
|
|
domElement = ownerDocument.createElement(type, {
|
|
|
is: props.is
|
|
|
});
|
|
|
} else {
|
|
|
// Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
|
|
|
// See discussion in https://github.com/facebook/react/pull/6896
|
|
|
// and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
|
|
|
domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
|
|
|
// attributes on `select`s needs to be added before `option`s are inserted.
|
|
|
// This prevents:
|
|
|
// - a bug where the `select` does not scroll to the correct option because singular
|
|
|
// `select` elements automatically pick the first item #13222
|
|
|
// - a bug where the `select` set the first item as selected despite the `size` attribute #14239
|
|
|
// See https://github.com/facebook/react/issues/13222
|
|
|
// and https://github.com/facebook/react/issues/14239
|
|
|
|
|
|
if (type === 'select') {
|
|
|
var node = domElement;
|
|
|
|
|
|
if (props.multiple) {
|
|
|
node.multiple = true;
|
|
|
} else if (props.size) {
|
|
|
// Setting a size greater than 1 causes a select to behave like `multiple=true`, where
|
|
|
// it is possible that no option is selected.
|
|
|
//
|
|
|
// This is only necessary when a select in "single selection mode".
|
|
|
node.size = props.size;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
domElement = ownerDocument.createElementNS(namespaceURI, type);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (namespaceURI === HTML_NAMESPACE$1) {
|
|
|
if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
|
|
|
warnedUnknownTags[type] = true;
|
|
|
|
|
|
error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return domElement;
|
|
|
}
|
|
|
function createTextNode(text, rootContainerElement) {
|
|
|
return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
|
|
|
}
|
|
|
function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
|
|
|
var isCustomComponentTag = isCustomComponent(tag, rawProps);
|
|
|
|
|
|
{
|
|
|
validatePropertiesInDevelopment(tag, rawProps);
|
|
|
} // TODO: Make sure that we check isMounted before firing any of these events.
|
|
|
|
|
|
|
|
|
var props;
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'iframe':
|
|
|
case 'object':
|
|
|
case 'embed':
|
|
|
trapBubbledEvent(TOP_LOAD, domElement);
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'video':
|
|
|
case 'audio':
|
|
|
// Create listener for each media event
|
|
|
for (var i = 0; i < mediaEventTypes.length; i++) {
|
|
|
trapBubbledEvent(mediaEventTypes[i], domElement);
|
|
|
}
|
|
|
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'source':
|
|
|
trapBubbledEvent(TOP_ERROR, domElement);
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'img':
|
|
|
case 'image':
|
|
|
case 'link':
|
|
|
trapBubbledEvent(TOP_ERROR, domElement);
|
|
|
trapBubbledEvent(TOP_LOAD, domElement);
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'form':
|
|
|
trapBubbledEvent(TOP_RESET, domElement);
|
|
|
trapBubbledEvent(TOP_SUBMIT, domElement);
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'details':
|
|
|
trapBubbledEvent(TOP_TOGGLE, domElement);
|
|
|
props = rawProps;
|
|
|
break;
|
|
|
|
|
|
case 'input':
|
|
|
initWrapperState(domElement, rawProps);
|
|
|
props = getHostProps(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
|
|
|
case 'option':
|
|
|
validateProps(domElement, rawProps);
|
|
|
props = getHostProps$1(domElement, rawProps);
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
initWrapperState$1(domElement, rawProps);
|
|
|
props = getHostProps$2(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
initWrapperState$2(domElement, rawProps);
|
|
|
props = getHostProps$3(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
props = rawProps;
|
|
|
}
|
|
|
|
|
|
assertValidProps(tag, props);
|
|
|
setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'input':
|
|
|
// TODO: Make sure we check if this is still unmounted or do any clean
|
|
|
// up necessary since we never stop tracking anymore.
|
|
|
track(domElement);
|
|
|
postMountWrapper(domElement, rawProps, false);
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
// TODO: Make sure we check if this is still unmounted or do any clean
|
|
|
// up necessary since we never stop tracking anymore.
|
|
|
track(domElement);
|
|
|
postMountWrapper$3(domElement);
|
|
|
break;
|
|
|
|
|
|
case 'option':
|
|
|
postMountWrapper$1(domElement, rawProps);
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
postMountWrapper$2(domElement, rawProps);
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
if (typeof props.onClick === 'function') {
|
|
|
// TODO: This cast may not be sound for SVG, MathML or custom elements.
|
|
|
trapClickOnNonInteractiveElement(domElement);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
} // Calculate the diff between the two objects.
|
|
|
|
|
|
function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
|
|
|
{
|
|
|
validatePropertiesInDevelopment(tag, nextRawProps);
|
|
|
}
|
|
|
|
|
|
var updatePayload = null;
|
|
|
var lastProps;
|
|
|
var nextProps;
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'input':
|
|
|
lastProps = getHostProps(domElement, lastRawProps);
|
|
|
nextProps = getHostProps(domElement, nextRawProps);
|
|
|
updatePayload = [];
|
|
|
break;
|
|
|
|
|
|
case 'option':
|
|
|
lastProps = getHostProps$1(domElement, lastRawProps);
|
|
|
nextProps = getHostProps$1(domElement, nextRawProps);
|
|
|
updatePayload = [];
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
lastProps = getHostProps$2(domElement, lastRawProps);
|
|
|
nextProps = getHostProps$2(domElement, nextRawProps);
|
|
|
updatePayload = [];
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
lastProps = getHostProps$3(domElement, lastRawProps);
|
|
|
nextProps = getHostProps$3(domElement, nextRawProps);
|
|
|
updatePayload = [];
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
lastProps = lastRawProps;
|
|
|
nextProps = nextRawProps;
|
|
|
|
|
|
if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
|
|
|
// TODO: This cast may not be sound for SVG, MathML or custom elements.
|
|
|
trapClickOnNonInteractiveElement(domElement);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
assertValidProps(tag, nextProps);
|
|
|
var propKey;
|
|
|
var styleName;
|
|
|
var styleUpdates = null;
|
|
|
|
|
|
for (propKey in lastProps) {
|
|
|
if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (propKey === STYLE) {
|
|
|
var lastStyle = lastProps[propKey];
|
|
|
|
|
|
for (styleName in lastStyle) {
|
|
|
if (lastStyle.hasOwnProperty(styleName)) {
|
|
|
if (!styleUpdates) {
|
|
|
styleUpdates = {};
|
|
|
}
|
|
|
|
|
|
styleUpdates[styleName] = '';
|
|
|
}
|
|
|
}
|
|
|
} else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
|
|
|
// This is a special case. If any listener updates we need to ensure
|
|
|
// that the "current" fiber pointer gets updated so we need a commit
|
|
|
// to update this element.
|
|
|
if (!updatePayload) {
|
|
|
updatePayload = [];
|
|
|
}
|
|
|
} else {
|
|
|
// For all other deleted properties we add it to the queue. We use
|
|
|
// the whitelist in the commit phase instead.
|
|
|
(updatePayload = updatePayload || []).push(propKey, null);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (propKey in nextProps) {
|
|
|
var nextProp = nextProps[propKey];
|
|
|
var lastProp = lastProps != null ? lastProps[propKey] : undefined;
|
|
|
|
|
|
if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (propKey === STYLE) {
|
|
|
{
|
|
|
if (nextProp) {
|
|
|
// Freeze the next style object so that we can assume it won't be
|
|
|
// mutated. We have already warned for this in the past.
|
|
|
Object.freeze(nextProp);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (lastProp) {
|
|
|
// Unset styles on `lastProp` but not on `nextProp`.
|
|
|
for (styleName in lastProp) {
|
|
|
if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
|
|
|
if (!styleUpdates) {
|
|
|
styleUpdates = {};
|
|
|
}
|
|
|
|
|
|
styleUpdates[styleName] = '';
|
|
|
}
|
|
|
} // Update styles that changed since `lastProp`.
|
|
|
|
|
|
|
|
|
for (styleName in nextProp) {
|
|
|
if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
|
|
|
if (!styleUpdates) {
|
|
|
styleUpdates = {};
|
|
|
}
|
|
|
|
|
|
styleUpdates[styleName] = nextProp[styleName];
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// Relies on `updateStylesByID` not mutating `styleUpdates`.
|
|
|
if (!styleUpdates) {
|
|
|
if (!updatePayload) {
|
|
|
updatePayload = [];
|
|
|
}
|
|
|
|
|
|
updatePayload.push(propKey, styleUpdates);
|
|
|
}
|
|
|
|
|
|
styleUpdates = nextProp;
|
|
|
}
|
|
|
} else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
|
|
|
var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
|
|
|
var lastHtml = lastProp ? lastProp[HTML$1] : undefined;
|
|
|
|
|
|
if (nextHtml != null) {
|
|
|
if (lastHtml !== nextHtml) {
|
|
|
(updatePayload = updatePayload || []).push(propKey, nextHtml);
|
|
|
}
|
|
|
}
|
|
|
} else if (propKey === CHILDREN) {
|
|
|
if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
|
|
|
(updatePayload = updatePayload || []).push(propKey, '' + nextProp);
|
|
|
}
|
|
|
} else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameModules.hasOwnProperty(propKey)) {
|
|
|
if (nextProp != null) {
|
|
|
// We eagerly listen to this even though we haven't committed yet.
|
|
|
if ( typeof nextProp !== 'function') {
|
|
|
warnForInvalidEventListener(propKey, nextProp);
|
|
|
}
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, propKey);
|
|
|
}
|
|
|
|
|
|
if (!updatePayload && lastProp !== nextProp) {
|
|
|
// This is a special case. If any listener updates we need to ensure
|
|
|
// that the "current" props pointer gets updated so we need a commit
|
|
|
// to update this element.
|
|
|
updatePayload = [];
|
|
|
}
|
|
|
} else {
|
|
|
// For any other property we always add it to the queue and then we
|
|
|
// filter it out using the whitelist during the commit.
|
|
|
(updatePayload = updatePayload || []).push(propKey, nextProp);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (styleUpdates) {
|
|
|
{
|
|
|
validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
|
|
|
}
|
|
|
|
|
|
(updatePayload = updatePayload || []).push(STYLE, styleUpdates);
|
|
|
}
|
|
|
|
|
|
return updatePayload;
|
|
|
} // Apply the diff.
|
|
|
|
|
|
function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
|
|
|
// Update checked *before* name.
|
|
|
// In the middle of an update, it is possible to have multiple checked.
|
|
|
// When a checked radio tries to change name, browser makes another radio's checked false.
|
|
|
if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
|
|
|
updateChecked(domElement, nextRawProps);
|
|
|
}
|
|
|
|
|
|
var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
|
|
|
var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.
|
|
|
|
|
|
updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
|
|
|
// changed.
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'input':
|
|
|
// Update the wrapper around inputs *after* updating props. This has to
|
|
|
// happen after `updateDOMProperties`. Otherwise HTML5 input validations
|
|
|
// raise warnings and prevent the new value from being assigned.
|
|
|
updateWrapper(domElement, nextRawProps);
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
updateWrapper$1(domElement, nextRawProps);
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
// <select> value update needs to occur after <option> children
|
|
|
// reconciliation
|
|
|
postUpdateWrapper(domElement, nextRawProps);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getPossibleStandardName(propName) {
|
|
|
{
|
|
|
var lowerCasedName = propName.toLowerCase();
|
|
|
|
|
|
if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return possibleStandardNames[lowerCasedName] || null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
|
|
|
var isCustomComponentTag;
|
|
|
var extraAttributeNames;
|
|
|
|
|
|
{
|
|
|
suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
|
|
|
isCustomComponentTag = isCustomComponent(tag, rawProps);
|
|
|
validatePropertiesInDevelopment(tag, rawProps);
|
|
|
} // TODO: Make sure that we check isMounted before firing any of these events.
|
|
|
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'iframe':
|
|
|
case 'object':
|
|
|
case 'embed':
|
|
|
trapBubbledEvent(TOP_LOAD, domElement);
|
|
|
break;
|
|
|
|
|
|
case 'video':
|
|
|
case 'audio':
|
|
|
// Create listener for each media event
|
|
|
for (var i = 0; i < mediaEventTypes.length; i++) {
|
|
|
trapBubbledEvent(mediaEventTypes[i], domElement);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 'source':
|
|
|
trapBubbledEvent(TOP_ERROR, domElement);
|
|
|
break;
|
|
|
|
|
|
case 'img':
|
|
|
case 'image':
|
|
|
case 'link':
|
|
|
trapBubbledEvent(TOP_ERROR, domElement);
|
|
|
trapBubbledEvent(TOP_LOAD, domElement);
|
|
|
break;
|
|
|
|
|
|
case 'form':
|
|
|
trapBubbledEvent(TOP_RESET, domElement);
|
|
|
trapBubbledEvent(TOP_SUBMIT, domElement);
|
|
|
break;
|
|
|
|
|
|
case 'details':
|
|
|
trapBubbledEvent(TOP_TOGGLE, domElement);
|
|
|
break;
|
|
|
|
|
|
case 'input':
|
|
|
initWrapperState(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
|
|
|
case 'option':
|
|
|
validateProps(domElement, rawProps);
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
initWrapperState$1(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
initWrapperState$2(domElement, rawProps);
|
|
|
trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening
|
|
|
// to onChange. Even if there is no listener.
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, 'onChange');
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
assertValidProps(tag, rawProps);
|
|
|
|
|
|
{
|
|
|
extraAttributeNames = new Set();
|
|
|
var attributes = domElement.attributes;
|
|
|
|
|
|
for (var _i = 0; _i < attributes.length; _i++) {
|
|
|
var name = attributes[_i].name.toLowerCase();
|
|
|
|
|
|
switch (name) {
|
|
|
// Built-in SSR attribute is whitelisted
|
|
|
case 'data-reactroot':
|
|
|
break;
|
|
|
// Controlled attributes are not validated
|
|
|
// TODO: Only ignore them on controlled tags.
|
|
|
|
|
|
case 'value':
|
|
|
break;
|
|
|
|
|
|
case 'checked':
|
|
|
break;
|
|
|
|
|
|
case 'selected':
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
// Intentionally use the original name.
|
|
|
// See discussion in https://github.com/facebook/react/pull/10676.
|
|
|
extraAttributeNames.add(attributes[_i].name);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var updatePayload = null;
|
|
|
|
|
|
for (var propKey in rawProps) {
|
|
|
if (!rawProps.hasOwnProperty(propKey)) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
var nextProp = rawProps[propKey];
|
|
|
|
|
|
if (propKey === CHILDREN) {
|
|
|
// For text content children we compare against textContent. This
|
|
|
// might match additional HTML that is hidden when we read it using
|
|
|
// textContent. E.g. "foo" will match "f<span>oo</span>" but that still
|
|
|
// satisfies our requirement. Our requirement is not to produce perfect
|
|
|
// HTML and attributes. Ideally we should preserve structure but it's
|
|
|
// ok not to if the visible content is still enough to indicate what
|
|
|
// even listeners these nodes might be wired up to.
|
|
|
// TODO: Warn if there is more than a single textNode as a child.
|
|
|
// TODO: Should we use domElement.firstChild.nodeValue to compare?
|
|
|
if (typeof nextProp === 'string') {
|
|
|
if (domElement.textContent !== nextProp) {
|
|
|
if ( !suppressHydrationWarning) {
|
|
|
warnForTextDifference(domElement.textContent, nextProp);
|
|
|
}
|
|
|
|
|
|
updatePayload = [CHILDREN, nextProp];
|
|
|
}
|
|
|
} else if (typeof nextProp === 'number') {
|
|
|
if (domElement.textContent !== '' + nextProp) {
|
|
|
if ( !suppressHydrationWarning) {
|
|
|
warnForTextDifference(domElement.textContent, nextProp);
|
|
|
}
|
|
|
|
|
|
updatePayload = [CHILDREN, '' + nextProp];
|
|
|
}
|
|
|
}
|
|
|
} else if (registrationNameModules.hasOwnProperty(propKey)) {
|
|
|
if (nextProp != null) {
|
|
|
if ( typeof nextProp !== 'function') {
|
|
|
warnForInvalidEventListener(propKey, nextProp);
|
|
|
}
|
|
|
|
|
|
ensureListeningTo(rootContainerElement, propKey);
|
|
|
}
|
|
|
} else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
|
|
|
typeof isCustomComponentTag === 'boolean') {
|
|
|
// Validate that the properties correspond to their expected values.
|
|
|
var serverValue = void 0;
|
|
|
var propertyInfo = getPropertyInfo(propKey);
|
|
|
|
|
|
if (suppressHydrationWarning) ; else if ( propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
|
|
|
// TODO: Only ignore them on controlled tags.
|
|
|
propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
|
|
|
var serverHTML = domElement.innerHTML;
|
|
|
var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
|
|
|
var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
|
|
|
|
|
|
if (expectedHTML !== serverHTML) {
|
|
|
warnForPropDifference(propKey, serverHTML, expectedHTML);
|
|
|
}
|
|
|
} else if (propKey === STYLE) {
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
extraAttributeNames.delete(propKey);
|
|
|
|
|
|
if (canDiffStyleForHydrationWarning) {
|
|
|
var expectedStyle = createDangerousStringForStyles(nextProp);
|
|
|
serverValue = domElement.getAttribute('style');
|
|
|
|
|
|
if (expectedStyle !== serverValue) {
|
|
|
warnForPropDifference(propKey, serverValue, expectedStyle);
|
|
|
}
|
|
|
}
|
|
|
} else if (isCustomComponentTag) {
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
extraAttributeNames.delete(propKey.toLowerCase());
|
|
|
serverValue = getValueForAttribute(domElement, propKey, nextProp);
|
|
|
|
|
|
if (nextProp !== serverValue) {
|
|
|
warnForPropDifference(propKey, serverValue, nextProp);
|
|
|
}
|
|
|
} else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
|
|
|
var isMismatchDueToBadCasing = false;
|
|
|
|
|
|
if (propertyInfo !== null) {
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
extraAttributeNames.delete(propertyInfo.attributeName);
|
|
|
serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
|
|
|
} else {
|
|
|
var ownNamespace = parentNamespace;
|
|
|
|
|
|
if (ownNamespace === HTML_NAMESPACE$1) {
|
|
|
ownNamespace = getIntrinsicNamespace(tag);
|
|
|
}
|
|
|
|
|
|
if (ownNamespace === HTML_NAMESPACE$1) {
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
extraAttributeNames.delete(propKey.toLowerCase());
|
|
|
} else {
|
|
|
var standardName = getPossibleStandardName(propKey);
|
|
|
|
|
|
if (standardName !== null && standardName !== propKey) {
|
|
|
// If an SVG prop is supplied with bad casing, it will
|
|
|
// be successfully parsed from HTML, but will produce a mismatch
|
|
|
// (and would be incorrectly rendered on the client).
|
|
|
// However, we already warn about bad casing elsewhere.
|
|
|
// So we'll skip the misleading extra mismatch warning in this case.
|
|
|
isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.
|
|
|
|
|
|
extraAttributeNames.delete(standardName);
|
|
|
} // $FlowFixMe - Should be inferred as not undefined.
|
|
|
|
|
|
|
|
|
extraAttributeNames.delete(propKey);
|
|
|
}
|
|
|
|
|
|
serverValue = getValueForAttribute(domElement, propKey, nextProp);
|
|
|
}
|
|
|
|
|
|
if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
|
|
|
warnForPropDifference(propKey, serverValue, nextProp);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
|
|
|
// $FlowFixMe - Should be inferred as not undefined.
|
|
|
warnForExtraAttributes(extraAttributeNames);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'input':
|
|
|
// TODO: Make sure we check if this is still unmounted or do any clean
|
|
|
// up necessary since we never stop tracking anymore.
|
|
|
track(domElement);
|
|
|
postMountWrapper(domElement, rawProps, true);
|
|
|
break;
|
|
|
|
|
|
case 'textarea':
|
|
|
// TODO: Make sure we check if this is still unmounted or do any clean
|
|
|
// up necessary since we never stop tracking anymore.
|
|
|
track(domElement);
|
|
|
postMountWrapper$3(domElement);
|
|
|
break;
|
|
|
|
|
|
case 'select':
|
|
|
case 'option':
|
|
|
// For input and textarea we current always set the value property at
|
|
|
// post mount to force it to diverge from attributes. However, for
|
|
|
// option and select we don't quite do the same thing and select
|
|
|
// is not resilient to the DOM state changing so we don't do that here.
|
|
|
// TODO: Consider not doing this for input and textarea.
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
if (typeof rawProps.onClick === 'function') {
|
|
|
// TODO: This cast may not be sound for SVG, MathML or custom elements.
|
|
|
trapClickOnNonInteractiveElement(domElement);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
return updatePayload;
|
|
|
}
|
|
|
function diffHydratedText(textNode, text) {
|
|
|
var isDifferent = textNode.nodeValue !== text;
|
|
|
return isDifferent;
|
|
|
}
|
|
|
function warnForUnmatchedText(textNode, text) {
|
|
|
{
|
|
|
warnForTextDifference(textNode.nodeValue, text);
|
|
|
}
|
|
|
}
|
|
|
function warnForDeletedHydratableElement(parentNode, child) {
|
|
|
{
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
|
|
|
}
|
|
|
}
|
|
|
function warnForDeletedHydratableText(parentNode, child) {
|
|
|
{
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
|
|
|
}
|
|
|
}
|
|
|
function warnForInsertedHydratedElement(parentNode, tag, props) {
|
|
|
{
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
|
|
|
}
|
|
|
}
|
|
|
function warnForInsertedHydratedText(parentNode, text) {
|
|
|
{
|
|
|
if (text === '') {
|
|
|
// We expect to insert empty text nodes since they're not represented in
|
|
|
// the HTML.
|
|
|
// TODO: Remove this special case if we can just avoid inserting empty
|
|
|
// text nodes.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (didWarnInvalidHydration) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnInvalidHydration = true;
|
|
|
|
|
|
error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
|
|
|
}
|
|
|
}
|
|
|
function restoreControlledState$3(domElement, tag, props) {
|
|
|
switch (tag) {
|
|
|
case 'input':
|
|
|
restoreControlledState(domElement, props);
|
|
|
return;
|
|
|
|
|
|
case 'textarea':
|
|
|
restoreControlledState$2(domElement, props);
|
|
|
return;
|
|
|
|
|
|
case 'select':
|
|
|
restoreControlledState$1(domElement, props);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getActiveElement(doc) {
|
|
|
doc = doc || (typeof document !== 'undefined' ? document : undefined);
|
|
|
|
|
|
if (typeof doc === 'undefined') {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
return doc.activeElement || doc.body;
|
|
|
} catch (e) {
|
|
|
return doc.body;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Given any node return the first leaf node without children.
|
|
|
*
|
|
|
* @param {DOMElement|DOMTextNode} node
|
|
|
* @return {DOMElement|DOMTextNode}
|
|
|
*/
|
|
|
|
|
|
function getLeafNode(node) {
|
|
|
while (node && node.firstChild) {
|
|
|
node = node.firstChild;
|
|
|
}
|
|
|
|
|
|
return node;
|
|
|
}
|
|
|
/**
|
|
|
* Get the next sibling within a container. This will walk up the
|
|
|
* DOM if a node's siblings have been exhausted.
|
|
|
*
|
|
|
* @param {DOMElement|DOMTextNode} node
|
|
|
* @return {?DOMElement|DOMTextNode}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getSiblingNode(node) {
|
|
|
while (node) {
|
|
|
if (node.nextSibling) {
|
|
|
return node.nextSibling;
|
|
|
}
|
|
|
|
|
|
node = node.parentNode;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Get object describing the nodes which contain characters at offset.
|
|
|
*
|
|
|
* @param {DOMElement|DOMTextNode} root
|
|
|
* @param {number} offset
|
|
|
* @return {?object}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getNodeForCharacterOffset(root, offset) {
|
|
|
var node = getLeafNode(root);
|
|
|
var nodeStart = 0;
|
|
|
var nodeEnd = 0;
|
|
|
|
|
|
while (node) {
|
|
|
if (node.nodeType === TEXT_NODE) {
|
|
|
nodeEnd = nodeStart + node.textContent.length;
|
|
|
|
|
|
if (nodeStart <= offset && nodeEnd >= offset) {
|
|
|
return {
|
|
|
node: node,
|
|
|
offset: offset - nodeStart
|
|
|
};
|
|
|
}
|
|
|
|
|
|
nodeStart = nodeEnd;
|
|
|
}
|
|
|
|
|
|
node = getLeafNode(getSiblingNode(node));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @param {DOMElement} outerNode
|
|
|
* @return {?object}
|
|
|
*/
|
|
|
|
|
|
function getOffsets(outerNode) {
|
|
|
var ownerDocument = outerNode.ownerDocument;
|
|
|
var win = ownerDocument && ownerDocument.defaultView || window;
|
|
|
var selection = win.getSelection && win.getSelection();
|
|
|
|
|
|
if (!selection || selection.rangeCount === 0) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var anchorNode = selection.anchorNode,
|
|
|
anchorOffset = selection.anchorOffset,
|
|
|
focusNode = selection.focusNode,
|
|
|
focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
|
|
|
// up/down buttons on an <input type="number">. Anonymous divs do not seem to
|
|
|
// expose properties, triggering a "Permission denied error" if any of its
|
|
|
// properties are accessed. The only seemingly possible way to avoid erroring
|
|
|
// is to access a property that typically works for non-anonymous divs and
|
|
|
// catch any error that may otherwise arise. See
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=208427
|
|
|
|
|
|
try {
|
|
|
/* eslint-disable no-unused-expressions */
|
|
|
anchorNode.nodeType;
|
|
|
focusNode.nodeType;
|
|
|
/* eslint-enable no-unused-expressions */
|
|
|
} catch (e) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
|
|
|
}
|
|
|
/**
|
|
|
* Returns {start, end} where `start` is the character/codepoint index of
|
|
|
* (anchorNode, anchorOffset) within the textContent of `outerNode`, and
|
|
|
* `end` is the index of (focusNode, focusOffset).
|
|
|
*
|
|
|
* Returns null if you pass in garbage input but we should probably just crash.
|
|
|
*
|
|
|
* Exported only for testing.
|
|
|
*/
|
|
|
|
|
|
function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
|
|
|
var length = 0;
|
|
|
var start = -1;
|
|
|
var end = -1;
|
|
|
var indexWithinAnchor = 0;
|
|
|
var indexWithinFocus = 0;
|
|
|
var node = outerNode;
|
|
|
var parentNode = null;
|
|
|
|
|
|
outer: while (true) {
|
|
|
var next = null;
|
|
|
|
|
|
while (true) {
|
|
|
if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
|
|
|
start = length + anchorOffset;
|
|
|
}
|
|
|
|
|
|
if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
|
|
|
end = length + focusOffset;
|
|
|
}
|
|
|
|
|
|
if (node.nodeType === TEXT_NODE) {
|
|
|
length += node.nodeValue.length;
|
|
|
}
|
|
|
|
|
|
if ((next = node.firstChild) === null) {
|
|
|
break;
|
|
|
} // Moving from `node` to its first child `next`.
|
|
|
|
|
|
|
|
|
parentNode = node;
|
|
|
node = next;
|
|
|
}
|
|
|
|
|
|
while (true) {
|
|
|
if (node === outerNode) {
|
|
|
// If `outerNode` has children, this is always the second time visiting
|
|
|
// it. If it has no children, this is still the first loop, and the only
|
|
|
// valid selection is anchorNode and focusNode both equal to this node
|
|
|
// and both offsets 0, in which case we will have handled above.
|
|
|
break outer;
|
|
|
}
|
|
|
|
|
|
if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
|
|
|
start = length;
|
|
|
}
|
|
|
|
|
|
if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
|
|
|
end = length;
|
|
|
}
|
|
|
|
|
|
if ((next = node.nextSibling) !== null) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
node = parentNode;
|
|
|
parentNode = node.parentNode;
|
|
|
} // Moving from `node` to its next sibling `next`.
|
|
|
|
|
|
|
|
|
node = next;
|
|
|
}
|
|
|
|
|
|
if (start === -1 || end === -1) {
|
|
|
// This should never happen. (Would happen if the anchor/focus nodes aren't
|
|
|
// actually inside the passed-in node.)
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
start: start,
|
|
|
end: end
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* In modern non-IE browsers, we can support both forward and backward
|
|
|
* selections.
|
|
|
*
|
|
|
* Note: IE10+ supports the Selection object, but it does not support
|
|
|
* the `extend` method, which means that even in modern IE, it's not possible
|
|
|
* to programmatically create a backward selection. Thus, for all IE
|
|
|
* versions, we use the old IE API to create our selections.
|
|
|
*
|
|
|
* @param {DOMElement|DOMTextNode} node
|
|
|
* @param {object} offsets
|
|
|
*/
|
|
|
|
|
|
function setOffsets(node, offsets) {
|
|
|
var doc = node.ownerDocument || document;
|
|
|
var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
|
|
|
// (For instance: TinyMCE editor used in a list component that supports pasting to add more,
|
|
|
// fails when pasting 100+ items)
|
|
|
|
|
|
if (!win.getSelection) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var selection = win.getSelection();
|
|
|
var length = node.textContent.length;
|
|
|
var start = Math.min(offsets.start, length);
|
|
|
var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
|
|
|
// Flip backward selections, so we can set with a single range.
|
|
|
|
|
|
if (!selection.extend && start > end) {
|
|
|
var temp = end;
|
|
|
end = start;
|
|
|
start = temp;
|
|
|
}
|
|
|
|
|
|
var startMarker = getNodeForCharacterOffset(node, start);
|
|
|
var endMarker = getNodeForCharacterOffset(node, end);
|
|
|
|
|
|
if (startMarker && endMarker) {
|
|
|
if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var range = doc.createRange();
|
|
|
range.setStart(startMarker.node, startMarker.offset);
|
|
|
selection.removeAllRanges();
|
|
|
|
|
|
if (start > end) {
|
|
|
selection.addRange(range);
|
|
|
selection.extend(endMarker.node, endMarker.offset);
|
|
|
} else {
|
|
|
range.setEnd(endMarker.node, endMarker.offset);
|
|
|
selection.addRange(range);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isTextNode(node) {
|
|
|
return node && node.nodeType === TEXT_NODE;
|
|
|
}
|
|
|
|
|
|
function containsNode(outerNode, innerNode) {
|
|
|
if (!outerNode || !innerNode) {
|
|
|
return false;
|
|
|
} else if (outerNode === innerNode) {
|
|
|
return true;
|
|
|
} else if (isTextNode(outerNode)) {
|
|
|
return false;
|
|
|
} else if (isTextNode(innerNode)) {
|
|
|
return containsNode(outerNode, innerNode.parentNode);
|
|
|
} else if ('contains' in outerNode) {
|
|
|
return outerNode.contains(innerNode);
|
|
|
} else if (outerNode.compareDocumentPosition) {
|
|
|
return !!(outerNode.compareDocumentPosition(innerNode) & 16);
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isInDocument(node) {
|
|
|
return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
|
|
|
}
|
|
|
|
|
|
function isSameOriginFrame(iframe) {
|
|
|
try {
|
|
|
// Accessing the contentDocument of a HTMLIframeElement can cause the browser
|
|
|
// to throw, e.g. if it has a cross-origin src attribute.
|
|
|
// Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
|
|
|
// iframe.contentDocument.defaultView;
|
|
|
// A safety way is to access one of the cross origin properties: Window or Location
|
|
|
// Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
|
|
|
// https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
|
|
|
return typeof iframe.contentWindow.location.href === 'string';
|
|
|
} catch (err) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getActiveElementDeep() {
|
|
|
var win = window;
|
|
|
var element = getActiveElement();
|
|
|
|
|
|
while (element instanceof win.HTMLIFrameElement) {
|
|
|
if (isSameOriginFrame(element)) {
|
|
|
win = element.contentWindow;
|
|
|
} else {
|
|
|
return element;
|
|
|
}
|
|
|
|
|
|
element = getActiveElement(win.document);
|
|
|
}
|
|
|
|
|
|
return element;
|
|
|
}
|
|
|
/**
|
|
|
* @ReactInputSelection: React input selection module. Based on Selection.js,
|
|
|
* but modified to be suitable for react and has a couple of bug fixes (doesn't
|
|
|
* assume buttons have range selections allowed).
|
|
|
* Input selection module for React.
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* @hasSelectionCapabilities: we get the element types that support selection
|
|
|
* from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
|
|
|
* and `selectionEnd` rows.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function hasSelectionCapabilities(elem) {
|
|
|
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
|
|
return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
|
|
|
}
|
|
|
function getSelectionInformation() {
|
|
|
var focusedElem = getActiveElementDeep();
|
|
|
return {
|
|
|
// Used by Flare
|
|
|
activeElementDetached: null,
|
|
|
focusedElem: focusedElem,
|
|
|
selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* @restoreSelection: If any selection information was potentially lost,
|
|
|
* restore it. This is useful when performing operations that could remove dom
|
|
|
* nodes and place them back in, resulting in focus being lost.
|
|
|
*/
|
|
|
|
|
|
function restoreSelection(priorSelectionInformation) {
|
|
|
var curFocusedElem = getActiveElementDeep();
|
|
|
var priorFocusedElem = priorSelectionInformation.focusedElem;
|
|
|
var priorSelectionRange = priorSelectionInformation.selectionRange;
|
|
|
|
|
|
if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
|
|
|
if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
|
|
|
setSelection(priorFocusedElem, priorSelectionRange);
|
|
|
} // Focusing a node can change the scroll position, which is undesirable
|
|
|
|
|
|
|
|
|
var ancestors = [];
|
|
|
var ancestor = priorFocusedElem;
|
|
|
|
|
|
while (ancestor = ancestor.parentNode) {
|
|
|
if (ancestor.nodeType === ELEMENT_NODE) {
|
|
|
ancestors.push({
|
|
|
element: ancestor,
|
|
|
left: ancestor.scrollLeft,
|
|
|
top: ancestor.scrollTop
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof priorFocusedElem.focus === 'function') {
|
|
|
priorFocusedElem.focus();
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < ancestors.length; i++) {
|
|
|
var info = ancestors[i];
|
|
|
info.element.scrollLeft = info.left;
|
|
|
info.element.scrollTop = info.top;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @getSelection: Gets the selection bounds of a focused textarea, input or
|
|
|
* contentEditable node.
|
|
|
* -@input: Look up selection bounds of this input
|
|
|
* -@return {start: selectionStart, end: selectionEnd}
|
|
|
*/
|
|
|
|
|
|
function getSelection(input) {
|
|
|
var selection;
|
|
|
|
|
|
if ('selectionStart' in input) {
|
|
|
// Modern browser with input or textarea.
|
|
|
selection = {
|
|
|
start: input.selectionStart,
|
|
|
end: input.selectionEnd
|
|
|
};
|
|
|
} else {
|
|
|
// Content editable or old IE textarea.
|
|
|
selection = getOffsets(input);
|
|
|
}
|
|
|
|
|
|
return selection || {
|
|
|
start: 0,
|
|
|
end: 0
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* @setSelection: Sets the selection bounds of a textarea or input and focuses
|
|
|
* the input.
|
|
|
* -@input Set selection bounds of this input or textarea
|
|
|
* -@offsets Object of same form that is returned from get*
|
|
|
*/
|
|
|
|
|
|
function setSelection(input, offsets) {
|
|
|
var start = offsets.start,
|
|
|
end = offsets.end;
|
|
|
|
|
|
if (end === undefined) {
|
|
|
end = start;
|
|
|
}
|
|
|
|
|
|
if ('selectionStart' in input) {
|
|
|
input.selectionStart = start;
|
|
|
input.selectionEnd = Math.min(end, input.value.length);
|
|
|
} else {
|
|
|
setOffsets(input, offsets);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var validateDOMNesting = function () {};
|
|
|
|
|
|
var updatedAncestorInfo = function () {};
|
|
|
|
|
|
{
|
|
|
// This validation code was written based on the HTML5 parsing spec:
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
|
|
|
//
|
|
|
// Note: this does not catch all invalid nesting, nor does it try to (as it's
|
|
|
// not clear what practical benefit doing so provides); instead, we warn only
|
|
|
// for cases where the parser will give a parse tree differing from what React
|
|
|
// intended. For example, <b><div></div></b> is invalid but we don't warn
|
|
|
// because it still parses correctly; we do warn for other cases like nested
|
|
|
// <p> tags where the beginning of the second element implicitly closes the
|
|
|
// first, causing a confusing mess.
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#special
|
|
|
var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
|
|
|
|
|
|
var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
|
|
|
// TODO: Distinguish by namespace here -- for <title>, including it here
|
|
|
// errs on the side of fewer warnings
|
|
|
'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
|
|
|
|
|
|
var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
|
|
|
|
|
|
var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
|
|
|
var emptyAncestorInfo = {
|
|
|
current: null,
|
|
|
formTag: null,
|
|
|
aTagInScope: null,
|
|
|
buttonTagInScope: null,
|
|
|
nobrTagInScope: null,
|
|
|
pTagInButtonScope: null,
|
|
|
listItemTagAutoclosing: null,
|
|
|
dlItemTagAutoclosing: null
|
|
|
};
|
|
|
|
|
|
updatedAncestorInfo = function (oldInfo, tag) {
|
|
|
var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
|
|
|
|
|
|
var info = {
|
|
|
tag: tag
|
|
|
};
|
|
|
|
|
|
if (inScopeTags.indexOf(tag) !== -1) {
|
|
|
ancestorInfo.aTagInScope = null;
|
|
|
ancestorInfo.buttonTagInScope = null;
|
|
|
ancestorInfo.nobrTagInScope = null;
|
|
|
}
|
|
|
|
|
|
if (buttonScopeTags.indexOf(tag) !== -1) {
|
|
|
ancestorInfo.pTagInButtonScope = null;
|
|
|
} // See rules for 'li', 'dd', 'dt' start tags in
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
|
|
|
|
|
|
|
|
|
if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
|
|
|
ancestorInfo.listItemTagAutoclosing = null;
|
|
|
ancestorInfo.dlItemTagAutoclosing = null;
|
|
|
}
|
|
|
|
|
|
ancestorInfo.current = info;
|
|
|
|
|
|
if (tag === 'form') {
|
|
|
ancestorInfo.formTag = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'a') {
|
|
|
ancestorInfo.aTagInScope = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'button') {
|
|
|
ancestorInfo.buttonTagInScope = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'nobr') {
|
|
|
ancestorInfo.nobrTagInScope = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'p') {
|
|
|
ancestorInfo.pTagInButtonScope = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'li') {
|
|
|
ancestorInfo.listItemTagAutoclosing = info;
|
|
|
}
|
|
|
|
|
|
if (tag === 'dd' || tag === 'dt') {
|
|
|
ancestorInfo.dlItemTagAutoclosing = info;
|
|
|
}
|
|
|
|
|
|
return ancestorInfo;
|
|
|
};
|
|
|
/**
|
|
|
* Returns whether
|
|
|
*/
|
|
|
|
|
|
|
|
|
var isTagValidWithParent = function (tag, parentTag) {
|
|
|
// First, let's check if we're in an unusual parsing mode...
|
|
|
switch (parentTag) {
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
|
|
|
case 'select':
|
|
|
return tag === 'option' || tag === 'optgroup' || tag === '#text';
|
|
|
|
|
|
case 'optgroup':
|
|
|
return tag === 'option' || tag === '#text';
|
|
|
// Strictly speaking, seeing an <option> doesn't mean we're in a <select>
|
|
|
// but
|
|
|
|
|
|
case 'option':
|
|
|
return tag === '#text';
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
|
|
|
// No special behavior since these rules fall back to "in body" mode for
|
|
|
// all except special table nodes which cause bad parsing behavior anyway.
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
|
|
|
|
|
|
case 'tr':
|
|
|
return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
|
|
|
|
|
|
case 'tbody':
|
|
|
case 'thead':
|
|
|
case 'tfoot':
|
|
|
return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
|
|
|
|
|
|
case 'colgroup':
|
|
|
return tag === 'col' || tag === 'template';
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
|
|
|
|
|
|
case 'table':
|
|
|
return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
|
|
|
|
|
|
case 'head':
|
|
|
return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
|
|
|
|
|
|
case 'html':
|
|
|
return tag === 'head' || tag === 'body' || tag === 'frameset';
|
|
|
|
|
|
case 'frameset':
|
|
|
return tag === 'frame';
|
|
|
|
|
|
case '#document':
|
|
|
return tag === 'html';
|
|
|
} // Probably in the "in body" parsing mode, so we outlaw only tag combos
|
|
|
// where the parsing rules cause implicit opens or closes to be added.
|
|
|
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
|
|
|
|
|
|
|
|
|
switch (tag) {
|
|
|
case 'h1':
|
|
|
case 'h2':
|
|
|
case 'h3':
|
|
|
case 'h4':
|
|
|
case 'h5':
|
|
|
case 'h6':
|
|
|
return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
|
|
|
|
|
|
case 'rp':
|
|
|
case 'rt':
|
|
|
return impliedEndTags.indexOf(parentTag) === -1;
|
|
|
|
|
|
case 'body':
|
|
|
case 'caption':
|
|
|
case 'col':
|
|
|
case 'colgroup':
|
|
|
case 'frameset':
|
|
|
case 'frame':
|
|
|
case 'head':
|
|
|
case 'html':
|
|
|
case 'tbody':
|
|
|
case 'td':
|
|
|
case 'tfoot':
|
|
|
case 'th':
|
|
|
case 'thead':
|
|
|
case 'tr':
|
|
|
// These tags are only valid with a few parents that have special child
|
|
|
// parsing rules -- if we're down here, then none of those matched and
|
|
|
// so we allow it only if we don't know what the parent is, as all other
|
|
|
// cases are invalid.
|
|
|
return parentTag == null;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
/**
|
|
|
* Returns whether
|
|
|
*/
|
|
|
|
|
|
|
|
|
var findInvalidAncestorForTag = function (tag, ancestorInfo) {
|
|
|
switch (tag) {
|
|
|
case 'address':
|
|
|
case 'article':
|
|
|
case 'aside':
|
|
|
case 'blockquote':
|
|
|
case 'center':
|
|
|
case 'details':
|
|
|
case 'dialog':
|
|
|
case 'dir':
|
|
|
case 'div':
|
|
|
case 'dl':
|
|
|
case 'fieldset':
|
|
|
case 'figcaption':
|
|
|
case 'figure':
|
|
|
case 'footer':
|
|
|
case 'header':
|
|
|
case 'hgroup':
|
|
|
case 'main':
|
|
|
case 'menu':
|
|
|
case 'nav':
|
|
|
case 'ol':
|
|
|
case 'p':
|
|
|
case 'section':
|
|
|
case 'summary':
|
|
|
case 'ul':
|
|
|
case 'pre':
|
|
|
case 'listing':
|
|
|
case 'table':
|
|
|
case 'hr':
|
|
|
case 'xmp':
|
|
|
case 'h1':
|
|
|
case 'h2':
|
|
|
case 'h3':
|
|
|
case 'h4':
|
|
|
case 'h5':
|
|
|
case 'h6':
|
|
|
return ancestorInfo.pTagInButtonScope;
|
|
|
|
|
|
case 'form':
|
|
|
return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
|
|
|
|
|
|
case 'li':
|
|
|
return ancestorInfo.listItemTagAutoclosing;
|
|
|
|
|
|
case 'dd':
|
|
|
case 'dt':
|
|
|
return ancestorInfo.dlItemTagAutoclosing;
|
|
|
|
|
|
case 'button':
|
|
|
return ancestorInfo.buttonTagInScope;
|
|
|
|
|
|
case 'a':
|
|
|
// Spec says something about storing a list of markers, but it sounds
|
|
|
// equivalent to this check.
|
|
|
return ancestorInfo.aTagInScope;
|
|
|
|
|
|
case 'nobr':
|
|
|
return ancestorInfo.nobrTagInScope;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
var didWarn$1 = {};
|
|
|
|
|
|
validateDOMNesting = function (childTag, childText, ancestorInfo) {
|
|
|
ancestorInfo = ancestorInfo || emptyAncestorInfo;
|
|
|
var parentInfo = ancestorInfo.current;
|
|
|
var parentTag = parentInfo && parentInfo.tag;
|
|
|
|
|
|
if (childText != null) {
|
|
|
if (childTag != null) {
|
|
|
error('validateDOMNesting: when childText is passed, childTag should be null');
|
|
|
}
|
|
|
|
|
|
childTag = '#text';
|
|
|
}
|
|
|
|
|
|
var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
|
|
|
var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
|
|
|
var invalidParentOrAncestor = invalidParent || invalidAncestor;
|
|
|
|
|
|
if (!invalidParentOrAncestor) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var ancestorTag = invalidParentOrAncestor.tag;
|
|
|
var addendum = getCurrentFiberStackInDev();
|
|
|
var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
|
|
|
|
|
|
if (didWarn$1[warnKey]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarn$1[warnKey] = true;
|
|
|
var tagDisplayName = childTag;
|
|
|
var whitespaceInfo = '';
|
|
|
|
|
|
if (childTag === '#text') {
|
|
|
if (/\S/.test(childText)) {
|
|
|
tagDisplayName = 'Text nodes';
|
|
|
} else {
|
|
|
tagDisplayName = 'Whitespace text nodes';
|
|
|
whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
|
|
|
}
|
|
|
} else {
|
|
|
tagDisplayName = '<' + childTag + '>';
|
|
|
}
|
|
|
|
|
|
if (invalidParent) {
|
|
|
var info = '';
|
|
|
|
|
|
if (ancestorTag === 'table' && childTag === 'tr') {
|
|
|
info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
|
|
|
}
|
|
|
|
|
|
error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
|
|
|
} else {
|
|
|
error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var SUPPRESS_HYDRATION_WARNING$1;
|
|
|
|
|
|
{
|
|
|
SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
|
|
|
}
|
|
|
|
|
|
var SUSPENSE_START_DATA = '$';
|
|
|
var SUSPENSE_END_DATA = '/$';
|
|
|
var SUSPENSE_PENDING_START_DATA = '$?';
|
|
|
var SUSPENSE_FALLBACK_START_DATA = '$!';
|
|
|
var STYLE$1 = 'style';
|
|
|
var eventsEnabled = null;
|
|
|
var selectionInformation = null;
|
|
|
|
|
|
function shouldAutoFocusHostComponent(type, props) {
|
|
|
switch (type) {
|
|
|
case 'button':
|
|
|
case 'input':
|
|
|
case 'select':
|
|
|
case 'textarea':
|
|
|
return !!props.autoFocus;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
function getRootHostContext(rootContainerInstance) {
|
|
|
var type;
|
|
|
var namespace;
|
|
|
var nodeType = rootContainerInstance.nodeType;
|
|
|
|
|
|
switch (nodeType) {
|
|
|
case DOCUMENT_NODE:
|
|
|
case DOCUMENT_FRAGMENT_NODE:
|
|
|
{
|
|
|
type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
|
|
|
var root = rootContainerInstance.documentElement;
|
|
|
namespace = root ? root.namespaceURI : getChildNamespace(null, '');
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
|
|
|
var ownNamespace = container.namespaceURI || null;
|
|
|
type = container.tagName;
|
|
|
namespace = getChildNamespace(ownNamespace, type);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var validatedTag = type.toLowerCase();
|
|
|
var ancestorInfo = updatedAncestorInfo(null, validatedTag);
|
|
|
return {
|
|
|
namespace: namespace,
|
|
|
ancestorInfo: ancestorInfo
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
function getChildHostContext(parentHostContext, type, rootContainerInstance) {
|
|
|
{
|
|
|
var parentHostContextDev = parentHostContext;
|
|
|
var namespace = getChildNamespace(parentHostContextDev.namespace, type);
|
|
|
var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
|
|
|
return {
|
|
|
namespace: namespace,
|
|
|
ancestorInfo: ancestorInfo
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
function getPublicInstance(instance) {
|
|
|
return instance;
|
|
|
}
|
|
|
function prepareForCommit(containerInfo) {
|
|
|
eventsEnabled = isEnabled();
|
|
|
selectionInformation = getSelectionInformation();
|
|
|
setEnabled(false);
|
|
|
}
|
|
|
function resetAfterCommit(containerInfo) {
|
|
|
restoreSelection(selectionInformation);
|
|
|
setEnabled(eventsEnabled);
|
|
|
eventsEnabled = null;
|
|
|
|
|
|
selectionInformation = null;
|
|
|
}
|
|
|
function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
|
|
|
var parentNamespace;
|
|
|
|
|
|
{
|
|
|
// TODO: take namespace into account when validating.
|
|
|
var hostContextDev = hostContext;
|
|
|
validateDOMNesting(type, null, hostContextDev.ancestorInfo);
|
|
|
|
|
|
if (typeof props.children === 'string' || typeof props.children === 'number') {
|
|
|
var string = '' + props.children;
|
|
|
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
|
|
|
validateDOMNesting(null, string, ownAncestorInfo);
|
|
|
}
|
|
|
|
|
|
parentNamespace = hostContextDev.namespace;
|
|
|
}
|
|
|
|
|
|
var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
|
|
|
precacheFiberNode(internalInstanceHandle, domElement);
|
|
|
updateFiberProps(domElement, props);
|
|
|
return domElement;
|
|
|
}
|
|
|
function appendInitialChild(parentInstance, child) {
|
|
|
parentInstance.appendChild(child);
|
|
|
}
|
|
|
function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
|
|
|
setInitialProperties(domElement, type, props, rootContainerInstance);
|
|
|
return shouldAutoFocusHostComponent(type, props);
|
|
|
}
|
|
|
function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
|
|
|
{
|
|
|
var hostContextDev = hostContext;
|
|
|
|
|
|
if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
|
|
|
var string = '' + newProps.children;
|
|
|
var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
|
|
|
validateDOMNesting(null, string, ownAncestorInfo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
|
|
|
}
|
|
|
function shouldSetTextContent(type, props) {
|
|
|
return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
|
|
|
}
|
|
|
function shouldDeprioritizeSubtree(type, props) {
|
|
|
return !!props.hidden;
|
|
|
}
|
|
|
function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
|
|
|
{
|
|
|
var hostContextDev = hostContext;
|
|
|
validateDOMNesting(null, text, hostContextDev.ancestorInfo);
|
|
|
}
|
|
|
|
|
|
var textNode = createTextNode(text, rootContainerInstance);
|
|
|
precacheFiberNode(internalInstanceHandle, textNode);
|
|
|
return textNode;
|
|
|
}
|
|
|
// if a component just imports ReactDOM (e.g. for findDOMNode).
|
|
|
// Some environments might not have setTimeout or clearTimeout.
|
|
|
|
|
|
var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
|
|
|
var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
|
|
|
var noTimeout = -1; // -------------------
|
|
|
function commitMount(domElement, type, newProps, internalInstanceHandle) {
|
|
|
// Despite the naming that might imply otherwise, this method only
|
|
|
// fires if there is an `Update` effect scheduled during mounting.
|
|
|
// This happens if `finalizeInitialChildren` returns `true` (which it
|
|
|
// does to implement the `autoFocus` attribute on the client). But
|
|
|
// there are also other cases when this might happen (such as patching
|
|
|
// up text content during hydration mismatch). So we'll check this again.
|
|
|
if (shouldAutoFocusHostComponent(type, newProps)) {
|
|
|
domElement.focus();
|
|
|
}
|
|
|
}
|
|
|
function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
|
|
|
// Update the props handle so that we know which props are the ones with
|
|
|
// with current event handlers.
|
|
|
updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.
|
|
|
|
|
|
updateProperties(domElement, updatePayload, type, oldProps, newProps);
|
|
|
}
|
|
|
function resetTextContent(domElement) {
|
|
|
setTextContent(domElement, '');
|
|
|
}
|
|
|
function commitTextUpdate(textInstance, oldText, newText) {
|
|
|
textInstance.nodeValue = newText;
|
|
|
}
|
|
|
function appendChild(parentInstance, child) {
|
|
|
parentInstance.appendChild(child);
|
|
|
}
|
|
|
function appendChildToContainer(container, child) {
|
|
|
var parentNode;
|
|
|
|
|
|
if (container.nodeType === COMMENT_NODE) {
|
|
|
parentNode = container.parentNode;
|
|
|
parentNode.insertBefore(child, container);
|
|
|
} else {
|
|
|
parentNode = container;
|
|
|
parentNode.appendChild(child);
|
|
|
} // This container might be used for a portal.
|
|
|
// If something inside a portal is clicked, that click should bubble
|
|
|
// through the React tree. However, on Mobile Safari the click would
|
|
|
// never bubble through the *DOM* tree unless an ancestor with onclick
|
|
|
// event exists. So we wouldn't see it and dispatch it.
|
|
|
// This is why we ensure that non React root containers have inline onclick
|
|
|
// defined.
|
|
|
// https://github.com/facebook/react/issues/11918
|
|
|
|
|
|
|
|
|
var reactRootContainer = container._reactRootContainer;
|
|
|
|
|
|
if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
|
|
|
// TODO: This cast may not be sound for SVG, MathML or custom elements.
|
|
|
trapClickOnNonInteractiveElement(parentNode);
|
|
|
}
|
|
|
}
|
|
|
function insertBefore(parentInstance, child, beforeChild) {
|
|
|
parentInstance.insertBefore(child, beforeChild);
|
|
|
}
|
|
|
function insertInContainerBefore(container, child, beforeChild) {
|
|
|
if (container.nodeType === COMMENT_NODE) {
|
|
|
container.parentNode.insertBefore(child, beforeChild);
|
|
|
} else {
|
|
|
container.insertBefore(child, beforeChild);
|
|
|
}
|
|
|
}
|
|
|
function removeChild(parentInstance, child) {
|
|
|
parentInstance.removeChild(child);
|
|
|
}
|
|
|
function removeChildFromContainer(container, child) {
|
|
|
if (container.nodeType === COMMENT_NODE) {
|
|
|
container.parentNode.removeChild(child);
|
|
|
} else {
|
|
|
container.removeChild(child);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function hideInstance(instance) {
|
|
|
// pass host context to this method?
|
|
|
|
|
|
|
|
|
instance = instance;
|
|
|
var style = instance.style;
|
|
|
|
|
|
if (typeof style.setProperty === 'function') {
|
|
|
style.setProperty('display', 'none', 'important');
|
|
|
} else {
|
|
|
style.display = 'none';
|
|
|
}
|
|
|
}
|
|
|
function hideTextInstance(textInstance) {
|
|
|
textInstance.nodeValue = '';
|
|
|
}
|
|
|
function unhideInstance(instance, props) {
|
|
|
instance = instance;
|
|
|
var styleProp = props[STYLE$1];
|
|
|
var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
|
|
|
instance.style.display = dangerousStyleValue('display', display);
|
|
|
}
|
|
|
function unhideTextInstance(textInstance, text) {
|
|
|
textInstance.nodeValue = text;
|
|
|
} // -------------------
|
|
|
function canHydrateInstance(instance, type, props) {
|
|
|
if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
|
|
|
return null;
|
|
|
} // This has now been refined to an element node.
|
|
|
|
|
|
|
|
|
return instance;
|
|
|
}
|
|
|
function canHydrateTextInstance(instance, text) {
|
|
|
if (text === '' || instance.nodeType !== TEXT_NODE) {
|
|
|
// Empty strings are not parsed by HTML so there won't be a correct match here.
|
|
|
return null;
|
|
|
} // This has now been refined to a text node.
|
|
|
|
|
|
|
|
|
return instance;
|
|
|
}
|
|
|
function isSuspenseInstancePending(instance) {
|
|
|
return instance.data === SUSPENSE_PENDING_START_DATA;
|
|
|
}
|
|
|
function isSuspenseInstanceFallback(instance) {
|
|
|
return instance.data === SUSPENSE_FALLBACK_START_DATA;
|
|
|
}
|
|
|
|
|
|
function getNextHydratable(node) {
|
|
|
// Skip non-hydratable nodes.
|
|
|
for (; node != null; node = node.nextSibling) {
|
|
|
var nodeType = node.nodeType;
|
|
|
|
|
|
if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return node;
|
|
|
}
|
|
|
|
|
|
function getNextHydratableSibling(instance) {
|
|
|
return getNextHydratable(instance.nextSibling);
|
|
|
}
|
|
|
function getFirstHydratableChild(parentInstance) {
|
|
|
return getNextHydratable(parentInstance.firstChild);
|
|
|
}
|
|
|
function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
|
|
|
precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
|
|
|
// get attached.
|
|
|
|
|
|
updateFiberProps(instance, props);
|
|
|
var parentNamespace;
|
|
|
|
|
|
{
|
|
|
var hostContextDev = hostContext;
|
|
|
parentNamespace = hostContextDev.namespace;
|
|
|
}
|
|
|
|
|
|
return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
|
|
|
}
|
|
|
function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
|
|
|
precacheFiberNode(internalInstanceHandle, textInstance);
|
|
|
return diffHydratedText(textInstance, text);
|
|
|
}
|
|
|
function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
|
|
|
var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
|
|
|
// There might be nested nodes so we need to keep track of how
|
|
|
// deep we are and only break out when we're back on top.
|
|
|
|
|
|
var depth = 0;
|
|
|
|
|
|
while (node) {
|
|
|
if (node.nodeType === COMMENT_NODE) {
|
|
|
var data = node.data;
|
|
|
|
|
|
if (data === SUSPENSE_END_DATA) {
|
|
|
if (depth === 0) {
|
|
|
return getNextHydratableSibling(node);
|
|
|
} else {
|
|
|
depth--;
|
|
|
}
|
|
|
} else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
|
|
|
depth++;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node = node.nextSibling;
|
|
|
} // TODO: Warn, we didn't find the end comment boundary.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
} // Returns the SuspenseInstance if this node is a direct child of a
|
|
|
// SuspenseInstance. I.e. if its previous sibling is a Comment with
|
|
|
// SUSPENSE_x_START_DATA. Otherwise, null.
|
|
|
|
|
|
function getParentSuspenseInstance(targetInstance) {
|
|
|
var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
|
|
|
// There might be nested nodes so we need to keep track of how
|
|
|
// deep we are and only break out when we're back on top.
|
|
|
|
|
|
var depth = 0;
|
|
|
|
|
|
while (node) {
|
|
|
if (node.nodeType === COMMENT_NODE) {
|
|
|
var data = node.data;
|
|
|
|
|
|
if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
|
|
|
if (depth === 0) {
|
|
|
return node;
|
|
|
} else {
|
|
|
depth--;
|
|
|
}
|
|
|
} else if (data === SUSPENSE_END_DATA) {
|
|
|
depth++;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node = node.previousSibling;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
function commitHydratedContainer(container) {
|
|
|
// Retry if any event replaying was blocked on this.
|
|
|
retryIfBlockedOn(container);
|
|
|
}
|
|
|
function commitHydratedSuspenseInstance(suspenseInstance) {
|
|
|
// Retry if any event replaying was blocked on this.
|
|
|
retryIfBlockedOn(suspenseInstance);
|
|
|
}
|
|
|
function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
|
|
|
{
|
|
|
warnForUnmatchedText(textInstance, text);
|
|
|
}
|
|
|
}
|
|
|
function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
|
|
|
if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
|
|
|
warnForUnmatchedText(textInstance, text);
|
|
|
}
|
|
|
}
|
|
|
function didNotHydrateContainerInstance(parentContainer, instance) {
|
|
|
{
|
|
|
if (instance.nodeType === ELEMENT_NODE) {
|
|
|
warnForDeletedHydratableElement(parentContainer, instance);
|
|
|
} else if (instance.nodeType === COMMENT_NODE) ; else {
|
|
|
warnForDeletedHydratableText(parentContainer, instance);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
|
|
|
if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
|
|
|
if (instance.nodeType === ELEMENT_NODE) {
|
|
|
warnForDeletedHydratableElement(parentInstance, instance);
|
|
|
} else if (instance.nodeType === COMMENT_NODE) ; else {
|
|
|
warnForDeletedHydratableText(parentInstance, instance);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function didNotFindHydratableContainerInstance(parentContainer, type, props) {
|
|
|
{
|
|
|
warnForInsertedHydratedElement(parentContainer, type);
|
|
|
}
|
|
|
}
|
|
|
function didNotFindHydratableContainerTextInstance(parentContainer, text) {
|
|
|
{
|
|
|
warnForInsertedHydratedText(parentContainer, text);
|
|
|
}
|
|
|
}
|
|
|
function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
|
|
|
if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
|
|
|
warnForInsertedHydratedElement(parentInstance, type);
|
|
|
}
|
|
|
}
|
|
|
function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
|
|
|
if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
|
|
|
warnForInsertedHydratedText(parentInstance, text);
|
|
|
}
|
|
|
}
|
|
|
function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
|
|
|
if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
|
|
|
}
|
|
|
|
|
|
var randomKey = Math.random().toString(36).slice(2);
|
|
|
var internalInstanceKey = '__reactInternalInstance$' + randomKey;
|
|
|
var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
|
|
|
var internalContainerInstanceKey = '__reactContainere$' + randomKey;
|
|
|
function precacheFiberNode(hostInst, node) {
|
|
|
node[internalInstanceKey] = hostInst;
|
|
|
}
|
|
|
function markContainerAsRoot(hostRoot, node) {
|
|
|
node[internalContainerInstanceKey] = hostRoot;
|
|
|
}
|
|
|
function unmarkContainerAsRoot(node) {
|
|
|
node[internalContainerInstanceKey] = null;
|
|
|
}
|
|
|
function isContainerMarkedAsRoot(node) {
|
|
|
return !!node[internalContainerInstanceKey];
|
|
|
} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
|
|
|
// If the target node is part of a hydrated or not yet rendered subtree, then
|
|
|
// this may also return a SuspenseComponent or HostRoot to indicate that.
|
|
|
// Conceptually the HostRoot fiber is a child of the Container node. So if you
|
|
|
// pass the Container node as the targetNode, you will not actually get the
|
|
|
// HostRoot back. To get to the HostRoot, you need to pass a child of it.
|
|
|
// The same thing applies to Suspense boundaries.
|
|
|
|
|
|
function getClosestInstanceFromNode(targetNode) {
|
|
|
var targetInst = targetNode[internalInstanceKey];
|
|
|
|
|
|
if (targetInst) {
|
|
|
// Don't return HostRoot or SuspenseComponent here.
|
|
|
return targetInst;
|
|
|
} // If the direct event target isn't a React owned DOM node, we need to look
|
|
|
// to see if one of its parents is a React owned DOM node.
|
|
|
|
|
|
|
|
|
var parentNode = targetNode.parentNode;
|
|
|
|
|
|
while (parentNode) {
|
|
|
// We'll check if this is a container root that could include
|
|
|
// React nodes in the future. We need to check this first because
|
|
|
// if we're a child of a dehydrated container, we need to first
|
|
|
// find that inner container before moving on to finding the parent
|
|
|
// instance. Note that we don't check this field on the targetNode
|
|
|
// itself because the fibers are conceptually between the container
|
|
|
// node and the first child. It isn't surrounding the container node.
|
|
|
// If it's not a container, we check if it's an instance.
|
|
|
targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];
|
|
|
|
|
|
if (targetInst) {
|
|
|
// Since this wasn't the direct target of the event, we might have
|
|
|
// stepped past dehydrated DOM nodes to get here. However they could
|
|
|
// also have been non-React nodes. We need to answer which one.
|
|
|
// If we the instance doesn't have any children, then there can't be
|
|
|
// a nested suspense boundary within it. So we can use this as a fast
|
|
|
// bailout. Most of the time, when people add non-React children to
|
|
|
// the tree, it is using a ref to a child-less DOM node.
|
|
|
// Normally we'd only need to check one of the fibers because if it
|
|
|
// has ever gone from having children to deleting them or vice versa
|
|
|
// it would have deleted the dehydrated boundary nested inside already.
|
|
|
// However, since the HostRoot starts out with an alternate it might
|
|
|
// have one on the alternate so we need to check in case this was a
|
|
|
// root.
|
|
|
var alternate = targetInst.alternate;
|
|
|
|
|
|
if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
|
|
|
// Next we need to figure out if the node that skipped past is
|
|
|
// nested within a dehydrated boundary and if so, which one.
|
|
|
var suspenseInstance = getParentSuspenseInstance(targetNode);
|
|
|
|
|
|
while (suspenseInstance !== null) {
|
|
|
// We found a suspense instance. That means that we haven't
|
|
|
// hydrated it yet. Even though we leave the comments in the
|
|
|
// DOM after hydrating, and there are boundaries in the DOM
|
|
|
// that could already be hydrated, we wouldn't have found them
|
|
|
// through this pass since if the target is hydrated it would
|
|
|
// have had an internalInstanceKey on it.
|
|
|
// Let's get the fiber associated with the SuspenseComponent
|
|
|
// as the deepest instance.
|
|
|
var targetSuspenseInst = suspenseInstance[internalInstanceKey];
|
|
|
|
|
|
if (targetSuspenseInst) {
|
|
|
return targetSuspenseInst;
|
|
|
} // If we don't find a Fiber on the comment, it might be because
|
|
|
// we haven't gotten to hydrate it yet. There might still be a
|
|
|
// parent boundary that hasn't above this one so we need to find
|
|
|
// the outer most that is known.
|
|
|
|
|
|
|
|
|
suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
|
|
|
// host component also hasn't hydrated yet. We can return it
|
|
|
// below since it will bail out on the isMounted check later.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return targetInst;
|
|
|
}
|
|
|
|
|
|
targetNode = parentNode;
|
|
|
parentNode = targetNode.parentNode;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
|
|
|
* instance, or null if the node was not rendered by this React.
|
|
|
*/
|
|
|
|
|
|
function getInstanceFromNode$1(node) {
|
|
|
var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];
|
|
|
|
|
|
if (inst) {
|
|
|
if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
|
|
|
return inst;
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
|
|
|
* DOM node.
|
|
|
*/
|
|
|
|
|
|
function getNodeFromInstance$1(inst) {
|
|
|
if (inst.tag === HostComponent || inst.tag === HostText) {
|
|
|
// In Fiber this, is just the state node right now. We assume it will be
|
|
|
// a host component or host text.
|
|
|
return inst.stateNode;
|
|
|
} // Without this first invariant, passing a non-DOM-component triggers the next
|
|
|
// invariant for a missing parent, which is super confusing.
|
|
|
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "getNodeFromInstance: Invalid argument." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function getFiberCurrentPropsFromNode$1(node) {
|
|
|
return node[internalEventHandlersKey] || null;
|
|
|
}
|
|
|
function updateFiberProps(node, props) {
|
|
|
node[internalEventHandlersKey] = props;
|
|
|
}
|
|
|
|
|
|
function getParent(inst) {
|
|
|
do {
|
|
|
inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
|
|
|
// That is depending on if we want nested subtrees (layers) to bubble
|
|
|
// events to their parent. We could also go through parentNode on the
|
|
|
// host node but that wouldn't work for React Native and doesn't let us
|
|
|
// do the portal feature.
|
|
|
} while (inst && inst.tag !== HostComponent);
|
|
|
|
|
|
if (inst) {
|
|
|
return inst;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Return the lowest common ancestor of A and B, or null if they are in
|
|
|
* different trees.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getLowestCommonAncestor(instA, instB) {
|
|
|
var depthA = 0;
|
|
|
|
|
|
for (var tempA = instA; tempA; tempA = getParent(tempA)) {
|
|
|
depthA++;
|
|
|
}
|
|
|
|
|
|
var depthB = 0;
|
|
|
|
|
|
for (var tempB = instB; tempB; tempB = getParent(tempB)) {
|
|
|
depthB++;
|
|
|
} // If A is deeper, crawl up.
|
|
|
|
|
|
|
|
|
while (depthA - depthB > 0) {
|
|
|
instA = getParent(instA);
|
|
|
depthA--;
|
|
|
} // If B is deeper, crawl up.
|
|
|
|
|
|
|
|
|
while (depthB - depthA > 0) {
|
|
|
instB = getParent(instB);
|
|
|
depthB--;
|
|
|
} // Walk in lockstep until we find a match.
|
|
|
|
|
|
|
|
|
var depth = depthA;
|
|
|
|
|
|
while (depth--) {
|
|
|
if (instA === instB || instA === instB.alternate) {
|
|
|
return instA;
|
|
|
}
|
|
|
|
|
|
instA = getParent(instA);
|
|
|
instB = getParent(instB);
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Simulates the traversal of a two-phase, capture/bubble event dispatch.
|
|
|
*/
|
|
|
|
|
|
function traverseTwoPhase(inst, fn, arg) {
|
|
|
var path = [];
|
|
|
|
|
|
while (inst) {
|
|
|
path.push(inst);
|
|
|
inst = getParent(inst);
|
|
|
}
|
|
|
|
|
|
var i;
|
|
|
|
|
|
for (i = path.length; i-- > 0;) {
|
|
|
fn(path[i], 'captured', arg);
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < path.length; i++) {
|
|
|
fn(path[i], 'bubbled', arg);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
|
|
|
* should would receive a `mouseEnter` or `mouseLeave` event.
|
|
|
*
|
|
|
* Does not invoke the callback on the nearest common ancestor because nothing
|
|
|
* "entered" or "left" that element.
|
|
|
*/
|
|
|
|
|
|
function traverseEnterLeave(from, to, fn, argFrom, argTo) {
|
|
|
var common = from && to ? getLowestCommonAncestor(from, to) : null;
|
|
|
var pathFrom = [];
|
|
|
|
|
|
while (true) {
|
|
|
if (!from) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (from === common) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var alternate = from.alternate;
|
|
|
|
|
|
if (alternate !== null && alternate === common) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
pathFrom.push(from);
|
|
|
from = getParent(from);
|
|
|
}
|
|
|
|
|
|
var pathTo = [];
|
|
|
|
|
|
while (true) {
|
|
|
if (!to) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (to === common) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var _alternate = to.alternate;
|
|
|
|
|
|
if (_alternate !== null && _alternate === common) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
pathTo.push(to);
|
|
|
to = getParent(to);
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < pathFrom.length; i++) {
|
|
|
fn(pathFrom[i], 'bubbled', argFrom);
|
|
|
}
|
|
|
|
|
|
for (var _i = pathTo.length; _i-- > 0;) {
|
|
|
fn(pathTo[_i], 'captured', argTo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isInteractive(tag) {
|
|
|
return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
|
|
|
}
|
|
|
|
|
|
function shouldPreventMouseEvent(name, type, props) {
|
|
|
switch (name) {
|
|
|
case 'onClick':
|
|
|
case 'onClickCapture':
|
|
|
case 'onDoubleClick':
|
|
|
case 'onDoubleClickCapture':
|
|
|
case 'onMouseDown':
|
|
|
case 'onMouseDownCapture':
|
|
|
case 'onMouseMove':
|
|
|
case 'onMouseMoveCapture':
|
|
|
case 'onMouseUp':
|
|
|
case 'onMouseUpCapture':
|
|
|
case 'onMouseEnter':
|
|
|
return !!(props.disabled && isInteractive(type));
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @param {object} inst The instance, which is the source of events.
|
|
|
* @param {string} registrationName Name of listener (e.g. `onClick`).
|
|
|
* @return {?function} The stored callback.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getListener(inst, registrationName) {
|
|
|
var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
|
|
|
// live here; needs to be moved to a better place soon
|
|
|
|
|
|
var stateNode = inst.stateNode;
|
|
|
|
|
|
if (!stateNode) {
|
|
|
// Work in progress (ex: onload events in incremental mode).
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var props = getFiberCurrentPropsFromNode(stateNode);
|
|
|
|
|
|
if (!props) {
|
|
|
// Work in progress.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
listener = props[registrationName];
|
|
|
|
|
|
if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (!(!listener || typeof listener === 'function')) {
|
|
|
{
|
|
|
throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return listener;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Some event types have a notion of different registration names for different
|
|
|
* "phases" of propagation. This finds listeners by a given phase.
|
|
|
*/
|
|
|
function listenerAtPhase(inst, event, propagationPhase) {
|
|
|
var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
|
|
|
return getListener(inst, registrationName);
|
|
|
}
|
|
|
/**
|
|
|
* A small set of propagation patterns, each of which will accept a small amount
|
|
|
* of information, and generate a set of "dispatch ready event objects" - which
|
|
|
* are sets of events that have already been annotated with a set of dispatched
|
|
|
* listener functions/ids. The API is designed this way to discourage these
|
|
|
* propagation strategies from actually executing the dispatches, since we
|
|
|
* always want to collect the entire set of dispatches before executing even a
|
|
|
* single one.
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Tags a `SyntheticEvent` with dispatched listeners. Creating this function
|
|
|
* here, allows us to not have to bind or create functions for each event.
|
|
|
* Mutating the event's members allows us to not have to create a wrapping
|
|
|
* "dispatch" object that pairs the event with the listener.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function accumulateDirectionalDispatches(inst, phase, event) {
|
|
|
{
|
|
|
if (!inst) {
|
|
|
error('Dispatching inst must not be null');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var listener = listenerAtPhase(inst, event, phase);
|
|
|
|
|
|
if (listener) {
|
|
|
event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
|
|
|
event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Collect dispatches (must be entirely collected before dispatching - see unit
|
|
|
* tests). Lazily allocate the array to conserve memory. We must loop through
|
|
|
* each event and perform the traversal for each one. We cannot perform a
|
|
|
* single traversal for the entire collection of events because each event may
|
|
|
* have a different target.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function accumulateTwoPhaseDispatchesSingle(event) {
|
|
|
if (event && event.dispatchConfig.phasedRegistrationNames) {
|
|
|
traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Accumulates without regard to direction, does not look for phased
|
|
|
* registration names. Same as `accumulateDirectDispatchesSingle` but without
|
|
|
* requiring that the `dispatchMarker` be the same as the dispatched ID.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function accumulateDispatches(inst, ignoredDirection, event) {
|
|
|
if (inst && event && event.dispatchConfig.registrationName) {
|
|
|
var registrationName = event.dispatchConfig.registrationName;
|
|
|
var listener = getListener(inst, registrationName);
|
|
|
|
|
|
if (listener) {
|
|
|
event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
|
|
|
event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Accumulates dispatches on an `SyntheticEvent`, but only for the
|
|
|
* `dispatchMarker`.
|
|
|
* @param {SyntheticEvent} event
|
|
|
*/
|
|
|
|
|
|
|
|
|
function accumulateDirectDispatchesSingle(event) {
|
|
|
if (event && event.dispatchConfig.registrationName) {
|
|
|
accumulateDispatches(event._targetInst, null, event);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function accumulateTwoPhaseDispatches(events) {
|
|
|
forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
|
|
|
}
|
|
|
function accumulateEnterLeaveDispatches(leave, enter, from, to) {
|
|
|
traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
|
|
|
}
|
|
|
function accumulateDirectDispatches(events) {
|
|
|
forEachAccumulated(events, accumulateDirectDispatchesSingle);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* These variables store information about text content of a target node,
|
|
|
* allowing comparison of content before and after a given event.
|
|
|
*
|
|
|
* Identify the node where selection currently begins, then observe
|
|
|
* both its text content and its current position in the DOM. Since the
|
|
|
* browser may natively replace the target node during composition, we can
|
|
|
* use its position to find its replacement.
|
|
|
*
|
|
|
*
|
|
|
*/
|
|
|
var root = null;
|
|
|
var startText = null;
|
|
|
var fallbackText = null;
|
|
|
function initialize(nativeEventTarget) {
|
|
|
root = nativeEventTarget;
|
|
|
startText = getText();
|
|
|
return true;
|
|
|
}
|
|
|
function reset() {
|
|
|
root = null;
|
|
|
startText = null;
|
|
|
fallbackText = null;
|
|
|
}
|
|
|
function getData() {
|
|
|
if (fallbackText) {
|
|
|
return fallbackText;
|
|
|
}
|
|
|
|
|
|
var start;
|
|
|
var startValue = startText;
|
|
|
var startLength = startValue.length;
|
|
|
var end;
|
|
|
var endValue = getText();
|
|
|
var endLength = endValue.length;
|
|
|
|
|
|
for (start = 0; start < startLength; start++) {
|
|
|
if (startValue[start] !== endValue[start]) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var minEnd = startLength - start;
|
|
|
|
|
|
for (end = 1; end <= minEnd; end++) {
|
|
|
if (startValue[startLength - end] !== endValue[endLength - end]) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var sliceTail = end > 1 ? 1 - end : undefined;
|
|
|
fallbackText = endValue.slice(start, sliceTail);
|
|
|
return fallbackText;
|
|
|
}
|
|
|
function getText() {
|
|
|
if ('value' in root) {
|
|
|
return root.value;
|
|
|
}
|
|
|
|
|
|
return root.textContent;
|
|
|
}
|
|
|
|
|
|
var EVENT_POOL_SIZE = 10;
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var EventInterface = {
|
|
|
type: null,
|
|
|
target: null,
|
|
|
// currentTarget is set when dispatching; no use in copying it here
|
|
|
currentTarget: function () {
|
|
|
return null;
|
|
|
},
|
|
|
eventPhase: null,
|
|
|
bubbles: null,
|
|
|
cancelable: null,
|
|
|
timeStamp: function (event) {
|
|
|
return event.timeStamp || Date.now();
|
|
|
},
|
|
|
defaultPrevented: null,
|
|
|
isTrusted: null
|
|
|
};
|
|
|
|
|
|
function functionThatReturnsTrue() {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function functionThatReturnsFalse() {
|
|
|
return false;
|
|
|
}
|
|
|
/**
|
|
|
* Synthetic events are dispatched by event plugins, typically in response to a
|
|
|
* top-level event delegation handler.
|
|
|
*
|
|
|
* These systems should generally use pooling to reduce the frequency of garbage
|
|
|
* collection. The system should check `isPersistent` to determine whether the
|
|
|
* event should be released into the pool after being dispatched. Users that
|
|
|
* need a persisted event should invoke `persist`.
|
|
|
*
|
|
|
* Synthetic events (and subclasses) implement the DOM Level 3 Events API by
|
|
|
* normalizing browser quirks. Subclasses do not necessarily have to implement a
|
|
|
* DOM interface; custom application-specific events can also subclass this.
|
|
|
*
|
|
|
* @param {object} dispatchConfig Configuration used to dispatch this event.
|
|
|
* @param {*} targetInst Marker identifying the event target.
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @param {DOMEventTarget} nativeEventTarget Target node.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
|
|
|
{
|
|
|
// these have a getter/setter for warnings
|
|
|
delete this.nativeEvent;
|
|
|
delete this.preventDefault;
|
|
|
delete this.stopPropagation;
|
|
|
delete this.isDefaultPrevented;
|
|
|
delete this.isPropagationStopped;
|
|
|
}
|
|
|
|
|
|
this.dispatchConfig = dispatchConfig;
|
|
|
this._targetInst = targetInst;
|
|
|
this.nativeEvent = nativeEvent;
|
|
|
var Interface = this.constructor.Interface;
|
|
|
|
|
|
for (var propName in Interface) {
|
|
|
if (!Interface.hasOwnProperty(propName)) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
delete this[propName]; // this has a getter/setter for warnings
|
|
|
}
|
|
|
|
|
|
var normalize = Interface[propName];
|
|
|
|
|
|
if (normalize) {
|
|
|
this[propName] = normalize(nativeEvent);
|
|
|
} else {
|
|
|
if (propName === 'target') {
|
|
|
this.target = nativeEventTarget;
|
|
|
} else {
|
|
|
this[propName] = nativeEvent[propName];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
|
|
|
|
|
|
if (defaultPrevented) {
|
|
|
this.isDefaultPrevented = functionThatReturnsTrue;
|
|
|
} else {
|
|
|
this.isDefaultPrevented = functionThatReturnsFalse;
|
|
|
}
|
|
|
|
|
|
this.isPropagationStopped = functionThatReturnsFalse;
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
_assign(SyntheticEvent.prototype, {
|
|
|
preventDefault: function () {
|
|
|
this.defaultPrevented = true;
|
|
|
var event = this.nativeEvent;
|
|
|
|
|
|
if (!event) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (event.preventDefault) {
|
|
|
event.preventDefault();
|
|
|
} else if (typeof event.returnValue !== 'unknown') {
|
|
|
event.returnValue = false;
|
|
|
}
|
|
|
|
|
|
this.isDefaultPrevented = functionThatReturnsTrue;
|
|
|
},
|
|
|
stopPropagation: function () {
|
|
|
var event = this.nativeEvent;
|
|
|
|
|
|
if (!event) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (event.stopPropagation) {
|
|
|
event.stopPropagation();
|
|
|
} else if (typeof event.cancelBubble !== 'unknown') {
|
|
|
// The ChangeEventPlugin registers a "propertychange" event for
|
|
|
// IE. This event does not support bubbling or cancelling, and
|
|
|
// any references to cancelBubble throw "Member not found". A
|
|
|
// typeof check of "unknown" circumvents this issue (and is also
|
|
|
// IE specific).
|
|
|
event.cancelBubble = true;
|
|
|
}
|
|
|
|
|
|
this.isPropagationStopped = functionThatReturnsTrue;
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* We release all dispatched `SyntheticEvent`s after each event loop, adding
|
|
|
* them back into the pool. This allows a way to hold onto a reference that
|
|
|
* won't be added back into the pool.
|
|
|
*/
|
|
|
persist: function () {
|
|
|
this.isPersistent = functionThatReturnsTrue;
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* Checks if this event should be released back into the pool.
|
|
|
*
|
|
|
* @return {boolean} True if this should not be released, false otherwise.
|
|
|
*/
|
|
|
isPersistent: functionThatReturnsFalse,
|
|
|
|
|
|
/**
|
|
|
* `PooledClass` looks for `destructor` on each instance it releases.
|
|
|
*/
|
|
|
destructor: function () {
|
|
|
var Interface = this.constructor.Interface;
|
|
|
|
|
|
for (var propName in Interface) {
|
|
|
{
|
|
|
Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
this.dispatchConfig = null;
|
|
|
this._targetInst = null;
|
|
|
this.nativeEvent = null;
|
|
|
this.isDefaultPrevented = functionThatReturnsFalse;
|
|
|
this.isPropagationStopped = functionThatReturnsFalse;
|
|
|
this._dispatchListeners = null;
|
|
|
this._dispatchInstances = null;
|
|
|
|
|
|
{
|
|
|
Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
|
|
|
Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
|
|
|
Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
|
|
|
Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
|
|
|
Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
SyntheticEvent.Interface = EventInterface;
|
|
|
/**
|
|
|
* Helper to reduce boilerplate when creating subclasses.
|
|
|
*/
|
|
|
|
|
|
SyntheticEvent.extend = function (Interface) {
|
|
|
var Super = this;
|
|
|
|
|
|
var E = function () {};
|
|
|
|
|
|
E.prototype = Super.prototype;
|
|
|
var prototype = new E();
|
|
|
|
|
|
function Class() {
|
|
|
return Super.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
_assign(prototype, Class.prototype);
|
|
|
|
|
|
Class.prototype = prototype;
|
|
|
Class.prototype.constructor = Class;
|
|
|
Class.Interface = _assign({}, Super.Interface, Interface);
|
|
|
Class.extend = Super.extend;
|
|
|
addEventPoolingTo(Class);
|
|
|
return Class;
|
|
|
};
|
|
|
|
|
|
addEventPoolingTo(SyntheticEvent);
|
|
|
/**
|
|
|
* Helper to nullify syntheticEvent instance properties when destructing
|
|
|
*
|
|
|
* @param {String} propName
|
|
|
* @param {?object} getVal
|
|
|
* @return {object} defineProperty object
|
|
|
*/
|
|
|
|
|
|
function getPooledWarningPropertyDefinition(propName, getVal) {
|
|
|
var isFunction = typeof getVal === 'function';
|
|
|
return {
|
|
|
configurable: true,
|
|
|
set: set,
|
|
|
get: get
|
|
|
};
|
|
|
|
|
|
function set(val) {
|
|
|
var action = isFunction ? 'setting the method' : 'setting the property';
|
|
|
warn(action, 'This is effectively a no-op');
|
|
|
return val;
|
|
|
}
|
|
|
|
|
|
function get() {
|
|
|
var action = isFunction ? 'accessing the method' : 'accessing the property';
|
|
|
var result = isFunction ? 'This is a no-op function' : 'This is set to null';
|
|
|
warn(action, result);
|
|
|
return getVal;
|
|
|
}
|
|
|
|
|
|
function warn(action, result) {
|
|
|
{
|
|
|
error("This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
|
|
|
var EventConstructor = this;
|
|
|
|
|
|
if (EventConstructor.eventPool.length) {
|
|
|
var instance = EventConstructor.eventPool.pop();
|
|
|
EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
|
|
|
return instance;
|
|
|
}
|
|
|
|
|
|
return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
|
|
|
}
|
|
|
|
|
|
function releasePooledEvent(event) {
|
|
|
var EventConstructor = this;
|
|
|
|
|
|
if (!(event instanceof EventConstructor)) {
|
|
|
{
|
|
|
throw Error( "Trying to release an event instance into a pool of a different type." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
event.destructor();
|
|
|
|
|
|
if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
|
|
|
EventConstructor.eventPool.push(event);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function addEventPoolingTo(EventConstructor) {
|
|
|
EventConstructor.eventPool = [];
|
|
|
EventConstructor.getPooled = getPooledEvent;
|
|
|
EventConstructor.release = releasePooledEvent;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
|
|
|
*/
|
|
|
|
|
|
var SyntheticCompositionEvent = SyntheticEvent.extend({
|
|
|
data: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
|
|
|
* /#events-inputevents
|
|
|
*/
|
|
|
|
|
|
var SyntheticInputEvent = SyntheticEvent.extend({
|
|
|
data: null
|
|
|
});
|
|
|
|
|
|
var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
|
|
|
|
|
|
var START_KEYCODE = 229;
|
|
|
var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
|
|
|
var documentMode = null;
|
|
|
|
|
|
if (canUseDOM && 'documentMode' in document) {
|
|
|
documentMode = document.documentMode;
|
|
|
} // Webkit offers a very useful `textInput` event that can be used to
|
|
|
// directly represent `beforeInput`. The IE `textinput` event is not as
|
|
|
// useful, so we don't use it.
|
|
|
|
|
|
|
|
|
var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
|
|
|
// by the native compositionend event may be incorrect. Japanese ideographic
|
|
|
// spaces, for instance (\u3000) are not recorded correctly.
|
|
|
|
|
|
var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
|
|
|
var SPACEBAR_CODE = 32;
|
|
|
var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.
|
|
|
|
|
|
var eventTypes = {
|
|
|
beforeInput: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onBeforeInput',
|
|
|
captured: 'onBeforeInputCapture'
|
|
|
},
|
|
|
dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
|
|
|
},
|
|
|
compositionEnd: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onCompositionEnd',
|
|
|
captured: 'onCompositionEndCapture'
|
|
|
},
|
|
|
dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
|
|
|
},
|
|
|
compositionStart: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onCompositionStart',
|
|
|
captured: 'onCompositionStartCapture'
|
|
|
},
|
|
|
dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
|
|
|
},
|
|
|
compositionUpdate: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onCompositionUpdate',
|
|
|
captured: 'onCompositionUpdateCapture'
|
|
|
},
|
|
|
dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
|
|
|
}
|
|
|
}; // Track whether we've ever handled a keypress on the space key.
|
|
|
|
|
|
var hasSpaceKeypress = false;
|
|
|
/**
|
|
|
* Return whether a native keypress event is assumed to be a command.
|
|
|
* This is required because Firefox fires `keypress` events for key commands
|
|
|
* (cut, copy, select-all, etc.) even though no character is inserted.
|
|
|
*/
|
|
|
|
|
|
function isKeypressCommand(nativeEvent) {
|
|
|
return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
|
|
|
!(nativeEvent.ctrlKey && nativeEvent.altKey);
|
|
|
}
|
|
|
/**
|
|
|
* Translate native top level events into event types.
|
|
|
*
|
|
|
* @param {string} topLevelType
|
|
|
* @return {object}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getCompositionEventType(topLevelType) {
|
|
|
switch (topLevelType) {
|
|
|
case TOP_COMPOSITION_START:
|
|
|
return eventTypes.compositionStart;
|
|
|
|
|
|
case TOP_COMPOSITION_END:
|
|
|
return eventTypes.compositionEnd;
|
|
|
|
|
|
case TOP_COMPOSITION_UPDATE:
|
|
|
return eventTypes.compositionUpdate;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Does our fallback best-guess model think this event signifies that
|
|
|
* composition has begun?
|
|
|
*
|
|
|
* @param {string} topLevelType
|
|
|
* @param {object} nativeEvent
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function isFallbackCompositionStart(topLevelType, nativeEvent) {
|
|
|
return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
|
|
|
}
|
|
|
/**
|
|
|
* Does our fallback mode think that this event is the end of composition?
|
|
|
*
|
|
|
* @param {string} topLevelType
|
|
|
* @param {object} nativeEvent
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function isFallbackCompositionEnd(topLevelType, nativeEvent) {
|
|
|
switch (topLevelType) {
|
|
|
case TOP_KEY_UP:
|
|
|
// Command keys insert or clear IME input.
|
|
|
return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
|
|
|
|
|
|
case TOP_KEY_DOWN:
|
|
|
// Expect IME keyCode on each keydown. If we get any other
|
|
|
// code we must have exited earlier.
|
|
|
return nativeEvent.keyCode !== START_KEYCODE;
|
|
|
|
|
|
case TOP_KEY_PRESS:
|
|
|
case TOP_MOUSE_DOWN:
|
|
|
case TOP_BLUR:
|
|
|
// Events are not possible without cancelling IME.
|
|
|
return true;
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Google Input Tools provides composition data via a CustomEvent,
|
|
|
* with the `data` property populated in the `detail` object. If this
|
|
|
* is available on the event object, use it. If not, this is a plain
|
|
|
* composition event and we have nothing special to extract.
|
|
|
*
|
|
|
* @param {object} nativeEvent
|
|
|
* @return {?string}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getDataFromCustomEvent(nativeEvent) {
|
|
|
var detail = nativeEvent.detail;
|
|
|
|
|
|
if (typeof detail === 'object' && 'data' in detail) {
|
|
|
return detail.data;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Check if a composition event was triggered by Korean IME.
|
|
|
* Our fallback mode does not work well with IE's Korean IME,
|
|
|
* so just use native composition events when Korean IME is used.
|
|
|
* Although CompositionEvent.locale property is deprecated,
|
|
|
* it is available in IE, where our fallback mode is enabled.
|
|
|
*
|
|
|
* @param {object} nativeEvent
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function isUsingKoreanIME(nativeEvent) {
|
|
|
return nativeEvent.locale === 'ko';
|
|
|
} // Track the current IME composition status, if any.
|
|
|
|
|
|
|
|
|
var isComposing = false;
|
|
|
/**
|
|
|
* @return {?object} A SyntheticCompositionEvent.
|
|
|
*/
|
|
|
|
|
|
function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
|
|
var eventType;
|
|
|
var fallbackData;
|
|
|
|
|
|
if (canUseCompositionEvent) {
|
|
|
eventType = getCompositionEventType(topLevelType);
|
|
|
} else if (!isComposing) {
|
|
|
if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
|
|
|
eventType = eventTypes.compositionStart;
|
|
|
}
|
|
|
} else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
|
|
|
eventType = eventTypes.compositionEnd;
|
|
|
}
|
|
|
|
|
|
if (!eventType) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
|
|
|
// The current composition is stored statically and must not be
|
|
|
// overwritten while composition continues.
|
|
|
if (!isComposing && eventType === eventTypes.compositionStart) {
|
|
|
isComposing = initialize(nativeEventTarget);
|
|
|
} else if (eventType === eventTypes.compositionEnd) {
|
|
|
if (isComposing) {
|
|
|
fallbackData = getData();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
|
|
|
|
|
|
if (fallbackData) {
|
|
|
// Inject data generated from fallback path into the synthetic event.
|
|
|
// This matches the property of native CompositionEventInterface.
|
|
|
event.data = fallbackData;
|
|
|
} else {
|
|
|
var customData = getDataFromCustomEvent(nativeEvent);
|
|
|
|
|
|
if (customData !== null) {
|
|
|
event.data = customData;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
accumulateTwoPhaseDispatches(event);
|
|
|
return event;
|
|
|
}
|
|
|
/**
|
|
|
* @param {TopLevelType} topLevelType Number from `TopLevelType`.
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @return {?string} The string corresponding to this `beforeInput` event.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getNativeBeforeInputChars(topLevelType, nativeEvent) {
|
|
|
switch (topLevelType) {
|
|
|
case TOP_COMPOSITION_END:
|
|
|
return getDataFromCustomEvent(nativeEvent);
|
|
|
|
|
|
case TOP_KEY_PRESS:
|
|
|
/**
|
|
|
* If native `textInput` events are available, our goal is to make
|
|
|
* use of them. However, there is a special case: the spacebar key.
|
|
|
* In Webkit, preventing default on a spacebar `textInput` event
|
|
|
* cancels character insertion, but it *also* causes the browser
|
|
|
* to fall back to its default spacebar behavior of scrolling the
|
|
|
* page.
|
|
|
*
|
|
|
* Tracking at:
|
|
|
* https://code.google.com/p/chromium/issues/detail?id=355103
|
|
|
*
|
|
|
* To avoid this issue, use the keypress event as if no `textInput`
|
|
|
* event is available.
|
|
|
*/
|
|
|
var which = nativeEvent.which;
|
|
|
|
|
|
if (which !== SPACEBAR_CODE) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
hasSpaceKeypress = true;
|
|
|
return SPACEBAR_CHAR;
|
|
|
|
|
|
case TOP_TEXT_INPUT:
|
|
|
// Record the characters to be added to the DOM.
|
|
|
var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
|
|
|
// it at the keypress level and bail immediately. Android Chrome
|
|
|
// doesn't give us keycodes, so we need to ignore it.
|
|
|
|
|
|
if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return chars;
|
|
|
|
|
|
default:
|
|
|
// For other native event types, do nothing.
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* For browsers that do not provide the `textInput` event, extract the
|
|
|
* appropriate string to use for SyntheticInputEvent.
|
|
|
*
|
|
|
* @param {number} topLevelType Number from `TopLevelEventTypes`.
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @return {?string} The fallback string for this `beforeInput` event.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
|
|
|
// If we are currently composing (IME) and using a fallback to do so,
|
|
|
// try to extract the composed characters from the fallback object.
|
|
|
// If composition event is available, we extract a string only at
|
|
|
// compositionevent, otherwise extract it at fallback events.
|
|
|
if (isComposing) {
|
|
|
if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
|
|
|
var chars = getData();
|
|
|
reset();
|
|
|
isComposing = false;
|
|
|
return chars;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
switch (topLevelType) {
|
|
|
case TOP_PASTE:
|
|
|
// If a paste event occurs after a keypress, throw out the input
|
|
|
// chars. Paste events should not lead to BeforeInput events.
|
|
|
return null;
|
|
|
|
|
|
case TOP_KEY_PRESS:
|
|
|
/**
|
|
|
* As of v27, Firefox may fire keypress events even when no character
|
|
|
* will be inserted. A few possibilities:
|
|
|
*
|
|
|
* - `which` is `0`. Arrow keys, Esc key, etc.
|
|
|
*
|
|
|
* - `which` is the pressed key code, but no char is available.
|
|
|
* Ex: 'AltGr + d` in Polish. There is no modified character for
|
|
|
* this key combination and no character is inserted into the
|
|
|
* document, but FF fires the keypress for char code `100` anyway.
|
|
|
* No `input` event will occur.
|
|
|
*
|
|
|
* - `which` is the pressed key code, but a command combination is
|
|
|
* being used. Ex: `Cmd+C`. No character is inserted, and no
|
|
|
* `input` event will occur.
|
|
|
*/
|
|
|
if (!isKeypressCommand(nativeEvent)) {
|
|
|
// IE fires the `keypress` event when a user types an emoji via
|
|
|
// Touch keyboard of Windows. In such a case, the `char` property
|
|
|
// holds an emoji character like `\uD83D\uDE0A`. Because its length
|
|
|
// is 2, the property `which` does not represent an emoji correctly.
|
|
|
// In such a case, we directly return the `char` property instead of
|
|
|
// using `which`.
|
|
|
if (nativeEvent.char && nativeEvent.char.length > 1) {
|
|
|
return nativeEvent.char;
|
|
|
} else if (nativeEvent.which) {
|
|
|
return String.fromCharCode(nativeEvent.which);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
|
|
|
case TOP_COMPOSITION_END:
|
|
|
return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Extract a SyntheticInputEvent for `beforeInput`, based on either native
|
|
|
* `textInput` or fallback behavior.
|
|
|
*
|
|
|
* @return {?object} A SyntheticInputEvent.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
|
|
var chars;
|
|
|
|
|
|
if (canUseTextInputEvent) {
|
|
|
chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
|
|
|
} else {
|
|
|
chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
|
|
|
} // If no characters are being inserted, no BeforeInput event should
|
|
|
// be fired.
|
|
|
|
|
|
|
|
|
if (!chars) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
|
|
|
event.data = chars;
|
|
|
accumulateTwoPhaseDispatches(event);
|
|
|
return event;
|
|
|
}
|
|
|
/**
|
|
|
* Create an `onBeforeInput` event to match
|
|
|
* http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
|
|
|
*
|
|
|
* This event plugin is based on the native `textInput` event
|
|
|
* available in Chrome, Safari, Opera, and IE. This event fires after
|
|
|
* `onKeyPress` and `onCompositionEnd`, but before `onInput`.
|
|
|
*
|
|
|
* `beforeInput` is spec'd but not implemented in any browsers, and
|
|
|
* the `input` event does not provide any useful information about what has
|
|
|
* actually been added, contrary to the spec. Thus, `textInput` is the best
|
|
|
* available event to identify the characters that have actually been inserted
|
|
|
* into the target node.
|
|
|
*
|
|
|
* This plugin is also responsible for emitting `composition` events, thus
|
|
|
* allowing us to share composition fallback code for both `beforeInput` and
|
|
|
* `composition` event types.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var BeforeInputEventPlugin = {
|
|
|
eventTypes: eventTypes,
|
|
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
|
|
|
var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
|
|
|
|
|
|
if (composition === null) {
|
|
|
return beforeInput;
|
|
|
}
|
|
|
|
|
|
if (beforeInput === null) {
|
|
|
return composition;
|
|
|
}
|
|
|
|
|
|
return [composition, beforeInput];
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
|
|
|
*/
|
|
|
var supportedInputTypes = {
|
|
|
color: true,
|
|
|
date: true,
|
|
|
datetime: true,
|
|
|
'datetime-local': true,
|
|
|
email: true,
|
|
|
month: true,
|
|
|
number: true,
|
|
|
password: true,
|
|
|
range: true,
|
|
|
search: true,
|
|
|
tel: true,
|
|
|
text: true,
|
|
|
time: true,
|
|
|
url: true,
|
|
|
week: true
|
|
|
};
|
|
|
|
|
|
function isTextInputElement(elem) {
|
|
|
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
|
|
|
|
|
if (nodeName === 'input') {
|
|
|
return !!supportedInputTypes[elem.type];
|
|
|
}
|
|
|
|
|
|
if (nodeName === 'textarea') {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var eventTypes$1 = {
|
|
|
change: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onChange',
|
|
|
captured: 'onChangeCapture'
|
|
|
},
|
|
|
dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
|
|
|
var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
|
|
|
event.type = 'change'; // Flag this event loop as needing state restore.
|
|
|
|
|
|
enqueueStateRestore(target);
|
|
|
accumulateTwoPhaseDispatches(event);
|
|
|
return event;
|
|
|
}
|
|
|
/**
|
|
|
* For IE shims
|
|
|
*/
|
|
|
|
|
|
|
|
|
var activeElement = null;
|
|
|
var activeElementInst = null;
|
|
|
/**
|
|
|
* SECTION: handle `change` event
|
|
|
*/
|
|
|
|
|
|
function shouldUseChangeEvent(elem) {
|
|
|
var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
|
|
|
return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
|
|
|
}
|
|
|
|
|
|
function manualDispatchChangeEvent(nativeEvent) {
|
|
|
var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
|
|
|
// other events and have it go through ReactBrowserEventEmitter. Since it
|
|
|
// doesn't, we manually listen for the events and so we have to enqueue and
|
|
|
// process the abstract event manually.
|
|
|
//
|
|
|
// Batching is necessary here in order to ensure that all event handlers run
|
|
|
// before the next rerender (including event handlers attached to ancestor
|
|
|
// elements instead of directly on the input). Without this, controlled
|
|
|
// components don't work properly in conjunction with event bubbling because
|
|
|
// the component is rerendered and the value reverted before all the event
|
|
|
// handlers can run. See https://github.com/facebook/react/issues/708.
|
|
|
|
|
|
batchedUpdates(runEventInBatch, event);
|
|
|
}
|
|
|
|
|
|
function runEventInBatch(event) {
|
|
|
runEventsInBatch(event);
|
|
|
}
|
|
|
|
|
|
function getInstIfValueChanged(targetInst) {
|
|
|
var targetNode = getNodeFromInstance$1(targetInst);
|
|
|
|
|
|
if (updateValueIfChanged(targetNode)) {
|
|
|
return targetInst;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getTargetInstForChangeEvent(topLevelType, targetInst) {
|
|
|
if (topLevelType === TOP_CHANGE) {
|
|
|
return targetInst;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* SECTION: handle `input` event
|
|
|
*/
|
|
|
|
|
|
|
|
|
var isInputEventSupported = false;
|
|
|
|
|
|
if (canUseDOM) {
|
|
|
// IE9 claims to support the input event but fails to trigger it when
|
|
|
// deleting text, so we ignore its input events.
|
|
|
isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
|
|
|
}
|
|
|
/**
|
|
|
* (For IE <=9) Starts tracking propertychange events on the passed-in element
|
|
|
* and override the value property so that we can distinguish user events from
|
|
|
* value changes in JS.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function startWatchingForValueChange(target, targetInst) {
|
|
|
activeElement = target;
|
|
|
activeElementInst = targetInst;
|
|
|
activeElement.attachEvent('onpropertychange', handlePropertyChange);
|
|
|
}
|
|
|
/**
|
|
|
* (For IE <=9) Removes the event listeners from the currently-tracked element,
|
|
|
* if any exists.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function stopWatchingForValueChange() {
|
|
|
if (!activeElement) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
activeElement.detachEvent('onpropertychange', handlePropertyChange);
|
|
|
activeElement = null;
|
|
|
activeElementInst = null;
|
|
|
}
|
|
|
/**
|
|
|
* (For IE <=9) Handles a propertychange event, sending a `change` event if
|
|
|
* the value of the active element has changed.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function handlePropertyChange(nativeEvent) {
|
|
|
if (nativeEvent.propertyName !== 'value') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (getInstIfValueChanged(activeElementInst)) {
|
|
|
manualDispatchChangeEvent(nativeEvent);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
|
|
|
if (topLevelType === TOP_FOCUS) {
|
|
|
// In IE9, propertychange fires for most input events but is buggy and
|
|
|
// doesn't fire when text is deleted, but conveniently, selectionchange
|
|
|
// appears to fire in all of the remaining cases so we catch those and
|
|
|
// forward the event if the value has changed
|
|
|
// In either case, we don't want to call the event handler if the value
|
|
|
// is changed from JS so we redefine a setter for `.value` that updates
|
|
|
// our activeElementValue variable, allowing us to ignore those changes
|
|
|
//
|
|
|
// stopWatching() should be a noop here but we call it just in case we
|
|
|
// missed a blur event somehow.
|
|
|
stopWatchingForValueChange();
|
|
|
startWatchingForValueChange(target, targetInst);
|
|
|
} else if (topLevelType === TOP_BLUR) {
|
|
|
stopWatchingForValueChange();
|
|
|
}
|
|
|
} // For IE8 and IE9.
|
|
|
|
|
|
|
|
|
function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
|
|
|
if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
|
|
|
// On the selectionchange event, the target is just document which isn't
|
|
|
// helpful for us so just check activeElement instead.
|
|
|
//
|
|
|
// 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
|
|
|
// propertychange on the first input event after setting `value` from a
|
|
|
// script and fires only keydown, keypress, keyup. Catching keyup usually
|
|
|
// gets it and catching keydown lets us fire an event for the first
|
|
|
// keystroke if user does a key repeat (it'll be a little delayed: right
|
|
|
// before the second keystroke). Other input methods (e.g., paste) seem to
|
|
|
// fire selectionchange normally.
|
|
|
return getInstIfValueChanged(activeElementInst);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* SECTION: handle `click` event
|
|
|
*/
|
|
|
|
|
|
|
|
|
function shouldUseClickEvent(elem) {
|
|
|
// Use the `click` event to detect changes to checkbox and radio inputs.
|
|
|
// This approach works across all browsers, whereas `change` does not fire
|
|
|
// until `blur` in IE8.
|
|
|
var nodeName = elem.nodeName;
|
|
|
return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
|
|
|
}
|
|
|
|
|
|
function getTargetInstForClickEvent(topLevelType, targetInst) {
|
|
|
if (topLevelType === TOP_CLICK) {
|
|
|
return getInstIfValueChanged(targetInst);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
|
|
|
if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
|
|
|
return getInstIfValueChanged(targetInst);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function handleControlledInputBlur(node) {
|
|
|
var state = node._wrapperState;
|
|
|
|
|
|
if (!state || !state.controlled || node.type !== 'number') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// If controlled, assign the value attribute to the current value on blur
|
|
|
setDefaultValue(node, 'number', node.value);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* This plugin creates an `onChange` event that normalizes change events
|
|
|
* across form elements. This event fires at a time when it's possible to
|
|
|
* change the element's value without seeing a flicker.
|
|
|
*
|
|
|
* Supported elements are:
|
|
|
* - input (see `isTextInputElement`)
|
|
|
* - textarea
|
|
|
* - select
|
|
|
*/
|
|
|
|
|
|
|
|
|
var ChangeEventPlugin = {
|
|
|
eventTypes: eventTypes$1,
|
|
|
_isInputEventSupported: isInputEventSupported,
|
|
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
|
|
|
var getTargetInstFunc, handleEventFunc;
|
|
|
|
|
|
if (shouldUseChangeEvent(targetNode)) {
|
|
|
getTargetInstFunc = getTargetInstForChangeEvent;
|
|
|
} else if (isTextInputElement(targetNode)) {
|
|
|
if (isInputEventSupported) {
|
|
|
getTargetInstFunc = getTargetInstForInputOrChangeEvent;
|
|
|
} else {
|
|
|
getTargetInstFunc = getTargetInstForInputEventPolyfill;
|
|
|
handleEventFunc = handleEventsForInputEventPolyfill;
|
|
|
}
|
|
|
} else if (shouldUseClickEvent(targetNode)) {
|
|
|
getTargetInstFunc = getTargetInstForClickEvent;
|
|
|
}
|
|
|
|
|
|
if (getTargetInstFunc) {
|
|
|
var inst = getTargetInstFunc(topLevelType, targetInst);
|
|
|
|
|
|
if (inst) {
|
|
|
var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
|
|
|
return event;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (handleEventFunc) {
|
|
|
handleEventFunc(topLevelType, targetNode, targetInst);
|
|
|
} // When blurring, set the value attribute for number inputs
|
|
|
|
|
|
|
|
|
if (topLevelType === TOP_BLUR) {
|
|
|
handleControlledInputBlur(targetNode);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var SyntheticUIEvent = SyntheticEvent.extend({
|
|
|
view: null,
|
|
|
detail: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* Translation from modifier key to the associated property in the event.
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
|
|
|
*/
|
|
|
var modifierKeyToProp = {
|
|
|
Alt: 'altKey',
|
|
|
Control: 'ctrlKey',
|
|
|
Meta: 'metaKey',
|
|
|
Shift: 'shiftKey'
|
|
|
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
|
|
|
// getModifierState. If getModifierState is not supported, we map it to a set of
|
|
|
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
|
|
|
|
|
|
function modifierStateGetter(keyArg) {
|
|
|
var syntheticEvent = this;
|
|
|
var nativeEvent = syntheticEvent.nativeEvent;
|
|
|
|
|
|
if (nativeEvent.getModifierState) {
|
|
|
return nativeEvent.getModifierState(keyArg);
|
|
|
}
|
|
|
|
|
|
var keyProp = modifierKeyToProp[keyArg];
|
|
|
return keyProp ? !!nativeEvent[keyProp] : false;
|
|
|
}
|
|
|
|
|
|
function getEventModifierState(nativeEvent) {
|
|
|
return modifierStateGetter;
|
|
|
}
|
|
|
|
|
|
var previousScreenX = 0;
|
|
|
var previousScreenY = 0; // Use flags to signal movementX/Y has already been set
|
|
|
|
|
|
var isMovementXSet = false;
|
|
|
var isMovementYSet = false;
|
|
|
/**
|
|
|
* @interface MouseEvent
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticMouseEvent = SyntheticUIEvent.extend({
|
|
|
screenX: null,
|
|
|
screenY: null,
|
|
|
clientX: null,
|
|
|
clientY: null,
|
|
|
pageX: null,
|
|
|
pageY: null,
|
|
|
ctrlKey: null,
|
|
|
shiftKey: null,
|
|
|
altKey: null,
|
|
|
metaKey: null,
|
|
|
getModifierState: getEventModifierState,
|
|
|
button: null,
|
|
|
buttons: null,
|
|
|
relatedTarget: function (event) {
|
|
|
return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
|
|
|
},
|
|
|
movementX: function (event) {
|
|
|
if ('movementX' in event) {
|
|
|
return event.movementX;
|
|
|
}
|
|
|
|
|
|
var screenX = previousScreenX;
|
|
|
previousScreenX = event.screenX;
|
|
|
|
|
|
if (!isMovementXSet) {
|
|
|
isMovementXSet = true;
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
return event.type === 'mousemove' ? event.screenX - screenX : 0;
|
|
|
},
|
|
|
movementY: function (event) {
|
|
|
if ('movementY' in event) {
|
|
|
return event.movementY;
|
|
|
}
|
|
|
|
|
|
var screenY = previousScreenY;
|
|
|
previousScreenY = event.screenY;
|
|
|
|
|
|
if (!isMovementYSet) {
|
|
|
isMovementYSet = true;
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
return event.type === 'mousemove' ? event.screenY - screenY : 0;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface PointerEvent
|
|
|
* @see http://www.w3.org/TR/pointerevents/
|
|
|
*/
|
|
|
|
|
|
var SyntheticPointerEvent = SyntheticMouseEvent.extend({
|
|
|
pointerId: null,
|
|
|
width: null,
|
|
|
height: null,
|
|
|
pressure: null,
|
|
|
tangentialPressure: null,
|
|
|
tiltX: null,
|
|
|
tiltY: null,
|
|
|
twist: null,
|
|
|
pointerType: null,
|
|
|
isPrimary: null
|
|
|
});
|
|
|
|
|
|
var eventTypes$2 = {
|
|
|
mouseEnter: {
|
|
|
registrationName: 'onMouseEnter',
|
|
|
dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
|
|
|
},
|
|
|
mouseLeave: {
|
|
|
registrationName: 'onMouseLeave',
|
|
|
dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
|
|
|
},
|
|
|
pointerEnter: {
|
|
|
registrationName: 'onPointerEnter',
|
|
|
dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
|
|
|
},
|
|
|
pointerLeave: {
|
|
|
registrationName: 'onPointerLeave',
|
|
|
dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
|
|
|
}
|
|
|
};
|
|
|
var EnterLeaveEventPlugin = {
|
|
|
eventTypes: eventTypes$2,
|
|
|
|
|
|
/**
|
|
|
* For almost every interaction we care about, there will be both a top-level
|
|
|
* `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
|
|
|
* we do not extract duplicate events. However, moving the mouse into the
|
|
|
* browser from outside will not fire a `mouseout` event. In this case, we use
|
|
|
* the `mouseover` top-level event.
|
|
|
*/
|
|
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
|
|
|
var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
|
|
|
|
|
|
if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0 && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
|
|
|
// If this is an over event with a target, then we've already dispatched
|
|
|
// the event in the out event of the other target. If this is replayed,
|
|
|
// then it's because we couldn't dispatch against this target previously
|
|
|
// so we have to do it now instead.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (!isOutEvent && !isOverEvent) {
|
|
|
// Must not be a mouse or pointer in or out - ignoring.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var win;
|
|
|
|
|
|
if (nativeEventTarget.window === nativeEventTarget) {
|
|
|
// `nativeEventTarget` is probably a window object.
|
|
|
win = nativeEventTarget;
|
|
|
} else {
|
|
|
// TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
|
|
|
var doc = nativeEventTarget.ownerDocument;
|
|
|
|
|
|
if (doc) {
|
|
|
win = doc.defaultView || doc.parentWindow;
|
|
|
} else {
|
|
|
win = window;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var from;
|
|
|
var to;
|
|
|
|
|
|
if (isOutEvent) {
|
|
|
from = targetInst;
|
|
|
var related = nativeEvent.relatedTarget || nativeEvent.toElement;
|
|
|
to = related ? getClosestInstanceFromNode(related) : null;
|
|
|
|
|
|
if (to !== null) {
|
|
|
var nearestMounted = getNearestMountedFiber(to);
|
|
|
|
|
|
if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
|
|
|
to = null;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// Moving to a node from outside the window.
|
|
|
from = null;
|
|
|
to = targetInst;
|
|
|
}
|
|
|
|
|
|
if (from === to) {
|
|
|
// Nothing pertains to our managed components.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var eventInterface, leaveEventType, enterEventType, eventTypePrefix;
|
|
|
|
|
|
if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
|
|
|
eventInterface = SyntheticMouseEvent;
|
|
|
leaveEventType = eventTypes$2.mouseLeave;
|
|
|
enterEventType = eventTypes$2.mouseEnter;
|
|
|
eventTypePrefix = 'mouse';
|
|
|
} else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
|
|
|
eventInterface = SyntheticPointerEvent;
|
|
|
leaveEventType = eventTypes$2.pointerLeave;
|
|
|
enterEventType = eventTypes$2.pointerEnter;
|
|
|
eventTypePrefix = 'pointer';
|
|
|
}
|
|
|
|
|
|
var fromNode = from == null ? win : getNodeFromInstance$1(from);
|
|
|
var toNode = to == null ? win : getNodeFromInstance$1(to);
|
|
|
var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
|
|
|
leave.type = eventTypePrefix + 'leave';
|
|
|
leave.target = fromNode;
|
|
|
leave.relatedTarget = toNode;
|
|
|
var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
|
|
|
enter.type = eventTypePrefix + 'enter';
|
|
|
enter.target = toNode;
|
|
|
enter.relatedTarget = fromNode;
|
|
|
accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we
|
|
|
// should not process the same nativeEvent again, as we
|
|
|
// will have already processed it in the first ancestor.
|
|
|
|
|
|
if ((eventSystemFlags & IS_FIRST_ANCESTOR) === 0) {
|
|
|
return [leave];
|
|
|
}
|
|
|
|
|
|
return [leave, enter];
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
|
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
|
*/
|
|
|
function is(x, y) {
|
|
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
|
;
|
|
|
}
|
|
|
|
|
|
var objectIs = typeof Object.is === 'function' ? Object.is : is;
|
|
|
|
|
|
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
|
/**
|
|
|
* Performs equality by iterating through keys on an object and returning false
|
|
|
* when any key has values which are not strictly equal between the arguments.
|
|
|
* Returns true when the values of all keys are strictly equal.
|
|
|
*/
|
|
|
|
|
|
function shallowEqual(objA, objB) {
|
|
|
if (objectIs(objA, objB)) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var keysA = Object.keys(objA);
|
|
|
var keysB = Object.keys(objB);
|
|
|
|
|
|
if (keysA.length !== keysB.length) {
|
|
|
return false;
|
|
|
} // Test for A's keys different from B.
|
|
|
|
|
|
|
|
|
for (var i = 0; i < keysA.length; i++) {
|
|
|
if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
|
|
|
var eventTypes$3 = {
|
|
|
select: {
|
|
|
phasedRegistrationNames: {
|
|
|
bubbled: 'onSelect',
|
|
|
captured: 'onSelectCapture'
|
|
|
},
|
|
|
dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
|
|
|
}
|
|
|
};
|
|
|
var activeElement$1 = null;
|
|
|
var activeElementInst$1 = null;
|
|
|
var lastSelection = null;
|
|
|
var mouseDown = false;
|
|
|
/**
|
|
|
* Get an object which is a unique representation of the current selection.
|
|
|
*
|
|
|
* The return value will not be consistent across nodes or browsers, but
|
|
|
* two identical selections on the same node will return identical objects.
|
|
|
*
|
|
|
* @param {DOMElement} node
|
|
|
* @return {object}
|
|
|
*/
|
|
|
|
|
|
function getSelection$1(node) {
|
|
|
if ('selectionStart' in node && hasSelectionCapabilities(node)) {
|
|
|
return {
|
|
|
start: node.selectionStart,
|
|
|
end: node.selectionEnd
|
|
|
};
|
|
|
} else {
|
|
|
var win = node.ownerDocument && node.ownerDocument.defaultView || window;
|
|
|
var selection = win.getSelection();
|
|
|
return {
|
|
|
anchorNode: selection.anchorNode,
|
|
|
anchorOffset: selection.anchorOffset,
|
|
|
focusNode: selection.focusNode,
|
|
|
focusOffset: selection.focusOffset
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Get document associated with the event target.
|
|
|
*
|
|
|
* @param {object} nativeEventTarget
|
|
|
* @return {Document}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getEventTargetDocument(eventTarget) {
|
|
|
return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
|
|
|
}
|
|
|
/**
|
|
|
* Poll selection to see whether it's changed.
|
|
|
*
|
|
|
* @param {object} nativeEvent
|
|
|
* @param {object} nativeEventTarget
|
|
|
* @return {?SyntheticEvent}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function constructSelectEvent(nativeEvent, nativeEventTarget) {
|
|
|
// Ensure we have the right element, and that the user is not dragging a
|
|
|
// selection (this matches native `select` event behavior). In HTML5, select
|
|
|
// fires only on input and textarea thus if there's no focused element we
|
|
|
// won't dispatch.
|
|
|
var doc = getEventTargetDocument(nativeEventTarget);
|
|
|
|
|
|
if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
|
|
|
return null;
|
|
|
} // Only fire when selection has actually changed.
|
|
|
|
|
|
|
|
|
var currentSelection = getSelection$1(activeElement$1);
|
|
|
|
|
|
if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
|
|
|
lastSelection = currentSelection;
|
|
|
var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
|
|
|
syntheticEvent.type = 'select';
|
|
|
syntheticEvent.target = activeElement$1;
|
|
|
accumulateTwoPhaseDispatches(syntheticEvent);
|
|
|
return syntheticEvent;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* This plugin creates an `onSelect` event that normalizes select events
|
|
|
* across form elements.
|
|
|
*
|
|
|
* Supported elements are:
|
|
|
* - input (see `isTextInputElement`)
|
|
|
* - textarea
|
|
|
* - contentEditable
|
|
|
*
|
|
|
* This differs from native browser implementations in the following ways:
|
|
|
* - Fires on contentEditable fields as well as inputs.
|
|
|
* - Fires for collapsed selection.
|
|
|
* - Fires after user input.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var SelectEventPlugin = {
|
|
|
eventTypes: eventTypes$3,
|
|
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container) {
|
|
|
var containerOrDoc = container || getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do
|
|
|
// not extract events. See #3639.
|
|
|
|
|
|
if (!containerOrDoc || !isListeningToAllDependencies('onSelect', containerOrDoc)) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
|
|
|
|
|
|
switch (topLevelType) {
|
|
|
// Track the input node that has focus.
|
|
|
case TOP_FOCUS:
|
|
|
if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
|
|
|
activeElement$1 = targetNode;
|
|
|
activeElementInst$1 = targetInst;
|
|
|
lastSelection = null;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case TOP_BLUR:
|
|
|
activeElement$1 = null;
|
|
|
activeElementInst$1 = null;
|
|
|
lastSelection = null;
|
|
|
break;
|
|
|
// Don't fire the event while the user is dragging. This matches the
|
|
|
// semantics of the native select event.
|
|
|
|
|
|
case TOP_MOUSE_DOWN:
|
|
|
mouseDown = true;
|
|
|
break;
|
|
|
|
|
|
case TOP_CONTEXT_MENU:
|
|
|
case TOP_MOUSE_UP:
|
|
|
case TOP_DRAG_END:
|
|
|
mouseDown = false;
|
|
|
return constructSelectEvent(nativeEvent, nativeEventTarget);
|
|
|
// Chrome and IE fire non-standard event when selection is changed (and
|
|
|
// sometimes when it hasn't). IE's event fires out of order with respect
|
|
|
// to key and input events on deletion, so we discard it.
|
|
|
//
|
|
|
// Firefox doesn't support selectionchange, so check selection status
|
|
|
// after each key entry. The selection changes after keydown and before
|
|
|
// keyup, but we check on keydown as well in the case of holding down a
|
|
|
// key, when multiple keydown events are fired but only one keyup is.
|
|
|
// This is also our approach for IE handling, for the reason above.
|
|
|
|
|
|
case TOP_SELECTION_CHANGE:
|
|
|
if (skipSelectionChangeEvent) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
// falls through
|
|
|
|
|
|
case TOP_KEY_DOWN:
|
|
|
case TOP_KEY_UP:
|
|
|
return constructSelectEvent(nativeEvent, nativeEventTarget);
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
|
|
|
*/
|
|
|
|
|
|
var SyntheticAnimationEvent = SyntheticEvent.extend({
|
|
|
animationName: null,
|
|
|
elapsedTime: null,
|
|
|
pseudoElement: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/clipboard-apis/
|
|
|
*/
|
|
|
|
|
|
var SyntheticClipboardEvent = SyntheticEvent.extend({
|
|
|
clipboardData: function (event) {
|
|
|
return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface FocusEvent
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticFocusEvent = SyntheticUIEvent.extend({
|
|
|
relatedTarget: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* `charCode` represents the actual "character code" and is safe to use with
|
|
|
* `String.fromCharCode`. As such, only keys that correspond to printable
|
|
|
* characters produce a valid `charCode`, the only exception to this is Enter.
|
|
|
* The Tab-key is considered non-printable and does not have a `charCode`,
|
|
|
* presumably because it does not produce a tab-character in browsers.
|
|
|
*
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @return {number} Normalized `charCode` property.
|
|
|
*/
|
|
|
function getEventCharCode(nativeEvent) {
|
|
|
var charCode;
|
|
|
var keyCode = nativeEvent.keyCode;
|
|
|
|
|
|
if ('charCode' in nativeEvent) {
|
|
|
charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.
|
|
|
|
|
|
if (charCode === 0 && keyCode === 13) {
|
|
|
charCode = 13;
|
|
|
}
|
|
|
} else {
|
|
|
// IE8 does not implement `charCode`, but `keyCode` has the correct value.
|
|
|
charCode = keyCode;
|
|
|
} // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
|
|
|
// report Enter as charCode 10 when ctrl is pressed.
|
|
|
|
|
|
|
|
|
if (charCode === 10) {
|
|
|
charCode = 13;
|
|
|
} // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
|
|
|
// Must not discard the (non-)printable Enter-key.
|
|
|
|
|
|
|
|
|
if (charCode >= 32 || charCode === 13) {
|
|
|
return charCode;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Normalization of deprecated HTML5 `key` values
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
|
|
|
*/
|
|
|
|
|
|
var normalizeKey = {
|
|
|
Esc: 'Escape',
|
|
|
Spacebar: ' ',
|
|
|
Left: 'ArrowLeft',
|
|
|
Up: 'ArrowUp',
|
|
|
Right: 'ArrowRight',
|
|
|
Down: 'ArrowDown',
|
|
|
Del: 'Delete',
|
|
|
Win: 'OS',
|
|
|
Menu: 'ContextMenu',
|
|
|
Apps: 'ContextMenu',
|
|
|
Scroll: 'ScrollLock',
|
|
|
MozPrintableKey: 'Unidentified'
|
|
|
};
|
|
|
/**
|
|
|
* Translation from legacy `keyCode` to HTML5 `key`
|
|
|
* Only special keys supported, all others depend on keyboard layout or browser
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
|
|
|
*/
|
|
|
|
|
|
var translateToKey = {
|
|
|
'8': 'Backspace',
|
|
|
'9': 'Tab',
|
|
|
'12': 'Clear',
|
|
|
'13': 'Enter',
|
|
|
'16': 'Shift',
|
|
|
'17': 'Control',
|
|
|
'18': 'Alt',
|
|
|
'19': 'Pause',
|
|
|
'20': 'CapsLock',
|
|
|
'27': 'Escape',
|
|
|
'32': ' ',
|
|
|
'33': 'PageUp',
|
|
|
'34': 'PageDown',
|
|
|
'35': 'End',
|
|
|
'36': 'Home',
|
|
|
'37': 'ArrowLeft',
|
|
|
'38': 'ArrowUp',
|
|
|
'39': 'ArrowRight',
|
|
|
'40': 'ArrowDown',
|
|
|
'45': 'Insert',
|
|
|
'46': 'Delete',
|
|
|
'112': 'F1',
|
|
|
'113': 'F2',
|
|
|
'114': 'F3',
|
|
|
'115': 'F4',
|
|
|
'116': 'F5',
|
|
|
'117': 'F6',
|
|
|
'118': 'F7',
|
|
|
'119': 'F8',
|
|
|
'120': 'F9',
|
|
|
'121': 'F10',
|
|
|
'122': 'F11',
|
|
|
'123': 'F12',
|
|
|
'144': 'NumLock',
|
|
|
'145': 'ScrollLock',
|
|
|
'224': 'Meta'
|
|
|
};
|
|
|
/**
|
|
|
* @param {object} nativeEvent Native browser event.
|
|
|
* @return {string} Normalized `key` property.
|
|
|
*/
|
|
|
|
|
|
function getEventKey(nativeEvent) {
|
|
|
if (nativeEvent.key) {
|
|
|
// Normalize inconsistent values reported by browsers due to
|
|
|
// implementations of a working draft specification.
|
|
|
// FireFox implements `key` but returns `MozPrintableKey` for all
|
|
|
// printable characters (normalized to `Unidentified`), ignore it.
|
|
|
var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
|
|
|
|
|
|
if (key !== 'Unidentified') {
|
|
|
return key;
|
|
|
}
|
|
|
} // Browser does not implement `key`, polyfill as much of it as we can.
|
|
|
|
|
|
|
|
|
if (nativeEvent.type === 'keypress') {
|
|
|
var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
|
|
|
// thus be captured by `keypress`, no other non-printable key should.
|
|
|
|
|
|
return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
|
|
|
}
|
|
|
|
|
|
if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
|
|
|
// While user keyboard layout determines the actual meaning of each
|
|
|
// `keyCode` value, almost all function keys have a universal value.
|
|
|
return translateToKey[nativeEvent.keyCode] || 'Unidentified';
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @interface KeyboardEvent
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
|
|
|
key: getEventKey,
|
|
|
location: null,
|
|
|
ctrlKey: null,
|
|
|
shiftKey: null,
|
|
|
altKey: null,
|
|
|
metaKey: null,
|
|
|
repeat: null,
|
|
|
locale: null,
|
|
|
getModifierState: getEventModifierState,
|
|
|
// Legacy Interface
|
|
|
charCode: function (event) {
|
|
|
// `charCode` is the result of a KeyPress event and represents the value of
|
|
|
// the actual printable character.
|
|
|
// KeyPress is deprecated, but its replacement is not yet final and not
|
|
|
// implemented in any major browser. Only KeyPress has charCode.
|
|
|
if (event.type === 'keypress') {
|
|
|
return getEventCharCode(event);
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
},
|
|
|
keyCode: function (event) {
|
|
|
// `keyCode` is the result of a KeyDown/Up event and represents the value of
|
|
|
// physical keyboard key.
|
|
|
// The actual meaning of the value depends on the users' keyboard layout
|
|
|
// which cannot be detected. Assuming that it is a US keyboard layout
|
|
|
// provides a surprisingly accurate mapping for US and European users.
|
|
|
// Due to this, it is left to the user to implement at this time.
|
|
|
if (event.type === 'keydown' || event.type === 'keyup') {
|
|
|
return event.keyCode;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
},
|
|
|
which: function (event) {
|
|
|
// `which` is an alias for either `keyCode` or `charCode` depending on the
|
|
|
// type of the event.
|
|
|
if (event.type === 'keypress') {
|
|
|
return getEventCharCode(event);
|
|
|
}
|
|
|
|
|
|
if (event.type === 'keydown' || event.type === 'keyup') {
|
|
|
return event.keyCode;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface DragEvent
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticDragEvent = SyntheticMouseEvent.extend({
|
|
|
dataTransfer: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface TouchEvent
|
|
|
* @see http://www.w3.org/TR/touch-events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticTouchEvent = SyntheticUIEvent.extend({
|
|
|
touches: null,
|
|
|
targetTouches: null,
|
|
|
changedTouches: null,
|
|
|
altKey: null,
|
|
|
metaKey: null,
|
|
|
ctrlKey: null,
|
|
|
shiftKey: null,
|
|
|
getModifierState: getEventModifierState
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface Event
|
|
|
* @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
|
|
|
*/
|
|
|
|
|
|
var SyntheticTransitionEvent = SyntheticEvent.extend({
|
|
|
propertyName: null,
|
|
|
elapsedTime: null,
|
|
|
pseudoElement: null
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* @interface WheelEvent
|
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
|
|
*/
|
|
|
|
|
|
var SyntheticWheelEvent = SyntheticMouseEvent.extend({
|
|
|
deltaX: function (event) {
|
|
|
return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
|
|
|
'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
|
|
|
},
|
|
|
deltaY: function (event) {
|
|
|
return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
|
|
|
'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
|
|
|
'wheelDelta' in event ? -event.wheelDelta : 0;
|
|
|
},
|
|
|
deltaZ: null,
|
|
|
// Browsers without "deltaMode" is reporting in raw wheel delta where one
|
|
|
// notch on the scroll is always +/- 120, roughly equivalent to pixels.
|
|
|
// A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
|
|
|
// ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
|
|
|
deltaMode: null
|
|
|
});
|
|
|
|
|
|
var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];
|
|
|
var SimpleEventPlugin = {
|
|
|
// simpleEventPluginEventTypes gets populated from
|
|
|
// the DOMEventProperties module.
|
|
|
eventTypes: simpleEventPluginEventTypes,
|
|
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {
|
|
|
var dispatchConfig = topLevelEventsToDispatchConfig.get(topLevelType);
|
|
|
|
|
|
if (!dispatchConfig) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var EventConstructor;
|
|
|
|
|
|
switch (topLevelType) {
|
|
|
case TOP_KEY_PRESS:
|
|
|
// Firefox creates a keypress event for function keys too. This removes
|
|
|
// the unwanted keypress events. Enter is however both printable and
|
|
|
// non-printable. One would expect Tab to be as well (but it isn't).
|
|
|
if (getEventCharCode(nativeEvent) === 0) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/* falls through */
|
|
|
|
|
|
case TOP_KEY_DOWN:
|
|
|
case TOP_KEY_UP:
|
|
|
EventConstructor = SyntheticKeyboardEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_BLUR:
|
|
|
case TOP_FOCUS:
|
|
|
EventConstructor = SyntheticFocusEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_CLICK:
|
|
|
// Firefox creates a click event on right mouse clicks. This removes the
|
|
|
// unwanted click events.
|
|
|
if (nativeEvent.button === 2) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/* falls through */
|
|
|
|
|
|
case TOP_AUX_CLICK:
|
|
|
case TOP_DOUBLE_CLICK:
|
|
|
case TOP_MOUSE_DOWN:
|
|
|
case TOP_MOUSE_MOVE:
|
|
|
case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events
|
|
|
|
|
|
/* falls through */
|
|
|
|
|
|
case TOP_MOUSE_OUT:
|
|
|
case TOP_MOUSE_OVER:
|
|
|
case TOP_CONTEXT_MENU:
|
|
|
EventConstructor = SyntheticMouseEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_DRAG:
|
|
|
case TOP_DRAG_END:
|
|
|
case TOP_DRAG_ENTER:
|
|
|
case TOP_DRAG_EXIT:
|
|
|
case TOP_DRAG_LEAVE:
|
|
|
case TOP_DRAG_OVER:
|
|
|
case TOP_DRAG_START:
|
|
|
case TOP_DROP:
|
|
|
EventConstructor = SyntheticDragEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_TOUCH_CANCEL:
|
|
|
case TOP_TOUCH_END:
|
|
|
case TOP_TOUCH_MOVE:
|
|
|
case TOP_TOUCH_START:
|
|
|
EventConstructor = SyntheticTouchEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_ANIMATION_END:
|
|
|
case TOP_ANIMATION_ITERATION:
|
|
|
case TOP_ANIMATION_START:
|
|
|
EventConstructor = SyntheticAnimationEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_TRANSITION_END:
|
|
|
EventConstructor = SyntheticTransitionEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_SCROLL:
|
|
|
EventConstructor = SyntheticUIEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_WHEEL:
|
|
|
EventConstructor = SyntheticWheelEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_COPY:
|
|
|
case TOP_CUT:
|
|
|
case TOP_PASTE:
|
|
|
EventConstructor = SyntheticClipboardEvent;
|
|
|
break;
|
|
|
|
|
|
case TOP_GOT_POINTER_CAPTURE:
|
|
|
case TOP_LOST_POINTER_CAPTURE:
|
|
|
case TOP_POINTER_CANCEL:
|
|
|
case TOP_POINTER_DOWN:
|
|
|
case TOP_POINTER_MOVE:
|
|
|
case TOP_POINTER_OUT:
|
|
|
case TOP_POINTER_OVER:
|
|
|
case TOP_POINTER_UP:
|
|
|
EventConstructor = SyntheticPointerEvent;
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
|
|
|
error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
|
|
|
}
|
|
|
} // HTML Events
|
|
|
// @see http://www.w3.org/TR/html5/index.html#events-0
|
|
|
|
|
|
|
|
|
EventConstructor = SyntheticEvent;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
|
|
|
accumulateTwoPhaseDispatches(event);
|
|
|
return event;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Specifies a deterministic ordering of `EventPlugin`s. A convenient way to
|
|
|
* reason about plugins, without having to package every one of them. This
|
|
|
* is better than having plugins be ordered in the same order that they
|
|
|
* are injected because that ordering would be influenced by the packaging order.
|
|
|
* `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
|
|
|
* preventing default on events is convenient in `SimpleEventPlugin` handlers.
|
|
|
*/
|
|
|
|
|
|
var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
|
|
|
/**
|
|
|
* Inject modules for resolving DOM hierarchy and plugin ordering.
|
|
|
*/
|
|
|
|
|
|
injectEventPluginOrder(DOMEventPluginOrder);
|
|
|
setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
|
|
|
/**
|
|
|
* Some important event plugins included by default (without having to require
|
|
|
* them).
|
|
|
*/
|
|
|
|
|
|
injectEventPluginsByName({
|
|
|
SimpleEventPlugin: SimpleEventPlugin,
|
|
|
EnterLeaveEventPlugin: EnterLeaveEventPlugin,
|
|
|
ChangeEventPlugin: ChangeEventPlugin,
|
|
|
SelectEventPlugin: SelectEventPlugin,
|
|
|
BeforeInputEventPlugin: BeforeInputEventPlugin
|
|
|
});
|
|
|
|
|
|
// Prefix measurements so that it's possible to filter them.
|
|
|
// Longer prefixes are hard to read in DevTools.
|
|
|
var reactEmoji = "\u269B";
|
|
|
var warningEmoji = "\u26D4";
|
|
|
var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; // Keep track of current fiber so that we know the path to unwind on pause.
|
|
|
// TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
|
|
|
|
|
|
var currentFiber = null; // If we're in the middle of user code, which fiber and method is it?
|
|
|
// Reusing `currentFiber` would be confusing for this because user code fiber
|
|
|
// can change during commit phase too, but we don't need to unwind it (since
|
|
|
// lifecycles in the commit phase don't resemble a tree).
|
|
|
|
|
|
var currentPhase = null;
|
|
|
var currentPhaseFiber = null; // Did lifecycle hook schedule an update? This is often a performance problem,
|
|
|
// so we will keep track of it, and include it in the report.
|
|
|
// Track commits caused by cascading updates.
|
|
|
|
|
|
var isCommitting = false;
|
|
|
var hasScheduledUpdateInCurrentCommit = false;
|
|
|
var hasScheduledUpdateInCurrentPhase = false;
|
|
|
var commitCountInCurrentWorkLoop = 0;
|
|
|
var effectCountInCurrentCommit = 0;
|
|
|
// to avoid stretch the commit phase with measurement overhead.
|
|
|
|
|
|
var labelsInCurrentCommit = new Set();
|
|
|
|
|
|
var formatMarkName = function (markName) {
|
|
|
return reactEmoji + " " + markName;
|
|
|
};
|
|
|
|
|
|
var formatLabel = function (label, warning) {
|
|
|
var prefix = warning ? warningEmoji + " " : reactEmoji + " ";
|
|
|
var suffix = warning ? " Warning: " + warning : '';
|
|
|
return "" + prefix + label + suffix;
|
|
|
};
|
|
|
|
|
|
var beginMark = function (markName) {
|
|
|
performance.mark(formatMarkName(markName));
|
|
|
};
|
|
|
|
|
|
var clearMark = function (markName) {
|
|
|
performance.clearMarks(formatMarkName(markName));
|
|
|
};
|
|
|
|
|
|
var endMark = function (label, markName, warning) {
|
|
|
var formattedMarkName = formatMarkName(markName);
|
|
|
var formattedLabel = formatLabel(label, warning);
|
|
|
|
|
|
try {
|
|
|
performance.measure(formattedLabel, formattedMarkName);
|
|
|
} catch (err) {} // If previous mark was missing for some reason, this will throw.
|
|
|
// This could only happen if React crashed in an unexpected place earlier.
|
|
|
// Don't pile on with more errors.
|
|
|
// Clear marks immediately to avoid growing buffer.
|
|
|
|
|
|
|
|
|
performance.clearMarks(formattedMarkName);
|
|
|
performance.clearMeasures(formattedLabel);
|
|
|
};
|
|
|
|
|
|
var getFiberMarkName = function (label, debugID) {
|
|
|
return label + " (#" + debugID + ")";
|
|
|
};
|
|
|
|
|
|
var getFiberLabel = function (componentName, isMounted, phase) {
|
|
|
if (phase === null) {
|
|
|
// These are composite component total time measurements.
|
|
|
return componentName + " [" + (isMounted ? 'update' : 'mount') + "]";
|
|
|
} else {
|
|
|
// Composite component methods.
|
|
|
return componentName + "." + phase;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var beginFiberMark = function (fiber, phase) {
|
|
|
var componentName = getComponentName(fiber.type) || 'Unknown';
|
|
|
var debugID = fiber._debugID;
|
|
|
var isMounted = fiber.alternate !== null;
|
|
|
var label = getFiberLabel(componentName, isMounted, phase);
|
|
|
|
|
|
if (isCommitting && labelsInCurrentCommit.has(label)) {
|
|
|
// During the commit phase, we don't show duplicate labels because
|
|
|
// there is a fixed overhead for every measurement, and we don't
|
|
|
// want to stretch the commit phase beyond necessary.
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
labelsInCurrentCommit.add(label);
|
|
|
var markName = getFiberMarkName(label, debugID);
|
|
|
beginMark(markName);
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
var clearFiberMark = function (fiber, phase) {
|
|
|
var componentName = getComponentName(fiber.type) || 'Unknown';
|
|
|
var debugID = fiber._debugID;
|
|
|
var isMounted = fiber.alternate !== null;
|
|
|
var label = getFiberLabel(componentName, isMounted, phase);
|
|
|
var markName = getFiberMarkName(label, debugID);
|
|
|
clearMark(markName);
|
|
|
};
|
|
|
|
|
|
var endFiberMark = function (fiber, phase, warning) {
|
|
|
var componentName = getComponentName(fiber.type) || 'Unknown';
|
|
|
var debugID = fiber._debugID;
|
|
|
var isMounted = fiber.alternate !== null;
|
|
|
var label = getFiberLabel(componentName, isMounted, phase);
|
|
|
var markName = getFiberMarkName(label, debugID);
|
|
|
endMark(label, markName, warning);
|
|
|
};
|
|
|
|
|
|
var shouldIgnoreFiber = function (fiber) {
|
|
|
// Host components should be skipped in the timeline.
|
|
|
// We could check typeof fiber.type, but does this work with RN?
|
|
|
switch (fiber.tag) {
|
|
|
case HostRoot:
|
|
|
case HostComponent:
|
|
|
case HostText:
|
|
|
case HostPortal:
|
|
|
case Fragment:
|
|
|
case ContextProvider:
|
|
|
case ContextConsumer:
|
|
|
case Mode:
|
|
|
return true;
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var clearPendingPhaseMeasurement = function () {
|
|
|
if (currentPhase !== null && currentPhaseFiber !== null) {
|
|
|
clearFiberMark(currentPhaseFiber, currentPhase);
|
|
|
}
|
|
|
|
|
|
currentPhaseFiber = null;
|
|
|
currentPhase = null;
|
|
|
hasScheduledUpdateInCurrentPhase = false;
|
|
|
};
|
|
|
|
|
|
var pauseTimers = function () {
|
|
|
// Stops all currently active measurements so that they can be resumed
|
|
|
// if we continue in a later deferred loop from the same unit of work.
|
|
|
var fiber = currentFiber;
|
|
|
|
|
|
while (fiber) {
|
|
|
if (fiber._debugIsCurrentlyTiming) {
|
|
|
endFiberMark(fiber, null, null);
|
|
|
}
|
|
|
|
|
|
fiber = fiber.return;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var resumeTimersRecursively = function (fiber) {
|
|
|
if (fiber.return !== null) {
|
|
|
resumeTimersRecursively(fiber.return);
|
|
|
}
|
|
|
|
|
|
if (fiber._debugIsCurrentlyTiming) {
|
|
|
beginFiberMark(fiber, null);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var resumeTimers = function () {
|
|
|
// Resumes all measurements that were active during the last deferred loop.
|
|
|
if (currentFiber !== null) {
|
|
|
resumeTimersRecursively(currentFiber);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function recordEffect() {
|
|
|
{
|
|
|
effectCountInCurrentCommit++;
|
|
|
}
|
|
|
}
|
|
|
function recordScheduleUpdate() {
|
|
|
{
|
|
|
if (isCommitting) {
|
|
|
hasScheduledUpdateInCurrentCommit = true;
|
|
|
}
|
|
|
|
|
|
if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
|
|
|
hasScheduledUpdateInCurrentPhase = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function startWorkTimer(fiber) {
|
|
|
{
|
|
|
if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
|
|
|
return;
|
|
|
} // If we pause, this is the fiber to unwind from.
|
|
|
|
|
|
|
|
|
currentFiber = fiber;
|
|
|
|
|
|
if (!beginFiberMark(fiber, null)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
fiber._debugIsCurrentlyTiming = true;
|
|
|
}
|
|
|
}
|
|
|
function cancelWorkTimer(fiber) {
|
|
|
{
|
|
|
if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
|
|
|
return;
|
|
|
} // Remember we shouldn't complete measurement for this fiber.
|
|
|
// Otherwise flamechart will be deep even for small updates.
|
|
|
|
|
|
|
|
|
fiber._debugIsCurrentlyTiming = false;
|
|
|
clearFiberMark(fiber, null);
|
|
|
}
|
|
|
}
|
|
|
function stopWorkTimer(fiber) {
|
|
|
{
|
|
|
if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
|
|
|
return;
|
|
|
} // If we pause, its parent is the fiber to unwind from.
|
|
|
|
|
|
|
|
|
currentFiber = fiber.return;
|
|
|
|
|
|
if (!fiber._debugIsCurrentlyTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
fiber._debugIsCurrentlyTiming = false;
|
|
|
endFiberMark(fiber, null, null);
|
|
|
}
|
|
|
}
|
|
|
function stopFailedWorkTimer(fiber) {
|
|
|
{
|
|
|
if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
|
|
|
return;
|
|
|
} // If we pause, its parent is the fiber to unwind from.
|
|
|
|
|
|
|
|
|
currentFiber = fiber.return;
|
|
|
|
|
|
if (!fiber._debugIsCurrentlyTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
fiber._debugIsCurrentlyTiming = false;
|
|
|
var warning = fiber.tag === SuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
|
|
|
endFiberMark(fiber, null, warning);
|
|
|
}
|
|
|
}
|
|
|
function startPhaseTimer(fiber, phase) {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
clearPendingPhaseMeasurement();
|
|
|
|
|
|
if (!beginFiberMark(fiber, phase)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
currentPhaseFiber = fiber;
|
|
|
currentPhase = phase;
|
|
|
}
|
|
|
}
|
|
|
function stopPhaseTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (currentPhase !== null && currentPhaseFiber !== null) {
|
|
|
var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
|
|
|
endFiberMark(currentPhaseFiber, currentPhase, warning);
|
|
|
}
|
|
|
|
|
|
currentPhase = null;
|
|
|
currentPhaseFiber = null;
|
|
|
}
|
|
|
}
|
|
|
function startWorkLoopTimer(nextUnitOfWork) {
|
|
|
{
|
|
|
currentFiber = nextUnitOfWork;
|
|
|
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
commitCountInCurrentWorkLoop = 0; // This is top level call.
|
|
|
// Any other measurements are performed within.
|
|
|
|
|
|
beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.
|
|
|
|
|
|
resumeTimers();
|
|
|
}
|
|
|
}
|
|
|
function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var warning = null;
|
|
|
|
|
|
if (interruptedBy !== null) {
|
|
|
if (interruptedBy.tag === HostRoot) {
|
|
|
warning = 'A top-level update interrupted the previous render';
|
|
|
} else {
|
|
|
var componentName = getComponentName(interruptedBy.type) || 'Unknown';
|
|
|
warning = "An update to " + componentName + " interrupted the previous render";
|
|
|
}
|
|
|
} else if (commitCountInCurrentWorkLoop > 1) {
|
|
|
warning = 'There were cascading updates';
|
|
|
}
|
|
|
|
|
|
commitCountInCurrentWorkLoop = 0;
|
|
|
var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.
|
|
|
|
|
|
pauseTimers();
|
|
|
endMark(label, '(React Tree Reconciliation)', warning);
|
|
|
}
|
|
|
}
|
|
|
function startCommitTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
isCommitting = true;
|
|
|
hasScheduledUpdateInCurrentCommit = false;
|
|
|
labelsInCurrentCommit.clear();
|
|
|
beginMark('(Committing Changes)');
|
|
|
}
|
|
|
}
|
|
|
function stopCommitTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var warning = null;
|
|
|
|
|
|
if (hasScheduledUpdateInCurrentCommit) {
|
|
|
warning = 'Lifecycle hook scheduled a cascading update';
|
|
|
} else if (commitCountInCurrentWorkLoop > 0) {
|
|
|
warning = 'Caused by a cascading update in earlier commit';
|
|
|
}
|
|
|
|
|
|
hasScheduledUpdateInCurrentCommit = false;
|
|
|
commitCountInCurrentWorkLoop++;
|
|
|
isCommitting = false;
|
|
|
labelsInCurrentCommit.clear();
|
|
|
endMark('(Committing Changes)', '(Committing Changes)', warning);
|
|
|
}
|
|
|
}
|
|
|
function startCommitSnapshotEffectsTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
beginMark('(Committing Snapshot Effects)');
|
|
|
}
|
|
|
}
|
|
|
function stopCommitSnapshotEffectsTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var count = effectCountInCurrentCommit;
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
endMark("(Committing Snapshot Effects: " + count + " Total)", '(Committing Snapshot Effects)', null);
|
|
|
}
|
|
|
}
|
|
|
function startCommitHostEffectsTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
beginMark('(Committing Host Effects)');
|
|
|
}
|
|
|
}
|
|
|
function stopCommitHostEffectsTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var count = effectCountInCurrentCommit;
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
endMark("(Committing Host Effects: " + count + " Total)", '(Committing Host Effects)', null);
|
|
|
}
|
|
|
}
|
|
|
function startCommitLifeCyclesTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
beginMark('(Calling Lifecycle Methods)');
|
|
|
}
|
|
|
}
|
|
|
function stopCommitLifeCyclesTimer() {
|
|
|
{
|
|
|
if (!supportsUserTiming) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var count = effectCountInCurrentCommit;
|
|
|
effectCountInCurrentCommit = 0;
|
|
|
endMark("(Calling Lifecycle Methods: " + count + " Total)", '(Calling Lifecycle Methods)', null);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var valueStack = [];
|
|
|
var fiberStack;
|
|
|
|
|
|
{
|
|
|
fiberStack = [];
|
|
|
}
|
|
|
|
|
|
var index = -1;
|
|
|
|
|
|
function createCursor(defaultValue) {
|
|
|
return {
|
|
|
current: defaultValue
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function pop(cursor, fiber) {
|
|
|
if (index < 0) {
|
|
|
{
|
|
|
error('Unexpected pop.');
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (fiber !== fiberStack[index]) {
|
|
|
error('Unexpected Fiber popped.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
cursor.current = valueStack[index];
|
|
|
valueStack[index] = null;
|
|
|
|
|
|
{
|
|
|
fiberStack[index] = null;
|
|
|
}
|
|
|
|
|
|
index--;
|
|
|
}
|
|
|
|
|
|
function push(cursor, value, fiber) {
|
|
|
index++;
|
|
|
valueStack[index] = cursor.current;
|
|
|
|
|
|
{
|
|
|
fiberStack[index] = fiber;
|
|
|
}
|
|
|
|
|
|
cursor.current = value;
|
|
|
}
|
|
|
|
|
|
var warnedAboutMissingGetChildContext;
|
|
|
|
|
|
{
|
|
|
warnedAboutMissingGetChildContext = {};
|
|
|
}
|
|
|
|
|
|
var emptyContextObject = {};
|
|
|
|
|
|
{
|
|
|
Object.freeze(emptyContextObject);
|
|
|
} // A cursor to the current merged context object on the stack.
|
|
|
|
|
|
|
|
|
var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
|
|
|
|
|
|
var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
|
|
|
// We use this to get access to the parent context after we have already
|
|
|
// pushed the next context provider, and now need to merge their contexts.
|
|
|
|
|
|
var previousContext = emptyContextObject;
|
|
|
|
|
|
function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
|
|
|
{
|
|
|
if (didPushOwnContextIfProvider && isContextProvider(Component)) {
|
|
|
// If the fiber is a context provider itself, when we read its context
|
|
|
// we may have already pushed its own child context on the stack. A context
|
|
|
// provider should not "see" its own child context. Therefore we read the
|
|
|
// previous (parent) context instead for a context provider.
|
|
|
return previousContext;
|
|
|
}
|
|
|
|
|
|
return contextStackCursor.current;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function cacheContext(workInProgress, unmaskedContext, maskedContext) {
|
|
|
{
|
|
|
var instance = workInProgress.stateNode;
|
|
|
instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
|
|
|
instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getMaskedContext(workInProgress, unmaskedContext) {
|
|
|
{
|
|
|
var type = workInProgress.type;
|
|
|
var contextTypes = type.contextTypes;
|
|
|
|
|
|
if (!contextTypes) {
|
|
|
return emptyContextObject;
|
|
|
} // Avoid recreating masked context unless unmasked context has changed.
|
|
|
// Failing to do this will result in unnecessary calls to componentWillReceiveProps.
|
|
|
// This may trigger infinite loops if componentWillReceiveProps calls setState.
|
|
|
|
|
|
|
|
|
var instance = workInProgress.stateNode;
|
|
|
|
|
|
if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
|
|
|
return instance.__reactInternalMemoizedMaskedChildContext;
|
|
|
}
|
|
|
|
|
|
var context = {};
|
|
|
|
|
|
for (var key in contextTypes) {
|
|
|
context[key] = unmaskedContext[key];
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var name = getComponentName(type) || 'Unknown';
|
|
|
checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
|
|
|
} // Cache unmasked context so we can avoid recreating masked context unless necessary.
|
|
|
// Context is created before the class component is instantiated so check for instance.
|
|
|
|
|
|
|
|
|
if (instance) {
|
|
|
cacheContext(workInProgress, unmaskedContext, context);
|
|
|
}
|
|
|
|
|
|
return context;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function hasContextChanged() {
|
|
|
{
|
|
|
return didPerformWorkStackCursor.current;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isContextProvider(type) {
|
|
|
{
|
|
|
var childContextTypes = type.childContextTypes;
|
|
|
return childContextTypes !== null && childContextTypes !== undefined;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function popContext(fiber) {
|
|
|
{
|
|
|
pop(didPerformWorkStackCursor, fiber);
|
|
|
pop(contextStackCursor, fiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function popTopLevelContextObject(fiber) {
|
|
|
{
|
|
|
pop(didPerformWorkStackCursor, fiber);
|
|
|
pop(contextStackCursor, fiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function pushTopLevelContextObject(fiber, context, didChange) {
|
|
|
{
|
|
|
if (!(contextStackCursor.current === emptyContextObject)) {
|
|
|
{
|
|
|
throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
push(contextStackCursor, context, fiber);
|
|
|
push(didPerformWorkStackCursor, didChange, fiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function processChildContext(fiber, type, parentContext) {
|
|
|
{
|
|
|
var instance = fiber.stateNode;
|
|
|
var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
|
|
|
// It has only been added in Fiber to match the (unintentional) behavior in Stack.
|
|
|
|
|
|
if (typeof instance.getChildContext !== 'function') {
|
|
|
{
|
|
|
var componentName = getComponentName(type) || 'Unknown';
|
|
|
|
|
|
if (!warnedAboutMissingGetChildContext[componentName]) {
|
|
|
warnedAboutMissingGetChildContext[componentName] = true;
|
|
|
|
|
|
error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return parentContext;
|
|
|
}
|
|
|
|
|
|
var childContext;
|
|
|
startPhaseTimer(fiber, 'getChildContext');
|
|
|
childContext = instance.getChildContext();
|
|
|
stopPhaseTimer();
|
|
|
|
|
|
for (var contextKey in childContext) {
|
|
|
if (!(contextKey in childContextTypes)) {
|
|
|
{
|
|
|
throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var name = getComponentName(type) || 'Unknown';
|
|
|
checkPropTypes(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when
|
|
|
// somebody calls unstable_renderSubtreeIntoContainer() and we process
|
|
|
// context from the parent component instance. The stack will be missing
|
|
|
// because it's outside of the reconciliation, and so the pointer has not
|
|
|
// been set. This is rare and doesn't matter. We'll also remove that API.
|
|
|
getCurrentFiberStackInDev);
|
|
|
}
|
|
|
|
|
|
return _assign({}, parentContext, {}, childContext);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function pushContextProvider(workInProgress) {
|
|
|
{
|
|
|
var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
|
|
|
// If the instance does not exist yet, we will push null at first,
|
|
|
// and replace it on the stack later when invalidating the context.
|
|
|
|
|
|
var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
|
|
|
// Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
|
|
|
|
|
|
previousContext = contextStackCursor.current;
|
|
|
push(contextStackCursor, memoizedMergedChildContext, workInProgress);
|
|
|
push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
{
|
|
|
var instance = workInProgress.stateNode;
|
|
|
|
|
|
if (!instance) {
|
|
|
{
|
|
|
throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (didChange) {
|
|
|
// Merge parent and own context.
|
|
|
// Skip this if we're not updating due to sCU.
|
|
|
// This avoids unnecessarily recomputing memoized values.
|
|
|
var mergedContext = processChildContext(workInProgress, type, previousContext);
|
|
|
instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
|
|
|
// It is important to unwind the context in the reverse order.
|
|
|
|
|
|
pop(didPerformWorkStackCursor, workInProgress);
|
|
|
pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.
|
|
|
|
|
|
push(contextStackCursor, mergedContext, workInProgress);
|
|
|
push(didPerformWorkStackCursor, didChange, workInProgress);
|
|
|
} else {
|
|
|
pop(didPerformWorkStackCursor, workInProgress);
|
|
|
push(didPerformWorkStackCursor, didChange, workInProgress);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function findCurrentUnmaskedContext(fiber) {
|
|
|
{
|
|
|
// Currently this is only used with renderSubtreeIntoContainer; not sure if it
|
|
|
// makes sense elsewhere
|
|
|
if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
|
|
|
{
|
|
|
throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var node = fiber;
|
|
|
|
|
|
do {
|
|
|
switch (node.tag) {
|
|
|
case HostRoot:
|
|
|
return node.stateNode.context;
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var Component = node.type;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
return node.stateNode.__reactInternalMemoizedMergedChildContext;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
} while (node !== null);
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var LegacyRoot = 0;
|
|
|
var BlockingRoot = 1;
|
|
|
var ConcurrentRoot = 2;
|
|
|
|
|
|
var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
|
|
|
Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
|
|
|
Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
|
|
|
Scheduler_shouldYield = Scheduler.unstable_shouldYield,
|
|
|
Scheduler_requestPaint = Scheduler.unstable_requestPaint,
|
|
|
Scheduler_now = Scheduler.unstable_now,
|
|
|
Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
|
|
|
Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
|
|
|
Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
|
|
|
Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
|
|
|
Scheduler_LowPriority = Scheduler.unstable_LowPriority,
|
|
|
Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
|
|
|
|
|
|
{
|
|
|
// Provide explicit error message when production+profiling bundle of e.g.
|
|
|
// react-dom is used with production (non-profiling) bundle of
|
|
|
// scheduler/tracing
|
|
|
if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
|
|
|
{
|
|
|
throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling" );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
|
|
|
// ascending numbers so we can compare them like numbers. They start at 90 to
|
|
|
// avoid clashing with Scheduler's priorities.
|
|
|
|
|
|
var ImmediatePriority = 99;
|
|
|
var UserBlockingPriority$1 = 98;
|
|
|
var NormalPriority = 97;
|
|
|
var LowPriority = 96;
|
|
|
var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.
|
|
|
|
|
|
var NoPriority = 90;
|
|
|
var shouldYield = Scheduler_shouldYield;
|
|
|
var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
|
|
|
Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
|
|
|
var syncQueue = null;
|
|
|
var immediateQueueCallbackNode = null;
|
|
|
var isFlushingSyncQueue = false;
|
|
|
var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
|
|
|
// This will be the case for modern browsers that support `performance.now`. In
|
|
|
// older browsers, Scheduler falls back to `Date.now`, which returns a Unix
|
|
|
// timestamp. In that case, subtract the module initialization time to simulate
|
|
|
// the behavior of performance.now and keep our times small enough to fit
|
|
|
// within 32 bits.
|
|
|
// TODO: Consider lifting this into Scheduler.
|
|
|
|
|
|
var now = initialTimeMs < 10000 ? Scheduler_now : function () {
|
|
|
return Scheduler_now() - initialTimeMs;
|
|
|
};
|
|
|
function getCurrentPriorityLevel() {
|
|
|
switch (Scheduler_getCurrentPriorityLevel()) {
|
|
|
case Scheduler_ImmediatePriority:
|
|
|
return ImmediatePriority;
|
|
|
|
|
|
case Scheduler_UserBlockingPriority:
|
|
|
return UserBlockingPriority$1;
|
|
|
|
|
|
case Scheduler_NormalPriority:
|
|
|
return NormalPriority;
|
|
|
|
|
|
case Scheduler_LowPriority:
|
|
|
return LowPriority;
|
|
|
|
|
|
case Scheduler_IdlePriority:
|
|
|
return IdlePriority;
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unknown priority level." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function reactPriorityToSchedulerPriority(reactPriorityLevel) {
|
|
|
switch (reactPriorityLevel) {
|
|
|
case ImmediatePriority:
|
|
|
return Scheduler_ImmediatePriority;
|
|
|
|
|
|
case UserBlockingPriority$1:
|
|
|
return Scheduler_UserBlockingPriority;
|
|
|
|
|
|
case NormalPriority:
|
|
|
return Scheduler_NormalPriority;
|
|
|
|
|
|
case LowPriority:
|
|
|
return Scheduler_LowPriority;
|
|
|
|
|
|
case IdlePriority:
|
|
|
return Scheduler_IdlePriority;
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unknown priority level." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function runWithPriority$1(reactPriorityLevel, fn) {
|
|
|
var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
|
|
|
return Scheduler_runWithPriority(priorityLevel, fn);
|
|
|
}
|
|
|
function scheduleCallback(reactPriorityLevel, callback, options) {
|
|
|
var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
|
|
|
return Scheduler_scheduleCallback(priorityLevel, callback, options);
|
|
|
}
|
|
|
function scheduleSyncCallback(callback) {
|
|
|
// Push this callback into an internal queue. We'll flush these either in
|
|
|
// the next tick, or earlier if something calls `flushSyncCallbackQueue`.
|
|
|
if (syncQueue === null) {
|
|
|
syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.
|
|
|
|
|
|
immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
|
|
|
} else {
|
|
|
// Push onto existing queue. Don't need to schedule a callback because
|
|
|
// we already scheduled one when we created the queue.
|
|
|
syncQueue.push(callback);
|
|
|
}
|
|
|
|
|
|
return fakeCallbackNode;
|
|
|
}
|
|
|
function cancelCallback(callbackNode) {
|
|
|
if (callbackNode !== fakeCallbackNode) {
|
|
|
Scheduler_cancelCallback(callbackNode);
|
|
|
}
|
|
|
}
|
|
|
function flushSyncCallbackQueue() {
|
|
|
if (immediateQueueCallbackNode !== null) {
|
|
|
var node = immediateQueueCallbackNode;
|
|
|
immediateQueueCallbackNode = null;
|
|
|
Scheduler_cancelCallback(node);
|
|
|
}
|
|
|
|
|
|
flushSyncCallbackQueueImpl();
|
|
|
}
|
|
|
|
|
|
function flushSyncCallbackQueueImpl() {
|
|
|
if (!isFlushingSyncQueue && syncQueue !== null) {
|
|
|
// Prevent re-entrancy.
|
|
|
isFlushingSyncQueue = true;
|
|
|
var i = 0;
|
|
|
|
|
|
try {
|
|
|
var _isSync = true;
|
|
|
var queue = syncQueue;
|
|
|
runWithPriority$1(ImmediatePriority, function () {
|
|
|
for (; i < queue.length; i++) {
|
|
|
var callback = queue[i];
|
|
|
|
|
|
do {
|
|
|
callback = callback(_isSync);
|
|
|
} while (callback !== null);
|
|
|
}
|
|
|
});
|
|
|
syncQueue = null;
|
|
|
} catch (error) {
|
|
|
// If something throws, leave the remaining callbacks on the queue.
|
|
|
if (syncQueue !== null) {
|
|
|
syncQueue = syncQueue.slice(i + 1);
|
|
|
} // Resume flushing in the next tick
|
|
|
|
|
|
|
|
|
Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
|
|
|
throw error;
|
|
|
} finally {
|
|
|
isFlushingSyncQueue = false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var NoMode = 0;
|
|
|
var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
|
|
|
// tag instead
|
|
|
|
|
|
var BlockingMode = 2;
|
|
|
var ConcurrentMode = 4;
|
|
|
var ProfileMode = 8;
|
|
|
|
|
|
// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
|
|
|
// Math.pow(2, 30) - 1
|
|
|
// 0b111111111111111111111111111111
|
|
|
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
|
|
|
|
|
var NoWork = 0; // TODO: Think of a better name for Never. The key difference with Idle is that
|
|
|
// Never work can be committed in an inconsistent state without tearing the UI.
|
|
|
// The main example is offscreen content, like a hidden subtree. So one possible
|
|
|
// name is Offscreen. However, it also includes dehydrated Suspense boundaries,
|
|
|
// which are inconsistent in the sense that they haven't finished yet, but
|
|
|
// aren't visibly inconsistent because the server rendered HTML matches what the
|
|
|
// hydrated tree would look like.
|
|
|
|
|
|
var Never = 1; // Idle is slightly higher priority than Never. It must completely finish in
|
|
|
// order to be consistent.
|
|
|
|
|
|
var Idle = 2; // Continuous Hydration is slightly higher than Idle and is used to increase
|
|
|
// priority of hover targets.
|
|
|
|
|
|
var ContinuousHydration = 3;
|
|
|
var Sync = MAX_SIGNED_31_BIT_INT;
|
|
|
var Batched = Sync - 1;
|
|
|
var UNIT_SIZE = 10;
|
|
|
var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms.
|
|
|
|
|
|
function msToExpirationTime(ms) {
|
|
|
// Always subtract from the offset so that we don't clash with the magic number for NoWork.
|
|
|
return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
|
|
|
}
|
|
|
function expirationTimeToMs(expirationTime) {
|
|
|
return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
|
|
|
}
|
|
|
|
|
|
function ceiling(num, precision) {
|
|
|
return ((num / precision | 0) + 1) * precision;
|
|
|
}
|
|
|
|
|
|
function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
|
|
|
return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
|
|
|
} // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
|
|
|
// the names to reflect.
|
|
|
|
|
|
|
|
|
var LOW_PRIORITY_EXPIRATION = 5000;
|
|
|
var LOW_PRIORITY_BATCH_SIZE = 250;
|
|
|
function computeAsyncExpiration(currentTime) {
|
|
|
return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
|
|
|
}
|
|
|
function computeSuspenseExpiration(currentTime, timeoutMs) {
|
|
|
// TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
|
|
|
return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
|
|
|
} // We intentionally set a higher expiration time for interactive updates in
|
|
|
// dev than in production.
|
|
|
//
|
|
|
// If the main thread is being blocked so long that you hit the expiration,
|
|
|
// it's a problem that could be solved with better scheduling.
|
|
|
//
|
|
|
// People will be more likely to notice this and fix it with the long
|
|
|
// expiration time in development.
|
|
|
//
|
|
|
// In production we opt for better UX at the risk of masking scheduling
|
|
|
// problems, by expiring fast.
|
|
|
|
|
|
var HIGH_PRIORITY_EXPIRATION = 500 ;
|
|
|
var HIGH_PRIORITY_BATCH_SIZE = 100;
|
|
|
function computeInteractiveExpiration(currentTime) {
|
|
|
return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
|
|
|
}
|
|
|
function inferPriorityFromExpirationTime(currentTime, expirationTime) {
|
|
|
if (expirationTime === Sync) {
|
|
|
return ImmediatePriority;
|
|
|
}
|
|
|
|
|
|
if (expirationTime === Never || expirationTime === Idle) {
|
|
|
return IdlePriority;
|
|
|
}
|
|
|
|
|
|
var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
|
|
|
|
|
|
if (msUntil <= 0) {
|
|
|
return ImmediatePriority;
|
|
|
}
|
|
|
|
|
|
if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
|
|
|
return UserBlockingPriority$1;
|
|
|
}
|
|
|
|
|
|
if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
|
|
|
return NormalPriority;
|
|
|
} // TODO: Handle LowPriority
|
|
|
// Assume anything lower has idle priority
|
|
|
|
|
|
|
|
|
return IdlePriority;
|
|
|
}
|
|
|
|
|
|
var ReactStrictModeWarnings = {
|
|
|
recordUnsafeLifecycleWarnings: function (fiber, instance) {},
|
|
|
flushPendingUnsafeLifecycleWarnings: function () {},
|
|
|
recordLegacyContextWarning: function (fiber, instance) {},
|
|
|
flushLegacyContextWarning: function () {},
|
|
|
discardPendingWarnings: function () {}
|
|
|
};
|
|
|
|
|
|
{
|
|
|
var findStrictRoot = function (fiber) {
|
|
|
var maybeStrictRoot = null;
|
|
|
var node = fiber;
|
|
|
|
|
|
while (node !== null) {
|
|
|
if (node.mode & StrictMode) {
|
|
|
maybeStrictRoot = node;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
return maybeStrictRoot;
|
|
|
};
|
|
|
|
|
|
var setToSortedString = function (set) {
|
|
|
var array = [];
|
|
|
set.forEach(function (value) {
|
|
|
array.push(value);
|
|
|
});
|
|
|
return array.sort().join(', ');
|
|
|
};
|
|
|
|
|
|
var pendingComponentWillMountWarnings = [];
|
|
|
var pendingUNSAFE_ComponentWillMountWarnings = [];
|
|
|
var pendingComponentWillReceivePropsWarnings = [];
|
|
|
var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
|
|
|
var pendingComponentWillUpdateWarnings = [];
|
|
|
var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.
|
|
|
|
|
|
var didWarnAboutUnsafeLifecycles = new Set();
|
|
|
|
|
|
ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
|
|
|
// Dedup strategy: Warn once per component.
|
|
|
if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
|
|
|
instance.componentWillMount.__suppressDeprecationWarning !== true) {
|
|
|
pendingComponentWillMountWarnings.push(fiber);
|
|
|
}
|
|
|
|
|
|
if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
|
|
|
pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
|
|
|
pendingComponentWillReceivePropsWarnings.push(fiber);
|
|
|
}
|
|
|
|
|
|
if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
|
|
|
pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
|
|
|
pendingComponentWillUpdateWarnings.push(fiber);
|
|
|
}
|
|
|
|
|
|
if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
|
|
|
pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
|
|
|
// We do an initial pass to gather component names
|
|
|
var componentWillMountUniqueNames = new Set();
|
|
|
|
|
|
if (pendingComponentWillMountWarnings.length > 0) {
|
|
|
pendingComponentWillMountWarnings.forEach(function (fiber) {
|
|
|
componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingComponentWillMountWarnings = [];
|
|
|
}
|
|
|
|
|
|
var UNSAFE_componentWillMountUniqueNames = new Set();
|
|
|
|
|
|
if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
|
|
|
pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
|
|
|
UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingUNSAFE_ComponentWillMountWarnings = [];
|
|
|
}
|
|
|
|
|
|
var componentWillReceivePropsUniqueNames = new Set();
|
|
|
|
|
|
if (pendingComponentWillReceivePropsWarnings.length > 0) {
|
|
|
pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
|
|
|
componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingComponentWillReceivePropsWarnings = [];
|
|
|
}
|
|
|
|
|
|
var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
|
|
|
|
|
|
if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
|
|
|
pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
|
|
|
UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
|
|
|
}
|
|
|
|
|
|
var componentWillUpdateUniqueNames = new Set();
|
|
|
|
|
|
if (pendingComponentWillUpdateWarnings.length > 0) {
|
|
|
pendingComponentWillUpdateWarnings.forEach(function (fiber) {
|
|
|
componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingComponentWillUpdateWarnings = [];
|
|
|
}
|
|
|
|
|
|
var UNSAFE_componentWillUpdateUniqueNames = new Set();
|
|
|
|
|
|
if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
|
|
|
pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
|
|
|
UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutUnsafeLifecycles.add(fiber.type);
|
|
|
});
|
|
|
pendingUNSAFE_ComponentWillUpdateWarnings = [];
|
|
|
} // Finally, we flush all the warnings
|
|
|
// UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
|
|
|
|
|
|
|
|
|
if (UNSAFE_componentWillMountUniqueNames.size > 0) {
|
|
|
var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
|
|
|
|
|
|
error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
|
|
|
}
|
|
|
|
|
|
if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
|
|
|
var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
|
|
|
|
|
|
error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
|
|
|
}
|
|
|
|
|
|
if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
|
|
|
var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
|
|
|
|
|
|
error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
|
|
|
}
|
|
|
|
|
|
if (componentWillMountUniqueNames.size > 0) {
|
|
|
var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
|
|
|
|
|
|
warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
|
|
|
}
|
|
|
|
|
|
if (componentWillReceivePropsUniqueNames.size > 0) {
|
|
|
var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
|
|
|
|
|
|
warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
|
|
|
}
|
|
|
|
|
|
if (componentWillUpdateUniqueNames.size > 0) {
|
|
|
var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
|
|
|
|
|
|
warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.
|
|
|
|
|
|
var didWarnAboutLegacyContext = new Set();
|
|
|
|
|
|
ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
|
|
|
var strictRoot = findStrictRoot(fiber);
|
|
|
|
|
|
if (strictRoot === null) {
|
|
|
error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
|
|
|
|
|
|
return;
|
|
|
} // Dedup strategy: Warn once per component.
|
|
|
|
|
|
|
|
|
if (didWarnAboutLegacyContext.has(fiber.type)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
|
|
|
|
|
|
if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
|
|
|
if (warningsForRoot === undefined) {
|
|
|
warningsForRoot = [];
|
|
|
pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
|
|
|
}
|
|
|
|
|
|
warningsForRoot.push(fiber);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
ReactStrictModeWarnings.flushLegacyContextWarning = function () {
|
|
|
pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
|
|
|
if (fiberArray.length === 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var firstFiber = fiberArray[0];
|
|
|
var uniqueNames = new Set();
|
|
|
fiberArray.forEach(function (fiber) {
|
|
|
uniqueNames.add(getComponentName(fiber.type) || 'Component');
|
|
|
didWarnAboutLegacyContext.add(fiber.type);
|
|
|
});
|
|
|
var sortedNames = setToSortedString(uniqueNames);
|
|
|
var firstComponentStack = getStackByFiberInDevAndProd(firstFiber);
|
|
|
|
|
|
error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
ReactStrictModeWarnings.discardPendingWarnings = function () {
|
|
|
pendingComponentWillMountWarnings = [];
|
|
|
pendingUNSAFE_ComponentWillMountWarnings = [];
|
|
|
pendingComponentWillReceivePropsWarnings = [];
|
|
|
pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
|
|
|
pendingComponentWillUpdateWarnings = [];
|
|
|
pendingUNSAFE_ComponentWillUpdateWarnings = [];
|
|
|
pendingLegacyContextWarning = new Map();
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.
|
|
|
|
|
|
var failedBoundaries = null;
|
|
|
var setRefreshHandler = function (handler) {
|
|
|
{
|
|
|
resolveFamily = handler;
|
|
|
}
|
|
|
};
|
|
|
function resolveFunctionForHotReloading(type) {
|
|
|
{
|
|
|
if (resolveFamily === null) {
|
|
|
// Hot reloading is disabled.
|
|
|
return type;
|
|
|
}
|
|
|
|
|
|
var family = resolveFamily(type);
|
|
|
|
|
|
if (family === undefined) {
|
|
|
return type;
|
|
|
} // Use the latest known implementation.
|
|
|
|
|
|
|
|
|
return family.current;
|
|
|
}
|
|
|
}
|
|
|
function resolveClassForHotReloading(type) {
|
|
|
// No implementation differences.
|
|
|
return resolveFunctionForHotReloading(type);
|
|
|
}
|
|
|
function resolveForwardRefForHotReloading(type) {
|
|
|
{
|
|
|
if (resolveFamily === null) {
|
|
|
// Hot reloading is disabled.
|
|
|
return type;
|
|
|
}
|
|
|
|
|
|
var family = resolveFamily(type);
|
|
|
|
|
|
if (family === undefined) {
|
|
|
// Check if we're dealing with a real forwardRef. Don't want to crash early.
|
|
|
if (type !== null && type !== undefined && typeof type.render === 'function') {
|
|
|
// ForwardRef is special because its resolved .type is an object,
|
|
|
// but it's possible that we only have its inner render function in the map.
|
|
|
// If that inner render function is different, we'll build a new forwardRef type.
|
|
|
var currentRender = resolveFunctionForHotReloading(type.render);
|
|
|
|
|
|
if (type.render !== currentRender) {
|
|
|
var syntheticType = {
|
|
|
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
|
render: currentRender
|
|
|
};
|
|
|
|
|
|
if (type.displayName !== undefined) {
|
|
|
syntheticType.displayName = type.displayName;
|
|
|
}
|
|
|
|
|
|
return syntheticType;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return type;
|
|
|
} // Use the latest known implementation.
|
|
|
|
|
|
|
|
|
return family.current;
|
|
|
}
|
|
|
}
|
|
|
function isCompatibleFamilyForHotReloading(fiber, element) {
|
|
|
{
|
|
|
if (resolveFamily === null) {
|
|
|
// Hot reloading is disabled.
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var prevType = fiber.elementType;
|
|
|
var nextType = element.type; // If we got here, we know types aren't === equal.
|
|
|
|
|
|
var needsCompareFamilies = false;
|
|
|
var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
|
|
|
|
|
|
switch (fiber.tag) {
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
if (typeof nextType === 'function') {
|
|
|
needsCompareFamilies = true;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case FunctionComponent:
|
|
|
{
|
|
|
if (typeof nextType === 'function') {
|
|
|
needsCompareFamilies = true;
|
|
|
} else if ($$typeofNextType === REACT_LAZY_TYPE) {
|
|
|
// We don't know the inner type yet.
|
|
|
// We're going to assume that the lazy inner type is stable,
|
|
|
// and so it is sufficient to avoid reconciling it away.
|
|
|
// We're not going to unwrap or actually use the new lazy type.
|
|
|
needsCompareFamilies = true;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case ForwardRef:
|
|
|
{
|
|
|
if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
|
|
|
needsCompareFamilies = true;
|
|
|
} else if ($$typeofNextType === REACT_LAZY_TYPE) {
|
|
|
needsCompareFamilies = true;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case MemoComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
{
|
|
|
if ($$typeofNextType === REACT_MEMO_TYPE) {
|
|
|
// TODO: if it was but can no longer be simple,
|
|
|
// we shouldn't set this.
|
|
|
needsCompareFamilies = true;
|
|
|
} else if ($$typeofNextType === REACT_LAZY_TYPE) {
|
|
|
needsCompareFamilies = true;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
} // Check if both types have a family and it's the same one.
|
|
|
|
|
|
|
|
|
if (needsCompareFamilies) {
|
|
|
// Note: memo() and forwardRef() we'll compare outer rather than inner type.
|
|
|
// This means both of them need to be registered to preserve state.
|
|
|
// If we unwrapped and compared the inner types for wrappers instead,
|
|
|
// then we would risk falsely saying two separate memo(Foo)
|
|
|
// calls are equivalent because they wrap the same Foo function.
|
|
|
var prevFamily = resolveFamily(prevType);
|
|
|
|
|
|
if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
function markFailedErrorBoundaryForHotReloading(fiber) {
|
|
|
{
|
|
|
if (resolveFamily === null) {
|
|
|
// Hot reloading is disabled.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (typeof WeakSet !== 'function') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (failedBoundaries === null) {
|
|
|
failedBoundaries = new WeakSet();
|
|
|
}
|
|
|
|
|
|
failedBoundaries.add(fiber);
|
|
|
}
|
|
|
}
|
|
|
var scheduleRefresh = function (root, update) {
|
|
|
{
|
|
|
if (resolveFamily === null) {
|
|
|
// Hot reloading is disabled.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var staleFamilies = update.staleFamilies,
|
|
|
updatedFamilies = update.updatedFamilies;
|
|
|
flushPassiveEffects();
|
|
|
flushSync(function () {
|
|
|
scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
var scheduleRoot = function (root, element) {
|
|
|
{
|
|
|
if (root.context !== emptyContextObject) {
|
|
|
// Super edge case: root has a legacy _renderSubtree context
|
|
|
// but we don't know the parentComponent so we can't pass it.
|
|
|
// Just ignore. We'll delete this with _renderSubtree code path later.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
flushPassiveEffects();
|
|
|
syncUpdates(function () {
|
|
|
updateContainer(element, root, null, null);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
|
|
|
{
|
|
|
var alternate = fiber.alternate,
|
|
|
child = fiber.child,
|
|
|
sibling = fiber.sibling,
|
|
|
tag = fiber.tag,
|
|
|
type = fiber.type;
|
|
|
var candidateType = null;
|
|
|
|
|
|
switch (tag) {
|
|
|
case FunctionComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
case ClassComponent:
|
|
|
candidateType = type;
|
|
|
break;
|
|
|
|
|
|
case ForwardRef:
|
|
|
candidateType = type.render;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (resolveFamily === null) {
|
|
|
throw new Error('Expected resolveFamily to be set during hot reload.');
|
|
|
}
|
|
|
|
|
|
var needsRender = false;
|
|
|
var needsRemount = false;
|
|
|
|
|
|
if (candidateType !== null) {
|
|
|
var family = resolveFamily(candidateType);
|
|
|
|
|
|
if (family !== undefined) {
|
|
|
if (staleFamilies.has(family)) {
|
|
|
needsRemount = true;
|
|
|
} else if (updatedFamilies.has(family)) {
|
|
|
if (tag === ClassComponent) {
|
|
|
needsRemount = true;
|
|
|
} else {
|
|
|
needsRender = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (failedBoundaries !== null) {
|
|
|
if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
|
|
|
needsRemount = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (needsRemount) {
|
|
|
fiber._debugNeedsRemount = true;
|
|
|
}
|
|
|
|
|
|
if (needsRemount || needsRender) {
|
|
|
scheduleWork(fiber, Sync);
|
|
|
}
|
|
|
|
|
|
if (child !== null && !needsRemount) {
|
|
|
scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
|
|
|
}
|
|
|
|
|
|
if (sibling !== null) {
|
|
|
scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var findHostInstancesForRefresh = function (root, families) {
|
|
|
{
|
|
|
var hostInstances = new Set();
|
|
|
var types = new Set(families.map(function (family) {
|
|
|
return family.current;
|
|
|
}));
|
|
|
findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
|
|
|
return hostInstances;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
|
|
|
{
|
|
|
var child = fiber.child,
|
|
|
sibling = fiber.sibling,
|
|
|
tag = fiber.tag,
|
|
|
type = fiber.type;
|
|
|
var candidateType = null;
|
|
|
|
|
|
switch (tag) {
|
|
|
case FunctionComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
case ClassComponent:
|
|
|
candidateType = type;
|
|
|
break;
|
|
|
|
|
|
case ForwardRef:
|
|
|
candidateType = type.render;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var didMatch = false;
|
|
|
|
|
|
if (candidateType !== null) {
|
|
|
if (types.has(candidateType)) {
|
|
|
didMatch = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (didMatch) {
|
|
|
// We have a match. This only drills down to the closest host components.
|
|
|
// There's no need to search deeper because for the purpose of giving
|
|
|
// visual feedback, "flashing" outermost parent rectangles is sufficient.
|
|
|
findHostInstancesForFiberShallowly(fiber, hostInstances);
|
|
|
} else {
|
|
|
// If there's no match, maybe there will be one further down in the child tree.
|
|
|
if (child !== null) {
|
|
|
findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (sibling !== null) {
|
|
|
findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function findHostInstancesForFiberShallowly(fiber, hostInstances) {
|
|
|
{
|
|
|
var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
|
|
|
|
|
|
if (foundHostInstances) {
|
|
|
return;
|
|
|
} // If we didn't find any host children, fallback to closest host parent.
|
|
|
|
|
|
|
|
|
var node = fiber;
|
|
|
|
|
|
while (true) {
|
|
|
switch (node.tag) {
|
|
|
case HostComponent:
|
|
|
hostInstances.add(node.stateNode);
|
|
|
return;
|
|
|
|
|
|
case HostPortal:
|
|
|
hostInstances.add(node.stateNode.containerInfo);
|
|
|
return;
|
|
|
|
|
|
case HostRoot:
|
|
|
hostInstances.add(node.stateNode.containerInfo);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (node.return === null) {
|
|
|
throw new Error('Expected to reach root first.');
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
|
|
|
{
|
|
|
var node = fiber;
|
|
|
var foundHostInstances = false;
|
|
|
|
|
|
while (true) {
|
|
|
if (node.tag === HostComponent) {
|
|
|
// We got a match.
|
|
|
foundHostInstances = true;
|
|
|
hostInstances.add(node.stateNode); // There may still be more, so keep searching.
|
|
|
} else if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === fiber) {
|
|
|
return foundHostInstances;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === fiber) {
|
|
|
return foundHostInstances;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function resolveDefaultProps(Component, baseProps) {
|
|
|
if (Component && Component.defaultProps) {
|
|
|
// Resolve default props. Taken from ReactElement
|
|
|
var props = _assign({}, baseProps);
|
|
|
|
|
|
var defaultProps = Component.defaultProps;
|
|
|
|
|
|
for (var propName in defaultProps) {
|
|
|
if (props[propName] === undefined) {
|
|
|
props[propName] = defaultProps[propName];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return props;
|
|
|
}
|
|
|
|
|
|
return baseProps;
|
|
|
}
|
|
|
function readLazyComponentType(lazyComponent) {
|
|
|
initializeLazyComponentType(lazyComponent);
|
|
|
|
|
|
if (lazyComponent._status !== Resolved) {
|
|
|
throw lazyComponent._result;
|
|
|
}
|
|
|
|
|
|
return lazyComponent._result;
|
|
|
}
|
|
|
|
|
|
var valueCursor = createCursor(null);
|
|
|
var rendererSigil;
|
|
|
|
|
|
{
|
|
|
// Use this to detect multiple renderers using the same context
|
|
|
rendererSigil = {};
|
|
|
}
|
|
|
|
|
|
var currentlyRenderingFiber = null;
|
|
|
var lastContextDependency = null;
|
|
|
var lastContextWithAllBitsObserved = null;
|
|
|
var isDisallowedContextReadInDEV = false;
|
|
|
function resetContextDependencies() {
|
|
|
// This is called right before React yields execution, to ensure `readContext`
|
|
|
// cannot be called outside the render phase.
|
|
|
currentlyRenderingFiber = null;
|
|
|
lastContextDependency = null;
|
|
|
lastContextWithAllBitsObserved = null;
|
|
|
|
|
|
{
|
|
|
isDisallowedContextReadInDEV = false;
|
|
|
}
|
|
|
}
|
|
|
function enterDisallowedContextReadInDEV() {
|
|
|
{
|
|
|
isDisallowedContextReadInDEV = true;
|
|
|
}
|
|
|
}
|
|
|
function exitDisallowedContextReadInDEV() {
|
|
|
{
|
|
|
isDisallowedContextReadInDEV = false;
|
|
|
}
|
|
|
}
|
|
|
function pushProvider(providerFiber, nextValue) {
|
|
|
var context = providerFiber.type._context;
|
|
|
|
|
|
{
|
|
|
push(valueCursor, context._currentValue, providerFiber);
|
|
|
context._currentValue = nextValue;
|
|
|
|
|
|
{
|
|
|
if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
|
|
|
error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
|
|
|
}
|
|
|
|
|
|
context._currentRenderer = rendererSigil;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function popProvider(providerFiber) {
|
|
|
var currentValue = valueCursor.current;
|
|
|
pop(valueCursor, providerFiber);
|
|
|
var context = providerFiber.type._context;
|
|
|
|
|
|
{
|
|
|
context._currentValue = currentValue;
|
|
|
}
|
|
|
}
|
|
|
function calculateChangedBits(context, newValue, oldValue) {
|
|
|
if (objectIs(oldValue, newValue)) {
|
|
|
// No change
|
|
|
return 0;
|
|
|
} else {
|
|
|
var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
|
|
|
|
|
{
|
|
|
if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
|
|
|
error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return changedBits | 0;
|
|
|
}
|
|
|
}
|
|
|
function scheduleWorkOnParentPath(parent, renderExpirationTime) {
|
|
|
// Update the child expiration time of all the ancestors, including
|
|
|
// the alternates.
|
|
|
var node = parent;
|
|
|
|
|
|
while (node !== null) {
|
|
|
var alternate = node.alternate;
|
|
|
|
|
|
if (node.childExpirationTime < renderExpirationTime) {
|
|
|
node.childExpirationTime = renderExpirationTime;
|
|
|
|
|
|
if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
|
|
|
alternate.childExpirationTime = renderExpirationTime;
|
|
|
}
|
|
|
} else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
|
|
|
alternate.childExpirationTime = renderExpirationTime;
|
|
|
} else {
|
|
|
// Neither alternate was updated, which means the rest of the
|
|
|
// ancestor path already has sufficient priority.
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
}
|
|
|
function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
|
|
|
var fiber = workInProgress.child;
|
|
|
|
|
|
if (fiber !== null) {
|
|
|
// Set the return pointer of the child to the work-in-progress fiber.
|
|
|
fiber.return = workInProgress;
|
|
|
}
|
|
|
|
|
|
while (fiber !== null) {
|
|
|
var nextFiber = void 0; // Visit this fiber.
|
|
|
|
|
|
var list = fiber.dependencies;
|
|
|
|
|
|
if (list !== null) {
|
|
|
nextFiber = fiber.child;
|
|
|
var dependency = list.firstContext;
|
|
|
|
|
|
while (dependency !== null) {
|
|
|
// Check if the context matches.
|
|
|
if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
|
|
|
// Match! Schedule an update on this fiber.
|
|
|
if (fiber.tag === ClassComponent) {
|
|
|
// Schedule a force update on the work-in-progress.
|
|
|
var update = createUpdate(renderExpirationTime, null);
|
|
|
update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
|
|
|
// update to the current fiber, too, which means it will persist even if
|
|
|
// this render is thrown away. Since it's a race condition, not sure it's
|
|
|
// worth fixing.
|
|
|
|
|
|
enqueueUpdate(fiber, update);
|
|
|
}
|
|
|
|
|
|
if (fiber.expirationTime < renderExpirationTime) {
|
|
|
fiber.expirationTime = renderExpirationTime;
|
|
|
}
|
|
|
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
|
|
|
alternate.expirationTime = renderExpirationTime;
|
|
|
}
|
|
|
|
|
|
scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.
|
|
|
|
|
|
if (list.expirationTime < renderExpirationTime) {
|
|
|
list.expirationTime = renderExpirationTime;
|
|
|
} // Since we already found a match, we can stop traversing the
|
|
|
// dependency list.
|
|
|
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
dependency = dependency.next;
|
|
|
}
|
|
|
} else if (fiber.tag === ContextProvider) {
|
|
|
// Don't scan deeper if this is a matching provider
|
|
|
nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
|
|
|
} else {
|
|
|
// Traverse down.
|
|
|
nextFiber = fiber.child;
|
|
|
}
|
|
|
|
|
|
if (nextFiber !== null) {
|
|
|
// Set the return pointer of the child to the work-in-progress fiber.
|
|
|
nextFiber.return = fiber;
|
|
|
} else {
|
|
|
// No child. Traverse to next sibling.
|
|
|
nextFiber = fiber;
|
|
|
|
|
|
while (nextFiber !== null) {
|
|
|
if (nextFiber === workInProgress) {
|
|
|
// We're back to the root of this subtree. Exit.
|
|
|
nextFiber = null;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var sibling = nextFiber.sibling;
|
|
|
|
|
|
if (sibling !== null) {
|
|
|
// Set the return pointer of the sibling to the work-in-progress fiber.
|
|
|
sibling.return = nextFiber.return;
|
|
|
nextFiber = sibling;
|
|
|
break;
|
|
|
} // No more siblings. Traverse up.
|
|
|
|
|
|
|
|
|
nextFiber = nextFiber.return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
fiber = nextFiber;
|
|
|
}
|
|
|
}
|
|
|
function prepareToReadContext(workInProgress, renderExpirationTime) {
|
|
|
currentlyRenderingFiber = workInProgress;
|
|
|
lastContextDependency = null;
|
|
|
lastContextWithAllBitsObserved = null;
|
|
|
var dependencies = workInProgress.dependencies;
|
|
|
|
|
|
if (dependencies !== null) {
|
|
|
var firstContext = dependencies.firstContext;
|
|
|
|
|
|
if (firstContext !== null) {
|
|
|
if (dependencies.expirationTime >= renderExpirationTime) {
|
|
|
// Context list has a pending update. Mark that this fiber performed work.
|
|
|
markWorkInProgressReceivedUpdate();
|
|
|
} // Reset the work-in-progress list
|
|
|
|
|
|
|
|
|
dependencies.firstContext = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function readContext(context, observedBits) {
|
|
|
{
|
|
|
// This warning would fire if you read context inside a Hook like useMemo.
|
|
|
// Unlike the class check below, it's not enforced in production for perf.
|
|
|
if (isDisallowedContextReadInDEV) {
|
|
|
error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
|
|
|
var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.
|
|
|
|
|
|
if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
|
|
|
// Observe all updates.
|
|
|
lastContextWithAllBitsObserved = context;
|
|
|
resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
|
|
|
} else {
|
|
|
resolvedObservedBits = observedBits;
|
|
|
}
|
|
|
|
|
|
var contextItem = {
|
|
|
context: context,
|
|
|
observedBits: resolvedObservedBits,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
if (lastContextDependency === null) {
|
|
|
if (!(currentlyRenderingFiber !== null)) {
|
|
|
{
|
|
|
throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." );
|
|
|
}
|
|
|
} // This is the first dependency for this component. Create a new list.
|
|
|
|
|
|
|
|
|
lastContextDependency = contextItem;
|
|
|
currentlyRenderingFiber.dependencies = {
|
|
|
expirationTime: NoWork,
|
|
|
firstContext: contextItem,
|
|
|
responders: null
|
|
|
};
|
|
|
} else {
|
|
|
// Append a new context item.
|
|
|
lastContextDependency = lastContextDependency.next = contextItem;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return context._currentValue ;
|
|
|
}
|
|
|
|
|
|
var UpdateState = 0;
|
|
|
var ReplaceState = 1;
|
|
|
var ForceUpdate = 2;
|
|
|
var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
|
|
|
// It should only be read right after calling `processUpdateQueue`, via
|
|
|
// `checkHasForceUpdateAfterProcessing`.
|
|
|
|
|
|
var hasForceUpdate = false;
|
|
|
var didWarnUpdateInsideUpdate;
|
|
|
var currentlyProcessingQueue;
|
|
|
|
|
|
{
|
|
|
didWarnUpdateInsideUpdate = false;
|
|
|
currentlyProcessingQueue = null;
|
|
|
}
|
|
|
|
|
|
function initializeUpdateQueue(fiber) {
|
|
|
var queue = {
|
|
|
baseState: fiber.memoizedState,
|
|
|
baseQueue: null,
|
|
|
shared: {
|
|
|
pending: null
|
|
|
},
|
|
|
effects: null
|
|
|
};
|
|
|
fiber.updateQueue = queue;
|
|
|
}
|
|
|
function cloneUpdateQueue(current, workInProgress) {
|
|
|
// Clone the update queue from current. Unless it's already a clone.
|
|
|
var queue = workInProgress.updateQueue;
|
|
|
var currentQueue = current.updateQueue;
|
|
|
|
|
|
if (queue === currentQueue) {
|
|
|
var clone = {
|
|
|
baseState: currentQueue.baseState,
|
|
|
baseQueue: currentQueue.baseQueue,
|
|
|
shared: currentQueue.shared,
|
|
|
effects: currentQueue.effects
|
|
|
};
|
|
|
workInProgress.updateQueue = clone;
|
|
|
}
|
|
|
}
|
|
|
function createUpdate(expirationTime, suspenseConfig) {
|
|
|
var update = {
|
|
|
expirationTime: expirationTime,
|
|
|
suspenseConfig: suspenseConfig,
|
|
|
tag: UpdateState,
|
|
|
payload: null,
|
|
|
callback: null,
|
|
|
next: null
|
|
|
};
|
|
|
update.next = update;
|
|
|
|
|
|
{
|
|
|
update.priority = getCurrentPriorityLevel();
|
|
|
}
|
|
|
|
|
|
return update;
|
|
|
}
|
|
|
function enqueueUpdate(fiber, update) {
|
|
|
var updateQueue = fiber.updateQueue;
|
|
|
|
|
|
if (updateQueue === null) {
|
|
|
// Only occurs if the fiber has been unmounted.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var sharedQueue = updateQueue.shared;
|
|
|
var pending = sharedQueue.pending;
|
|
|
|
|
|
if (pending === null) {
|
|
|
// This is the first update. Create a circular list.
|
|
|
update.next = update;
|
|
|
} else {
|
|
|
update.next = pending.next;
|
|
|
pending.next = update;
|
|
|
}
|
|
|
|
|
|
sharedQueue.pending = update;
|
|
|
|
|
|
{
|
|
|
if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
|
|
|
error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
|
|
|
|
|
|
didWarnUpdateInsideUpdate = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function enqueueCapturedUpdate(workInProgress, update) {
|
|
|
var current = workInProgress.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
// Ensure the work-in-progress queue is a clone
|
|
|
cloneUpdateQueue(current, workInProgress);
|
|
|
} // Captured updates go only on the work-in-progress queue.
|
|
|
|
|
|
|
|
|
var queue = workInProgress.updateQueue; // Append the update to the end of the list.
|
|
|
|
|
|
var last = queue.baseQueue;
|
|
|
|
|
|
if (last === null) {
|
|
|
queue.baseQueue = update.next = update;
|
|
|
update.next = update;
|
|
|
} else {
|
|
|
update.next = last.next;
|
|
|
last.next = update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
|
|
|
switch (update.tag) {
|
|
|
case ReplaceState:
|
|
|
{
|
|
|
var payload = update.payload;
|
|
|
|
|
|
if (typeof payload === 'function') {
|
|
|
// Updater function
|
|
|
{
|
|
|
enterDisallowedContextReadInDEV();
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
payload.call(instance, prevState, nextProps);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var nextState = payload.call(instance, prevState, nextProps);
|
|
|
|
|
|
{
|
|
|
exitDisallowedContextReadInDEV();
|
|
|
}
|
|
|
|
|
|
return nextState;
|
|
|
} // State object
|
|
|
|
|
|
|
|
|
return payload;
|
|
|
}
|
|
|
|
|
|
case CaptureUpdate:
|
|
|
{
|
|
|
workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
|
|
|
}
|
|
|
// Intentional fallthrough
|
|
|
|
|
|
case UpdateState:
|
|
|
{
|
|
|
var _payload = update.payload;
|
|
|
var partialState;
|
|
|
|
|
|
if (typeof _payload === 'function') {
|
|
|
// Updater function
|
|
|
{
|
|
|
enterDisallowedContextReadInDEV();
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
_payload.call(instance, prevState, nextProps);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
partialState = _payload.call(instance, prevState, nextProps);
|
|
|
|
|
|
{
|
|
|
exitDisallowedContextReadInDEV();
|
|
|
}
|
|
|
} else {
|
|
|
// Partial state object
|
|
|
partialState = _payload;
|
|
|
}
|
|
|
|
|
|
if (partialState === null || partialState === undefined) {
|
|
|
// Null and undefined are treated as no-ops.
|
|
|
return prevState;
|
|
|
} // Merge the partial state and the previous state.
|
|
|
|
|
|
|
|
|
return _assign({}, prevState, partialState);
|
|
|
}
|
|
|
|
|
|
case ForceUpdate:
|
|
|
{
|
|
|
hasForceUpdate = true;
|
|
|
return prevState;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return prevState;
|
|
|
}
|
|
|
|
|
|
function processUpdateQueue(workInProgress, props, instance, renderExpirationTime) {
|
|
|
// This is always non-null on a ClassComponent or HostRoot
|
|
|
var queue = workInProgress.updateQueue;
|
|
|
hasForceUpdate = false;
|
|
|
|
|
|
{
|
|
|
currentlyProcessingQueue = queue.shared;
|
|
|
} // The last rebase update that is NOT part of the base state.
|
|
|
|
|
|
|
|
|
var baseQueue = queue.baseQueue; // The last pending update that hasn't been processed yet.
|
|
|
|
|
|
var pendingQueue = queue.shared.pending;
|
|
|
|
|
|
if (pendingQueue !== null) {
|
|
|
// We have new updates that haven't been processed yet.
|
|
|
// We'll add them to the base queue.
|
|
|
if (baseQueue !== null) {
|
|
|
// Merge the pending queue and the base queue.
|
|
|
var baseFirst = baseQueue.next;
|
|
|
var pendingFirst = pendingQueue.next;
|
|
|
baseQueue.next = pendingFirst;
|
|
|
pendingQueue.next = baseFirst;
|
|
|
}
|
|
|
|
|
|
baseQueue = pendingQueue;
|
|
|
queue.shared.pending = null; // TODO: Pass `current` as argument
|
|
|
|
|
|
var current = workInProgress.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
var currentQueue = current.updateQueue;
|
|
|
|
|
|
if (currentQueue !== null) {
|
|
|
currentQueue.baseQueue = pendingQueue;
|
|
|
}
|
|
|
}
|
|
|
} // These values may change as we process the queue.
|
|
|
|
|
|
|
|
|
if (baseQueue !== null) {
|
|
|
var first = baseQueue.next; // Iterate through the list of updates to compute the result.
|
|
|
|
|
|
var newState = queue.baseState;
|
|
|
var newExpirationTime = NoWork;
|
|
|
var newBaseState = null;
|
|
|
var newBaseQueueFirst = null;
|
|
|
var newBaseQueueLast = null;
|
|
|
|
|
|
if (first !== null) {
|
|
|
var update = first;
|
|
|
|
|
|
do {
|
|
|
var updateExpirationTime = update.expirationTime;
|
|
|
|
|
|
if (updateExpirationTime < renderExpirationTime) {
|
|
|
// Priority is insufficient. Skip this update. If this is the first
|
|
|
// skipped update, the previous update/state is the new base
|
|
|
// update/state.
|
|
|
var clone = {
|
|
|
expirationTime: update.expirationTime,
|
|
|
suspenseConfig: update.suspenseConfig,
|
|
|
tag: update.tag,
|
|
|
payload: update.payload,
|
|
|
callback: update.callback,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
if (newBaseQueueLast === null) {
|
|
|
newBaseQueueFirst = newBaseQueueLast = clone;
|
|
|
newBaseState = newState;
|
|
|
} else {
|
|
|
newBaseQueueLast = newBaseQueueLast.next = clone;
|
|
|
} // Update the remaining priority in the queue.
|
|
|
|
|
|
|
|
|
if (updateExpirationTime > newExpirationTime) {
|
|
|
newExpirationTime = updateExpirationTime;
|
|
|
}
|
|
|
} else {
|
|
|
// This update does have sufficient priority.
|
|
|
if (newBaseQueueLast !== null) {
|
|
|
var _clone = {
|
|
|
expirationTime: Sync,
|
|
|
// This update is going to be committed so we never want uncommit it.
|
|
|
suspenseConfig: update.suspenseConfig,
|
|
|
tag: update.tag,
|
|
|
payload: update.payload,
|
|
|
callback: update.callback,
|
|
|
next: null
|
|
|
};
|
|
|
newBaseQueueLast = newBaseQueueLast.next = _clone;
|
|
|
} // Mark the event time of this update as relevant to this render pass.
|
|
|
// TODO: This should ideally use the true event time of this update rather than
|
|
|
// its priority which is a derived and not reverseable value.
|
|
|
// TODO: We should skip this update if it was already committed but currently
|
|
|
// we have no way of detecting the difference between a committed and suspended
|
|
|
// update here.
|
|
|
|
|
|
|
|
|
markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
|
|
|
|
|
|
newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
|
|
|
var callback = update.callback;
|
|
|
|
|
|
if (callback !== null) {
|
|
|
workInProgress.effectTag |= Callback;
|
|
|
var effects = queue.effects;
|
|
|
|
|
|
if (effects === null) {
|
|
|
queue.effects = [update];
|
|
|
} else {
|
|
|
effects.push(update);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
update = update.next;
|
|
|
|
|
|
if (update === null || update === first) {
|
|
|
pendingQueue = queue.shared.pending;
|
|
|
|
|
|
if (pendingQueue === null) {
|
|
|
break;
|
|
|
} else {
|
|
|
// An update was scheduled from inside a reducer. Add the new
|
|
|
// pending updates to the end of the list and keep processing.
|
|
|
update = baseQueue.next = pendingQueue.next;
|
|
|
pendingQueue.next = first;
|
|
|
queue.baseQueue = baseQueue = pendingQueue;
|
|
|
queue.shared.pending = null;
|
|
|
}
|
|
|
}
|
|
|
} while (true);
|
|
|
}
|
|
|
|
|
|
if (newBaseQueueLast === null) {
|
|
|
newBaseState = newState;
|
|
|
} else {
|
|
|
newBaseQueueLast.next = newBaseQueueFirst;
|
|
|
}
|
|
|
|
|
|
queue.baseState = newBaseState;
|
|
|
queue.baseQueue = newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue.
|
|
|
// This should be fine because the only two other things that contribute to
|
|
|
// expiration time are props and context. We're already in the middle of the
|
|
|
// begin phase by the time we start processing the queue, so we've already
|
|
|
// dealt with the props. Context in components that specify
|
|
|
// shouldComponentUpdate is tricky; but we'll have to account for
|
|
|
// that regardless.
|
|
|
|
|
|
markUnprocessedUpdateTime(newExpirationTime);
|
|
|
workInProgress.expirationTime = newExpirationTime;
|
|
|
workInProgress.memoizedState = newState;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
currentlyProcessingQueue = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function callCallback(callback, context) {
|
|
|
if (!(typeof callback === 'function')) {
|
|
|
{
|
|
|
throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
callback.call(context);
|
|
|
}
|
|
|
|
|
|
function resetHasForceUpdateBeforeProcessing() {
|
|
|
hasForceUpdate = false;
|
|
|
}
|
|
|
function checkHasForceUpdateAfterProcessing() {
|
|
|
return hasForceUpdate;
|
|
|
}
|
|
|
function commitUpdateQueue(finishedWork, finishedQueue, instance) {
|
|
|
// Commit the effects
|
|
|
var effects = finishedQueue.effects;
|
|
|
finishedQueue.effects = null;
|
|
|
|
|
|
if (effects !== null) {
|
|
|
for (var i = 0; i < effects.length; i++) {
|
|
|
var effect = effects[i];
|
|
|
var callback = effect.callback;
|
|
|
|
|
|
if (callback !== null) {
|
|
|
effect.callback = null;
|
|
|
callCallback(callback, instance);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
|
function requestCurrentSuspenseConfig() {
|
|
|
return ReactCurrentBatchConfig.suspense;
|
|
|
}
|
|
|
|
|
|
var fakeInternalInstance = {};
|
|
|
var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
|
|
|
// We'll use it to determine whether we need to initialize legacy refs.
|
|
|
|
|
|
var emptyRefsObject = new React.Component().refs;
|
|
|
var didWarnAboutStateAssignmentForComponent;
|
|
|
var didWarnAboutUninitializedState;
|
|
|
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
|
|
|
var didWarnAboutLegacyLifecyclesAndDerivedState;
|
|
|
var didWarnAboutUndefinedDerivedState;
|
|
|
var warnOnUndefinedDerivedState;
|
|
|
var warnOnInvalidCallback;
|
|
|
var didWarnAboutDirectlyAssigningPropsToState;
|
|
|
var didWarnAboutContextTypeAndContextTypes;
|
|
|
var didWarnAboutInvalidateContextType;
|
|
|
|
|
|
{
|
|
|
didWarnAboutStateAssignmentForComponent = new Set();
|
|
|
didWarnAboutUninitializedState = new Set();
|
|
|
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
|
|
|
didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
|
|
|
didWarnAboutDirectlyAssigningPropsToState = new Set();
|
|
|
didWarnAboutUndefinedDerivedState = new Set();
|
|
|
didWarnAboutContextTypeAndContextTypes = new Set();
|
|
|
didWarnAboutInvalidateContextType = new Set();
|
|
|
var didWarnOnInvalidCallback = new Set();
|
|
|
|
|
|
warnOnInvalidCallback = function (callback, callerName) {
|
|
|
if (callback === null || typeof callback === 'function') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var key = callerName + "_" + callback;
|
|
|
|
|
|
if (!didWarnOnInvalidCallback.has(key)) {
|
|
|
didWarnOnInvalidCallback.add(key);
|
|
|
|
|
|
error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
warnOnUndefinedDerivedState = function (type, partialState) {
|
|
|
if (partialState === undefined) {
|
|
|
var componentName = getComponentName(type) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
|
|
|
didWarnAboutUndefinedDerivedState.add(componentName);
|
|
|
|
|
|
error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
|
|
|
}
|
|
|
}
|
|
|
}; // This is so gross but it's at least non-critical and can be removed if
|
|
|
// it causes problems. This is meant to give a nicer error message for
|
|
|
// ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
|
|
|
// ...)) which otherwise throws a "_processChildContext is not a function"
|
|
|
// exception.
|
|
|
|
|
|
|
|
|
Object.defineProperty(fakeInternalInstance, '_processChildContext', {
|
|
|
enumerable: false,
|
|
|
value: function () {
|
|
|
{
|
|
|
{
|
|
|
throw Error( "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
Object.freeze(fakeInternalInstance);
|
|
|
}
|
|
|
|
|
|
function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
|
|
|
var prevState = workInProgress.memoizedState;
|
|
|
|
|
|
{
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
// Invoke the function an extra time to help detect side-effects.
|
|
|
getDerivedStateFromProps(nextProps, prevState);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
|
|
|
|
{
|
|
|
warnOnUndefinedDerivedState(ctor, partialState);
|
|
|
} // Merge the partial state and the previous state.
|
|
|
|
|
|
|
|
|
var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
|
|
|
workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
|
|
|
// base state.
|
|
|
|
|
|
if (workInProgress.expirationTime === NoWork) {
|
|
|
// Queue is always non-null for classes
|
|
|
var updateQueue = workInProgress.updateQueue;
|
|
|
updateQueue.baseState = memoizedState;
|
|
|
}
|
|
|
}
|
|
|
var classComponentUpdater = {
|
|
|
isMounted: isMounted,
|
|
|
enqueueSetState: function (inst, payload, callback) {
|
|
|
var fiber = get(inst);
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var suspenseConfig = requestCurrentSuspenseConfig();
|
|
|
var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
|
|
|
var update = createUpdate(expirationTime, suspenseConfig);
|
|
|
update.payload = payload;
|
|
|
|
|
|
if (callback !== undefined && callback !== null) {
|
|
|
{
|
|
|
warnOnInvalidCallback(callback, 'setState');
|
|
|
}
|
|
|
|
|
|
update.callback = callback;
|
|
|
}
|
|
|
|
|
|
enqueueUpdate(fiber, update);
|
|
|
scheduleWork(fiber, expirationTime);
|
|
|
},
|
|
|
enqueueReplaceState: function (inst, payload, callback) {
|
|
|
var fiber = get(inst);
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var suspenseConfig = requestCurrentSuspenseConfig();
|
|
|
var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
|
|
|
var update = createUpdate(expirationTime, suspenseConfig);
|
|
|
update.tag = ReplaceState;
|
|
|
update.payload = payload;
|
|
|
|
|
|
if (callback !== undefined && callback !== null) {
|
|
|
{
|
|
|
warnOnInvalidCallback(callback, 'replaceState');
|
|
|
}
|
|
|
|
|
|
update.callback = callback;
|
|
|
}
|
|
|
|
|
|
enqueueUpdate(fiber, update);
|
|
|
scheduleWork(fiber, expirationTime);
|
|
|
},
|
|
|
enqueueForceUpdate: function (inst, callback) {
|
|
|
var fiber = get(inst);
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var suspenseConfig = requestCurrentSuspenseConfig();
|
|
|
var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
|
|
|
var update = createUpdate(expirationTime, suspenseConfig);
|
|
|
update.tag = ForceUpdate;
|
|
|
|
|
|
if (callback !== undefined && callback !== null) {
|
|
|
{
|
|
|
warnOnInvalidCallback(callback, 'forceUpdate');
|
|
|
}
|
|
|
|
|
|
update.callback = callback;
|
|
|
}
|
|
|
|
|
|
enqueueUpdate(fiber, update);
|
|
|
scheduleWork(fiber, expirationTime);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
|
|
|
var instance = workInProgress.stateNode;
|
|
|
|
|
|
if (typeof instance.shouldComponentUpdate === 'function') {
|
|
|
{
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
// Invoke the function an extra time to help detect side-effects.
|
|
|
instance.shouldComponentUpdate(newProps, newState, nextContext);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
startPhaseTimer(workInProgress, 'shouldComponentUpdate');
|
|
|
var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
|
|
|
stopPhaseTimer();
|
|
|
|
|
|
{
|
|
|
if (shouldUpdate === undefined) {
|
|
|
error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return shouldUpdate;
|
|
|
}
|
|
|
|
|
|
if (ctor.prototype && ctor.prototype.isPureReactComponent) {
|
|
|
return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function checkClassInstance(workInProgress, ctor, newProps) {
|
|
|
var instance = workInProgress.stateNode;
|
|
|
|
|
|
{
|
|
|
var name = getComponentName(ctor) || 'Component';
|
|
|
var renderPresent = instance.render;
|
|
|
|
|
|
if (!renderPresent) {
|
|
|
if (ctor.prototype && typeof ctor.prototype.render === 'function') {
|
|
|
error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
|
|
|
} else {
|
|
|
error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
|
|
|
error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
|
|
|
}
|
|
|
|
|
|
if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
|
|
|
error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
|
|
|
}
|
|
|
|
|
|
if (instance.propTypes) {
|
|
|
error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
|
|
|
}
|
|
|
|
|
|
if (instance.contextType) {
|
|
|
error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (instance.contextTypes) {
|
|
|
error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
|
|
|
}
|
|
|
|
|
|
if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
|
|
|
didWarnAboutContextTypeAndContextTypes.add(ctor);
|
|
|
|
|
|
error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentShouldUpdate === 'function') {
|
|
|
error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
|
|
|
}
|
|
|
|
|
|
if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
|
|
|
error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentDidUnmount === 'function') {
|
|
|
error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentDidReceiveProps === 'function') {
|
|
|
error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillRecieveProps === 'function') {
|
|
|
error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
|
|
|
error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
|
|
|
}
|
|
|
|
|
|
var hasMutatedProps = instance.props !== newProps;
|
|
|
|
|
|
if (instance.props !== undefined && hasMutatedProps) {
|
|
|
error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
|
|
|
}
|
|
|
|
|
|
if (instance.defaultProps) {
|
|
|
error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
|
|
|
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
|
|
|
|
|
|
error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getDerivedStateFromProps === 'function') {
|
|
|
error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getDerivedStateFromError === 'function') {
|
|
|
error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
|
|
|
}
|
|
|
|
|
|
if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
|
|
|
error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
|
|
|
}
|
|
|
|
|
|
var _state = instance.state;
|
|
|
|
|
|
if (_state && (typeof _state !== 'object' || isArray(_state))) {
|
|
|
error('%s.state: must be set to an object or null', name);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
|
|
|
error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function adoptClassInstance(workInProgress, instance) {
|
|
|
instance.updater = classComponentUpdater;
|
|
|
workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates
|
|
|
|
|
|
set(instance, workInProgress);
|
|
|
|
|
|
{
|
|
|
instance._reactInternalInstance = fakeInternalInstance;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function constructClassInstance(workInProgress, ctor, props) {
|
|
|
var isLegacyContextConsumer = false;
|
|
|
var unmaskedContext = emptyContextObject;
|
|
|
var context = emptyContextObject;
|
|
|
var contextType = ctor.contextType;
|
|
|
|
|
|
{
|
|
|
if ('contextType' in ctor) {
|
|
|
var isValid = // Allow null for conditional declaration
|
|
|
contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
|
|
|
|
|
|
if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
|
|
|
didWarnAboutInvalidateContextType.add(ctor);
|
|
|
var addendum = '';
|
|
|
|
|
|
if (contextType === undefined) {
|
|
|
addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
|
|
|
} else if (typeof contextType !== 'object') {
|
|
|
addendum = ' However, it is set to a ' + typeof contextType + '.';
|
|
|
} else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
|
|
|
addendum = ' Did you accidentally pass the Context.Provider instead?';
|
|
|
} else if (contextType._context !== undefined) {
|
|
|
// <Context.Consumer>
|
|
|
addendum = ' Did you accidentally pass the Context.Consumer instead?';
|
|
|
} else {
|
|
|
addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
|
|
|
}
|
|
|
|
|
|
error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof contextType === 'object' && contextType !== null) {
|
|
|
context = readContext(contextType);
|
|
|
} else {
|
|
|
unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
|
|
|
var contextTypes = ctor.contextTypes;
|
|
|
isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
|
|
|
context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
|
|
|
} // Instantiate twice to help detect side-effects.
|
|
|
|
|
|
|
|
|
{
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
new ctor(props, context); // eslint-disable-line no-new
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var instance = new ctor(props, context);
|
|
|
var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
|
|
|
adoptClassInstance(workInProgress, instance);
|
|
|
|
|
|
{
|
|
|
if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
|
|
|
var componentName = getComponentName(ctor) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutUninitializedState.has(componentName)) {
|
|
|
didWarnAboutUninitializedState.add(componentName);
|
|
|
|
|
|
error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
|
|
|
}
|
|
|
} // If new component APIs are defined, "unsafe" lifecycles won't be called.
|
|
|
// Warn about these lifecycles if they are present.
|
|
|
// Don't warn about react-lifecycles-compat polyfilled methods though.
|
|
|
|
|
|
|
|
|
if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
|
|
|
var foundWillMountName = null;
|
|
|
var foundWillReceivePropsName = null;
|
|
|
var foundWillUpdateName = null;
|
|
|
|
|
|
if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
|
|
|
foundWillMountName = 'componentWillMount';
|
|
|
} else if (typeof instance.UNSAFE_componentWillMount === 'function') {
|
|
|
foundWillMountName = 'UNSAFE_componentWillMount';
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
|
|
|
foundWillReceivePropsName = 'componentWillReceiveProps';
|
|
|
} else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
|
|
|
foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
|
|
|
foundWillUpdateName = 'componentWillUpdate';
|
|
|
} else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
|
|
|
foundWillUpdateName = 'UNSAFE_componentWillUpdate';
|
|
|
}
|
|
|
|
|
|
if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
|
|
|
var _componentName = getComponentName(ctor) || 'Component';
|
|
|
|
|
|
var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
|
|
|
|
|
|
if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
|
|
|
didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
|
|
|
|
|
|
error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n " + foundWillUpdateName : '');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} // Cache unmasked context so we can avoid recreating masked context unless necessary.
|
|
|
// ReactFiberContext usually updates this cache but can't for newly-created instances.
|
|
|
|
|
|
|
|
|
if (isLegacyContextConsumer) {
|
|
|
cacheContext(workInProgress, unmaskedContext, context);
|
|
|
}
|
|
|
|
|
|
return instance;
|
|
|
}
|
|
|
|
|
|
function callComponentWillMount(workInProgress, instance) {
|
|
|
startPhaseTimer(workInProgress, 'componentWillMount');
|
|
|
var oldState = instance.state;
|
|
|
|
|
|
if (typeof instance.componentWillMount === 'function') {
|
|
|
instance.componentWillMount();
|
|
|
}
|
|
|
|
|
|
if (typeof instance.UNSAFE_componentWillMount === 'function') {
|
|
|
instance.UNSAFE_componentWillMount();
|
|
|
}
|
|
|
|
|
|
stopPhaseTimer();
|
|
|
|
|
|
if (oldState !== instance.state) {
|
|
|
{
|
|
|
error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
|
|
|
}
|
|
|
|
|
|
classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
|
|
|
var oldState = instance.state;
|
|
|
startPhaseTimer(workInProgress, 'componentWillReceiveProps');
|
|
|
|
|
|
if (typeof instance.componentWillReceiveProps === 'function') {
|
|
|
instance.componentWillReceiveProps(newProps, nextContext);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
|
|
|
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
|
}
|
|
|
|
|
|
stopPhaseTimer();
|
|
|
|
|
|
if (instance.state !== oldState) {
|
|
|
{
|
|
|
var componentName = getComponentName(workInProgress.type) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
|
|
|
didWarnAboutStateAssignmentForComponent.add(componentName);
|
|
|
|
|
|
error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
|
|
|
}
|
|
|
} // Invokes the mount life-cycles on a previously never rendered instance.
|
|
|
|
|
|
|
|
|
function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
|
|
|
{
|
|
|
checkClassInstance(workInProgress, ctor, newProps);
|
|
|
}
|
|
|
|
|
|
var instance = workInProgress.stateNode;
|
|
|
instance.props = newProps;
|
|
|
instance.state = workInProgress.memoizedState;
|
|
|
instance.refs = emptyRefsObject;
|
|
|
initializeUpdateQueue(workInProgress);
|
|
|
var contextType = ctor.contextType;
|
|
|
|
|
|
if (typeof contextType === 'object' && contextType !== null) {
|
|
|
instance.context = readContext(contextType);
|
|
|
} else {
|
|
|
var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
|
|
|
instance.context = getMaskedContext(workInProgress, unmaskedContext);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (instance.state === newProps) {
|
|
|
var componentName = getComponentName(ctor) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
|
|
|
didWarnAboutDirectlyAssigningPropsToState.add(componentName);
|
|
|
|
|
|
error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workInProgress.mode & StrictMode) {
|
|
|
ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
|
|
|
instance.state = workInProgress.memoizedState;
|
|
|
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
|
|
|
|
|
|
if (typeof getDerivedStateFromProps === 'function') {
|
|
|
applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
|
|
|
instance.state = workInProgress.memoizedState;
|
|
|
} // In order to support react-lifecycles-compat polyfilled components,
|
|
|
// Unsafe lifecycles should not be invoked for components using the new APIs.
|
|
|
|
|
|
|
|
|
if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
|
|
|
callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
|
|
|
// process them now.
|
|
|
|
|
|
processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
|
|
|
instance.state = workInProgress.memoizedState;
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentDidMount === 'function') {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
|
|
|
var instance = workInProgress.stateNode;
|
|
|
var oldProps = workInProgress.memoizedProps;
|
|
|
instance.props = oldProps;
|
|
|
var oldContext = instance.context;
|
|
|
var contextType = ctor.contextType;
|
|
|
var nextContext = emptyContextObject;
|
|
|
|
|
|
if (typeof contextType === 'object' && contextType !== null) {
|
|
|
nextContext = readContext(contextType);
|
|
|
} else {
|
|
|
var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
|
|
|
nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
|
|
|
}
|
|
|
|
|
|
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
|
|
|
var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
|
|
|
// ever the previously attempted to render - not the "current". However,
|
|
|
// during componentDidUpdate we pass the "current" props.
|
|
|
// In order to support react-lifecycles-compat polyfilled components,
|
|
|
// Unsafe lifecycles should not be invoked for components using the new APIs.
|
|
|
|
|
|
if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
|
|
|
if (oldProps !== newProps || oldContext !== nextContext) {
|
|
|
callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
resetHasForceUpdateBeforeProcessing();
|
|
|
var oldState = workInProgress.memoizedState;
|
|
|
var newState = instance.state = oldState;
|
|
|
processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
|
|
|
newState = workInProgress.memoizedState;
|
|
|
|
|
|
if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
|
|
|
// If an update was already in progress, we should schedule an Update
|
|
|
// effect even though we're bailing out, so that cWU/cDU are called.
|
|
|
if (typeof instance.componentDidMount === 'function') {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (typeof getDerivedStateFromProps === 'function') {
|
|
|
applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
|
|
|
newState = workInProgress.memoizedState;
|
|
|
}
|
|
|
|
|
|
var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
|
|
|
|
|
|
if (shouldUpdate) {
|
|
|
// In order to support react-lifecycles-compat polyfilled components,
|
|
|
// Unsafe lifecycles should not be invoked for components using the new APIs.
|
|
|
if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
|
|
|
startPhaseTimer(workInProgress, 'componentWillMount');
|
|
|
|
|
|
if (typeof instance.componentWillMount === 'function') {
|
|
|
instance.componentWillMount();
|
|
|
}
|
|
|
|
|
|
if (typeof instance.UNSAFE_componentWillMount === 'function') {
|
|
|
instance.UNSAFE_componentWillMount();
|
|
|
}
|
|
|
|
|
|
stopPhaseTimer();
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentDidMount === 'function') {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
} else {
|
|
|
// If an update was already in progress, we should schedule an Update
|
|
|
// effect even though we're bailing out, so that cWU/cDU are called.
|
|
|
if (typeof instance.componentDidMount === 'function') {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
} // If shouldComponentUpdate returned false, we should still update the
|
|
|
// memoized state to indicate that this work can be reused.
|
|
|
|
|
|
|
|
|
workInProgress.memoizedProps = newProps;
|
|
|
workInProgress.memoizedState = newState;
|
|
|
} // Update the existing instance's state, props, and context pointers even
|
|
|
// if shouldComponentUpdate returns false.
|
|
|
|
|
|
|
|
|
instance.props = newProps;
|
|
|
instance.state = newState;
|
|
|
instance.context = nextContext;
|
|
|
return shouldUpdate;
|
|
|
} // Invokes the update life-cycles and returns false if it shouldn't rerender.
|
|
|
|
|
|
|
|
|
function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
|
|
|
var instance = workInProgress.stateNode;
|
|
|
cloneUpdateQueue(current, workInProgress);
|
|
|
var oldProps = workInProgress.memoizedProps;
|
|
|
instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
|
|
|
var oldContext = instance.context;
|
|
|
var contextType = ctor.contextType;
|
|
|
var nextContext = emptyContextObject;
|
|
|
|
|
|
if (typeof contextType === 'object' && contextType !== null) {
|
|
|
nextContext = readContext(contextType);
|
|
|
} else {
|
|
|
var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
|
|
|
nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
|
|
|
}
|
|
|
|
|
|
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
|
|
|
var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
|
|
|
// ever the previously attempted to render - not the "current". However,
|
|
|
// during componentDidUpdate we pass the "current" props.
|
|
|
// In order to support react-lifecycles-compat polyfilled components,
|
|
|
// Unsafe lifecycles should not be invoked for components using the new APIs.
|
|
|
|
|
|
if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
|
|
|
if (oldProps !== newProps || oldContext !== nextContext) {
|
|
|
callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
resetHasForceUpdateBeforeProcessing();
|
|
|
var oldState = workInProgress.memoizedState;
|
|
|
var newState = instance.state = oldState;
|
|
|
processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);
|
|
|
newState = workInProgress.memoizedState;
|
|
|
|
|
|
if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
|
|
|
// If an update was already in progress, we should schedule an Update
|
|
|
// effect even though we're bailing out, so that cWU/cDU are called.
|
|
|
if (typeof instance.componentDidUpdate === 'function') {
|
|
|
if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getSnapshotBeforeUpdate === 'function') {
|
|
|
if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
|
|
|
workInProgress.effectTag |= Snapshot;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (typeof getDerivedStateFromProps === 'function') {
|
|
|
applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
|
|
|
newState = workInProgress.memoizedState;
|
|
|
}
|
|
|
|
|
|
var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
|
|
|
|
|
|
if (shouldUpdate) {
|
|
|
// In order to support react-lifecycles-compat polyfilled components,
|
|
|
// Unsafe lifecycles should not be invoked for components using the new APIs.
|
|
|
if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
|
|
|
startPhaseTimer(workInProgress, 'componentWillUpdate');
|
|
|
|
|
|
if (typeof instance.componentWillUpdate === 'function') {
|
|
|
instance.componentWillUpdate(newProps, newState, nextContext);
|
|
|
}
|
|
|
|
|
|
if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
|
|
|
instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
|
|
|
}
|
|
|
|
|
|
stopPhaseTimer();
|
|
|
}
|
|
|
|
|
|
if (typeof instance.componentDidUpdate === 'function') {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getSnapshotBeforeUpdate === 'function') {
|
|
|
workInProgress.effectTag |= Snapshot;
|
|
|
}
|
|
|
} else {
|
|
|
// If an update was already in progress, we should schedule an Update
|
|
|
// effect even though we're bailing out, so that cWU/cDU are called.
|
|
|
if (typeof instance.componentDidUpdate === 'function') {
|
|
|
if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof instance.getSnapshotBeforeUpdate === 'function') {
|
|
|
if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
|
|
|
workInProgress.effectTag |= Snapshot;
|
|
|
}
|
|
|
} // If shouldComponentUpdate returned false, we should still update the
|
|
|
// memoized props/state to indicate that this work can be reused.
|
|
|
|
|
|
|
|
|
workInProgress.memoizedProps = newProps;
|
|
|
workInProgress.memoizedState = newState;
|
|
|
} // Update the existing instance's state, props, and context pointers even
|
|
|
// if shouldComponentUpdate returns false.
|
|
|
|
|
|
|
|
|
instance.props = newProps;
|
|
|
instance.state = newState;
|
|
|
instance.context = nextContext;
|
|
|
return shouldUpdate;
|
|
|
}
|
|
|
|
|
|
var didWarnAboutMaps;
|
|
|
var didWarnAboutGenerators;
|
|
|
var didWarnAboutStringRefs;
|
|
|
var ownerHasKeyUseWarning;
|
|
|
var ownerHasFunctionTypeWarning;
|
|
|
|
|
|
var warnForMissingKey = function (child) {};
|
|
|
|
|
|
{
|
|
|
didWarnAboutMaps = false;
|
|
|
didWarnAboutGenerators = false;
|
|
|
didWarnAboutStringRefs = {};
|
|
|
/**
|
|
|
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
|
* object keys are not valid. This allows us to keep track of children between
|
|
|
* updates.
|
|
|
*/
|
|
|
|
|
|
ownerHasKeyUseWarning = {};
|
|
|
ownerHasFunctionTypeWarning = {};
|
|
|
|
|
|
warnForMissingKey = function (child) {
|
|
|
if (child === null || typeof child !== 'object') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!child._store || child._store.validated || child.key != null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!(typeof child._store === 'object')) {
|
|
|
{
|
|
|
throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
child._store.validated = true;
|
|
|
var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
|
|
|
|
|
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
|
|
|
|
error('Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var isArray$1 = Array.isArray;
|
|
|
|
|
|
function coerceRef(returnFiber, current, element) {
|
|
|
var mixedRef = element.ref;
|
|
|
|
|
|
if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
|
|
|
{
|
|
|
// TODO: Clean this up once we turn on the string ref warning for
|
|
|
// everyone, because the strict mode case will no longer be relevant
|
|
|
if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
|
|
|
// because these cannot be automatically converted to an arrow function
|
|
|
// using a codemod. Therefore, we don't have to warn about string refs again.
|
|
|
!(element._owner && element._self && element._owner.stateNode !== element._self)) {
|
|
|
var componentName = getComponentName(returnFiber.type) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
|
{
|
|
|
error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber));
|
|
|
}
|
|
|
|
|
|
didWarnAboutStringRefs[componentName] = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (element._owner) {
|
|
|
var owner = element._owner;
|
|
|
var inst;
|
|
|
|
|
|
if (owner) {
|
|
|
var ownerFiber = owner;
|
|
|
|
|
|
if (!(ownerFiber.tag === ClassComponent)) {
|
|
|
{
|
|
|
throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref" );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
inst = ownerFiber.stateNode;
|
|
|
}
|
|
|
|
|
|
if (!inst) {
|
|
|
{
|
|
|
throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref
|
|
|
|
|
|
if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
|
|
|
return current.ref;
|
|
|
}
|
|
|
|
|
|
var ref = function (value) {
|
|
|
var refs = inst.refs;
|
|
|
|
|
|
if (refs === emptyRefsObject) {
|
|
|
// This is a lazy pooled frozen object, so we need to initialize.
|
|
|
refs = inst.refs = {};
|
|
|
}
|
|
|
|
|
|
if (value === null) {
|
|
|
delete refs[stringRef];
|
|
|
} else {
|
|
|
refs[stringRef] = value;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
ref._stringRef = stringRef;
|
|
|
return ref;
|
|
|
} else {
|
|
|
if (!(typeof mixedRef === 'string')) {
|
|
|
{
|
|
|
throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!element._owner) {
|
|
|
{
|
|
|
throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return mixedRef;
|
|
|
}
|
|
|
|
|
|
function throwOnInvalidObjectType(returnFiber, newChild) {
|
|
|
if (returnFiber.type !== 'textarea') {
|
|
|
var addendum = '';
|
|
|
|
|
|
{
|
|
|
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Objects are not valid as a React child (found: " + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ")." + addendum );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function warnOnFunctionType() {
|
|
|
{
|
|
|
var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();
|
|
|
|
|
|
if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
|
|
|
|
|
|
error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
|
|
|
}
|
|
|
} // This wrapper function exists because I expect to clone the code in each path
|
|
|
// to be able to optimize each path individually by branching early. This needs
|
|
|
// a compiler or we can do it manually. Helpers that don't need this branching
|
|
|
// live outside of this function.
|
|
|
|
|
|
|
|
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
|
function deleteChild(returnFiber, childToDelete) {
|
|
|
if (!shouldTrackSideEffects) {
|
|
|
// Noop.
|
|
|
return;
|
|
|
} // Deletions are added in reversed order so we add it to the front.
|
|
|
// At this point, the return fiber's effect list is empty except for
|
|
|
// deletions, so we can just append the deletion to the list. The remaining
|
|
|
// effects aren't added until the complete phase. Once we implement
|
|
|
// resuming, this may not be true.
|
|
|
|
|
|
|
|
|
var last = returnFiber.lastEffect;
|
|
|
|
|
|
if (last !== null) {
|
|
|
last.nextEffect = childToDelete;
|
|
|
returnFiber.lastEffect = childToDelete;
|
|
|
} else {
|
|
|
returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
|
|
|
}
|
|
|
|
|
|
childToDelete.nextEffect = null;
|
|
|
childToDelete.effectTag = Deletion;
|
|
|
}
|
|
|
|
|
|
function deleteRemainingChildren(returnFiber, currentFirstChild) {
|
|
|
if (!shouldTrackSideEffects) {
|
|
|
// Noop.
|
|
|
return null;
|
|
|
} // TODO: For the shouldClone case, this could be micro-optimized a bit by
|
|
|
// assuming that after the first child we've already added everything.
|
|
|
|
|
|
|
|
|
var childToDelete = currentFirstChild;
|
|
|
|
|
|
while (childToDelete !== null) {
|
|
|
deleteChild(returnFiber, childToDelete);
|
|
|
childToDelete = childToDelete.sibling;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function mapRemainingChildren(returnFiber, currentFirstChild) {
|
|
|
// Add the remaining children to a temporary map so that we can find them by
|
|
|
// keys quickly. Implicit (null) keys get added to this set with their index
|
|
|
// instead.
|
|
|
var existingChildren = new Map();
|
|
|
var existingChild = currentFirstChild;
|
|
|
|
|
|
while (existingChild !== null) {
|
|
|
if (existingChild.key !== null) {
|
|
|
existingChildren.set(existingChild.key, existingChild);
|
|
|
} else {
|
|
|
existingChildren.set(existingChild.index, existingChild);
|
|
|
}
|
|
|
|
|
|
existingChild = existingChild.sibling;
|
|
|
}
|
|
|
|
|
|
return existingChildren;
|
|
|
}
|
|
|
|
|
|
function useFiber(fiber, pendingProps) {
|
|
|
// We currently set sibling to null and index to 0 here because it is easy
|
|
|
// to forget to do before returning it. E.g. for the single child case.
|
|
|
var clone = createWorkInProgress(fiber, pendingProps);
|
|
|
clone.index = 0;
|
|
|
clone.sibling = null;
|
|
|
return clone;
|
|
|
}
|
|
|
|
|
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
|
newFiber.index = newIndex;
|
|
|
|
|
|
if (!shouldTrackSideEffects) {
|
|
|
// Noop.
|
|
|
return lastPlacedIndex;
|
|
|
}
|
|
|
|
|
|
var current = newFiber.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
var oldIndex = current.index;
|
|
|
|
|
|
if (oldIndex < lastPlacedIndex) {
|
|
|
// This is a move.
|
|
|
newFiber.effectTag = Placement;
|
|
|
return lastPlacedIndex;
|
|
|
} else {
|
|
|
// This item can stay in place.
|
|
|
return oldIndex;
|
|
|
}
|
|
|
} else {
|
|
|
// This is an insertion.
|
|
|
newFiber.effectTag = Placement;
|
|
|
return lastPlacedIndex;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function placeSingleChild(newFiber) {
|
|
|
// This is simpler for the single child case. We only need to do a
|
|
|
// placement for inserting new children.
|
|
|
if (shouldTrackSideEffects && newFiber.alternate === null) {
|
|
|
newFiber.effectTag = Placement;
|
|
|
}
|
|
|
|
|
|
return newFiber;
|
|
|
}
|
|
|
|
|
|
function updateTextNode(returnFiber, current, textContent, expirationTime) {
|
|
|
if (current === null || current.tag !== HostText) {
|
|
|
// Insert
|
|
|
var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
} else {
|
|
|
// Update
|
|
|
var existing = useFiber(current, textContent);
|
|
|
existing.return = returnFiber;
|
|
|
return existing;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateElement(returnFiber, current, element, expirationTime) {
|
|
|
if (current !== null) {
|
|
|
if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
|
|
|
isCompatibleFamilyForHotReloading(current, element) )) {
|
|
|
// Move based on index
|
|
|
var existing = useFiber(current, element.props);
|
|
|
existing.ref = coerceRef(returnFiber, current, element);
|
|
|
existing.return = returnFiber;
|
|
|
|
|
|
{
|
|
|
existing._debugSource = element._source;
|
|
|
existing._debugOwner = element._owner;
|
|
|
}
|
|
|
|
|
|
return existing;
|
|
|
}
|
|
|
} // Insert
|
|
|
|
|
|
|
|
|
var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
|
|
|
created.ref = coerceRef(returnFiber, current, element);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
}
|
|
|
|
|
|
function updatePortal(returnFiber, current, portal, expirationTime) {
|
|
|
if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
|
|
|
// Insert
|
|
|
var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
} else {
|
|
|
// Update
|
|
|
var existing = useFiber(current, portal.children || []);
|
|
|
existing.return = returnFiber;
|
|
|
return existing;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateFragment(returnFiber, current, fragment, expirationTime, key) {
|
|
|
if (current === null || current.tag !== Fragment) {
|
|
|
// Insert
|
|
|
var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
} else {
|
|
|
// Update
|
|
|
var existing = useFiber(current, fragment);
|
|
|
existing.return = returnFiber;
|
|
|
return existing;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createChild(returnFiber, newChild, expirationTime) {
|
|
|
if (typeof newChild === 'string' || typeof newChild === 'number') {
|
|
|
// Text nodes don't have keys. If the previous node is implicitly keyed
|
|
|
// we can continue to replace it without aborting even if it is not a text
|
|
|
// node.
|
|
|
var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
}
|
|
|
|
|
|
if (typeof newChild === 'object' && newChild !== null) {
|
|
|
switch (newChild.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
{
|
|
|
var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
|
|
|
|
|
|
_created.ref = coerceRef(returnFiber, null, newChild);
|
|
|
_created.return = returnFiber;
|
|
|
return _created;
|
|
|
}
|
|
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
{
|
|
|
var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
|
|
|
|
|
|
_created2.return = returnFiber;
|
|
|
return _created2;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (isArray$1(newChild) || getIteratorFn(newChild)) {
|
|
|
var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
|
|
|
|
|
|
_created3.return = returnFiber;
|
|
|
return _created3;
|
|
|
}
|
|
|
|
|
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (typeof newChild === 'function') {
|
|
|
warnOnFunctionType();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
|
|
|
// Update the fiber if the keys match, otherwise return null.
|
|
|
var key = oldFiber !== null ? oldFiber.key : null;
|
|
|
|
|
|
if (typeof newChild === 'string' || typeof newChild === 'number') {
|
|
|
// Text nodes don't have keys. If the previous node is implicitly keyed
|
|
|
// we can continue to replace it without aborting even if it is not a text
|
|
|
// node.
|
|
|
if (key !== null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
|
|
|
}
|
|
|
|
|
|
if (typeof newChild === 'object' && newChild !== null) {
|
|
|
switch (newChild.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
{
|
|
|
if (newChild.key === key) {
|
|
|
if (newChild.type === REACT_FRAGMENT_TYPE) {
|
|
|
return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
|
|
|
}
|
|
|
|
|
|
return updateElement(returnFiber, oldFiber, newChild, expirationTime);
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
{
|
|
|
if (newChild.key === key) {
|
|
|
return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (isArray$1(newChild) || getIteratorFn(newChild)) {
|
|
|
if (key !== null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
|
|
|
}
|
|
|
|
|
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (typeof newChild === 'function') {
|
|
|
warnOnFunctionType();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
|
|
|
if (typeof newChild === 'string' || typeof newChild === 'number') {
|
|
|
// Text nodes don't have keys, so we neither have to check the old nor
|
|
|
// new node for the key. If both are text nodes, they match.
|
|
|
var matchedFiber = existingChildren.get(newIdx) || null;
|
|
|
return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
|
|
|
}
|
|
|
|
|
|
if (typeof newChild === 'object' && newChild !== null) {
|
|
|
switch (newChild.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
{
|
|
|
var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
|
|
|
|
|
|
if (newChild.type === REACT_FRAGMENT_TYPE) {
|
|
|
return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
|
|
|
}
|
|
|
|
|
|
return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
|
|
|
}
|
|
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
{
|
|
|
var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
|
|
|
|
|
|
return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (isArray$1(newChild) || getIteratorFn(newChild)) {
|
|
|
var _matchedFiber3 = existingChildren.get(newIdx) || null;
|
|
|
|
|
|
return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
|
|
|
}
|
|
|
|
|
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (typeof newChild === 'function') {
|
|
|
warnOnFunctionType();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
/**
|
|
|
* Warns if there is a duplicate or missing key
|
|
|
*/
|
|
|
|
|
|
|
|
|
function warnOnInvalidKey(child, knownKeys) {
|
|
|
{
|
|
|
if (typeof child !== 'object' || child === null) {
|
|
|
return knownKeys;
|
|
|
}
|
|
|
|
|
|
switch (child.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
warnForMissingKey(child);
|
|
|
var key = child.key;
|
|
|
|
|
|
if (typeof key !== 'string') {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (knownKeys === null) {
|
|
|
knownKeys = new Set();
|
|
|
knownKeys.add(key);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (!knownKeys.has(key)) {
|
|
|
knownKeys.add(key);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return knownKeys;
|
|
|
}
|
|
|
|
|
|
function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
|
|
|
// This algorithm can't optimize by searching from both ends since we
|
|
|
// don't have backpointers on fibers. I'm trying to see how far we can get
|
|
|
// with that model. If it ends up not being worth the tradeoffs, we can
|
|
|
// add it later.
|
|
|
// Even with a two ended optimization, we'd want to optimize for the case
|
|
|
// where there are few changes and brute force the comparison instead of
|
|
|
// going for the Map. It'd like to explore hitting that path first in
|
|
|
// forward-only mode and only go for the Map once we notice that we need
|
|
|
// lots of look ahead. This doesn't handle reversal as well as two ended
|
|
|
// search but that's unusual. Besides, for the two ended optimization to
|
|
|
// work on Iterables, we'd need to copy the whole set.
|
|
|
// In this first iteration, we'll just live with hitting the bad case
|
|
|
// (adding everything to a Map) in for every insert/move.
|
|
|
// If you change this code, also update reconcileChildrenIterator() which
|
|
|
// uses the same algorithm.
|
|
|
{
|
|
|
// First, validate keys.
|
|
|
var knownKeys = null;
|
|
|
|
|
|
for (var i = 0; i < newChildren.length; i++) {
|
|
|
var child = newChildren[i];
|
|
|
knownKeys = warnOnInvalidKey(child, knownKeys);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var resultingFirstChild = null;
|
|
|
var previousNewFiber = null;
|
|
|
var oldFiber = currentFirstChild;
|
|
|
var lastPlacedIndex = 0;
|
|
|
var newIdx = 0;
|
|
|
var nextOldFiber = null;
|
|
|
|
|
|
for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
|
|
|
if (oldFiber.index > newIdx) {
|
|
|
nextOldFiber = oldFiber;
|
|
|
oldFiber = null;
|
|
|
} else {
|
|
|
nextOldFiber = oldFiber.sibling;
|
|
|
}
|
|
|
|
|
|
var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
|
|
|
|
|
|
if (newFiber === null) {
|
|
|
// TODO: This breaks on empty slots like null children. That's
|
|
|
// unfortunate because it triggers the slow path all the time. We need
|
|
|
// a better way to communicate whether this was a miss or null,
|
|
|
// boolean, undefined, etc.
|
|
|
if (oldFiber === null) {
|
|
|
oldFiber = nextOldFiber;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (shouldTrackSideEffects) {
|
|
|
if (oldFiber && newFiber.alternate === null) {
|
|
|
// We matched the slot, but we didn't reuse the existing fiber, so we
|
|
|
// need to delete the existing child.
|
|
|
deleteChild(returnFiber, oldFiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
// TODO: Move out of the loop. This only happens for the first run.
|
|
|
resultingFirstChild = newFiber;
|
|
|
} else {
|
|
|
// TODO: Defer siblings if we're not at the right index for this slot.
|
|
|
// I.e. if we had null values before, then we want to defer this
|
|
|
// for each null value. However, we also don't want to call updateSlot
|
|
|
// with the previous one.
|
|
|
previousNewFiber.sibling = newFiber;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = newFiber;
|
|
|
oldFiber = nextOldFiber;
|
|
|
}
|
|
|
|
|
|
if (newIdx === newChildren.length) {
|
|
|
// We've reached the end of the new children. We can delete the rest.
|
|
|
deleteRemainingChildren(returnFiber, oldFiber);
|
|
|
return resultingFirstChild;
|
|
|
}
|
|
|
|
|
|
if (oldFiber === null) {
|
|
|
// If we don't have any more existing children we can choose a fast path
|
|
|
// since the rest will all be insertions.
|
|
|
for (; newIdx < newChildren.length; newIdx++) {
|
|
|
var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
|
|
|
|
|
|
if (_newFiber === null) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
// TODO: Move out of the loop. This only happens for the first run.
|
|
|
resultingFirstChild = _newFiber;
|
|
|
} else {
|
|
|
previousNewFiber.sibling = _newFiber;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = _newFiber;
|
|
|
}
|
|
|
|
|
|
return resultingFirstChild;
|
|
|
} // Add all children to a key map for quick lookups.
|
|
|
|
|
|
|
|
|
var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
|
|
|
|
|
|
for (; newIdx < newChildren.length; newIdx++) {
|
|
|
var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
|
|
|
|
|
|
if (_newFiber2 !== null) {
|
|
|
if (shouldTrackSideEffects) {
|
|
|
if (_newFiber2.alternate !== null) {
|
|
|
// The new fiber is a work in progress, but if there exists a
|
|
|
// current, that means that we reused the fiber. We need to delete
|
|
|
// it from the child list so that we don't add it to the deletion
|
|
|
// list.
|
|
|
existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
resultingFirstChild = _newFiber2;
|
|
|
} else {
|
|
|
previousNewFiber.sibling = _newFiber2;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = _newFiber2;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (shouldTrackSideEffects) {
|
|
|
// Any existing children that weren't consumed above were deleted. We need
|
|
|
// to add them to the deletion list.
|
|
|
existingChildren.forEach(function (child) {
|
|
|
return deleteChild(returnFiber, child);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return resultingFirstChild;
|
|
|
}
|
|
|
|
|
|
function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
|
|
|
// This is the same implementation as reconcileChildrenArray(),
|
|
|
// but using the iterator instead.
|
|
|
var iteratorFn = getIteratorFn(newChildrenIterable);
|
|
|
|
|
|
if (!(typeof iteratorFn === 'function')) {
|
|
|
{
|
|
|
throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// We don't support rendering Generators because it's a mutation.
|
|
|
// See https://github.com/facebook/react/issues/12995
|
|
|
if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
|
|
|
newChildrenIterable[Symbol.toStringTag] === 'Generator') {
|
|
|
if (!didWarnAboutGenerators) {
|
|
|
error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
|
|
|
}
|
|
|
|
|
|
didWarnAboutGenerators = true;
|
|
|
} // Warn about using Maps as children
|
|
|
|
|
|
|
|
|
if (newChildrenIterable.entries === iteratorFn) {
|
|
|
if (!didWarnAboutMaps) {
|
|
|
error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');
|
|
|
}
|
|
|
|
|
|
didWarnAboutMaps = true;
|
|
|
} // First, validate keys.
|
|
|
// We'll get a different iterator later for the main pass.
|
|
|
|
|
|
|
|
|
var _newChildren = iteratorFn.call(newChildrenIterable);
|
|
|
|
|
|
if (_newChildren) {
|
|
|
var knownKeys = null;
|
|
|
|
|
|
var _step = _newChildren.next();
|
|
|
|
|
|
for (; !_step.done; _step = _newChildren.next()) {
|
|
|
var child = _step.value;
|
|
|
knownKeys = warnOnInvalidKey(child, knownKeys);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var newChildren = iteratorFn.call(newChildrenIterable);
|
|
|
|
|
|
if (!(newChildren != null)) {
|
|
|
{
|
|
|
throw Error( "An iterable object provided no iterator." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var resultingFirstChild = null;
|
|
|
var previousNewFiber = null;
|
|
|
var oldFiber = currentFirstChild;
|
|
|
var lastPlacedIndex = 0;
|
|
|
var newIdx = 0;
|
|
|
var nextOldFiber = null;
|
|
|
var step = newChildren.next();
|
|
|
|
|
|
for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
|
|
|
if (oldFiber.index > newIdx) {
|
|
|
nextOldFiber = oldFiber;
|
|
|
oldFiber = null;
|
|
|
} else {
|
|
|
nextOldFiber = oldFiber.sibling;
|
|
|
}
|
|
|
|
|
|
var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
|
|
|
|
|
|
if (newFiber === null) {
|
|
|
// TODO: This breaks on empty slots like null children. That's
|
|
|
// unfortunate because it triggers the slow path all the time. We need
|
|
|
// a better way to communicate whether this was a miss or null,
|
|
|
// boolean, undefined, etc.
|
|
|
if (oldFiber === null) {
|
|
|
oldFiber = nextOldFiber;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (shouldTrackSideEffects) {
|
|
|
if (oldFiber && newFiber.alternate === null) {
|
|
|
// We matched the slot, but we didn't reuse the existing fiber, so we
|
|
|
// need to delete the existing child.
|
|
|
deleteChild(returnFiber, oldFiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
// TODO: Move out of the loop. This only happens for the first run.
|
|
|
resultingFirstChild = newFiber;
|
|
|
} else {
|
|
|
// TODO: Defer siblings if we're not at the right index for this slot.
|
|
|
// I.e. if we had null values before, then we want to defer this
|
|
|
// for each null value. However, we also don't want to call updateSlot
|
|
|
// with the previous one.
|
|
|
previousNewFiber.sibling = newFiber;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = newFiber;
|
|
|
oldFiber = nextOldFiber;
|
|
|
}
|
|
|
|
|
|
if (step.done) {
|
|
|
// We've reached the end of the new children. We can delete the rest.
|
|
|
deleteRemainingChildren(returnFiber, oldFiber);
|
|
|
return resultingFirstChild;
|
|
|
}
|
|
|
|
|
|
if (oldFiber === null) {
|
|
|
// If we don't have any more existing children we can choose a fast path
|
|
|
// since the rest will all be insertions.
|
|
|
for (; !step.done; newIdx++, step = newChildren.next()) {
|
|
|
var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
|
|
|
|
|
|
if (_newFiber3 === null) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
// TODO: Move out of the loop. This only happens for the first run.
|
|
|
resultingFirstChild = _newFiber3;
|
|
|
} else {
|
|
|
previousNewFiber.sibling = _newFiber3;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = _newFiber3;
|
|
|
}
|
|
|
|
|
|
return resultingFirstChild;
|
|
|
} // Add all children to a key map for quick lookups.
|
|
|
|
|
|
|
|
|
var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.
|
|
|
|
|
|
for (; !step.done; newIdx++, step = newChildren.next()) {
|
|
|
var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
|
|
|
|
|
|
if (_newFiber4 !== null) {
|
|
|
if (shouldTrackSideEffects) {
|
|
|
if (_newFiber4.alternate !== null) {
|
|
|
// The new fiber is a work in progress, but if there exists a
|
|
|
// current, that means that we reused the fiber. We need to delete
|
|
|
// it from the child list so that we don't add it to the deletion
|
|
|
// list.
|
|
|
existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
|
|
|
|
|
|
if (previousNewFiber === null) {
|
|
|
resultingFirstChild = _newFiber4;
|
|
|
} else {
|
|
|
previousNewFiber.sibling = _newFiber4;
|
|
|
}
|
|
|
|
|
|
previousNewFiber = _newFiber4;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (shouldTrackSideEffects) {
|
|
|
// Any existing children that weren't consumed above were deleted. We need
|
|
|
// to add them to the deletion list.
|
|
|
existingChildren.forEach(function (child) {
|
|
|
return deleteChild(returnFiber, child);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return resultingFirstChild;
|
|
|
}
|
|
|
|
|
|
function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
|
|
|
// There's no need to check for keys on text nodes since we don't have a
|
|
|
// way to define them.
|
|
|
if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
|
|
|
// We already have an existing node so let's just update it and delete
|
|
|
// the rest.
|
|
|
deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
|
|
|
var existing = useFiber(currentFirstChild, textContent);
|
|
|
existing.return = returnFiber;
|
|
|
return existing;
|
|
|
} // The existing first child is not a text node so we need to create one
|
|
|
// and delete the existing ones.
|
|
|
|
|
|
|
|
|
deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
|
var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
}
|
|
|
|
|
|
function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
|
|
|
var key = element.key;
|
|
|
var child = currentFirstChild;
|
|
|
|
|
|
while (child !== null) {
|
|
|
// TODO: If key === null and child.key === null, then this only applies to
|
|
|
// the first item in the list.
|
|
|
if (child.key === key) {
|
|
|
switch (child.tag) {
|
|
|
case Fragment:
|
|
|
{
|
|
|
if (element.type === REACT_FRAGMENT_TYPE) {
|
|
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
|
var existing = useFiber(child, element.props.children);
|
|
|
existing.return = returnFiber;
|
|
|
|
|
|
{
|
|
|
existing._debugSource = element._source;
|
|
|
existing._debugOwner = element._owner;
|
|
|
}
|
|
|
|
|
|
return existing;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case Block:
|
|
|
|
|
|
// We intentionally fallthrough here if enableBlocksAPI is not on.
|
|
|
// eslint-disable-next-lined no-fallthrough
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
|
|
|
isCompatibleFamilyForHotReloading(child, element) )) {
|
|
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
|
|
|
|
var _existing3 = useFiber(child, element.props);
|
|
|
|
|
|
_existing3.ref = coerceRef(returnFiber, child, element);
|
|
|
_existing3.return = returnFiber;
|
|
|
|
|
|
{
|
|
|
_existing3._debugSource = element._source;
|
|
|
_existing3._debugOwner = element._owner;
|
|
|
}
|
|
|
|
|
|
return _existing3;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
} // Didn't match.
|
|
|
|
|
|
|
|
|
deleteRemainingChildren(returnFiber, child);
|
|
|
break;
|
|
|
} else {
|
|
|
deleteChild(returnFiber, child);
|
|
|
}
|
|
|
|
|
|
child = child.sibling;
|
|
|
}
|
|
|
|
|
|
if (element.type === REACT_FRAGMENT_TYPE) {
|
|
|
var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
} else {
|
|
|
var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
|
|
|
|
|
|
_created4.ref = coerceRef(returnFiber, currentFirstChild, element);
|
|
|
_created4.return = returnFiber;
|
|
|
return _created4;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
|
|
|
var key = portal.key;
|
|
|
var child = currentFirstChild;
|
|
|
|
|
|
while (child !== null) {
|
|
|
// TODO: If key === null and child.key === null, then this only applies to
|
|
|
// the first item in the list.
|
|
|
if (child.key === key) {
|
|
|
if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
|
|
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
|
var existing = useFiber(child, portal.children || []);
|
|
|
existing.return = returnFiber;
|
|
|
return existing;
|
|
|
} else {
|
|
|
deleteRemainingChildren(returnFiber, child);
|
|
|
break;
|
|
|
}
|
|
|
} else {
|
|
|
deleteChild(returnFiber, child);
|
|
|
}
|
|
|
|
|
|
child = child.sibling;
|
|
|
}
|
|
|
|
|
|
var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
|
|
|
created.return = returnFiber;
|
|
|
return created;
|
|
|
} // This API will tag the children with the side-effect of the reconciliation
|
|
|
// itself. They will be added to the side-effect list as we pass through the
|
|
|
// children and the parent.
|
|
|
|
|
|
|
|
|
function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
|
|
|
// This function is not recursive.
|
|
|
// If the top level item is an array, we treat it as a set of children,
|
|
|
// not as a fragment. Nested arrays on the other hand will be treated as
|
|
|
// fragment nodes. Recursion happens at the normal flow.
|
|
|
// Handle top level unkeyed fragments as if they were arrays.
|
|
|
// This leads to an ambiguity between <>{[...]}</> and <>...</>.
|
|
|
// We treat the ambiguous cases above the same.
|
|
|
var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
|
|
|
|
|
|
if (isUnkeyedTopLevelFragment) {
|
|
|
newChild = newChild.props.children;
|
|
|
} // Handle object types
|
|
|
|
|
|
|
|
|
var isObject = typeof newChild === 'object' && newChild !== null;
|
|
|
|
|
|
if (isObject) {
|
|
|
switch (newChild.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
|
|
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof newChild === 'string' || typeof newChild === 'number') {
|
|
|
return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
|
|
|
}
|
|
|
|
|
|
if (isArray$1(newChild)) {
|
|
|
return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
|
|
|
}
|
|
|
|
|
|
if (getIteratorFn(newChild)) {
|
|
|
return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
|
|
|
}
|
|
|
|
|
|
if (isObject) {
|
|
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (typeof newChild === 'function') {
|
|
|
warnOnFunctionType();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
|
|
|
// If the new child is undefined, and the return fiber is a composite
|
|
|
// component, throw an error. If Fiber return types are disabled,
|
|
|
// we already threw above.
|
|
|
switch (returnFiber.tag) {
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
{
|
|
|
var instance = returnFiber.stateNode;
|
|
|
|
|
|
if (instance.render._isMockFunction) {
|
|
|
// We allow auto-mocks to proceed as if they're returning null.
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// Intentionally fall through to the next case, which handles both
|
|
|
// functions and classes
|
|
|
// eslint-disable-next-lined no-fallthrough
|
|
|
|
|
|
case FunctionComponent:
|
|
|
{
|
|
|
var Component = returnFiber.type;
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( (Component.displayName || Component.name || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} // Remaining cases are all treated as empty.
|
|
|
|
|
|
|
|
|
return deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
|
}
|
|
|
|
|
|
return reconcileChildFibers;
|
|
|
}
|
|
|
|
|
|
var reconcileChildFibers = ChildReconciler(true);
|
|
|
var mountChildFibers = ChildReconciler(false);
|
|
|
function cloneChildFibers(current, workInProgress) {
|
|
|
if (!(current === null || workInProgress.child === current.child)) {
|
|
|
{
|
|
|
throw Error( "Resuming work not yet implemented." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workInProgress.child === null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var currentChild = workInProgress.child;
|
|
|
var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
|
|
|
workInProgress.child = newChild;
|
|
|
newChild.return = workInProgress;
|
|
|
|
|
|
while (currentChild.sibling !== null) {
|
|
|
currentChild = currentChild.sibling;
|
|
|
newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
|
|
|
newChild.return = workInProgress;
|
|
|
}
|
|
|
|
|
|
newChild.sibling = null;
|
|
|
} // Reset a workInProgress child set to prepare it for a second pass.
|
|
|
|
|
|
function resetChildFibers(workInProgress, renderExpirationTime) {
|
|
|
var child = workInProgress.child;
|
|
|
|
|
|
while (child !== null) {
|
|
|
resetWorkInProgress(child, renderExpirationTime);
|
|
|
child = child.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var NO_CONTEXT = {};
|
|
|
var contextStackCursor$1 = createCursor(NO_CONTEXT);
|
|
|
var contextFiberStackCursor = createCursor(NO_CONTEXT);
|
|
|
var rootInstanceStackCursor = createCursor(NO_CONTEXT);
|
|
|
|
|
|
function requiredContext(c) {
|
|
|
if (!(c !== NO_CONTEXT)) {
|
|
|
{
|
|
|
throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return c;
|
|
|
}
|
|
|
|
|
|
function getRootHostContainer() {
|
|
|
var rootInstance = requiredContext(rootInstanceStackCursor.current);
|
|
|
return rootInstance;
|
|
|
}
|
|
|
|
|
|
function pushHostContainer(fiber, nextRootInstance) {
|
|
|
// Push current root instance onto the stack;
|
|
|
// This allows us to reset root when portals are popped.
|
|
|
push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
|
|
|
// This enables us to pop only Fibers that provide unique contexts.
|
|
|
|
|
|
push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
|
|
|
// However, we can't just call getRootHostContext() and push it because
|
|
|
// we'd have a different number of entries on the stack depending on
|
|
|
// whether getRootHostContext() throws somewhere in renderer code or not.
|
|
|
// So we push an empty value first. This lets us safely unwind on errors.
|
|
|
|
|
|
push(contextStackCursor$1, NO_CONTEXT, fiber);
|
|
|
var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.
|
|
|
|
|
|
pop(contextStackCursor$1, fiber);
|
|
|
push(contextStackCursor$1, nextRootContext, fiber);
|
|
|
}
|
|
|
|
|
|
function popHostContainer(fiber) {
|
|
|
pop(contextStackCursor$1, fiber);
|
|
|
pop(contextFiberStackCursor, fiber);
|
|
|
pop(rootInstanceStackCursor, fiber);
|
|
|
}
|
|
|
|
|
|
function getHostContext() {
|
|
|
var context = requiredContext(contextStackCursor$1.current);
|
|
|
return context;
|
|
|
}
|
|
|
|
|
|
function pushHostContext(fiber) {
|
|
|
var rootInstance = requiredContext(rootInstanceStackCursor.current);
|
|
|
var context = requiredContext(contextStackCursor$1.current);
|
|
|
var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.
|
|
|
|
|
|
if (context === nextContext) {
|
|
|
return;
|
|
|
} // Track the context and the Fiber that provided it.
|
|
|
// This enables us to pop only Fibers that provide unique contexts.
|
|
|
|
|
|
|
|
|
push(contextFiberStackCursor, fiber, fiber);
|
|
|
push(contextStackCursor$1, nextContext, fiber);
|
|
|
}
|
|
|
|
|
|
function popHostContext(fiber) {
|
|
|
// Do not pop unless this Fiber provided the current context.
|
|
|
// pushHostContext() only pushes Fibers that provide unique contexts.
|
|
|
if (contextFiberStackCursor.current !== fiber) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
pop(contextStackCursor$1, fiber);
|
|
|
pop(contextFiberStackCursor, fiber);
|
|
|
}
|
|
|
|
|
|
var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
|
|
|
// inherited deeply down the subtree. The upper bits only affect
|
|
|
// this immediate suspense boundary and gets reset each new
|
|
|
// boundary or suspense list.
|
|
|
|
|
|
var SubtreeSuspenseContextMask = 1; // Subtree Flags:
|
|
|
// InvisibleParentSuspenseContext indicates that one of our parent Suspense
|
|
|
// boundaries is not currently showing visible main content.
|
|
|
// Either because it is already showing a fallback or is not mounted at all.
|
|
|
// We can use this to determine if it is desirable to trigger a fallback at
|
|
|
// the parent. If not, then we might need to trigger undesirable boundaries
|
|
|
// and/or suspend the commit to avoid hiding the parent content.
|
|
|
|
|
|
var InvisibleParentSuspenseContext = 1; // Shallow Flags:
|
|
|
// ForceSuspenseFallback can be used by SuspenseList to force newly added
|
|
|
// items into their fallback state during one of the render passes.
|
|
|
|
|
|
var ForceSuspenseFallback = 2;
|
|
|
var suspenseStackCursor = createCursor(DefaultSuspenseContext);
|
|
|
function hasSuspenseContext(parentContext, flag) {
|
|
|
return (parentContext & flag) !== 0;
|
|
|
}
|
|
|
function setDefaultShallowSuspenseContext(parentContext) {
|
|
|
return parentContext & SubtreeSuspenseContextMask;
|
|
|
}
|
|
|
function setShallowSuspenseContext(parentContext, shallowContext) {
|
|
|
return parentContext & SubtreeSuspenseContextMask | shallowContext;
|
|
|
}
|
|
|
function addSubtreeSuspenseContext(parentContext, subtreeContext) {
|
|
|
return parentContext | subtreeContext;
|
|
|
}
|
|
|
function pushSuspenseContext(fiber, newContext) {
|
|
|
push(suspenseStackCursor, newContext, fiber);
|
|
|
}
|
|
|
function popSuspenseContext(fiber) {
|
|
|
pop(suspenseStackCursor, fiber);
|
|
|
}
|
|
|
|
|
|
function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
|
|
|
// If it was the primary children that just suspended, capture and render the
|
|
|
// fallback. Otherwise, don't capture and bubble to the next boundary.
|
|
|
var nextState = workInProgress.memoizedState;
|
|
|
|
|
|
if (nextState !== null) {
|
|
|
if (nextState.dehydrated !== null) {
|
|
|
// A dehydrated boundary always captures.
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.
|
|
|
|
|
|
if (props.fallback === undefined) {
|
|
|
return false;
|
|
|
} // Regular boundaries always capture.
|
|
|
|
|
|
|
|
|
if (props.unstable_avoidThisFallback !== true) {
|
|
|
return true;
|
|
|
} // If it's a boundary we should avoid, then we prefer to bubble up to the
|
|
|
// parent boundary if it is currently invisible.
|
|
|
|
|
|
|
|
|
if (hasInvisibleParent) {
|
|
|
return false;
|
|
|
} // If the parent is not able to handle it, we must handle it.
|
|
|
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
function findFirstSuspended(row) {
|
|
|
var node = row;
|
|
|
|
|
|
while (node !== null) {
|
|
|
if (node.tag === SuspenseComponent) {
|
|
|
var state = node.memoizedState;
|
|
|
|
|
|
if (state !== null) {
|
|
|
var dehydrated = state.dehydrated;
|
|
|
|
|
|
if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
|
|
|
return node;
|
|
|
}
|
|
|
}
|
|
|
} else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
|
|
|
// keep track of whether it suspended or not.
|
|
|
node.memoizedProps.revealOrder !== undefined) {
|
|
|
var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
|
|
|
|
|
|
if (didSuspend) {
|
|
|
return node;
|
|
|
}
|
|
|
} else if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === row) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === row) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function createDeprecatedResponderListener(responder, props) {
|
|
|
var eventResponderListener = {
|
|
|
responder: responder,
|
|
|
props: props
|
|
|
};
|
|
|
|
|
|
{
|
|
|
Object.freeze(eventResponderListener);
|
|
|
}
|
|
|
|
|
|
return eventResponderListener;
|
|
|
}
|
|
|
|
|
|
var HasEffect =
|
|
|
/* */
|
|
|
1; // Represents the phase in which the effect (not the clean-up) fires.
|
|
|
|
|
|
var Layout =
|
|
|
/* */
|
|
|
2;
|
|
|
var Passive$1 =
|
|
|
/* */
|
|
|
4;
|
|
|
|
|
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
|
var didWarnAboutMismatchedHooksForComponent;
|
|
|
|
|
|
{
|
|
|
didWarnAboutMismatchedHooksForComponent = new Set();
|
|
|
}
|
|
|
|
|
|
// These are set right before calling the component.
|
|
|
var renderExpirationTime = NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from
|
|
|
// the work-in-progress hook.
|
|
|
|
|
|
var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
|
|
|
// current hook list is the list that belongs to the current fiber. The
|
|
|
// work-in-progress hook list is a new list that will be added to the
|
|
|
// work-in-progress fiber.
|
|
|
|
|
|
var currentHook = null;
|
|
|
var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
|
|
|
// does not get reset if we do another render pass; only when we're completely
|
|
|
// finished evaluating this component. This is an optimization so we know
|
|
|
// whether we need to clear render phase updates after a throw.
|
|
|
|
|
|
var didScheduleRenderPhaseUpdate = false;
|
|
|
var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook
|
|
|
|
|
|
var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
|
|
|
// The list stores the order of hooks used during the initial render (mount).
|
|
|
// Subsequent renders (updates) reference this list.
|
|
|
|
|
|
var hookTypesDev = null;
|
|
|
var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
|
|
|
// the dependencies for Hooks that need them (e.g. useEffect or useMemo).
|
|
|
// When true, such Hooks will always be "remounted". Only used during hot reload.
|
|
|
|
|
|
var ignorePreviousDependencies = false;
|
|
|
|
|
|
function mountHookTypesDev() {
|
|
|
{
|
|
|
var hookName = currentHookNameInDev;
|
|
|
|
|
|
if (hookTypesDev === null) {
|
|
|
hookTypesDev = [hookName];
|
|
|
} else {
|
|
|
hookTypesDev.push(hookName);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateHookTypesDev() {
|
|
|
{
|
|
|
var hookName = currentHookNameInDev;
|
|
|
|
|
|
if (hookTypesDev !== null) {
|
|
|
hookTypesUpdateIndexDev++;
|
|
|
|
|
|
if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
|
|
|
warnOnHookMismatchInDev(hookName);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function checkDepsAreArrayDev(deps) {
|
|
|
{
|
|
|
if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
|
|
|
// Verify deps, but only on mount to avoid extra checks.
|
|
|
// It's unlikely their type would change as usually you define them inline.
|
|
|
error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function warnOnHookMismatchInDev(currentHookName) {
|
|
|
{
|
|
|
var componentName = getComponentName(currentlyRenderingFiber$1.type);
|
|
|
|
|
|
if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
|
|
|
didWarnAboutMismatchedHooksForComponent.add(componentName);
|
|
|
|
|
|
if (hookTypesDev !== null) {
|
|
|
var table = '';
|
|
|
var secondColumnStart = 30;
|
|
|
|
|
|
for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
|
|
|
var oldHookName = hookTypesDev[i];
|
|
|
var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
|
|
|
var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
|
|
|
// lol @ IE not supporting String#repeat
|
|
|
|
|
|
while (row.length < secondColumnStart) {
|
|
|
row += ' ';
|
|
|
}
|
|
|
|
|
|
row += newHookName + '\n';
|
|
|
table += row;
|
|
|
}
|
|
|
|
|
|
error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function throwInvalidHookError() {
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function areHookInputsEqual(nextDeps, prevDeps) {
|
|
|
{
|
|
|
if (ignorePreviousDependencies) {
|
|
|
// Only true when this component is being hot reloaded.
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (prevDeps === null) {
|
|
|
{
|
|
|
error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// Don't bother comparing lengths in prod because these arrays should be
|
|
|
// passed inline.
|
|
|
if (nextDeps.length !== prevDeps.length) {
|
|
|
error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
|
|
|
if (objectIs(nextDeps[i], prevDeps[i])) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime) {
|
|
|
renderExpirationTime = nextRenderExpirationTime;
|
|
|
currentlyRenderingFiber$1 = workInProgress;
|
|
|
|
|
|
{
|
|
|
hookTypesDev = current !== null ? current._debugHookTypes : null;
|
|
|
hookTypesUpdateIndexDev = -1; // Used for hot reloading:
|
|
|
|
|
|
ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
|
|
|
}
|
|
|
|
|
|
workInProgress.memoizedState = null;
|
|
|
workInProgress.updateQueue = null;
|
|
|
workInProgress.expirationTime = NoWork; // The following should have already been reset
|
|
|
// currentHook = null;
|
|
|
// workInProgressHook = null;
|
|
|
// didScheduleRenderPhaseUpdate = false;
|
|
|
// TODO Warn if no hooks are used at all during mount, then some are used during update.
|
|
|
// Currently we will identify the update render as a mount because memoizedState === null.
|
|
|
// This is tricky because it's valid for certain types of components (e.g. React.lazy)
|
|
|
// Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
|
|
|
// Non-stateful hooks (e.g. context) don't get added to memoizedState,
|
|
|
// so memoizedState would be null during updates and mounts.
|
|
|
|
|
|
{
|
|
|
if (current !== null && current.memoizedState !== null) {
|
|
|
ReactCurrentDispatcher.current = HooksDispatcherOnUpdateInDEV;
|
|
|
} else if (hookTypesDev !== null) {
|
|
|
// This dispatcher handles an edge case where a component is updating,
|
|
|
// but no stateful hooks have been used.
|
|
|
// We want to match the production code behavior (which will use HooksDispatcherOnMount),
|
|
|
// but with the extra DEV validation to ensure hooks ordering hasn't changed.
|
|
|
// This dispatcher does that.
|
|
|
ReactCurrentDispatcher.current = HooksDispatcherOnMountWithHookTypesInDEV;
|
|
|
} else {
|
|
|
ReactCurrentDispatcher.current = HooksDispatcherOnMountInDEV;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var children = Component(props, secondArg); // Check if there was a render phase update
|
|
|
|
|
|
if (workInProgress.expirationTime === renderExpirationTime) {
|
|
|
// Keep rendering in a loop for as long as render phase updates continue to
|
|
|
// be scheduled. Use a counter to prevent infinite loops.
|
|
|
var numberOfReRenders = 0;
|
|
|
|
|
|
do {
|
|
|
workInProgress.expirationTime = NoWork;
|
|
|
|
|
|
if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
|
|
|
{
|
|
|
throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
numberOfReRenders += 1;
|
|
|
|
|
|
{
|
|
|
// Even when hot reloading, allow dependencies to stabilize
|
|
|
// after first render to prevent infinite render phase updates.
|
|
|
ignorePreviousDependencies = false;
|
|
|
} // Start over from the beginning of the list
|
|
|
|
|
|
|
|
|
currentHook = null;
|
|
|
workInProgressHook = null;
|
|
|
workInProgress.updateQueue = null;
|
|
|
|
|
|
{
|
|
|
// Also validate hook order for cascading updates.
|
|
|
hookTypesUpdateIndexDev = -1;
|
|
|
}
|
|
|
|
|
|
ReactCurrentDispatcher.current = HooksDispatcherOnRerenderInDEV ;
|
|
|
children = Component(props, secondArg);
|
|
|
} while (workInProgress.expirationTime === renderExpirationTime);
|
|
|
} // We can assume the previous dispatcher is always this one, since we set it
|
|
|
// at the beginning of the render phase and there's no re-entrancy.
|
|
|
|
|
|
|
|
|
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
|
|
|
|
|
|
{
|
|
|
workInProgress._debugHookTypes = hookTypesDev;
|
|
|
} // This check uses currentHook so that it works the same in DEV and prod bundles.
|
|
|
// hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
|
|
|
|
|
|
|
|
|
var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
|
|
|
renderExpirationTime = NoWork;
|
|
|
currentlyRenderingFiber$1 = null;
|
|
|
currentHook = null;
|
|
|
workInProgressHook = null;
|
|
|
|
|
|
{
|
|
|
currentHookNameInDev = null;
|
|
|
hookTypesDev = null;
|
|
|
hookTypesUpdateIndexDev = -1;
|
|
|
}
|
|
|
|
|
|
didScheduleRenderPhaseUpdate = false;
|
|
|
|
|
|
if (!!didRenderTooFewHooks) {
|
|
|
{
|
|
|
throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return children;
|
|
|
}
|
|
|
function bailoutHooks(current, workInProgress, expirationTime) {
|
|
|
workInProgress.updateQueue = current.updateQueue;
|
|
|
workInProgress.effectTag &= ~(Passive | Update);
|
|
|
|
|
|
if (current.expirationTime <= expirationTime) {
|
|
|
current.expirationTime = NoWork;
|
|
|
}
|
|
|
}
|
|
|
function resetHooksAfterThrow() {
|
|
|
// We can assume the previous dispatcher is always this one, since we set it
|
|
|
// at the beginning of the render phase and there's no re-entrancy.
|
|
|
ReactCurrentDispatcher.current = ContextOnlyDispatcher;
|
|
|
|
|
|
if (didScheduleRenderPhaseUpdate) {
|
|
|
// There were render phase updates. These are only valid for this render
|
|
|
// phase, which we are now aborting. Remove the updates from the queues so
|
|
|
// they do not persist to the next render. Do not remove updates from hooks
|
|
|
// that weren't processed.
|
|
|
//
|
|
|
// Only reset the updates from the queue if it has a clone. If it does
|
|
|
// not have a clone, that means it wasn't processed, and the updates were
|
|
|
// scheduled before we entered the render phase.
|
|
|
var hook = currentlyRenderingFiber$1.memoizedState;
|
|
|
|
|
|
while (hook !== null) {
|
|
|
var queue = hook.queue;
|
|
|
|
|
|
if (queue !== null) {
|
|
|
queue.pending = null;
|
|
|
}
|
|
|
|
|
|
hook = hook.next;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
renderExpirationTime = NoWork;
|
|
|
currentlyRenderingFiber$1 = null;
|
|
|
currentHook = null;
|
|
|
workInProgressHook = null;
|
|
|
|
|
|
{
|
|
|
hookTypesDev = null;
|
|
|
hookTypesUpdateIndexDev = -1;
|
|
|
currentHookNameInDev = null;
|
|
|
}
|
|
|
|
|
|
didScheduleRenderPhaseUpdate = false;
|
|
|
}
|
|
|
|
|
|
function mountWorkInProgressHook() {
|
|
|
var hook = {
|
|
|
memoizedState: null,
|
|
|
baseState: null,
|
|
|
baseQueue: null,
|
|
|
queue: null,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
if (workInProgressHook === null) {
|
|
|
// This is the first hook in the list
|
|
|
currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
|
|
|
} else {
|
|
|
// Append to the end of the list
|
|
|
workInProgressHook = workInProgressHook.next = hook;
|
|
|
}
|
|
|
|
|
|
return workInProgressHook;
|
|
|
}
|
|
|
|
|
|
function updateWorkInProgressHook() {
|
|
|
// This function is used both for updates and for re-renders triggered by a
|
|
|
// render phase update. It assumes there is either a current hook we can
|
|
|
// clone, or a work-in-progress hook from a previous render pass that we can
|
|
|
// use as a base. When we reach the end of the base list, we must switch to
|
|
|
// the dispatcher used for mounts.
|
|
|
var nextCurrentHook;
|
|
|
|
|
|
if (currentHook === null) {
|
|
|
var current = currentlyRenderingFiber$1.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
nextCurrentHook = current.memoizedState;
|
|
|
} else {
|
|
|
nextCurrentHook = null;
|
|
|
}
|
|
|
} else {
|
|
|
nextCurrentHook = currentHook.next;
|
|
|
}
|
|
|
|
|
|
var nextWorkInProgressHook;
|
|
|
|
|
|
if (workInProgressHook === null) {
|
|
|
nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
|
|
|
} else {
|
|
|
nextWorkInProgressHook = workInProgressHook.next;
|
|
|
}
|
|
|
|
|
|
if (nextWorkInProgressHook !== null) {
|
|
|
// There's already a work-in-progress. Reuse it.
|
|
|
workInProgressHook = nextWorkInProgressHook;
|
|
|
nextWorkInProgressHook = workInProgressHook.next;
|
|
|
currentHook = nextCurrentHook;
|
|
|
} else {
|
|
|
// Clone from the current hook.
|
|
|
if (!(nextCurrentHook !== null)) {
|
|
|
{
|
|
|
throw Error( "Rendered more hooks than during the previous render." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
currentHook = nextCurrentHook;
|
|
|
var newHook = {
|
|
|
memoizedState: currentHook.memoizedState,
|
|
|
baseState: currentHook.baseState,
|
|
|
baseQueue: currentHook.baseQueue,
|
|
|
queue: currentHook.queue,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
if (workInProgressHook === null) {
|
|
|
// This is the first hook in the list.
|
|
|
currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
|
|
|
} else {
|
|
|
// Append to the end of the list.
|
|
|
workInProgressHook = workInProgressHook.next = newHook;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return workInProgressHook;
|
|
|
}
|
|
|
|
|
|
function createFunctionComponentUpdateQueue() {
|
|
|
return {
|
|
|
lastEffect: null
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function basicStateReducer(state, action) {
|
|
|
// $FlowFixMe: Flow doesn't like mixed types
|
|
|
return typeof action === 'function' ? action(state) : action;
|
|
|
}
|
|
|
|
|
|
function mountReducer(reducer, initialArg, init) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
var initialState;
|
|
|
|
|
|
if (init !== undefined) {
|
|
|
initialState = init(initialArg);
|
|
|
} else {
|
|
|
initialState = initialArg;
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = hook.baseState = initialState;
|
|
|
var queue = hook.queue = {
|
|
|
pending: null,
|
|
|
dispatch: null,
|
|
|
lastRenderedReducer: reducer,
|
|
|
lastRenderedState: initialState
|
|
|
};
|
|
|
var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
|
|
|
return [hook.memoizedState, dispatch];
|
|
|
}
|
|
|
|
|
|
function updateReducer(reducer, initialArg, init) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
var queue = hook.queue;
|
|
|
|
|
|
if (!(queue !== null)) {
|
|
|
{
|
|
|
throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
queue.lastRenderedReducer = reducer;
|
|
|
var current = currentHook; // The last rebase update that is NOT part of the base state.
|
|
|
|
|
|
var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.
|
|
|
|
|
|
var pendingQueue = queue.pending;
|
|
|
|
|
|
if (pendingQueue !== null) {
|
|
|
// We have new updates that haven't been processed yet.
|
|
|
// We'll add them to the base queue.
|
|
|
if (baseQueue !== null) {
|
|
|
// Merge the pending queue and the base queue.
|
|
|
var baseFirst = baseQueue.next;
|
|
|
var pendingFirst = pendingQueue.next;
|
|
|
baseQueue.next = pendingFirst;
|
|
|
pendingQueue.next = baseFirst;
|
|
|
}
|
|
|
|
|
|
current.baseQueue = baseQueue = pendingQueue;
|
|
|
queue.pending = null;
|
|
|
}
|
|
|
|
|
|
if (baseQueue !== null) {
|
|
|
// We have a queue to process.
|
|
|
var first = baseQueue.next;
|
|
|
var newState = current.baseState;
|
|
|
var newBaseState = null;
|
|
|
var newBaseQueueFirst = null;
|
|
|
var newBaseQueueLast = null;
|
|
|
var update = first;
|
|
|
|
|
|
do {
|
|
|
var updateExpirationTime = update.expirationTime;
|
|
|
|
|
|
if (updateExpirationTime < renderExpirationTime) {
|
|
|
// Priority is insufficient. Skip this update. If this is the first
|
|
|
// skipped update, the previous update/state is the new base
|
|
|
// update/state.
|
|
|
var clone = {
|
|
|
expirationTime: update.expirationTime,
|
|
|
suspenseConfig: update.suspenseConfig,
|
|
|
action: update.action,
|
|
|
eagerReducer: update.eagerReducer,
|
|
|
eagerState: update.eagerState,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
if (newBaseQueueLast === null) {
|
|
|
newBaseQueueFirst = newBaseQueueLast = clone;
|
|
|
newBaseState = newState;
|
|
|
} else {
|
|
|
newBaseQueueLast = newBaseQueueLast.next = clone;
|
|
|
} // Update the remaining priority in the queue.
|
|
|
|
|
|
|
|
|
if (updateExpirationTime > currentlyRenderingFiber$1.expirationTime) {
|
|
|
currentlyRenderingFiber$1.expirationTime = updateExpirationTime;
|
|
|
markUnprocessedUpdateTime(updateExpirationTime);
|
|
|
}
|
|
|
} else {
|
|
|
// This update does have sufficient priority.
|
|
|
if (newBaseQueueLast !== null) {
|
|
|
var _clone = {
|
|
|
expirationTime: Sync,
|
|
|
// This update is going to be committed so we never want uncommit it.
|
|
|
suspenseConfig: update.suspenseConfig,
|
|
|
action: update.action,
|
|
|
eagerReducer: update.eagerReducer,
|
|
|
eagerState: update.eagerState,
|
|
|
next: null
|
|
|
};
|
|
|
newBaseQueueLast = newBaseQueueLast.next = _clone;
|
|
|
} // Mark the event time of this update as relevant to this render pass.
|
|
|
// TODO: This should ideally use the true event time of this update rather than
|
|
|
// its priority which is a derived and not reverseable value.
|
|
|
// TODO: We should skip this update if it was already committed but currently
|
|
|
// we have no way of detecting the difference between a committed and suspended
|
|
|
// update here.
|
|
|
|
|
|
|
|
|
markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.
|
|
|
|
|
|
if (update.eagerReducer === reducer) {
|
|
|
// If this update was processed eagerly, and its reducer matches the
|
|
|
// current reducer, we can use the eagerly computed state.
|
|
|
newState = update.eagerState;
|
|
|
} else {
|
|
|
var action = update.action;
|
|
|
newState = reducer(newState, action);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
update = update.next;
|
|
|
} while (update !== null && update !== first);
|
|
|
|
|
|
if (newBaseQueueLast === null) {
|
|
|
newBaseState = newState;
|
|
|
} else {
|
|
|
newBaseQueueLast.next = newBaseQueueFirst;
|
|
|
} // Mark that the fiber performed work, but only if the new state is
|
|
|
// different from the current state.
|
|
|
|
|
|
|
|
|
if (!objectIs(newState, hook.memoizedState)) {
|
|
|
markWorkInProgressReceivedUpdate();
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = newState;
|
|
|
hook.baseState = newBaseState;
|
|
|
hook.baseQueue = newBaseQueueLast;
|
|
|
queue.lastRenderedState = newState;
|
|
|
}
|
|
|
|
|
|
var dispatch = queue.dispatch;
|
|
|
return [hook.memoizedState, dispatch];
|
|
|
}
|
|
|
|
|
|
function rerenderReducer(reducer, initialArg, init) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
var queue = hook.queue;
|
|
|
|
|
|
if (!(queue !== null)) {
|
|
|
{
|
|
|
throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
|
|
|
// work-in-progress hook.
|
|
|
|
|
|
var dispatch = queue.dispatch;
|
|
|
var lastRenderPhaseUpdate = queue.pending;
|
|
|
var newState = hook.memoizedState;
|
|
|
|
|
|
if (lastRenderPhaseUpdate !== null) {
|
|
|
// The queue doesn't persist past this render pass.
|
|
|
queue.pending = null;
|
|
|
var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
|
|
|
var update = firstRenderPhaseUpdate;
|
|
|
|
|
|
do {
|
|
|
// Process this render phase update. We don't have to check the
|
|
|
// priority because it will always be the same as the current
|
|
|
// render's.
|
|
|
var action = update.action;
|
|
|
newState = reducer(newState, action);
|
|
|
update = update.next;
|
|
|
} while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
|
|
|
// different from the current state.
|
|
|
|
|
|
|
|
|
if (!objectIs(newState, hook.memoizedState)) {
|
|
|
markWorkInProgressReceivedUpdate();
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
|
|
|
// the base state unless the queue is empty.
|
|
|
// TODO: Not sure if this is the desired semantics, but it's what we
|
|
|
// do for gDSFP. I can't remember why.
|
|
|
|
|
|
if (hook.baseQueue === null) {
|
|
|
hook.baseState = newState;
|
|
|
}
|
|
|
|
|
|
queue.lastRenderedState = newState;
|
|
|
}
|
|
|
|
|
|
return [newState, dispatch];
|
|
|
}
|
|
|
|
|
|
function mountState(initialState) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
|
|
|
if (typeof initialState === 'function') {
|
|
|
// $FlowFixMe: Flow doesn't like mixed types
|
|
|
initialState = initialState();
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = hook.baseState = initialState;
|
|
|
var queue = hook.queue = {
|
|
|
pending: null,
|
|
|
dispatch: null,
|
|
|
lastRenderedReducer: basicStateReducer,
|
|
|
lastRenderedState: initialState
|
|
|
};
|
|
|
var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
|
|
|
return [hook.memoizedState, dispatch];
|
|
|
}
|
|
|
|
|
|
function updateState(initialState) {
|
|
|
return updateReducer(basicStateReducer);
|
|
|
}
|
|
|
|
|
|
function rerenderState(initialState) {
|
|
|
return rerenderReducer(basicStateReducer);
|
|
|
}
|
|
|
|
|
|
function pushEffect(tag, create, destroy, deps) {
|
|
|
var effect = {
|
|
|
tag: tag,
|
|
|
create: create,
|
|
|
destroy: destroy,
|
|
|
deps: deps,
|
|
|
// Circular
|
|
|
next: null
|
|
|
};
|
|
|
var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;
|
|
|
|
|
|
if (componentUpdateQueue === null) {
|
|
|
componentUpdateQueue = createFunctionComponentUpdateQueue();
|
|
|
currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
|
|
|
componentUpdateQueue.lastEffect = effect.next = effect;
|
|
|
} else {
|
|
|
var lastEffect = componentUpdateQueue.lastEffect;
|
|
|
|
|
|
if (lastEffect === null) {
|
|
|
componentUpdateQueue.lastEffect = effect.next = effect;
|
|
|
} else {
|
|
|
var firstEffect = lastEffect.next;
|
|
|
lastEffect.next = effect;
|
|
|
effect.next = firstEffect;
|
|
|
componentUpdateQueue.lastEffect = effect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return effect;
|
|
|
}
|
|
|
|
|
|
function mountRef(initialValue) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
var ref = {
|
|
|
current: initialValue
|
|
|
};
|
|
|
|
|
|
{
|
|
|
Object.seal(ref);
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = ref;
|
|
|
return ref;
|
|
|
}
|
|
|
|
|
|
function updateRef(initialValue) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
return hook.memoizedState;
|
|
|
}
|
|
|
|
|
|
function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
|
|
|
hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
|
|
|
}
|
|
|
|
|
|
function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
var destroy = undefined;
|
|
|
|
|
|
if (currentHook !== null) {
|
|
|
var prevEffect = currentHook.memoizedState;
|
|
|
destroy = prevEffect.destroy;
|
|
|
|
|
|
if (nextDeps !== null) {
|
|
|
var prevDeps = prevEffect.deps;
|
|
|
|
|
|
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
|
pushEffect(hookEffectTag, create, destroy, nextDeps);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
|
|
|
hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);
|
|
|
}
|
|
|
|
|
|
function mountEffect(create, deps) {
|
|
|
{
|
|
|
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
|
|
if ('undefined' !== typeof jest) {
|
|
|
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return mountEffectImpl(Update | Passive, Passive$1, create, deps);
|
|
|
}
|
|
|
|
|
|
function updateEffect(create, deps) {
|
|
|
{
|
|
|
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
|
|
if ('undefined' !== typeof jest) {
|
|
|
warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return updateEffectImpl(Update | Passive, Passive$1, create, deps);
|
|
|
}
|
|
|
|
|
|
function mountLayoutEffect(create, deps) {
|
|
|
return mountEffectImpl(Update, Layout, create, deps);
|
|
|
}
|
|
|
|
|
|
function updateLayoutEffect(create, deps) {
|
|
|
return updateEffectImpl(Update, Layout, create, deps);
|
|
|
}
|
|
|
|
|
|
function imperativeHandleEffect(create, ref) {
|
|
|
if (typeof ref === 'function') {
|
|
|
var refCallback = ref;
|
|
|
|
|
|
var _inst = create();
|
|
|
|
|
|
refCallback(_inst);
|
|
|
return function () {
|
|
|
refCallback(null);
|
|
|
};
|
|
|
} else if (ref !== null && ref !== undefined) {
|
|
|
var refObject = ref;
|
|
|
|
|
|
{
|
|
|
if (!refObject.hasOwnProperty('current')) {
|
|
|
error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _inst2 = create();
|
|
|
|
|
|
refObject.current = _inst2;
|
|
|
return function () {
|
|
|
refObject.current = null;
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function mountImperativeHandle(ref, create, deps) {
|
|
|
{
|
|
|
if (typeof create !== 'function') {
|
|
|
error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
|
|
|
}
|
|
|
} // TODO: If deps are provided, should we skip comparing the ref itself?
|
|
|
|
|
|
|
|
|
var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
|
return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
|
|
|
}
|
|
|
|
|
|
function updateImperativeHandle(ref, create, deps) {
|
|
|
{
|
|
|
if (typeof create !== 'function') {
|
|
|
error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
|
|
|
}
|
|
|
} // TODO: If deps are provided, should we skip comparing the ref itself?
|
|
|
|
|
|
|
|
|
var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
|
return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
|
|
|
}
|
|
|
|
|
|
function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
|
|
|
// The react-debug-hooks package injects its own implementation
|
|
|
// so that e.g. DevTools can display custom hook values.
|
|
|
}
|
|
|
|
|
|
var updateDebugValue = mountDebugValue;
|
|
|
|
|
|
function mountCallback(callback, deps) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
hook.memoizedState = [callback, nextDeps];
|
|
|
return callback;
|
|
|
}
|
|
|
|
|
|
function updateCallback(callback, deps) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
var prevState = hook.memoizedState;
|
|
|
|
|
|
if (prevState !== null) {
|
|
|
if (nextDeps !== null) {
|
|
|
var prevDeps = prevState[1];
|
|
|
|
|
|
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
|
return prevState[0];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
hook.memoizedState = [callback, nextDeps];
|
|
|
return callback;
|
|
|
}
|
|
|
|
|
|
function mountMemo(nextCreate, deps) {
|
|
|
var hook = mountWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
var nextValue = nextCreate();
|
|
|
hook.memoizedState = [nextValue, nextDeps];
|
|
|
return nextValue;
|
|
|
}
|
|
|
|
|
|
function updateMemo(nextCreate, deps) {
|
|
|
var hook = updateWorkInProgressHook();
|
|
|
var nextDeps = deps === undefined ? null : deps;
|
|
|
var prevState = hook.memoizedState;
|
|
|
|
|
|
if (prevState !== null) {
|
|
|
// Assume these are defined. If they're not, areHookInputsEqual will warn.
|
|
|
if (nextDeps !== null) {
|
|
|
var prevDeps = prevState[1];
|
|
|
|
|
|
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
|
return prevState[0];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var nextValue = nextCreate();
|
|
|
hook.memoizedState = [nextValue, nextDeps];
|
|
|
return nextValue;
|
|
|
}
|
|
|
|
|
|
function mountDeferredValue(value, config) {
|
|
|
var _mountState = mountState(value),
|
|
|
prevValue = _mountState[0],
|
|
|
setValue = _mountState[1];
|
|
|
|
|
|
mountEffect(function () {
|
|
|
var previousConfig = ReactCurrentBatchConfig$1.suspense;
|
|
|
ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
|
|
|
|
|
|
try {
|
|
|
setValue(value);
|
|
|
} finally {
|
|
|
ReactCurrentBatchConfig$1.suspense = previousConfig;
|
|
|
}
|
|
|
}, [value, config]);
|
|
|
return prevValue;
|
|
|
}
|
|
|
|
|
|
function updateDeferredValue(value, config) {
|
|
|
var _updateState = updateState(),
|
|
|
prevValue = _updateState[0],
|
|
|
setValue = _updateState[1];
|
|
|
|
|
|
updateEffect(function () {
|
|
|
var previousConfig = ReactCurrentBatchConfig$1.suspense;
|
|
|
ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
|
|
|
|
|
|
try {
|
|
|
setValue(value);
|
|
|
} finally {
|
|
|
ReactCurrentBatchConfig$1.suspense = previousConfig;
|
|
|
}
|
|
|
}, [value, config]);
|
|
|
return prevValue;
|
|
|
}
|
|
|
|
|
|
function rerenderDeferredValue(value, config) {
|
|
|
var _rerenderState = rerenderState(),
|
|
|
prevValue = _rerenderState[0],
|
|
|
setValue = _rerenderState[1];
|
|
|
|
|
|
updateEffect(function () {
|
|
|
var previousConfig = ReactCurrentBatchConfig$1.suspense;
|
|
|
ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
|
|
|
|
|
|
try {
|
|
|
setValue(value);
|
|
|
} finally {
|
|
|
ReactCurrentBatchConfig$1.suspense = previousConfig;
|
|
|
}
|
|
|
}, [value, config]);
|
|
|
return prevValue;
|
|
|
}
|
|
|
|
|
|
function startTransition(setPending, config, callback) {
|
|
|
var priorityLevel = getCurrentPriorityLevel();
|
|
|
runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1 : priorityLevel, function () {
|
|
|
setPending(true);
|
|
|
});
|
|
|
runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority : priorityLevel, function () {
|
|
|
var previousConfig = ReactCurrentBatchConfig$1.suspense;
|
|
|
ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
|
|
|
|
|
|
try {
|
|
|
setPending(false);
|
|
|
callback();
|
|
|
} finally {
|
|
|
ReactCurrentBatchConfig$1.suspense = previousConfig;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function mountTransition(config) {
|
|
|
var _mountState2 = mountState(false),
|
|
|
isPending = _mountState2[0],
|
|
|
setPending = _mountState2[1];
|
|
|
|
|
|
var start = mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);
|
|
|
return [start, isPending];
|
|
|
}
|
|
|
|
|
|
function updateTransition(config) {
|
|
|
var _updateState2 = updateState(),
|
|
|
isPending = _updateState2[0],
|
|
|
setPending = _updateState2[1];
|
|
|
|
|
|
var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
|
|
|
return [start, isPending];
|
|
|
}
|
|
|
|
|
|
function rerenderTransition(config) {
|
|
|
var _rerenderState2 = rerenderState(),
|
|
|
isPending = _rerenderState2[0],
|
|
|
setPending = _rerenderState2[1];
|
|
|
|
|
|
var start = updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);
|
|
|
return [start, isPending];
|
|
|
}
|
|
|
|
|
|
function dispatchAction(fiber, queue, action) {
|
|
|
{
|
|
|
if (typeof arguments[3] === 'function') {
|
|
|
error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var suspenseConfig = requestCurrentSuspenseConfig();
|
|
|
var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
|
|
|
var update = {
|
|
|
expirationTime: expirationTime,
|
|
|
suspenseConfig: suspenseConfig,
|
|
|
action: action,
|
|
|
eagerReducer: null,
|
|
|
eagerState: null,
|
|
|
next: null
|
|
|
};
|
|
|
|
|
|
{
|
|
|
update.priority = getCurrentPriorityLevel();
|
|
|
} // Append the update to the end of the list.
|
|
|
|
|
|
|
|
|
var pending = queue.pending;
|
|
|
|
|
|
if (pending === null) {
|
|
|
// This is the first update. Create a circular list.
|
|
|
update.next = update;
|
|
|
} else {
|
|
|
update.next = pending.next;
|
|
|
pending.next = update;
|
|
|
}
|
|
|
|
|
|
queue.pending = update;
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
|
|
|
// This is a render phase update. Stash it in a lazily-created map of
|
|
|
// queue -> linked list of updates. After this render pass, we'll restart
|
|
|
// and apply the stashed updates on top of the work-in-progress hook.
|
|
|
didScheduleRenderPhaseUpdate = true;
|
|
|
update.expirationTime = renderExpirationTime;
|
|
|
currentlyRenderingFiber$1.expirationTime = renderExpirationTime;
|
|
|
} else {
|
|
|
if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
|
|
|
// The queue is currently empty, which means we can eagerly compute the
|
|
|
// next state before entering the render phase. If the new state is the
|
|
|
// same as the current state, we may be able to bail out entirely.
|
|
|
var lastRenderedReducer = queue.lastRenderedReducer;
|
|
|
|
|
|
if (lastRenderedReducer !== null) {
|
|
|
var prevDispatcher;
|
|
|
|
|
|
{
|
|
|
prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
var currentState = queue.lastRenderedState;
|
|
|
var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
|
|
|
// it, on the update object. If the reducer hasn't changed by the
|
|
|
// time we enter the render phase, then the eager state can be used
|
|
|
// without calling the reducer again.
|
|
|
|
|
|
update.eagerReducer = lastRenderedReducer;
|
|
|
update.eagerState = eagerState;
|
|
|
|
|
|
if (objectIs(eagerState, currentState)) {
|
|
|
// Fast path. We can bail out without scheduling React to re-render.
|
|
|
// It's still possible that we'll need to rebase this update later,
|
|
|
// if the component re-renders for a different reason and by that
|
|
|
// time the reducer has changed.
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {// Suppress the error. It will throw again in the render phase.
|
|
|
} finally {
|
|
|
{
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
|
|
if ('undefined' !== typeof jest) {
|
|
|
warnIfNotScopedWithMatchingAct(fiber);
|
|
|
warnIfNotCurrentlyActingUpdatesInDev(fiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
scheduleWork(fiber, expirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var ContextOnlyDispatcher = {
|
|
|
readContext: readContext,
|
|
|
useCallback: throwInvalidHookError,
|
|
|
useContext: throwInvalidHookError,
|
|
|
useEffect: throwInvalidHookError,
|
|
|
useImperativeHandle: throwInvalidHookError,
|
|
|
useLayoutEffect: throwInvalidHookError,
|
|
|
useMemo: throwInvalidHookError,
|
|
|
useReducer: throwInvalidHookError,
|
|
|
useRef: throwInvalidHookError,
|
|
|
useState: throwInvalidHookError,
|
|
|
useDebugValue: throwInvalidHookError,
|
|
|
useResponder: throwInvalidHookError,
|
|
|
useDeferredValue: throwInvalidHookError,
|
|
|
useTransition: throwInvalidHookError
|
|
|
};
|
|
|
var HooksDispatcherOnMountInDEV = null;
|
|
|
var HooksDispatcherOnMountWithHookTypesInDEV = null;
|
|
|
var HooksDispatcherOnUpdateInDEV = null;
|
|
|
var HooksDispatcherOnRerenderInDEV = null;
|
|
|
var InvalidNestedHooksDispatcherOnMountInDEV = null;
|
|
|
var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
|
|
|
var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
|
|
|
|
|
|
{
|
|
|
var warnInvalidContextAccess = function () {
|
|
|
error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
|
|
|
};
|
|
|
|
|
|
var warnInvalidHookAccess = function () {
|
|
|
error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');
|
|
|
};
|
|
|
|
|
|
HooksDispatcherOnMountInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
mountHookTypesDev();
|
|
|
checkDepsAreArrayDev(deps);
|
|
|
return mountCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
mountHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
mountHookTypesDev();
|
|
|
checkDepsAreArrayDev(deps);
|
|
|
return mountEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
mountHookTypesDev();
|
|
|
checkDepsAreArrayDev(deps);
|
|
|
return mountImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
mountHookTypesDev();
|
|
|
checkDepsAreArrayDev(deps);
|
|
|
return mountLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
mountHookTypesDev();
|
|
|
checkDepsAreArrayDev(deps);
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
mountHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
mountHookTypesDev();
|
|
|
return mountRef(initialValue);
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
mountHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
mountHookTypesDev();
|
|
|
return mountDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
mountHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
mountHookTypesDev();
|
|
|
return mountDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
mountHookTypesDev();
|
|
|
return mountTransition(config);
|
|
|
}
|
|
|
};
|
|
|
HooksDispatcherOnMountWithHookTypesInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
updateHookTypesDev();
|
|
|
return mountCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
updateHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
updateHookTypesDev();
|
|
|
return mountEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
updateHookTypesDev();
|
|
|
return mountImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
updateHookTypesDev();
|
|
|
return mountLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
updateHookTypesDev();
|
|
|
return mountRef(initialValue);
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
updateHookTypesDev();
|
|
|
return mountDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
updateHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
updateHookTypesDev();
|
|
|
return mountDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
updateHookTypesDev();
|
|
|
return mountTransition(config);
|
|
|
}
|
|
|
};
|
|
|
HooksDispatcherOnUpdateInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
updateHookTypesDev();
|
|
|
return updateCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
updateHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
updateHookTypesDev();
|
|
|
return updateEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
updateHookTypesDev();
|
|
|
return updateImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
updateHookTypesDev();
|
|
|
return updateLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
updateHookTypesDev();
|
|
|
return updateRef();
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
updateHookTypesDev();
|
|
|
return updateDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
updateHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
updateHookTypesDev();
|
|
|
return updateDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
updateHookTypesDev();
|
|
|
return updateTransition(config);
|
|
|
}
|
|
|
};
|
|
|
HooksDispatcherOnRerenderInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
updateHookTypesDev();
|
|
|
return updateCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
updateHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
updateHookTypesDev();
|
|
|
return updateEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
updateHookTypesDev();
|
|
|
return updateImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
updateHookTypesDev();
|
|
|
return updateLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
|
|
|
|
try {
|
|
|
return rerenderReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
updateHookTypesDev();
|
|
|
return updateRef();
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
|
|
|
|
try {
|
|
|
return rerenderState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
updateHookTypesDev();
|
|
|
return updateDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
updateHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
updateHookTypesDev();
|
|
|
return rerenderDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
updateHookTypesDev();
|
|
|
return rerenderTransition(config);
|
|
|
}
|
|
|
};
|
|
|
InvalidNestedHooksDispatcherOnMountInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
warnInvalidContextAccess();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountRef(initialValue);
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
|
|
|
|
try {
|
|
|
return mountState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
warnInvalidHookAccess();
|
|
|
mountHookTypesDev();
|
|
|
return mountTransition(config);
|
|
|
}
|
|
|
};
|
|
|
InvalidNestedHooksDispatcherOnUpdateInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
warnInvalidContextAccess();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateRef();
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateTransition(config);
|
|
|
}
|
|
|
};
|
|
|
InvalidNestedHooksDispatcherOnRerenderInDEV = {
|
|
|
readContext: function (context, observedBits) {
|
|
|
warnInvalidContextAccess();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useCallback: function (callback, deps) {
|
|
|
currentHookNameInDev = 'useCallback';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateCallback(callback, deps);
|
|
|
},
|
|
|
useContext: function (context, observedBits) {
|
|
|
currentHookNameInDev = 'useContext';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return readContext(context, observedBits);
|
|
|
},
|
|
|
useEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateEffect(create, deps);
|
|
|
},
|
|
|
useImperativeHandle: function (ref, create, deps) {
|
|
|
currentHookNameInDev = 'useImperativeHandle';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateImperativeHandle(ref, create, deps);
|
|
|
},
|
|
|
useLayoutEffect: function (create, deps) {
|
|
|
currentHookNameInDev = 'useLayoutEffect';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateLayoutEffect(create, deps);
|
|
|
},
|
|
|
useMemo: function (create, deps) {
|
|
|
currentHookNameInDev = 'useMemo';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return updateMemo(create, deps);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useReducer: function (reducer, initialArg, init) {
|
|
|
currentHookNameInDev = 'useReducer';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return rerenderReducer(reducer, initialArg, init);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useRef: function (initialValue) {
|
|
|
currentHookNameInDev = 'useRef';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateRef();
|
|
|
},
|
|
|
useState: function (initialState) {
|
|
|
currentHookNameInDev = 'useState';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
|
ReactCurrentDispatcher.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
|
|
|
|
try {
|
|
|
return rerenderState(initialState);
|
|
|
} finally {
|
|
|
ReactCurrentDispatcher.current = prevDispatcher;
|
|
|
}
|
|
|
},
|
|
|
useDebugValue: function (value, formatterFn) {
|
|
|
currentHookNameInDev = 'useDebugValue';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return updateDebugValue();
|
|
|
},
|
|
|
useResponder: function (responder, props) {
|
|
|
currentHookNameInDev = 'useResponder';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return createDeprecatedResponderListener(responder, props);
|
|
|
},
|
|
|
useDeferredValue: function (value, config) {
|
|
|
currentHookNameInDev = 'useDeferredValue';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return rerenderDeferredValue(value, config);
|
|
|
},
|
|
|
useTransition: function (config) {
|
|
|
currentHookNameInDev = 'useTransition';
|
|
|
warnInvalidHookAccess();
|
|
|
updateHookTypesDev();
|
|
|
return rerenderTransition(config);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var now$1 = Scheduler.unstable_now;
|
|
|
var commitTime = 0;
|
|
|
var profilerStartTime = -1;
|
|
|
|
|
|
function getCommitTime() {
|
|
|
return commitTime;
|
|
|
}
|
|
|
|
|
|
function recordCommitTime() {
|
|
|
|
|
|
commitTime = now$1();
|
|
|
}
|
|
|
|
|
|
function startProfilerTimer(fiber) {
|
|
|
|
|
|
profilerStartTime = now$1();
|
|
|
|
|
|
if (fiber.actualStartTime < 0) {
|
|
|
fiber.actualStartTime = now$1();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function stopProfilerTimerIfRunning(fiber) {
|
|
|
|
|
|
profilerStartTime = -1;
|
|
|
}
|
|
|
|
|
|
function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
|
|
|
|
|
|
if (profilerStartTime >= 0) {
|
|
|
var elapsedTime = now$1() - profilerStartTime;
|
|
|
fiber.actualDuration += elapsedTime;
|
|
|
|
|
|
if (overrideBaseTime) {
|
|
|
fiber.selfBaseDuration = elapsedTime;
|
|
|
}
|
|
|
|
|
|
profilerStartTime = -1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// This may have been an insertion or a hydration.
|
|
|
|
|
|
var hydrationParentFiber = null;
|
|
|
var nextHydratableInstance = null;
|
|
|
var isHydrating = false;
|
|
|
|
|
|
function enterHydrationState(fiber) {
|
|
|
|
|
|
var parentInstance = fiber.stateNode.containerInfo;
|
|
|
nextHydratableInstance = getFirstHydratableChild(parentInstance);
|
|
|
hydrationParentFiber = fiber;
|
|
|
isHydrating = true;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function deleteHydratableInstance(returnFiber, instance) {
|
|
|
{
|
|
|
switch (returnFiber.tag) {
|
|
|
case HostRoot:
|
|
|
didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
|
|
|
break;
|
|
|
|
|
|
case HostComponent:
|
|
|
didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var childToDelete = createFiberFromHostInstanceForDeletion();
|
|
|
childToDelete.stateNode = instance;
|
|
|
childToDelete.return = returnFiber;
|
|
|
childToDelete.effectTag = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
|
|
|
// these children are not part of the reconciliation list of children.
|
|
|
// Even if we abort and rereconcile the children, that will try to hydrate
|
|
|
// again and the nodes are still in the host tree so these will be
|
|
|
// recreated.
|
|
|
|
|
|
if (returnFiber.lastEffect !== null) {
|
|
|
returnFiber.lastEffect.nextEffect = childToDelete;
|
|
|
returnFiber.lastEffect = childToDelete;
|
|
|
} else {
|
|
|
returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function insertNonHydratedInstance(returnFiber, fiber) {
|
|
|
fiber.effectTag = fiber.effectTag & ~Hydrating | Placement;
|
|
|
|
|
|
{
|
|
|
switch (returnFiber.tag) {
|
|
|
case HostRoot:
|
|
|
{
|
|
|
var parentContainer = returnFiber.stateNode.containerInfo;
|
|
|
|
|
|
switch (fiber.tag) {
|
|
|
case HostComponent:
|
|
|
var type = fiber.type;
|
|
|
var props = fiber.pendingProps;
|
|
|
didNotFindHydratableContainerInstance(parentContainer, type);
|
|
|
break;
|
|
|
|
|
|
case HostText:
|
|
|
var text = fiber.pendingProps;
|
|
|
didNotFindHydratableContainerTextInstance(parentContainer, text);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
var parentType = returnFiber.type;
|
|
|
var parentProps = returnFiber.memoizedProps;
|
|
|
var parentInstance = returnFiber.stateNode;
|
|
|
|
|
|
switch (fiber.tag) {
|
|
|
case HostComponent:
|
|
|
var _type = fiber.type;
|
|
|
var _props = fiber.pendingProps;
|
|
|
didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
|
|
|
break;
|
|
|
|
|
|
case HostText:
|
|
|
var _text = fiber.pendingProps;
|
|
|
didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
|
|
|
break;
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
didNotFindHydratableSuspenseInstance(parentType, parentProps);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function tryHydrate(fiber, nextInstance) {
|
|
|
switch (fiber.tag) {
|
|
|
case HostComponent:
|
|
|
{
|
|
|
var type = fiber.type;
|
|
|
var props = fiber.pendingProps;
|
|
|
var instance = canHydrateInstance(nextInstance, type);
|
|
|
|
|
|
if (instance !== null) {
|
|
|
fiber.stateNode = instance;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
case HostText:
|
|
|
{
|
|
|
var text = fiber.pendingProps;
|
|
|
var textInstance = canHydrateTextInstance(nextInstance, text);
|
|
|
|
|
|
if (textInstance !== null) {
|
|
|
fiber.stateNode = textInstance;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function tryToClaimNextHydratableInstance(fiber) {
|
|
|
if (!isHydrating) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var nextInstance = nextHydratableInstance;
|
|
|
|
|
|
if (!nextInstance) {
|
|
|
// Nothing to hydrate. Make it an insertion.
|
|
|
insertNonHydratedInstance(hydrationParentFiber, fiber);
|
|
|
isHydrating = false;
|
|
|
hydrationParentFiber = fiber;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var firstAttemptedInstance = nextInstance;
|
|
|
|
|
|
if (!tryHydrate(fiber, nextInstance)) {
|
|
|
// If we can't hydrate this instance let's try the next one.
|
|
|
// We use this as a heuristic. It's based on intuition and not data so it
|
|
|
// might be flawed or unnecessary.
|
|
|
nextInstance = getNextHydratableSibling(firstAttemptedInstance);
|
|
|
|
|
|
if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
|
|
|
// Nothing to hydrate. Make it an insertion.
|
|
|
insertNonHydratedInstance(hydrationParentFiber, fiber);
|
|
|
isHydrating = false;
|
|
|
hydrationParentFiber = fiber;
|
|
|
return;
|
|
|
} // We matched the next one, we'll now assume that the first one was
|
|
|
// superfluous and we'll delete it. Since we can't eagerly delete it
|
|
|
// we'll have to schedule a deletion. To do that, this node needs a dummy
|
|
|
// fiber associated with it.
|
|
|
|
|
|
|
|
|
deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
|
|
|
}
|
|
|
|
|
|
hydrationParentFiber = fiber;
|
|
|
nextHydratableInstance = getFirstHydratableChild(nextInstance);
|
|
|
}
|
|
|
|
|
|
function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
|
|
|
|
|
|
var instance = fiber.stateNode;
|
|
|
var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.
|
|
|
|
|
|
fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
|
|
|
// is a new ref we mark this as an update.
|
|
|
|
|
|
if (updatePayload !== null) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function prepareToHydrateHostTextInstance(fiber) {
|
|
|
|
|
|
var textInstance = fiber.stateNode;
|
|
|
var textContent = fiber.memoizedProps;
|
|
|
var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
|
|
|
|
|
|
{
|
|
|
if (shouldUpdate) {
|
|
|
// We assume that prepareToHydrateHostTextInstance is called in a context where the
|
|
|
// hydration parent is the parent host component of this host text.
|
|
|
var returnFiber = hydrationParentFiber;
|
|
|
|
|
|
if (returnFiber !== null) {
|
|
|
switch (returnFiber.tag) {
|
|
|
case HostRoot:
|
|
|
{
|
|
|
var parentContainer = returnFiber.stateNode.containerInfo;
|
|
|
didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
var parentType = returnFiber.type;
|
|
|
var parentProps = returnFiber.memoizedProps;
|
|
|
var parentInstance = returnFiber.stateNode;
|
|
|
didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return shouldUpdate;
|
|
|
}
|
|
|
|
|
|
function skipPastDehydratedSuspenseInstance(fiber) {
|
|
|
|
|
|
var suspenseState = fiber.memoizedState;
|
|
|
var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;
|
|
|
|
|
|
if (!suspenseInstance) {
|
|
|
{
|
|
|
throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
|
|
|
}
|
|
|
|
|
|
function popToNextHostParent(fiber) {
|
|
|
var parent = fiber.return;
|
|
|
|
|
|
while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
|
|
|
parent = parent.return;
|
|
|
}
|
|
|
|
|
|
hydrationParentFiber = parent;
|
|
|
}
|
|
|
|
|
|
function popHydrationState(fiber) {
|
|
|
|
|
|
if (fiber !== hydrationParentFiber) {
|
|
|
// We're deeper than the current hydration context, inside an inserted
|
|
|
// tree.
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (!isHydrating) {
|
|
|
// If we're not currently hydrating but we're in a hydration context, then
|
|
|
// we were an insertion and now need to pop up reenter hydration of our
|
|
|
// siblings.
|
|
|
popToNextHostParent(fiber);
|
|
|
isHydrating = true;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
|
|
|
// We only do this deeper than head and body since they tend to have random
|
|
|
// other nodes in them. We also ignore components with pure text content in
|
|
|
// side of them.
|
|
|
// TODO: Better heuristic.
|
|
|
|
|
|
if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
|
|
|
var nextInstance = nextHydratableInstance;
|
|
|
|
|
|
while (nextInstance) {
|
|
|
deleteHydratableInstance(fiber, nextInstance);
|
|
|
nextInstance = getNextHydratableSibling(nextInstance);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
popToNextHostParent(fiber);
|
|
|
|
|
|
if (fiber.tag === SuspenseComponent) {
|
|
|
nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
|
|
|
} else {
|
|
|
nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function resetHydrationState() {
|
|
|
|
|
|
hydrationParentFiber = null;
|
|
|
nextHydratableInstance = null;
|
|
|
isHydrating = false;
|
|
|
}
|
|
|
|
|
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
|
var didReceiveUpdate = false;
|
|
|
var didWarnAboutBadClass;
|
|
|
var didWarnAboutModulePatternComponent;
|
|
|
var didWarnAboutContextTypeOnFunctionComponent;
|
|
|
var didWarnAboutGetDerivedStateOnFunctionComponent;
|
|
|
var didWarnAboutFunctionRefs;
|
|
|
var didWarnAboutReassigningProps;
|
|
|
var didWarnAboutRevealOrder;
|
|
|
var didWarnAboutTailOptions;
|
|
|
|
|
|
{
|
|
|
didWarnAboutBadClass = {};
|
|
|
didWarnAboutModulePatternComponent = {};
|
|
|
didWarnAboutContextTypeOnFunctionComponent = {};
|
|
|
didWarnAboutGetDerivedStateOnFunctionComponent = {};
|
|
|
didWarnAboutFunctionRefs = {};
|
|
|
didWarnAboutReassigningProps = false;
|
|
|
didWarnAboutRevealOrder = {};
|
|
|
didWarnAboutTailOptions = {};
|
|
|
}
|
|
|
|
|
|
function reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime) {
|
|
|
if (current === null) {
|
|
|
// If this is a fresh new component that hasn't been rendered yet, we
|
|
|
// won't update its child set by applying minimal side-effects. Instead,
|
|
|
// we will add them all to the child before it gets rendered. That means
|
|
|
// we can optimize this reconciliation pass by not tracking side-effects.
|
|
|
workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
|
|
|
} else {
|
|
|
// If the current child is the same as the work in progress, it means that
|
|
|
// we haven't yet started any work on these children. Therefore, we use
|
|
|
// the clone algorithm to create a copy of all the current children.
|
|
|
// If we had any progressed work already, that is invalid at this point so
|
|
|
// let's throw it out.
|
|
|
workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime) {
|
|
|
// This function is fork of reconcileChildren. It's used in cases where we
|
|
|
// want to reconcile without matching against the existing set. This has the
|
|
|
// effect of all current children being unmounted; even if the type and key
|
|
|
// are the same, the old child is unmounted and a new child is created.
|
|
|
//
|
|
|
// To do this, we're going to go through the reconcile algorithm twice. In
|
|
|
// the first pass, we schedule a deletion for all the current children by
|
|
|
// passing null.
|
|
|
workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we
|
|
|
// pass null in place of where we usually pass the current child set. This has
|
|
|
// the effect of remounting all children regardless of whether their
|
|
|
// identities match.
|
|
|
|
|
|
workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
function updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime) {
|
|
|
// TODO: current can be non-null here even if the component
|
|
|
// hasn't yet mounted. This happens after the first render suspends.
|
|
|
// We'll need to figure out if this is fine or can cause issues.
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
// Lazy component props can't be validated in createElement
|
|
|
// because they're only guaranteed to be resolved here.
|
|
|
var innerPropTypes = Component.propTypes;
|
|
|
|
|
|
if (innerPropTypes) {
|
|
|
checkPropTypes(innerPropTypes, nextProps, // Resolved props
|
|
|
'prop', getComponentName(Component), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var render = Component.render;
|
|
|
var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent
|
|
|
|
|
|
var nextChildren;
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
|
|
|
{
|
|
|
ReactCurrentOwner$1.current = workInProgress;
|
|
|
setIsRendering(true);
|
|
|
nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
// Only double-render components with Hooks
|
|
|
if (workInProgress.memoizedState !== null) {
|
|
|
nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setIsRendering(false);
|
|
|
}
|
|
|
|
|
|
if (current !== null && !didReceiveUpdate) {
|
|
|
bailoutHooks(current, workInProgress, renderExpirationTime);
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
|
|
|
if (current === null) {
|
|
|
var type = Component.type;
|
|
|
|
|
|
if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
|
|
|
Component.defaultProps === undefined) {
|
|
|
var resolvedType = type;
|
|
|
|
|
|
{
|
|
|
resolvedType = resolveFunctionForHotReloading(type);
|
|
|
} // If this is a plain function component without default props,
|
|
|
// and with only the default shallow comparison, we upgrade it
|
|
|
// to a SimpleMemoComponent to allow fast path updates.
|
|
|
|
|
|
|
|
|
workInProgress.tag = SimpleMemoComponent;
|
|
|
workInProgress.type = resolvedType;
|
|
|
|
|
|
{
|
|
|
validateFunctionComponentInDev(workInProgress, type);
|
|
|
}
|
|
|
|
|
|
return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var innerPropTypes = type.propTypes;
|
|
|
|
|
|
if (innerPropTypes) {
|
|
|
// Inner memo component props aren't currently validated in createElement.
|
|
|
// We could move it there, but we'd still need this for lazy code path.
|
|
|
checkPropTypes(innerPropTypes, nextProps, // Resolved props
|
|
|
'prop', getComponentName(type), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
|
|
|
child.ref = workInProgress.ref;
|
|
|
child.return = workInProgress;
|
|
|
workInProgress.child = child;
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var _type = Component.type;
|
|
|
var _innerPropTypes = _type.propTypes;
|
|
|
|
|
|
if (_innerPropTypes) {
|
|
|
// Inner memo component props aren't currently validated in createElement.
|
|
|
// We could move it there, but we'd still need this for lazy code path.
|
|
|
checkPropTypes(_innerPropTypes, nextProps, // Resolved props
|
|
|
'prop', getComponentName(_type), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var currentChild = current.child; // This is always exactly one child
|
|
|
|
|
|
if (updateExpirationTime < renderExpirationTime) {
|
|
|
// This will be the props with resolved defaultProps,
|
|
|
// unlike current.memoizedProps which will be the unresolved ones.
|
|
|
var prevProps = currentChild.memoizedProps; // Default to shallow comparison
|
|
|
|
|
|
var compare = Component.compare;
|
|
|
compare = compare !== null ? compare : shallowEqual;
|
|
|
|
|
|
if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
var newChild = createWorkInProgress(currentChild, nextProps);
|
|
|
newChild.ref = workInProgress.ref;
|
|
|
newChild.return = workInProgress;
|
|
|
workInProgress.child = newChild;
|
|
|
return newChild;
|
|
|
}
|
|
|
|
|
|
function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
|
|
|
// TODO: current can be non-null here even if the component
|
|
|
// hasn't yet mounted. This happens when the inner render suspends.
|
|
|
// We'll need to figure out if this is fine or can cause issues.
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
// Lazy component props can't be validated in createElement
|
|
|
// because they're only guaranteed to be resolved here.
|
|
|
var outerMemoType = workInProgress.elementType;
|
|
|
|
|
|
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
|
|
|
// We warn when you define propTypes on lazy()
|
|
|
// so let's just skip over it to find memo() outer wrapper.
|
|
|
// Inner props for memo are validated later.
|
|
|
outerMemoType = refineResolvedLazyComponent(outerMemoType);
|
|
|
}
|
|
|
|
|
|
var outerPropTypes = outerMemoType && outerMemoType.propTypes;
|
|
|
|
|
|
if (outerPropTypes) {
|
|
|
checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
|
|
|
'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
|
|
|
} // Inner propTypes will be validated in the function component path.
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (current !== null) {
|
|
|
var prevProps = current.memoizedProps;
|
|
|
|
|
|
if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
|
|
|
workInProgress.type === current.type )) {
|
|
|
didReceiveUpdate = false;
|
|
|
|
|
|
if (updateExpirationTime < renderExpirationTime) {
|
|
|
// The pending update priority was cleared at the beginning of
|
|
|
// beginWork. We're about to bail out, but there might be additional
|
|
|
// updates at a lower priority. Usually, the priority level of the
|
|
|
// remaining updates is accumlated during the evaluation of the
|
|
|
// component (i.e. when processing the update queue). But since since
|
|
|
// we're bailing out early *without* evaluating the component, we need
|
|
|
// to account for it here, too. Reset to the value of the current fiber.
|
|
|
// NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
|
|
|
// because a MemoComponent fiber does not have hooks or an update queue;
|
|
|
// rather, it wraps around an inner component, which may or may not
|
|
|
// contains hooks.
|
|
|
// TODO: Move the reset at in beginWork out of the common path so that
|
|
|
// this is no longer necessary.
|
|
|
workInProgress.expirationTime = current.expirationTime;
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
function updateFragment(current, workInProgress, renderExpirationTime) {
|
|
|
var nextChildren = workInProgress.pendingProps;
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateMode(current, workInProgress, renderExpirationTime) {
|
|
|
var nextChildren = workInProgress.pendingProps.children;
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateProfiler(current, workInProgress, renderExpirationTime) {
|
|
|
{
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
|
|
|
var nextProps = workInProgress.pendingProps;
|
|
|
var nextChildren = nextProps.children;
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function markRef(current, workInProgress) {
|
|
|
var ref = workInProgress.ref;
|
|
|
|
|
|
if (current === null && ref !== null || current !== null && current.ref !== ref) {
|
|
|
// Schedule a Ref effect
|
|
|
workInProgress.effectTag |= Ref;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
// Lazy component props can't be validated in createElement
|
|
|
// because they're only guaranteed to be resolved here.
|
|
|
var innerPropTypes = Component.propTypes;
|
|
|
|
|
|
if (innerPropTypes) {
|
|
|
checkPropTypes(innerPropTypes, nextProps, // Resolved props
|
|
|
'prop', getComponentName(Component), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var context;
|
|
|
|
|
|
{
|
|
|
var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
|
|
|
context = getMaskedContext(workInProgress, unmaskedContext);
|
|
|
}
|
|
|
|
|
|
var nextChildren;
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
|
|
|
{
|
|
|
ReactCurrentOwner$1.current = workInProgress;
|
|
|
setIsRendering(true);
|
|
|
nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
// Only double-render components with Hooks
|
|
|
if (workInProgress.memoizedState !== null) {
|
|
|
nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setIsRendering(false);
|
|
|
}
|
|
|
|
|
|
if (current !== null && !didReceiveUpdate) {
|
|
|
bailoutHooks(current, workInProgress, renderExpirationTime);
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime) {
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
// Lazy component props can't be validated in createElement
|
|
|
// because they're only guaranteed to be resolved here.
|
|
|
var innerPropTypes = Component.propTypes;
|
|
|
|
|
|
if (innerPropTypes) {
|
|
|
checkPropTypes(innerPropTypes, nextProps, // Resolved props
|
|
|
'prop', getComponentName(Component), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
} // Push context providers early to prevent context stack mismatches.
|
|
|
// During mounting we don't know the child context yet as the instance doesn't exist.
|
|
|
// We will invalidate the child context in finishClassComponent() right after rendering.
|
|
|
|
|
|
|
|
|
var hasContext;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
hasContext = true;
|
|
|
pushContextProvider(workInProgress);
|
|
|
} else {
|
|
|
hasContext = false;
|
|
|
}
|
|
|
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
var instance = workInProgress.stateNode;
|
|
|
var shouldUpdate;
|
|
|
|
|
|
if (instance === null) {
|
|
|
if (current !== null) {
|
|
|
// A class component without an instance only mounts if it suspended
|
|
|
// inside a non-concurrent tree, in an inconsistent state. We want to
|
|
|
// treat it like a new mount, even though an empty version of it already
|
|
|
// committed. Disconnect the alternate pointers.
|
|
|
current.alternate = null;
|
|
|
workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
|
|
|
|
|
|
workInProgress.effectTag |= Placement;
|
|
|
} // In the initial pass we might need to construct the instance.
|
|
|
|
|
|
|
|
|
constructClassInstance(workInProgress, Component, nextProps);
|
|
|
mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
|
|
|
shouldUpdate = true;
|
|
|
} else if (current === null) {
|
|
|
// In a resume, we'll already have an instance we can reuse.
|
|
|
shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
|
|
|
} else {
|
|
|
shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
|
|
|
|
|
|
{
|
|
|
var inst = workInProgress.stateNode;
|
|
|
|
|
|
if (inst.props !== nextProps) {
|
|
|
if (!didWarnAboutReassigningProps) {
|
|
|
error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component');
|
|
|
}
|
|
|
|
|
|
didWarnAboutReassigningProps = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return nextUnitOfWork;
|
|
|
}
|
|
|
|
|
|
function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
|
|
|
// Refs should update even if shouldComponentUpdate returns false
|
|
|
markRef(current, workInProgress);
|
|
|
var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
|
|
|
|
|
|
if (!shouldUpdate && !didCaptureError) {
|
|
|
// Context providers should defer to sCU for rendering
|
|
|
if (hasContext) {
|
|
|
invalidateContextProvider(workInProgress, Component, false);
|
|
|
}
|
|
|
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
var instance = workInProgress.stateNode; // Rerender
|
|
|
|
|
|
ReactCurrentOwner$1.current = workInProgress;
|
|
|
var nextChildren;
|
|
|
|
|
|
if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
|
|
|
// If we captured an error, but getDerivedStateFromError is not defined,
|
|
|
// unmount all the children. componentDidCatch will schedule an update to
|
|
|
// re-render a fallback. This is temporary until we migrate everyone to
|
|
|
// the new API.
|
|
|
// TODO: Warn in a future release.
|
|
|
nextChildren = null;
|
|
|
|
|
|
{
|
|
|
stopProfilerTimerIfRunning();
|
|
|
}
|
|
|
} else {
|
|
|
{
|
|
|
setIsRendering(true);
|
|
|
nextChildren = instance.render();
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
instance.render();
|
|
|
}
|
|
|
|
|
|
setIsRendering(false);
|
|
|
}
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
|
|
|
if (current !== null && didCaptureError) {
|
|
|
// If we're recovering from an error, reconcile without reusing any of
|
|
|
// the existing children. Conceptually, the normal children and the children
|
|
|
// that are shown on error are two different sets, so we shouldn't reuse
|
|
|
// normal children even if their identities match.
|
|
|
forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
} else {
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
} // Memoize state using the values we just used to render.
|
|
|
// TODO: Restructure so we never read values from the instance.
|
|
|
|
|
|
|
|
|
workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
|
|
|
|
|
|
if (hasContext) {
|
|
|
invalidateContextProvider(workInProgress, Component, true);
|
|
|
}
|
|
|
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function pushHostRootContext(workInProgress) {
|
|
|
var root = workInProgress.stateNode;
|
|
|
|
|
|
if (root.pendingContext) {
|
|
|
pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
|
|
|
} else if (root.context) {
|
|
|
// Should always be set
|
|
|
pushTopLevelContextObject(workInProgress, root.context, false);
|
|
|
}
|
|
|
|
|
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
|
}
|
|
|
|
|
|
function updateHostRoot(current, workInProgress, renderExpirationTime) {
|
|
|
pushHostRootContext(workInProgress);
|
|
|
var updateQueue = workInProgress.updateQueue;
|
|
|
|
|
|
if (!(current !== null && updateQueue !== null)) {
|
|
|
{
|
|
|
throw Error( "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var nextProps = workInProgress.pendingProps;
|
|
|
var prevState = workInProgress.memoizedState;
|
|
|
var prevChildren = prevState !== null ? prevState.element : null;
|
|
|
cloneUpdateQueue(current, workInProgress);
|
|
|
processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime);
|
|
|
var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
|
|
|
// being called "element".
|
|
|
|
|
|
var nextChildren = nextState.element;
|
|
|
|
|
|
if (nextChildren === prevChildren) {
|
|
|
// If the state is the same as before, that's a bailout because we had
|
|
|
// no work that expires at this time.
|
|
|
resetHydrationState();
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
var root = workInProgress.stateNode;
|
|
|
|
|
|
if (root.hydrate && enterHydrationState(workInProgress)) {
|
|
|
// If we don't have any current children this might be the first pass.
|
|
|
// We always try to hydrate. If this isn't a hydration pass there won't
|
|
|
// be any children to hydrate which is effectively the same thing as
|
|
|
// not hydrating.
|
|
|
var child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
|
|
|
workInProgress.child = child;
|
|
|
var node = child;
|
|
|
|
|
|
while (node) {
|
|
|
// Mark each child as hydrating. This is a fast path to know whether this
|
|
|
// tree is part of a hydrating tree. This is used to determine if a child
|
|
|
// node has fully mounted yet, and for scheduling event replaying.
|
|
|
// Conceptually this is similar to Placement in that a new subtree is
|
|
|
// inserted into the React tree here. It just happens to not need DOM
|
|
|
// mutations because it already exists.
|
|
|
node.effectTag = node.effectTag & ~Placement | Hydrating;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
} else {
|
|
|
// Otherwise reset hydration state in case we aborted and resumed another
|
|
|
// root.
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
resetHydrationState();
|
|
|
}
|
|
|
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateHostComponent(current, workInProgress, renderExpirationTime) {
|
|
|
pushHostContext(workInProgress);
|
|
|
|
|
|
if (current === null) {
|
|
|
tryToClaimNextHydratableInstance(workInProgress);
|
|
|
}
|
|
|
|
|
|
var type = workInProgress.type;
|
|
|
var nextProps = workInProgress.pendingProps;
|
|
|
var prevProps = current !== null ? current.memoizedProps : null;
|
|
|
var nextChildren = nextProps.children;
|
|
|
var isDirectTextChild = shouldSetTextContent(type, nextProps);
|
|
|
|
|
|
if (isDirectTextChild) {
|
|
|
// We special case a direct text child of a host node. This is a common
|
|
|
// case. We won't handle it as a reified child. We will instead handle
|
|
|
// this in the host environment that also has access to this prop. That
|
|
|
// avoids allocating another HostText fiber and traversing it.
|
|
|
nextChildren = null;
|
|
|
} else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
|
|
|
// If we're switching from a direct text child to a normal child, or to
|
|
|
// empty, we need to schedule the text content to be reset.
|
|
|
workInProgress.effectTag |= ContentReset;
|
|
|
}
|
|
|
|
|
|
markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden.
|
|
|
|
|
|
if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
|
|
|
{
|
|
|
markSpawnedWork(Never);
|
|
|
} // Schedule this fiber to re-render at offscreen priority. Then bailout.
|
|
|
|
|
|
|
|
|
workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateHostText(current, workInProgress) {
|
|
|
if (current === null) {
|
|
|
tryToClaimNextHydratableInstance(workInProgress);
|
|
|
} // Nothing to do here. This is terminal. We'll do the completion step
|
|
|
// immediately after.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
|
|
|
if (_current !== null) {
|
|
|
// A lazy component only mounts if it suspended inside a non-
|
|
|
// concurrent tree, in an inconsistent state. We want to treat it like
|
|
|
// a new mount, even though an empty version of it already committed.
|
|
|
// Disconnect the alternate pointers.
|
|
|
_current.alternate = null;
|
|
|
workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
|
|
|
|
|
|
workInProgress.effectTag |= Placement;
|
|
|
}
|
|
|
|
|
|
var props = workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.
|
|
|
// Cancel and resume right after we know the tag.
|
|
|
|
|
|
cancelWorkTimer(workInProgress);
|
|
|
var Component = readLazyComponentType(elementType); // Store the unwrapped component in the type.
|
|
|
|
|
|
workInProgress.type = Component;
|
|
|
var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
|
|
|
startWorkTimer(workInProgress);
|
|
|
var resolvedProps = resolveDefaultProps(Component, props);
|
|
|
var child;
|
|
|
|
|
|
switch (resolvedTag) {
|
|
|
case FunctionComponent:
|
|
|
{
|
|
|
{
|
|
|
validateFunctionComponentInDev(workInProgress, Component);
|
|
|
workInProgress.type = Component = resolveFunctionForHotReloading(Component);
|
|
|
}
|
|
|
|
|
|
child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
{
|
|
|
workInProgress.type = Component = resolveClassForHotReloading(Component);
|
|
|
}
|
|
|
|
|
|
child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
case ForwardRef:
|
|
|
{
|
|
|
{
|
|
|
workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
|
|
|
}
|
|
|
|
|
|
child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
|
|
|
return child;
|
|
|
}
|
|
|
|
|
|
case MemoComponent:
|
|
|
{
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
var outerPropTypes = Component.propTypes;
|
|
|
|
|
|
if (outerPropTypes) {
|
|
|
checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
|
|
|
'prop', getComponentName(Component), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
|
|
|
updateExpirationTime, renderExpirationTime);
|
|
|
return child;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var hint = '';
|
|
|
|
|
|
{
|
|
|
if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
|
|
|
hint = ' Did you wrap a component in React.lazy() more than once?';
|
|
|
}
|
|
|
} // This message intentionally doesn't mention ForwardRef or MemoComponent
|
|
|
// because the fact that it's a separate type of work is an
|
|
|
// implementation detail.
|
|
|
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
|
|
|
if (_current !== null) {
|
|
|
// An incomplete component only mounts if it suspended inside a non-
|
|
|
// concurrent tree, in an inconsistent state. We want to treat it like
|
|
|
// a new mount, even though an empty version of it already committed.
|
|
|
// Disconnect the alternate pointers.
|
|
|
_current.alternate = null;
|
|
|
workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
|
|
|
|
|
|
workInProgress.effectTag |= Placement;
|
|
|
} // Promote the fiber to a class and try rendering again.
|
|
|
|
|
|
|
|
|
workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
|
|
|
// Push context providers early to prevent context stack mismatches.
|
|
|
// During mounting we don't know the child context yet as the instance doesn't exist.
|
|
|
// We will invalidate the child context in finishClassComponent() right after rendering.
|
|
|
|
|
|
var hasContext;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
hasContext = true;
|
|
|
pushContextProvider(workInProgress);
|
|
|
} else {
|
|
|
hasContext = false;
|
|
|
}
|
|
|
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
constructClassInstance(workInProgress, Component, nextProps);
|
|
|
mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
|
|
|
return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
|
|
|
if (_current !== null) {
|
|
|
// An indeterminate component only mounts if it suspended inside a non-
|
|
|
// concurrent tree, in an inconsistent state. We want to treat it like
|
|
|
// a new mount, even though an empty version of it already committed.
|
|
|
// Disconnect the alternate pointers.
|
|
|
_current.alternate = null;
|
|
|
workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect
|
|
|
|
|
|
workInProgress.effectTag |= Placement;
|
|
|
}
|
|
|
|
|
|
var props = workInProgress.pendingProps;
|
|
|
var context;
|
|
|
|
|
|
{
|
|
|
var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
|
|
|
context = getMaskedContext(workInProgress, unmaskedContext);
|
|
|
}
|
|
|
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
var value;
|
|
|
|
|
|
{
|
|
|
if (Component.prototype && typeof Component.prototype.render === 'function') {
|
|
|
var componentName = getComponentName(Component) || 'Unknown';
|
|
|
|
|
|
if (!didWarnAboutBadClass[componentName]) {
|
|
|
error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
|
|
|
|
|
|
didWarnAboutBadClass[componentName] = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workInProgress.mode & StrictMode) {
|
|
|
ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
|
|
|
}
|
|
|
|
|
|
setIsRendering(true);
|
|
|
ReactCurrentOwner$1.current = workInProgress;
|
|
|
value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
|
|
|
setIsRendering(false);
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
|
|
|
if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
|
|
|
{
|
|
|
var _componentName = getComponentName(Component) || 'Unknown';
|
|
|
|
|
|
if (!didWarnAboutModulePatternComponent[_componentName]) {
|
|
|
error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
|
|
|
|
|
|
didWarnAboutModulePatternComponent[_componentName] = true;
|
|
|
}
|
|
|
} // Proceed under the assumption that this is a class instance
|
|
|
|
|
|
|
|
|
workInProgress.tag = ClassComponent; // Throw out any hooks that were used.
|
|
|
|
|
|
workInProgress.memoizedState = null;
|
|
|
workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
|
|
|
// During mounting we don't know the child context yet as the instance doesn't exist.
|
|
|
// We will invalidate the child context in finishClassComponent() right after rendering.
|
|
|
|
|
|
var hasContext = false;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
hasContext = true;
|
|
|
pushContextProvider(workInProgress);
|
|
|
} else {
|
|
|
hasContext = false;
|
|
|
}
|
|
|
|
|
|
workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
|
|
|
initializeUpdateQueue(workInProgress);
|
|
|
var getDerivedStateFromProps = Component.getDerivedStateFromProps;
|
|
|
|
|
|
if (typeof getDerivedStateFromProps === 'function') {
|
|
|
applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
|
|
|
}
|
|
|
|
|
|
adoptClassInstance(workInProgress, value);
|
|
|
mountClassInstance(workInProgress, Component, props, renderExpirationTime);
|
|
|
return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
|
|
|
} else {
|
|
|
// Proceed under the assumption that this is a function component
|
|
|
workInProgress.tag = FunctionComponent;
|
|
|
|
|
|
{
|
|
|
|
|
|
if ( workInProgress.mode & StrictMode) {
|
|
|
// Only double-render components with Hooks
|
|
|
if (workInProgress.memoizedState !== null) {
|
|
|
value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
reconcileChildren(null, workInProgress, value, renderExpirationTime);
|
|
|
|
|
|
{
|
|
|
validateFunctionComponentInDev(workInProgress, Component);
|
|
|
}
|
|
|
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function validateFunctionComponentInDev(workInProgress, Component) {
|
|
|
{
|
|
|
if (Component) {
|
|
|
if (Component.childContextTypes) {
|
|
|
error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workInProgress.ref !== null) {
|
|
|
var info = '';
|
|
|
var ownerName = getCurrentFiberOwnerNameInDevOrNull();
|
|
|
|
|
|
if (ownerName) {
|
|
|
info += '\n\nCheck the render method of `' + ownerName + '`.';
|
|
|
}
|
|
|
|
|
|
var warningKey = ownerName || workInProgress._debugID || '';
|
|
|
var debugSource = workInProgress._debugSource;
|
|
|
|
|
|
if (debugSource) {
|
|
|
warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
|
|
|
}
|
|
|
|
|
|
if (!didWarnAboutFunctionRefs[warningKey]) {
|
|
|
didWarnAboutFunctionRefs[warningKey] = true;
|
|
|
|
|
|
error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof Component.getDerivedStateFromProps === 'function') {
|
|
|
var _componentName2 = getComponentName(Component) || 'Unknown';
|
|
|
|
|
|
if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
|
|
|
error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);
|
|
|
|
|
|
didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof Component.contextType === 'object' && Component.contextType !== null) {
|
|
|
var _componentName3 = getComponentName(Component) || 'Unknown';
|
|
|
|
|
|
if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
|
|
|
error('%s: Function components do not support contextType.', _componentName3);
|
|
|
|
|
|
didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var SUSPENDED_MARKER = {
|
|
|
dehydrated: null,
|
|
|
retryTime: NoWork
|
|
|
};
|
|
|
|
|
|
function shouldRemainOnFallback(suspenseContext, current, workInProgress) {
|
|
|
// If the context is telling us that we should show a fallback, and we're not
|
|
|
// already showing content, then we should show the fallback instead.
|
|
|
return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current === null || current.memoizedState !== null);
|
|
|
}
|
|
|
|
|
|
function updateSuspenseComponent(current, workInProgress, renderExpirationTime) {
|
|
|
var mode = workInProgress.mode;
|
|
|
var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.
|
|
|
|
|
|
{
|
|
|
if (shouldSuspend(workInProgress)) {
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var suspenseContext = suspenseStackCursor.current;
|
|
|
var nextDidTimeout = false;
|
|
|
var didSuspend = (workInProgress.effectTag & DidCapture) !== NoEffect;
|
|
|
|
|
|
if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
|
|
|
// Something in this boundary's subtree already suspended. Switch to
|
|
|
// rendering the fallback children.
|
|
|
nextDidTimeout = true;
|
|
|
workInProgress.effectTag &= ~DidCapture;
|
|
|
} else {
|
|
|
// Attempting the main content
|
|
|
if (current === null || current.memoizedState !== null) {
|
|
|
// This is a new mount or this boundary is already showing a fallback state.
|
|
|
// Mark this subtree context as having at least one invisible parent that could
|
|
|
// handle the fallback state.
|
|
|
// Boundaries without fallbacks or should be avoided are not considered since
|
|
|
// they cannot handle preferred fallback states.
|
|
|
if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
|
|
|
suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
|
|
|
pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to
|
|
|
// showing the fallback children in place of the "primary" children.
|
|
|
// However, we don't want to delete the primary children because then their
|
|
|
// state will be lost (both the React state and the host state, e.g.
|
|
|
// uncontrolled form inputs). Instead we keep them mounted and hide them.
|
|
|
// Both the fallback children AND the primary children are rendered at the
|
|
|
// same time. Once the primary children are un-suspended, we can delete
|
|
|
// the fallback children — don't need to preserve their state.
|
|
|
//
|
|
|
// The two sets of children are siblings in the host environment, but
|
|
|
// semantically, for purposes of reconciliation, they are two separate sets.
|
|
|
// So we store them using two fragment fibers.
|
|
|
//
|
|
|
// However, we want to avoid allocating extra fibers for every placeholder.
|
|
|
// They're only necessary when the children time out, because that's the
|
|
|
// only time when both sets are mounted.
|
|
|
//
|
|
|
// So, the extra fragment fibers are only used if the children time out.
|
|
|
// Otherwise, we render the primary children directly. This requires some
|
|
|
// custom reconciliation logic to preserve the state of the primary
|
|
|
// children. It's essentially a very basic form of re-parenting.
|
|
|
|
|
|
if (current === null) {
|
|
|
// If we're currently hydrating, try to hydrate this boundary.
|
|
|
// But only if this has a fallback.
|
|
|
if (nextProps.fallback !== undefined) {
|
|
|
tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
|
|
|
} // This is the initial mount. This branch is pretty simple because there's
|
|
|
// no previous state that needs to be preserved.
|
|
|
|
|
|
|
|
|
if (nextDidTimeout) {
|
|
|
// Mount separate fragments for primary and fallback children.
|
|
|
var nextFallbackChildren = nextProps.fallback;
|
|
|
var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
|
|
|
primaryChildFragment.return = workInProgress;
|
|
|
|
|
|
if ((workInProgress.mode & BlockingMode) === NoMode) {
|
|
|
// Outside of blocking mode, we commit the effects from the
|
|
|
// partially completed, timed-out tree, too.
|
|
|
var progressedState = workInProgress.memoizedState;
|
|
|
var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
|
|
|
primaryChildFragment.child = progressedPrimaryChild;
|
|
|
var progressedChild = progressedPrimaryChild;
|
|
|
|
|
|
while (progressedChild !== null) {
|
|
|
progressedChild.return = primaryChildFragment;
|
|
|
progressedChild = progressedChild.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
|
|
|
fallbackChildFragment.return = workInProgress;
|
|
|
primaryChildFragment.sibling = fallbackChildFragment; // Skip the primary children, and continue working on the
|
|
|
// fallback children.
|
|
|
|
|
|
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
|
workInProgress.child = primaryChildFragment;
|
|
|
return fallbackChildFragment;
|
|
|
} else {
|
|
|
// Mount the primary children without an intermediate fragment fiber.
|
|
|
var nextPrimaryChildren = nextProps.children;
|
|
|
workInProgress.memoizedState = null;
|
|
|
return workInProgress.child = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
|
|
|
}
|
|
|
} else {
|
|
|
// This is an update. This branch is more complicated because we need to
|
|
|
// ensure the state of the primary children is preserved.
|
|
|
var prevState = current.memoizedState;
|
|
|
|
|
|
if (prevState !== null) {
|
|
|
// wrapped in a fragment fiber.
|
|
|
|
|
|
|
|
|
var currentPrimaryChildFragment = current.child;
|
|
|
var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
|
|
|
|
|
|
if (nextDidTimeout) {
|
|
|
// Still timed out. Reuse the current primary children by cloning
|
|
|
// its fragment. We're going to skip over these entirely.
|
|
|
var _nextFallbackChildren2 = nextProps.fallback;
|
|
|
|
|
|
var _primaryChildFragment2 = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);
|
|
|
|
|
|
_primaryChildFragment2.return = workInProgress;
|
|
|
|
|
|
if ((workInProgress.mode & BlockingMode) === NoMode) {
|
|
|
// Outside of blocking mode, we commit the effects from the
|
|
|
// partially completed, timed-out tree, too.
|
|
|
var _progressedState = workInProgress.memoizedState;
|
|
|
|
|
|
var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
|
|
|
|
|
|
if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
|
|
|
_primaryChildFragment2.child = _progressedPrimaryChild;
|
|
|
var _progressedChild2 = _progressedPrimaryChild;
|
|
|
|
|
|
while (_progressedChild2 !== null) {
|
|
|
_progressedChild2.return = _primaryChildFragment2;
|
|
|
_progressedChild2 = _progressedChild2.sibling;
|
|
|
}
|
|
|
}
|
|
|
} // Because primaryChildFragment is a new fiber that we're inserting as the
|
|
|
// parent of a new tree, we need to set its treeBaseDuration.
|
|
|
|
|
|
|
|
|
if ( workInProgress.mode & ProfileMode) {
|
|
|
// treeBaseDuration is the sum of all the child tree base durations.
|
|
|
var _treeBaseDuration = 0;
|
|
|
var _hiddenChild = _primaryChildFragment2.child;
|
|
|
|
|
|
while (_hiddenChild !== null) {
|
|
|
_treeBaseDuration += _hiddenChild.treeBaseDuration;
|
|
|
_hiddenChild = _hiddenChild.sibling;
|
|
|
}
|
|
|
|
|
|
_primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
|
|
|
} // Clone the fallback child fragment, too. These we'll continue
|
|
|
// working on.
|
|
|
|
|
|
|
|
|
var _fallbackChildFragment2 = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);
|
|
|
|
|
|
_fallbackChildFragment2.return = workInProgress;
|
|
|
_primaryChildFragment2.sibling = _fallbackChildFragment2;
|
|
|
_primaryChildFragment2.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
|
|
|
// fallback children.
|
|
|
|
|
|
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
|
workInProgress.child = _primaryChildFragment2;
|
|
|
return _fallbackChildFragment2;
|
|
|
} else {
|
|
|
// No longer suspended. Switch back to showing the primary children,
|
|
|
// and remove the intermediate fragment fiber.
|
|
|
var _nextPrimaryChildren = nextProps.children;
|
|
|
var currentPrimaryChild = currentPrimaryChildFragment.child;
|
|
|
var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback
|
|
|
// children. Wait until the complete phase, after we've confirmed the
|
|
|
// fallback is no longer needed.
|
|
|
// TODO: Would it be better to store the fallback fragment on
|
|
|
// the stateNode?
|
|
|
// Continue rendering the children, like we normally do.
|
|
|
|
|
|
workInProgress.memoizedState = null;
|
|
|
return workInProgress.child = primaryChild;
|
|
|
}
|
|
|
} else {
|
|
|
// The current tree has not already timed out. That means the primary
|
|
|
// children are not wrapped in a fragment fiber.
|
|
|
var _currentPrimaryChild = current.child;
|
|
|
|
|
|
if (nextDidTimeout) {
|
|
|
// Timed out. Wrap the children in a fragment fiber to keep them
|
|
|
// separate from the fallback children.
|
|
|
var _nextFallbackChildren3 = nextProps.fallback;
|
|
|
|
|
|
var _primaryChildFragment3 = createFiberFromFragment( // It shouldn't matter what the pending props are because we aren't
|
|
|
// going to render this fragment.
|
|
|
null, mode, NoWork, null);
|
|
|
|
|
|
_primaryChildFragment3.return = workInProgress;
|
|
|
_primaryChildFragment3.child = _currentPrimaryChild;
|
|
|
|
|
|
if (_currentPrimaryChild !== null) {
|
|
|
_currentPrimaryChild.return = _primaryChildFragment3;
|
|
|
} // Even though we're creating a new fiber, there are no new children,
|
|
|
// because we're reusing an already mounted tree. So we don't need to
|
|
|
// schedule a placement.
|
|
|
// primaryChildFragment.effectTag |= Placement;
|
|
|
|
|
|
|
|
|
if ((workInProgress.mode & BlockingMode) === NoMode) {
|
|
|
// Outside of blocking mode, we commit the effects from the
|
|
|
// partially completed, timed-out tree, too.
|
|
|
var _progressedState2 = workInProgress.memoizedState;
|
|
|
|
|
|
var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
|
|
|
|
|
|
_primaryChildFragment3.child = _progressedPrimaryChild2;
|
|
|
var _progressedChild3 = _progressedPrimaryChild2;
|
|
|
|
|
|
while (_progressedChild3 !== null) {
|
|
|
_progressedChild3.return = _primaryChildFragment3;
|
|
|
_progressedChild3 = _progressedChild3.sibling;
|
|
|
}
|
|
|
} // Because primaryChildFragment is a new fiber that we're inserting as the
|
|
|
// parent of a new tree, we need to set its treeBaseDuration.
|
|
|
|
|
|
|
|
|
if ( workInProgress.mode & ProfileMode) {
|
|
|
// treeBaseDuration is the sum of all the child tree base durations.
|
|
|
var _treeBaseDuration2 = 0;
|
|
|
var _hiddenChild2 = _primaryChildFragment3.child;
|
|
|
|
|
|
while (_hiddenChild2 !== null) {
|
|
|
_treeBaseDuration2 += _hiddenChild2.treeBaseDuration;
|
|
|
_hiddenChild2 = _hiddenChild2.sibling;
|
|
|
}
|
|
|
|
|
|
_primaryChildFragment3.treeBaseDuration = _treeBaseDuration2;
|
|
|
} // Create a fragment from the fallback children, too.
|
|
|
|
|
|
|
|
|
var _fallbackChildFragment3 = createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);
|
|
|
|
|
|
_fallbackChildFragment3.return = workInProgress;
|
|
|
_primaryChildFragment3.sibling = _fallbackChildFragment3;
|
|
|
_fallbackChildFragment3.effectTag |= Placement;
|
|
|
_primaryChildFragment3.childExpirationTime = NoWork; // Skip the primary children, and continue working on the
|
|
|
// fallback children.
|
|
|
|
|
|
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
|
workInProgress.child = _primaryChildFragment3;
|
|
|
return _fallbackChildFragment3;
|
|
|
} else {
|
|
|
// Still haven't timed out. Continue rendering the children, like we
|
|
|
// normally do.
|
|
|
workInProgress.memoizedState = null;
|
|
|
var _nextPrimaryChildren2 = nextProps.children;
|
|
|
return workInProgress.child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function scheduleWorkOnFiber(fiber, renderExpirationTime) {
|
|
|
if (fiber.expirationTime < renderExpirationTime) {
|
|
|
fiber.expirationTime = renderExpirationTime;
|
|
|
}
|
|
|
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
|
|
|
alternate.expirationTime = renderExpirationTime;
|
|
|
}
|
|
|
|
|
|
scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
|
|
|
// Mark any Suspense boundaries with fallbacks as having work to do.
|
|
|
// If they were previously forced into fallbacks, they may now be able
|
|
|
// to unblock.
|
|
|
var node = firstChild;
|
|
|
|
|
|
while (node !== null) {
|
|
|
if (node.tag === SuspenseComponent) {
|
|
|
var state = node.memoizedState;
|
|
|
|
|
|
if (state !== null) {
|
|
|
scheduleWorkOnFiber(node, renderExpirationTime);
|
|
|
}
|
|
|
} else if (node.tag === SuspenseListComponent) {
|
|
|
// If the tail is hidden there might not be an Suspense boundaries
|
|
|
// to schedule work on. In this case we have to schedule it on the
|
|
|
// list itself.
|
|
|
// We don't have to traverse to the children of the list since
|
|
|
// the list will propagate the change when it rerenders.
|
|
|
scheduleWorkOnFiber(node, renderExpirationTime);
|
|
|
} else if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === workInProgress) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === workInProgress) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function findLastContentRow(firstChild) {
|
|
|
// This is going to find the last row among these children that is already
|
|
|
// showing content on the screen, as opposed to being in fallback state or
|
|
|
// new. If a row has multiple Suspense boundaries, any of them being in the
|
|
|
// fallback state, counts as the whole row being in a fallback state.
|
|
|
// Note that the "rows" will be workInProgress, but any nested children
|
|
|
// will still be current since we haven't rendered them yet. The mounted
|
|
|
// order may not be the same as the new order. We use the new order.
|
|
|
var row = firstChild;
|
|
|
var lastContentRow = null;
|
|
|
|
|
|
while (row !== null) {
|
|
|
var currentRow = row.alternate; // New rows can't be content rows.
|
|
|
|
|
|
if (currentRow !== null && findFirstSuspended(currentRow) === null) {
|
|
|
lastContentRow = row;
|
|
|
}
|
|
|
|
|
|
row = row.sibling;
|
|
|
}
|
|
|
|
|
|
return lastContentRow;
|
|
|
}
|
|
|
|
|
|
function validateRevealOrder(revealOrder) {
|
|
|
{
|
|
|
if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
|
|
|
didWarnAboutRevealOrder[revealOrder] = true;
|
|
|
|
|
|
if (typeof revealOrder === 'string') {
|
|
|
switch (revealOrder.toLowerCase()) {
|
|
|
case 'together':
|
|
|
case 'forwards':
|
|
|
case 'backwards':
|
|
|
{
|
|
|
error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'forward':
|
|
|
case 'backward':
|
|
|
{
|
|
|
error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
} else {
|
|
|
error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function validateTailOptions(tailMode, revealOrder) {
|
|
|
{
|
|
|
if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
|
|
|
if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
|
|
|
didWarnAboutTailOptions[tailMode] = true;
|
|
|
|
|
|
error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
|
|
|
} else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
|
|
|
didWarnAboutTailOptions[tailMode] = true;
|
|
|
|
|
|
error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function validateSuspenseListNestedChild(childSlot, index) {
|
|
|
{
|
|
|
var isArray = Array.isArray(childSlot);
|
|
|
var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
|
|
|
|
|
|
if (isArray || isIterable) {
|
|
|
var type = isArray ? 'array' : 'iterable';
|
|
|
|
|
|
error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function validateSuspenseListChildren(children, revealOrder) {
|
|
|
{
|
|
|
if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
|
|
|
if (Array.isArray(children)) {
|
|
|
for (var i = 0; i < children.length; i++) {
|
|
|
if (!validateSuspenseListNestedChild(children[i], i)) {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
var iteratorFn = getIteratorFn(children);
|
|
|
|
|
|
if (typeof iteratorFn === 'function') {
|
|
|
var childrenIterator = iteratorFn.call(children);
|
|
|
|
|
|
if (childrenIterator) {
|
|
|
var step = childrenIterator.next();
|
|
|
var _i = 0;
|
|
|
|
|
|
for (; !step.done; step = childrenIterator.next()) {
|
|
|
if (!validateSuspenseListNestedChild(step.value, _i)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_i++;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
|
|
|
var renderState = workInProgress.memoizedState;
|
|
|
|
|
|
if (renderState === null) {
|
|
|
workInProgress.memoizedState = {
|
|
|
isBackwards: isBackwards,
|
|
|
rendering: null,
|
|
|
renderingStartTime: 0,
|
|
|
last: lastContentRow,
|
|
|
tail: tail,
|
|
|
tailExpiration: 0,
|
|
|
tailMode: tailMode,
|
|
|
lastEffect: lastEffectBeforeRendering
|
|
|
};
|
|
|
} else {
|
|
|
// We can reuse the existing object from previous renders.
|
|
|
renderState.isBackwards = isBackwards;
|
|
|
renderState.rendering = null;
|
|
|
renderState.renderingStartTime = 0;
|
|
|
renderState.last = lastContentRow;
|
|
|
renderState.tail = tail;
|
|
|
renderState.tailExpiration = 0;
|
|
|
renderState.tailMode = tailMode;
|
|
|
renderState.lastEffect = lastEffectBeforeRendering;
|
|
|
}
|
|
|
} // This can end up rendering this component multiple passes.
|
|
|
// The first pass splits the children fibers into two sets. A head and tail.
|
|
|
// We first render the head. If anything is in fallback state, we do another
|
|
|
// pass through beginWork to rerender all children (including the tail) with
|
|
|
// the force suspend context. If the first render didn't have anything in
|
|
|
// in fallback state. Then we render each row in the tail one-by-one.
|
|
|
// That happens in the completeWork phase without going back to beginWork.
|
|
|
|
|
|
|
|
|
function updateSuspenseListComponent(current, workInProgress, renderExpirationTime) {
|
|
|
var nextProps = workInProgress.pendingProps;
|
|
|
var revealOrder = nextProps.revealOrder;
|
|
|
var tailMode = nextProps.tail;
|
|
|
var newChildren = nextProps.children;
|
|
|
validateRevealOrder(revealOrder);
|
|
|
validateTailOptions(tailMode, revealOrder);
|
|
|
validateSuspenseListChildren(newChildren, revealOrder);
|
|
|
reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
|
|
|
var suspenseContext = suspenseStackCursor.current;
|
|
|
var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
|
|
|
|
|
|
if (shouldForceFallback) {
|
|
|
suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
} else {
|
|
|
var didSuspendBefore = current !== null && (current.effectTag & DidCapture) !== NoEffect;
|
|
|
|
|
|
if (didSuspendBefore) {
|
|
|
// If we previously forced a fallback, we need to schedule work
|
|
|
// on any nested boundaries to let them know to try to render
|
|
|
// again. This is the same as context updating.
|
|
|
propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
|
|
|
}
|
|
|
|
|
|
pushSuspenseContext(workInProgress, suspenseContext);
|
|
|
|
|
|
if ((workInProgress.mode & BlockingMode) === NoMode) {
|
|
|
// Outside of blocking mode, SuspenseList doesn't work so we just
|
|
|
// use make it a noop by treating it as the default revealOrder.
|
|
|
workInProgress.memoizedState = null;
|
|
|
} else {
|
|
|
switch (revealOrder) {
|
|
|
case 'forwards':
|
|
|
{
|
|
|
var lastContentRow = findLastContentRow(workInProgress.child);
|
|
|
var tail;
|
|
|
|
|
|
if (lastContentRow === null) {
|
|
|
// The whole list is part of the tail.
|
|
|
// TODO: We could fast path by just rendering the tail now.
|
|
|
tail = workInProgress.child;
|
|
|
workInProgress.child = null;
|
|
|
} else {
|
|
|
// Disconnect the tail rows after the content row.
|
|
|
// We're going to render them separately later.
|
|
|
tail = lastContentRow.sibling;
|
|
|
lastContentRow.sibling = null;
|
|
|
}
|
|
|
|
|
|
initSuspenseListRenderState(workInProgress, false, // isBackwards
|
|
|
tail, lastContentRow, tailMode, workInProgress.lastEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'backwards':
|
|
|
{
|
|
|
// We're going to find the first row that has existing content.
|
|
|
// At the same time we're going to reverse the list of everything
|
|
|
// we pass in the meantime. That's going to be our tail in reverse
|
|
|
// order.
|
|
|
var _tail = null;
|
|
|
var row = workInProgress.child;
|
|
|
workInProgress.child = null;
|
|
|
|
|
|
while (row !== null) {
|
|
|
var currentRow = row.alternate; // New rows can't be content rows.
|
|
|
|
|
|
if (currentRow !== null && findFirstSuspended(currentRow) === null) {
|
|
|
// This is the beginning of the main content.
|
|
|
workInProgress.child = row;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var nextRow = row.sibling;
|
|
|
row.sibling = _tail;
|
|
|
_tail = row;
|
|
|
row = nextRow;
|
|
|
} // TODO: If workInProgress.child is null, we can continue on the tail immediately.
|
|
|
|
|
|
|
|
|
initSuspenseListRenderState(workInProgress, true, // isBackwards
|
|
|
_tail, null, // last
|
|
|
tailMode, workInProgress.lastEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'together':
|
|
|
{
|
|
|
initSuspenseListRenderState(workInProgress, false, // isBackwards
|
|
|
null, // tail
|
|
|
null, // last
|
|
|
undefined, workInProgress.lastEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
// The default reveal order is the same as not having
|
|
|
// a boundary.
|
|
|
workInProgress.memoizedState = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updatePortalComponent(current, workInProgress, renderExpirationTime) {
|
|
|
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
|
var nextChildren = workInProgress.pendingProps;
|
|
|
|
|
|
if (current === null) {
|
|
|
// Portals are special because we don't append the children during mount
|
|
|
// but at commit. Therefore we need to track insertions which the normal
|
|
|
// flow doesn't do during mount. This doesn't happen at the root because
|
|
|
// the root always starts with a "current" with a null child.
|
|
|
// TODO: Consider unifying this with how the root works.
|
|
|
workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
|
|
|
} else {
|
|
|
reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function updateContextProvider(current, workInProgress, renderExpirationTime) {
|
|
|
var providerType = workInProgress.type;
|
|
|
var context = providerType._context;
|
|
|
var newProps = workInProgress.pendingProps;
|
|
|
var oldProps = workInProgress.memoizedProps;
|
|
|
var newValue = newProps.value;
|
|
|
|
|
|
{
|
|
|
var providerPropTypes = workInProgress.type.propTypes;
|
|
|
|
|
|
if (providerPropTypes) {
|
|
|
checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
pushProvider(workInProgress, newValue);
|
|
|
|
|
|
if (oldProps !== null) {
|
|
|
var oldValue = oldProps.value;
|
|
|
var changedBits = calculateChangedBits(context, newValue, oldValue);
|
|
|
|
|
|
if (changedBits === 0) {
|
|
|
// No change. Bailout early if children are the same.
|
|
|
if (oldProps.children === newProps.children && !hasContextChanged()) {
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
} else {
|
|
|
// The context value changed. Search for matching consumers and schedule
|
|
|
// them to update.
|
|
|
propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var newChildren = newProps.children;
|
|
|
reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
var hasWarnedAboutUsingContextAsConsumer = false;
|
|
|
|
|
|
function updateContextConsumer(current, workInProgress, renderExpirationTime) {
|
|
|
var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
|
|
|
// DEV mode, we create a separate object for Context.Consumer that acts
|
|
|
// like a proxy to Context. This proxy object adds unnecessary code in PROD
|
|
|
// so we use the old behaviour (Context.Consumer references Context) to
|
|
|
// reduce size and overhead. The separate object references context via
|
|
|
// a property called "_context", which also gives us the ability to check
|
|
|
// in DEV mode if this property exists or not and warn if it does not.
|
|
|
|
|
|
{
|
|
|
if (context._context === undefined) {
|
|
|
// This may be because it's a Context (rather than a Consumer).
|
|
|
// Or it may be because it's older React where they're the same thing.
|
|
|
// We only want to warn if we're sure it's a new React.
|
|
|
if (context !== context.Consumer) {
|
|
|
if (!hasWarnedAboutUsingContextAsConsumer) {
|
|
|
hasWarnedAboutUsingContextAsConsumer = true;
|
|
|
|
|
|
error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
context = context._context;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var newProps = workInProgress.pendingProps;
|
|
|
var render = newProps.children;
|
|
|
|
|
|
{
|
|
|
if (typeof render !== 'function') {
|
|
|
error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
prepareToReadContext(workInProgress, renderExpirationTime);
|
|
|
var newValue = readContext(context, newProps.unstable_observedBits);
|
|
|
var newChildren;
|
|
|
|
|
|
{
|
|
|
ReactCurrentOwner$1.current = workInProgress;
|
|
|
setIsRendering(true);
|
|
|
newChildren = render(newValue);
|
|
|
setIsRendering(false);
|
|
|
} // React DevTools reads this flag.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= PerformedWork;
|
|
|
reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
function markWorkInProgressReceivedUpdate() {
|
|
|
didReceiveUpdate = true;
|
|
|
}
|
|
|
|
|
|
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime) {
|
|
|
cancelWorkTimer(workInProgress);
|
|
|
|
|
|
if (current !== null) {
|
|
|
// Reuse previous dependencies
|
|
|
workInProgress.dependencies = current.dependencies;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// Don't update "base" render times for bailouts.
|
|
|
stopProfilerTimerIfRunning();
|
|
|
}
|
|
|
|
|
|
var updateExpirationTime = workInProgress.expirationTime;
|
|
|
|
|
|
if (updateExpirationTime !== NoWork) {
|
|
|
markUnprocessedUpdateTime(updateExpirationTime);
|
|
|
} // Check if the children have any pending work.
|
|
|
|
|
|
|
|
|
var childExpirationTime = workInProgress.childExpirationTime;
|
|
|
|
|
|
if (childExpirationTime < renderExpirationTime) {
|
|
|
// The children don't have any work either. We can skip them.
|
|
|
// TODO: Once we add back resuming, we should check if the children are
|
|
|
// a work-in-progress set. If so, we need to transfer their effects.
|
|
|
return null;
|
|
|
} else {
|
|
|
// This fiber doesn't have work, but its subtree does. Clone the child
|
|
|
// fibers and continue.
|
|
|
cloneChildFibers(current, workInProgress);
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
|
|
|
{
|
|
|
var returnFiber = oldWorkInProgress.return;
|
|
|
|
|
|
if (returnFiber === null) {
|
|
|
throw new Error('Cannot swap the root fiber.');
|
|
|
} // Disconnect from the old current.
|
|
|
// It will get deleted.
|
|
|
|
|
|
|
|
|
current.alternate = null;
|
|
|
oldWorkInProgress.alternate = null; // Connect to the new tree.
|
|
|
|
|
|
newWorkInProgress.index = oldWorkInProgress.index;
|
|
|
newWorkInProgress.sibling = oldWorkInProgress.sibling;
|
|
|
newWorkInProgress.return = oldWorkInProgress.return;
|
|
|
newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.
|
|
|
|
|
|
if (oldWorkInProgress === returnFiber.child) {
|
|
|
returnFiber.child = newWorkInProgress;
|
|
|
} else {
|
|
|
var prevSibling = returnFiber.child;
|
|
|
|
|
|
if (prevSibling === null) {
|
|
|
throw new Error('Expected parent to have a child.');
|
|
|
}
|
|
|
|
|
|
while (prevSibling.sibling !== oldWorkInProgress) {
|
|
|
prevSibling = prevSibling.sibling;
|
|
|
|
|
|
if (prevSibling === null) {
|
|
|
throw new Error('Expected to find the previous sibling.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
prevSibling.sibling = newWorkInProgress;
|
|
|
} // Delete the old fiber and place the new one.
|
|
|
// Since the old fiber is disconnected, we have to schedule it manually.
|
|
|
|
|
|
|
|
|
var last = returnFiber.lastEffect;
|
|
|
|
|
|
if (last !== null) {
|
|
|
last.nextEffect = current;
|
|
|
returnFiber.lastEffect = current;
|
|
|
} else {
|
|
|
returnFiber.firstEffect = returnFiber.lastEffect = current;
|
|
|
}
|
|
|
|
|
|
current.nextEffect = null;
|
|
|
current.effectTag = Deletion;
|
|
|
newWorkInProgress.effectTag |= Placement; // Restart work from the new fiber.
|
|
|
|
|
|
return newWorkInProgress;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function beginWork(current, workInProgress, renderExpirationTime) {
|
|
|
var updateExpirationTime = workInProgress.expirationTime;
|
|
|
|
|
|
{
|
|
|
if (workInProgress._debugNeedsRemount && current !== null) {
|
|
|
// This will restart the begin phase with a new fiber.
|
|
|
return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (current !== null) {
|
|
|
var oldProps = current.memoizedProps;
|
|
|
var newProps = workInProgress.pendingProps;
|
|
|
|
|
|
if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
|
|
|
workInProgress.type !== current.type )) {
|
|
|
// If props or context changed, mark the fiber as having performed work.
|
|
|
// This may be unset if the props are determined to be equal later (memo).
|
|
|
didReceiveUpdate = true;
|
|
|
} else if (updateExpirationTime < renderExpirationTime) {
|
|
|
didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
|
|
|
// the begin phase. There's still some bookkeeping we that needs to be done
|
|
|
// in this optimized path, mostly pushing stuff onto the stack.
|
|
|
|
|
|
switch (workInProgress.tag) {
|
|
|
case HostRoot:
|
|
|
pushHostRootContext(workInProgress);
|
|
|
resetHydrationState();
|
|
|
break;
|
|
|
|
|
|
case HostComponent:
|
|
|
pushHostContext(workInProgress);
|
|
|
|
|
|
if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
|
|
|
{
|
|
|
markSpawnedWork(Never);
|
|
|
} // Schedule this fiber to re-render at offscreen priority. Then bailout.
|
|
|
|
|
|
|
|
|
workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var Component = workInProgress.type;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
pushContextProvider(workInProgress);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
|
break;
|
|
|
|
|
|
case ContextProvider:
|
|
|
{
|
|
|
var newValue = workInProgress.memoizedProps.value;
|
|
|
pushProvider(workInProgress, newValue);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case Profiler:
|
|
|
{
|
|
|
// Profiler should only call onRender when one of its descendants actually rendered.
|
|
|
var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
|
|
|
|
|
|
if (hasChildWork) {
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
var state = workInProgress.memoizedState;
|
|
|
|
|
|
if (state !== null) {
|
|
|
// whether to retry the primary children, or to skip over it and
|
|
|
// go straight to the fallback. Check the priority of the primary
|
|
|
// child fragment.
|
|
|
|
|
|
|
|
|
var primaryChildFragment = workInProgress.child;
|
|
|
var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
|
|
|
|
|
|
if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
|
|
|
// The primary children have pending work. Use the normal path
|
|
|
// to attempt to render the primary children again.
|
|
|
return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
|
|
|
} else {
|
|
|
pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
|
|
|
// priority. Bailout.
|
|
|
|
|
|
var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
if (child !== null) {
|
|
|
// The fallback children have pending work. Skip over the
|
|
|
// primary children and work on the fallback.
|
|
|
return child.sibling;
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
{
|
|
|
var didSuspendBefore = (current.effectTag & DidCapture) !== NoEffect;
|
|
|
|
|
|
var _hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
|
|
|
|
|
|
if (didSuspendBefore) {
|
|
|
if (_hasChildWork) {
|
|
|
// If something was in fallback state last time, and we have all the
|
|
|
// same children then we're still in progressive loading state.
|
|
|
// Something might get unblocked by state updates or retries in the
|
|
|
// tree which will affect the tail. So we need to use the normal
|
|
|
// path to compute the correct tail.
|
|
|
return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
|
|
|
} // If none of the children had any work, that means that none of
|
|
|
// them got retried so they'll still be blocked in the same way
|
|
|
// as before. We can fast bail out.
|
|
|
|
|
|
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
} // If nothing suspended before and we're rendering the same children,
|
|
|
// then the tail doesn't matter. Anything new that suspends will work
|
|
|
// in the "together" mode, so we can continue from the state we had.
|
|
|
|
|
|
|
|
|
var renderState = workInProgress.memoizedState;
|
|
|
|
|
|
if (renderState !== null) {
|
|
|
// Reset to the "together" mode in case we've started a different
|
|
|
// update in the past but didn't complete it.
|
|
|
renderState.rendering = null;
|
|
|
renderState.tail = null;
|
|
|
}
|
|
|
|
|
|
pushSuspenseContext(workInProgress, suspenseStackCursor.current);
|
|
|
|
|
|
if (_hasChildWork) {
|
|
|
break;
|
|
|
} else {
|
|
|
// If none of the children had any work, that means that none of
|
|
|
// them got retried so they'll still be blocked in the same way
|
|
|
// as before. We can fast bail out.
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);
|
|
|
} else {
|
|
|
// An update was scheduled on this fiber, but there are no new props
|
|
|
// nor legacy context. Set this to false. If an update queue or context
|
|
|
// consumer produces a changed value, it will set this to true. Otherwise,
|
|
|
// the component will assume the children have not changed and bail out.
|
|
|
didReceiveUpdate = false;
|
|
|
}
|
|
|
} else {
|
|
|
didReceiveUpdate = false;
|
|
|
} // Before entering the begin phase, clear pending update priority.
|
|
|
// TODO: This assumes that we're about to evaluate the component and process
|
|
|
// the update queue. However, there's an exception: SimpleMemoComponent
|
|
|
// sometimes bails out later in the begin phase. This indicates that we should
|
|
|
// move this assignment out of the common path and into each branch.
|
|
|
|
|
|
|
|
|
workInProgress.expirationTime = NoWork;
|
|
|
|
|
|
switch (workInProgress.tag) {
|
|
|
case IndeterminateComponent:
|
|
|
{
|
|
|
return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case LazyComponent:
|
|
|
{
|
|
|
var elementType = workInProgress.elementType;
|
|
|
return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case FunctionComponent:
|
|
|
{
|
|
|
var _Component = workInProgress.type;
|
|
|
var unresolvedProps = workInProgress.pendingProps;
|
|
|
var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
|
|
|
return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var _Component2 = workInProgress.type;
|
|
|
var _unresolvedProps = workInProgress.pendingProps;
|
|
|
|
|
|
var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
|
|
|
|
|
|
return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
return updateHostRoot(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case HostComponent:
|
|
|
return updateHostComponent(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case HostText:
|
|
|
return updateHostText(current, workInProgress);
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
return updateSuspenseComponent(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case HostPortal:
|
|
|
return updatePortalComponent(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case ForwardRef:
|
|
|
{
|
|
|
var type = workInProgress.type;
|
|
|
var _unresolvedProps2 = workInProgress.pendingProps;
|
|
|
|
|
|
var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
|
|
|
|
|
|
return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case Fragment:
|
|
|
return updateFragment(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case Mode:
|
|
|
return updateMode(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case Profiler:
|
|
|
return updateProfiler(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case ContextProvider:
|
|
|
return updateContextProvider(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case ContextConsumer:
|
|
|
return updateContextConsumer(current, workInProgress, renderExpirationTime);
|
|
|
|
|
|
case MemoComponent:
|
|
|
{
|
|
|
var _type2 = workInProgress.type;
|
|
|
var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
|
|
|
|
|
|
var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
|
|
|
|
|
|
{
|
|
|
if (workInProgress.type !== workInProgress.elementType) {
|
|
|
var outerPropTypes = _type2.propTypes;
|
|
|
|
|
|
if (outerPropTypes) {
|
|
|
checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
|
|
|
'prop', getComponentName(_type2), getCurrentFiberStackInDev);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
|
|
|
return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case SimpleMemoComponent:
|
|
|
{
|
|
|
return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case IncompleteClassComponent:
|
|
|
{
|
|
|
var _Component3 = workInProgress.type;
|
|
|
var _unresolvedProps4 = workInProgress.pendingProps;
|
|
|
|
|
|
var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
|
|
|
|
|
|
return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
{
|
|
|
return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function markUpdate(workInProgress) {
|
|
|
// Tag the fiber with an update effect. This turns a Placement into
|
|
|
// a PlacementAndUpdate.
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
|
|
|
function markRef$1(workInProgress) {
|
|
|
workInProgress.effectTag |= Ref;
|
|
|
}
|
|
|
|
|
|
var appendAllChildren;
|
|
|
var updateHostContainer;
|
|
|
var updateHostComponent$1;
|
|
|
var updateHostText$1;
|
|
|
|
|
|
{
|
|
|
// Mutation mode
|
|
|
appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
|
|
|
// We only have the top Fiber that was created but we need recurse down its
|
|
|
// children to find all the terminal nodes.
|
|
|
var node = workInProgress.child;
|
|
|
|
|
|
while (node !== null) {
|
|
|
if (node.tag === HostComponent || node.tag === HostText) {
|
|
|
appendInitialChild(parent, node.stateNode);
|
|
|
} else if (node.tag === HostPortal) ; else if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === workInProgress) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === workInProgress) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
updateHostContainer = function (workInProgress) {// Noop
|
|
|
};
|
|
|
|
|
|
updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
|
|
|
// If we have an alternate, that means this is an update and we need to
|
|
|
// schedule a side-effect to do the updates.
|
|
|
var oldProps = current.memoizedProps;
|
|
|
|
|
|
if (oldProps === newProps) {
|
|
|
// In mutation mode, this is sufficient for a bailout because
|
|
|
// we won't touch this node even if children changed.
|
|
|
return;
|
|
|
} // If we get updated because one of our children updated, we don't
|
|
|
// have newProps so we'll have to reuse them.
|
|
|
// TODO: Split the update API as separate for the props vs. children.
|
|
|
// Even better would be if children weren't special cased at all tho.
|
|
|
|
|
|
|
|
|
var instance = workInProgress.stateNode;
|
|
|
var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
|
|
|
// component is hitting the resume path. Figure out why. Possibly
|
|
|
// related to `hidden`.
|
|
|
|
|
|
var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.
|
|
|
|
|
|
workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
|
|
|
// is a new ref we mark this as an update. All the work is done in commitWork.
|
|
|
|
|
|
if (updatePayload) {
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
updateHostText$1 = function (current, workInProgress, oldText, newText) {
|
|
|
// If the text differs, mark it as an update. All the work in done in commitWork.
|
|
|
if (oldText !== newText) {
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
switch (renderState.tailMode) {
|
|
|
case 'hidden':
|
|
|
{
|
|
|
// Any insertions at the end of the tail list after this point
|
|
|
// should be invisible. If there are already mounted boundaries
|
|
|
// anything before them are not considered for collapsing.
|
|
|
// Therefore we need to go through the whole tail to find if
|
|
|
// there are any.
|
|
|
var tailNode = renderState.tail;
|
|
|
var lastTailNode = null;
|
|
|
|
|
|
while (tailNode !== null) {
|
|
|
if (tailNode.alternate !== null) {
|
|
|
lastTailNode = tailNode;
|
|
|
}
|
|
|
|
|
|
tailNode = tailNode.sibling;
|
|
|
} // Next we're simply going to delete all insertions after the
|
|
|
// last rendered item.
|
|
|
|
|
|
|
|
|
if (lastTailNode === null) {
|
|
|
// All remaining items in the tail are insertions.
|
|
|
renderState.tail = null;
|
|
|
} else {
|
|
|
// Detach the insertion after the last node that was already
|
|
|
// inserted.
|
|
|
lastTailNode.sibling = null;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case 'collapsed':
|
|
|
{
|
|
|
// Any insertions at the end of the tail list after this point
|
|
|
// should be invisible. If there are already mounted boundaries
|
|
|
// anything before them are not considered for collapsing.
|
|
|
// Therefore we need to go through the whole tail to find if
|
|
|
// there are any.
|
|
|
var _tailNode = renderState.tail;
|
|
|
var _lastTailNode = null;
|
|
|
|
|
|
while (_tailNode !== null) {
|
|
|
if (_tailNode.alternate !== null) {
|
|
|
_lastTailNode = _tailNode;
|
|
|
}
|
|
|
|
|
|
_tailNode = _tailNode.sibling;
|
|
|
} // Next we're simply going to delete all insertions after the
|
|
|
// last rendered item.
|
|
|
|
|
|
|
|
|
if (_lastTailNode === null) {
|
|
|
// All remaining items in the tail are insertions.
|
|
|
if (!hasRenderedATailFallback && renderState.tail !== null) {
|
|
|
// We suspended during the head. We want to show at least one
|
|
|
// row at the tail. So we'll keep on and cut off the rest.
|
|
|
renderState.tail.sibling = null;
|
|
|
} else {
|
|
|
renderState.tail = null;
|
|
|
}
|
|
|
} else {
|
|
|
// Detach the insertion after the last node that was already
|
|
|
// inserted.
|
|
|
_lastTailNode.sibling = null;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function completeWork(current, workInProgress, renderExpirationTime) {
|
|
|
var newProps = workInProgress.pendingProps;
|
|
|
|
|
|
switch (workInProgress.tag) {
|
|
|
case IndeterminateComponent:
|
|
|
case LazyComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case Fragment:
|
|
|
case Mode:
|
|
|
case Profiler:
|
|
|
case ContextConsumer:
|
|
|
case MemoComponent:
|
|
|
return null;
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var Component = workInProgress.type;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
popContext(workInProgress);
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
{
|
|
|
popHostContainer(workInProgress);
|
|
|
popTopLevelContextObject(workInProgress);
|
|
|
var fiberRoot = workInProgress.stateNode;
|
|
|
|
|
|
if (fiberRoot.pendingContext) {
|
|
|
fiberRoot.context = fiberRoot.pendingContext;
|
|
|
fiberRoot.pendingContext = null;
|
|
|
}
|
|
|
|
|
|
if (current === null || current.child === null) {
|
|
|
// If we hydrated, pop so that we can delete any remaining children
|
|
|
// that weren't hydrated.
|
|
|
var wasHydrated = popHydrationState(workInProgress);
|
|
|
|
|
|
if (wasHydrated) {
|
|
|
// If we hydrated, then we'll need to schedule an update for
|
|
|
// the commit side-effects on the root.
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
updateHostContainer(workInProgress);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
popHostContext(workInProgress);
|
|
|
var rootContainerInstance = getRootHostContainer();
|
|
|
var type = workInProgress.type;
|
|
|
|
|
|
if (current !== null && workInProgress.stateNode != null) {
|
|
|
updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
|
|
|
|
|
|
if (current.ref !== workInProgress.ref) {
|
|
|
markRef$1(workInProgress);
|
|
|
}
|
|
|
} else {
|
|
|
if (!newProps) {
|
|
|
if (!(workInProgress.stateNode !== null)) {
|
|
|
{
|
|
|
throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
} // This can happen when we abort work.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
|
|
|
// "stack" as the parent. Then append children as we go in beginWork
|
|
|
// or completeWork depending on whether we want to add them top->down or
|
|
|
// bottom->up. Top->down is faster in IE11.
|
|
|
|
|
|
var _wasHydrated = popHydrationState(workInProgress);
|
|
|
|
|
|
if (_wasHydrated) {
|
|
|
// TODO: Move this and createInstance step into the beginPhase
|
|
|
// to consolidate.
|
|
|
if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
|
|
|
// If changes to the hydrated node need to be applied at the
|
|
|
// commit-phase we mark this as such.
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
} else {
|
|
|
var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
|
|
|
appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners
|
|
|
|
|
|
workInProgress.stateNode = instance;
|
|
|
// (eg DOM renderer supports auto-focus for certain elements).
|
|
|
// Make sure such renderers get scheduled for later work.
|
|
|
|
|
|
|
|
|
if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (workInProgress.ref !== null) {
|
|
|
// If there is a ref on a host node we need to schedule a callback
|
|
|
markRef$1(workInProgress);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostText:
|
|
|
{
|
|
|
var newText = newProps;
|
|
|
|
|
|
if (current && workInProgress.stateNode != null) {
|
|
|
var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
|
|
|
// to schedule a side-effect to do the updates.
|
|
|
|
|
|
updateHostText$1(current, workInProgress, oldText, newText);
|
|
|
} else {
|
|
|
if (typeof newText !== 'string') {
|
|
|
if (!(workInProgress.stateNode !== null)) {
|
|
|
{
|
|
|
throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
} // This can happen when we abort work.
|
|
|
|
|
|
}
|
|
|
|
|
|
var _rootContainerInstance = getRootHostContainer();
|
|
|
|
|
|
var _currentHostContext = getHostContext();
|
|
|
|
|
|
var _wasHydrated2 = popHydrationState(workInProgress);
|
|
|
|
|
|
if (_wasHydrated2) {
|
|
|
if (prepareToHydrateHostTextInstance(workInProgress)) {
|
|
|
markUpdate(workInProgress);
|
|
|
}
|
|
|
} else {
|
|
|
workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
popSuspenseContext(workInProgress);
|
|
|
var nextState = workInProgress.memoizedState;
|
|
|
|
|
|
if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
|
|
|
// Something suspended. Re-render with the fallback children.
|
|
|
workInProgress.expirationTime = renderExpirationTime; // Do not reset the effect list.
|
|
|
|
|
|
return workInProgress;
|
|
|
}
|
|
|
|
|
|
var nextDidTimeout = nextState !== null;
|
|
|
var prevDidTimeout = false;
|
|
|
|
|
|
if (current === null) {
|
|
|
if (workInProgress.memoizedProps.fallback !== undefined) {
|
|
|
popHydrationState(workInProgress);
|
|
|
}
|
|
|
} else {
|
|
|
var prevState = current.memoizedState;
|
|
|
prevDidTimeout = prevState !== null;
|
|
|
|
|
|
if (!nextDidTimeout && prevState !== null) {
|
|
|
// We just switched from the fallback to the normal children.
|
|
|
// Delete the fallback.
|
|
|
// TODO: Would it be better to store the fallback fragment on
|
|
|
// the stateNode during the begin phase?
|
|
|
var currentFallbackChild = current.child.sibling;
|
|
|
|
|
|
if (currentFallbackChild !== null) {
|
|
|
// Deletions go at the beginning of the return fiber's effect list
|
|
|
var first = workInProgress.firstEffect;
|
|
|
|
|
|
if (first !== null) {
|
|
|
workInProgress.firstEffect = currentFallbackChild;
|
|
|
currentFallbackChild.nextEffect = first;
|
|
|
} else {
|
|
|
workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
|
|
|
currentFallbackChild.nextEffect = null;
|
|
|
}
|
|
|
|
|
|
currentFallbackChild.effectTag = Deletion;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (nextDidTimeout && !prevDidTimeout) {
|
|
|
// If this subtreee is running in blocking mode we can suspend,
|
|
|
// otherwise we won't suspend.
|
|
|
// TODO: This will still suspend a synchronous tree if anything
|
|
|
// in the concurrent tree already suspended during this render.
|
|
|
// This is a known bug.
|
|
|
if ((workInProgress.mode & BlockingMode) !== NoMode) {
|
|
|
// TODO: Move this back to throwException because this is too late
|
|
|
// if this is a large tree which is common for initial loads. We
|
|
|
// don't know if we should restart a render or not until we get
|
|
|
// this marker, and this is too late.
|
|
|
// If this render already had a ping or lower pri updates,
|
|
|
// and this is the first time we know we're going to suspend we
|
|
|
// should be able to immediately restart from within throwException.
|
|
|
var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
|
|
|
|
|
|
if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
|
|
|
// If this was in an invisible tree or a new render, then showing
|
|
|
// this boundary is ok.
|
|
|
renderDidSuspend();
|
|
|
} else {
|
|
|
// Otherwise, we're going to have to hide content so we should
|
|
|
// suspend for longer if possible.
|
|
|
renderDidSuspendDelayIfPossible();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// TODO: Only schedule updates if these values are non equal, i.e. it changed.
|
|
|
if (nextDidTimeout || prevDidTimeout) {
|
|
|
// If this boundary just timed out, schedule an effect to attach a
|
|
|
// retry listener to the promise. This flag is also used to hide the
|
|
|
// primary children. In mutation mode, we also need the flag to
|
|
|
// *unhide* children that were previously hidden, so check if this
|
|
|
// is currently timed out, too.
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
popHostContainer(workInProgress);
|
|
|
updateHostContainer(workInProgress);
|
|
|
return null;
|
|
|
|
|
|
case ContextProvider:
|
|
|
// Pop provider fiber
|
|
|
popProvider(workInProgress);
|
|
|
return null;
|
|
|
|
|
|
case IncompleteClassComponent:
|
|
|
{
|
|
|
// Same as class component case. I put it down here so that the tags are
|
|
|
// sequential to ensure this switch is compiled to a jump table.
|
|
|
var _Component = workInProgress.type;
|
|
|
|
|
|
if (isContextProvider(_Component)) {
|
|
|
popContext(workInProgress);
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
{
|
|
|
popSuspenseContext(workInProgress);
|
|
|
var renderState = workInProgress.memoizedState;
|
|
|
|
|
|
if (renderState === null) {
|
|
|
// We're running in the default, "independent" mode.
|
|
|
// We don't do anything in this mode.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
|
|
|
var renderedTail = renderState.rendering;
|
|
|
|
|
|
if (renderedTail === null) {
|
|
|
// We just rendered the head.
|
|
|
if (!didSuspendAlready) {
|
|
|
// This is the first pass. We need to figure out if anything is still
|
|
|
// suspended in the rendered set.
|
|
|
// If new content unsuspended, but there's still some content that
|
|
|
// didn't. Then we need to do a second pass that forces everything
|
|
|
// to keep showing their fallbacks.
|
|
|
// We might be suspended if something in this render pass suspended, or
|
|
|
// something in the previous committed pass suspended. Otherwise,
|
|
|
// there's no chance so we can skip the expensive call to
|
|
|
// findFirstSuspended.
|
|
|
var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
|
|
|
|
|
|
if (!cannotBeSuspended) {
|
|
|
var row = workInProgress.child;
|
|
|
|
|
|
while (row !== null) {
|
|
|
var suspended = findFirstSuspended(row);
|
|
|
|
|
|
if (suspended !== null) {
|
|
|
didSuspendAlready = true;
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
|
|
|
// part of the second pass. In that case nothing will subscribe to
|
|
|
// its thennables. Instead, we'll transfer its thennables to the
|
|
|
// SuspenseList so that it can retry if they resolve.
|
|
|
// There might be multiple of these in the list but since we're
|
|
|
// going to wait for all of them anyway, it doesn't really matter
|
|
|
// which ones gets to ping. In theory we could get clever and keep
|
|
|
// track of how many dependencies remain but it gets tricky because
|
|
|
// in the meantime, we can add/remove/change items and dependencies.
|
|
|
// We might bail out of the loop before finding any but that
|
|
|
// doesn't matter since that means that the other boundaries that
|
|
|
// we did find already has their listeners attached.
|
|
|
|
|
|
var newThennables = suspended.updateQueue;
|
|
|
|
|
|
if (newThennables !== null) {
|
|
|
workInProgress.updateQueue = newThennables;
|
|
|
workInProgress.effectTag |= Update;
|
|
|
} // Rerender the whole list, but this time, we'll force fallbacks
|
|
|
// to stay in place.
|
|
|
// Reset the effect list before doing the second pass since that's now invalid.
|
|
|
|
|
|
|
|
|
if (renderState.lastEffect === null) {
|
|
|
workInProgress.firstEffect = null;
|
|
|
}
|
|
|
|
|
|
workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.
|
|
|
|
|
|
resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately
|
|
|
// rerender the children.
|
|
|
|
|
|
pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
|
|
|
return workInProgress.child;
|
|
|
}
|
|
|
|
|
|
row = row.sibling;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
cutOffTailIfNeeded(renderState, false);
|
|
|
} // Next we're going to render the tail.
|
|
|
|
|
|
} else {
|
|
|
// Append the rendered row to the child list.
|
|
|
if (!didSuspendAlready) {
|
|
|
var _suspended = findFirstSuspended(renderedTail);
|
|
|
|
|
|
if (_suspended !== null) {
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
|
|
|
// get lost if this row ends up dropped during a second pass.
|
|
|
|
|
|
var _newThennables = _suspended.updateQueue;
|
|
|
|
|
|
if (_newThennables !== null) {
|
|
|
workInProgress.updateQueue = _newThennables;
|
|
|
workInProgress.effectTag |= Update;
|
|
|
}
|
|
|
|
|
|
cutOffTailIfNeeded(renderState, true); // This might have been modified.
|
|
|
|
|
|
if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate) {
|
|
|
// We need to delete the row we just rendered.
|
|
|
// Reset the effect list to what it was before we rendered this
|
|
|
// child. The nested children have already appended themselves.
|
|
|
var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.
|
|
|
|
|
|
if (lastEffect !== null) {
|
|
|
lastEffect.nextEffect = null;
|
|
|
} // We're done.
|
|
|
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
} else if ( // The time it took to render last row is greater than time until
|
|
|
// the expiration.
|
|
|
now() * 2 - renderState.renderingStartTime > renderState.tailExpiration && renderExpirationTime > Never) {
|
|
|
// We have now passed our CPU deadline and we'll just give up further
|
|
|
// attempts to render the main content and only render fallbacks.
|
|
|
// The assumption is that this is usually faster.
|
|
|
workInProgress.effectTag |= DidCapture;
|
|
|
didSuspendAlready = true;
|
|
|
cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
|
|
|
// to get it started back up to attempt the next item. If we can show
|
|
|
// them, then they really have the same priority as this render.
|
|
|
// So we'll pick it back up the very next render pass once we've had
|
|
|
// an opportunity to yield for paint.
|
|
|
|
|
|
var nextPriority = renderExpirationTime - 1;
|
|
|
workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
|
|
|
|
|
|
{
|
|
|
markSpawnedWork(nextPriority);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (renderState.isBackwards) {
|
|
|
// The effect list of the backwards tail will have been added
|
|
|
// to the end. This breaks the guarantee that life-cycles fire in
|
|
|
// sibling order but that isn't a strong guarantee promised by React.
|
|
|
// Especially since these might also just pop in during future commits.
|
|
|
// Append to the beginning of the list.
|
|
|
renderedTail.sibling = workInProgress.child;
|
|
|
workInProgress.child = renderedTail;
|
|
|
} else {
|
|
|
var previousSibling = renderState.last;
|
|
|
|
|
|
if (previousSibling !== null) {
|
|
|
previousSibling.sibling = renderedTail;
|
|
|
} else {
|
|
|
workInProgress.child = renderedTail;
|
|
|
}
|
|
|
|
|
|
renderState.last = renderedTail;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (renderState.tail !== null) {
|
|
|
// We still have tail rows to render.
|
|
|
if (renderState.tailExpiration === 0) {
|
|
|
// Heuristic for how long we're willing to spend rendering rows
|
|
|
// until we just give up and show what we have so far.
|
|
|
var TAIL_EXPIRATION_TIMEOUT_MS = 500;
|
|
|
renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this
|
|
|
// is a per component value. It should really be since the start
|
|
|
// of the total render or last commit. Consider using something like
|
|
|
// globalMostRecentFallbackTime. That doesn't account for being
|
|
|
// suspended for part of the time or when it's a new render.
|
|
|
// It should probably use a global start time value instead.
|
|
|
} // Pop a row.
|
|
|
|
|
|
|
|
|
var next = renderState.tail;
|
|
|
renderState.rendering = next;
|
|
|
renderState.tail = next.sibling;
|
|
|
renderState.lastEffect = workInProgress.lastEffect;
|
|
|
renderState.renderingStartTime = now();
|
|
|
next.sibling = null; // Restore the context.
|
|
|
// TODO: We can probably just avoid popping it instead and only
|
|
|
// setting it the first time we go from not suspended to suspended.
|
|
|
|
|
|
var suspenseContext = suspenseStackCursor.current;
|
|
|
|
|
|
if (didSuspendAlready) {
|
|
|
suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
|
|
|
} else {
|
|
|
suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
|
|
|
}
|
|
|
|
|
|
pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
|
|
|
|
|
|
return next;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unwindWork(workInProgress, renderExpirationTime) {
|
|
|
switch (workInProgress.tag) {
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var Component = workInProgress.type;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
popContext(workInProgress);
|
|
|
}
|
|
|
|
|
|
var effectTag = workInProgress.effectTag;
|
|
|
|
|
|
if (effectTag & ShouldCapture) {
|
|
|
workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
|
|
|
return workInProgress;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
{
|
|
|
popHostContainer(workInProgress);
|
|
|
popTopLevelContextObject(workInProgress);
|
|
|
var _effectTag = workInProgress.effectTag;
|
|
|
|
|
|
if (!((_effectTag & DidCapture) === NoEffect)) {
|
|
|
{
|
|
|
throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
|
|
|
return workInProgress;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
// TODO: popHydrationState
|
|
|
popHostContext(workInProgress);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
popSuspenseContext(workInProgress);
|
|
|
|
|
|
var _effectTag2 = workInProgress.effectTag;
|
|
|
|
|
|
if (_effectTag2 & ShouldCapture) {
|
|
|
workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.
|
|
|
|
|
|
return workInProgress;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
{
|
|
|
popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
|
|
|
// caught by a nested boundary. If not, it should bubble through.
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
popHostContainer(workInProgress);
|
|
|
return null;
|
|
|
|
|
|
case ContextProvider:
|
|
|
popProvider(workInProgress);
|
|
|
return null;
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unwindInterruptedWork(interruptedWork) {
|
|
|
switch (interruptedWork.tag) {
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var childContextTypes = interruptedWork.type.childContextTypes;
|
|
|
|
|
|
if (childContextTypes !== null && childContextTypes !== undefined) {
|
|
|
popContext(interruptedWork);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
{
|
|
|
popHostContainer(interruptedWork);
|
|
|
popTopLevelContextObject(interruptedWork);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
popHostContext(interruptedWork);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
popHostContainer(interruptedWork);
|
|
|
break;
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
popSuspenseContext(interruptedWork);
|
|
|
break;
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
popSuspenseContext(interruptedWork);
|
|
|
break;
|
|
|
|
|
|
case ContextProvider:
|
|
|
popProvider(interruptedWork);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createCapturedValue(value, source) {
|
|
|
// If the value is an error, call this function immediately after it is thrown
|
|
|
// so the stack is accurate.
|
|
|
return {
|
|
|
value: value,
|
|
|
source: source,
|
|
|
stack: getStackByFiberInDevAndProd(source)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function logCapturedError(capturedError) {
|
|
|
|
|
|
var error = capturedError.error;
|
|
|
|
|
|
{
|
|
|
var componentName = capturedError.componentName,
|
|
|
componentStack = capturedError.componentStack,
|
|
|
errorBoundaryName = capturedError.errorBoundaryName,
|
|
|
errorBoundaryFound = capturedError.errorBoundaryFound,
|
|
|
willRetry = capturedError.willRetry; // Browsers support silencing uncaught errors by calling
|
|
|
// `preventDefault()` in window `error` handler.
|
|
|
// We record this information as an expando on the error.
|
|
|
|
|
|
if (error != null && error._suppressLogging) {
|
|
|
if (errorBoundaryFound && willRetry) {
|
|
|
// The error is recoverable and was silenced.
|
|
|
// Ignore it and don't print the stack addendum.
|
|
|
// This is handy for testing error boundaries without noise.
|
|
|
return;
|
|
|
} // The error is fatal. Since the silencing might have
|
|
|
// been accidental, we'll surface it anyway.
|
|
|
// However, the browser would have silenced the original error
|
|
|
// so we'll print it first, and then print the stack addendum.
|
|
|
|
|
|
|
|
|
console['error'](error); // Don't transform to our wrapper
|
|
|
// For a more detailed description of this block, see:
|
|
|
// https://github.com/facebook/react/pull/13384
|
|
|
}
|
|
|
|
|
|
var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
|
|
|
var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
|
|
|
|
|
|
if (errorBoundaryFound && errorBoundaryName) {
|
|
|
if (willRetry) {
|
|
|
errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
|
|
|
} else {
|
|
|
errorBoundaryMessage = "This error was initially handled by the error boundary " + errorBoundaryName + ".\n" + "Recreating the tree from scratch failed so React will unmount the tree.";
|
|
|
}
|
|
|
} else {
|
|
|
errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
|
|
|
}
|
|
|
|
|
|
var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
|
|
|
// We don't include the original error message and JS stack because the browser
|
|
|
// has already printed it. Even if the application swallows the error, it is still
|
|
|
// displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
|
|
|
|
|
|
console['error'](combinedMessage); // Don't transform to our wrapper
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
|
|
|
|
|
|
{
|
|
|
didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
|
|
|
}
|
|
|
|
|
|
var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
|
|
|
function logError(boundary, errorInfo) {
|
|
|
var source = errorInfo.source;
|
|
|
var stack = errorInfo.stack;
|
|
|
|
|
|
if (stack === null && source !== null) {
|
|
|
stack = getStackByFiberInDevAndProd(source);
|
|
|
}
|
|
|
|
|
|
var capturedError = {
|
|
|
componentName: source !== null ? getComponentName(source.type) : null,
|
|
|
componentStack: stack !== null ? stack : '',
|
|
|
error: errorInfo.value,
|
|
|
errorBoundary: null,
|
|
|
errorBoundaryName: null,
|
|
|
errorBoundaryFound: false,
|
|
|
willRetry: false
|
|
|
};
|
|
|
|
|
|
if (boundary !== null && boundary.tag === ClassComponent) {
|
|
|
capturedError.errorBoundary = boundary.stateNode;
|
|
|
capturedError.errorBoundaryName = getComponentName(boundary.type);
|
|
|
capturedError.errorBoundaryFound = true;
|
|
|
capturedError.willRetry = true;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
logCapturedError(capturedError);
|
|
|
} catch (e) {
|
|
|
// This method must not throw, or React internal state will get messed up.
|
|
|
// If console.error is overridden, or logCapturedError() shows a dialog that throws,
|
|
|
// we want to report this error outside of the normal stack as a last resort.
|
|
|
// https://github.com/facebook/react/issues/13188
|
|
|
setTimeout(function () {
|
|
|
throw e;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var callComponentWillUnmountWithTimer = function (current, instance) {
|
|
|
startPhaseTimer(current, 'componentWillUnmount');
|
|
|
instance.props = current.memoizedProps;
|
|
|
instance.state = current.memoizedState;
|
|
|
instance.componentWillUnmount();
|
|
|
stopPhaseTimer();
|
|
|
}; // Capture errors so they don't interrupt unmounting.
|
|
|
|
|
|
|
|
|
function safelyCallComponentWillUnmount(current, instance) {
|
|
|
{
|
|
|
invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
var unmountError = clearCaughtError();
|
|
|
captureCommitPhaseError(current, unmountError);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function safelyDetachRef(current) {
|
|
|
var ref = current.ref;
|
|
|
|
|
|
if (ref !== null) {
|
|
|
if (typeof ref === 'function') {
|
|
|
{
|
|
|
invokeGuardedCallback(null, ref, null, null);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
var refError = clearCaughtError();
|
|
|
captureCommitPhaseError(current, refError);
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
ref.current = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function safelyCallDestroy(current, destroy) {
|
|
|
{
|
|
|
invokeGuardedCallback(null, destroy, null);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
var error = clearCaughtError();
|
|
|
captureCommitPhaseError(current, error);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitBeforeMutationLifeCycles(current, finishedWork) {
|
|
|
switch (finishedWork.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case SimpleMemoComponent:
|
|
|
case Block:
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
if (finishedWork.effectTag & Snapshot) {
|
|
|
if (current !== null) {
|
|
|
var prevProps = current.memoizedProps;
|
|
|
var prevState = current.memoizedState;
|
|
|
startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
|
|
|
var instance = finishedWork.stateNode; // We could update instance props and state here,
|
|
|
// but instead we rely on them being set during last render.
|
|
|
// TODO: revisit this when we implement resuming.
|
|
|
|
|
|
{
|
|
|
if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
|
|
|
if (instance.props !== finishedWork.memoizedProps) {
|
|
|
error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
|
|
|
if (instance.state !== finishedWork.memoizedState) {
|
|
|
error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
|
|
|
|
|
|
{
|
|
|
var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
|
|
|
|
|
|
if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
|
|
|
didWarnSet.add(finishedWork.type);
|
|
|
|
|
|
error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
instance.__reactInternalSnapshotBeforeUpdate = snapshot;
|
|
|
stopPhaseTimer();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
case HostComponent:
|
|
|
case HostText:
|
|
|
case HostPortal:
|
|
|
case IncompleteClassComponent:
|
|
|
// Nothing to do for these component types
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitHookEffectListUnmount(tag, finishedWork) {
|
|
|
var updateQueue = finishedWork.updateQueue;
|
|
|
var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
|
|
|
|
|
|
if (lastEffect !== null) {
|
|
|
var firstEffect = lastEffect.next;
|
|
|
var effect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
if ((effect.tag & tag) === tag) {
|
|
|
// Unmount
|
|
|
var destroy = effect.destroy;
|
|
|
effect.destroy = undefined;
|
|
|
|
|
|
if (destroy !== undefined) {
|
|
|
destroy();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
effect = effect.next;
|
|
|
} while (effect !== firstEffect);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitHookEffectListMount(tag, finishedWork) {
|
|
|
var updateQueue = finishedWork.updateQueue;
|
|
|
var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
|
|
|
|
|
|
if (lastEffect !== null) {
|
|
|
var firstEffect = lastEffect.next;
|
|
|
var effect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
if ((effect.tag & tag) === tag) {
|
|
|
// Mount
|
|
|
var create = effect.create;
|
|
|
effect.destroy = create();
|
|
|
|
|
|
{
|
|
|
var destroy = effect.destroy;
|
|
|
|
|
|
if (destroy !== undefined && typeof destroy !== 'function') {
|
|
|
var addendum = void 0;
|
|
|
|
|
|
if (destroy === null) {
|
|
|
addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
|
|
|
} else if (typeof destroy.then === 'function') {
|
|
|
addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';
|
|
|
} else {
|
|
|
addendum = ' You returned: ' + destroy;
|
|
|
}
|
|
|
|
|
|
error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
effect = effect.next;
|
|
|
} while (effect !== firstEffect);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitPassiveHookEffects(finishedWork) {
|
|
|
if ((finishedWork.effectTag & Passive) !== NoEffect) {
|
|
|
switch (finishedWork.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case SimpleMemoComponent:
|
|
|
case Block:
|
|
|
{
|
|
|
// TODO (#17945) We should call all passive destroy functions (for all fibers)
|
|
|
// before calling any create functions. The current approach only serializes
|
|
|
// these for a single fiber.
|
|
|
commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);
|
|
|
commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime) {
|
|
|
switch (finishedWork.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case SimpleMemoComponent:
|
|
|
case Block:
|
|
|
{
|
|
|
// At this point layout effects have already been destroyed (during mutation phase).
|
|
|
// This is done to prevent sibling component effects from interfering with each other,
|
|
|
// e.g. a destroy function in one component should never override a ref set
|
|
|
// by a create function in another component during the same commit.
|
|
|
commitHookEffectListMount(Layout | HasEffect, finishedWork);
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
var instance = finishedWork.stateNode;
|
|
|
|
|
|
if (finishedWork.effectTag & Update) {
|
|
|
if (current === null) {
|
|
|
startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,
|
|
|
// but instead we rely on them being set during last render.
|
|
|
// TODO: revisit this when we implement resuming.
|
|
|
|
|
|
{
|
|
|
if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
|
|
|
if (instance.props !== finishedWork.memoizedProps) {
|
|
|
error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
|
|
|
if (instance.state !== finishedWork.memoizedState) {
|
|
|
error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
instance.componentDidMount();
|
|
|
stopPhaseTimer();
|
|
|
} else {
|
|
|
var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
|
|
|
var prevState = current.memoizedState;
|
|
|
startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,
|
|
|
// but instead we rely on them being set during last render.
|
|
|
// TODO: revisit this when we implement resuming.
|
|
|
|
|
|
{
|
|
|
if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
|
|
|
if (instance.props !== finishedWork.memoizedProps) {
|
|
|
error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
|
|
|
if (instance.state !== finishedWork.memoizedState) {
|
|
|
error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
|
|
|
stopPhaseTimer();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var updateQueue = finishedWork.updateQueue;
|
|
|
|
|
|
if (updateQueue !== null) {
|
|
|
{
|
|
|
if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
|
|
|
if (instance.props !== finishedWork.memoizedProps) {
|
|
|
error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
|
|
|
if (instance.state !== finishedWork.memoizedState) {
|
|
|
error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
|
|
|
}
|
|
|
}
|
|
|
} // We could update instance props and state here,
|
|
|
// but instead we rely on them being set during last render.
|
|
|
// TODO: revisit this when we implement resuming.
|
|
|
|
|
|
|
|
|
commitUpdateQueue(finishedWork, updateQueue, instance);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
{
|
|
|
var _updateQueue = finishedWork.updateQueue;
|
|
|
|
|
|
if (_updateQueue !== null) {
|
|
|
var _instance = null;
|
|
|
|
|
|
if (finishedWork.child !== null) {
|
|
|
switch (finishedWork.child.tag) {
|
|
|
case HostComponent:
|
|
|
_instance = getPublicInstance(finishedWork.child.stateNode);
|
|
|
break;
|
|
|
|
|
|
case ClassComponent:
|
|
|
_instance = finishedWork.child.stateNode;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
commitUpdateQueue(finishedWork, _updateQueue, _instance);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
|
|
|
// (eg DOM renderer may schedule auto-focus for inputs and form controls).
|
|
|
// These effects should only be committed when components are first mounted,
|
|
|
// aka when there is no current/alternate.
|
|
|
|
|
|
if (current === null && finishedWork.effectTag & Update) {
|
|
|
var type = finishedWork.type;
|
|
|
var props = finishedWork.memoizedProps;
|
|
|
commitMount(_instance2, type, props);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostText:
|
|
|
{
|
|
|
// We have no life-cycles associated with text.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
{
|
|
|
// We have no life-cycles associated with portals.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case Profiler:
|
|
|
{
|
|
|
{
|
|
|
var onRender = finishedWork.memoizedProps.onRender;
|
|
|
|
|
|
if (typeof onRender === 'function') {
|
|
|
{
|
|
|
onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
case IncompleteClassComponent:
|
|
|
case FundamentalComponent:
|
|
|
case ScopeComponent:
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function hideOrUnhideAllChildren(finishedWork, isHidden) {
|
|
|
{
|
|
|
// We only have the top Fiber that was inserted but we need to recurse down its
|
|
|
// children to find all the terminal nodes.
|
|
|
var node = finishedWork;
|
|
|
|
|
|
while (true) {
|
|
|
if (node.tag === HostComponent) {
|
|
|
var instance = node.stateNode;
|
|
|
|
|
|
if (isHidden) {
|
|
|
hideInstance(instance);
|
|
|
} else {
|
|
|
unhideInstance(node.stateNode, node.memoizedProps);
|
|
|
}
|
|
|
} else if (node.tag === HostText) {
|
|
|
var _instance3 = node.stateNode;
|
|
|
|
|
|
if (isHidden) {
|
|
|
hideTextInstance(_instance3);
|
|
|
} else {
|
|
|
unhideTextInstance(_instance3, node.memoizedProps);
|
|
|
}
|
|
|
} else if (node.tag === SuspenseComponent && node.memoizedState !== null && node.memoizedState.dehydrated === null) {
|
|
|
// Found a nested Suspense component that timed out. Skip over the
|
|
|
// primary child fragment, which should remain hidden.
|
|
|
var fallbackChildFragment = node.child.sibling;
|
|
|
fallbackChildFragment.return = node;
|
|
|
node = fallbackChildFragment;
|
|
|
continue;
|
|
|
} else if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === finishedWork) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === finishedWork) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitAttachRef(finishedWork) {
|
|
|
var ref = finishedWork.ref;
|
|
|
|
|
|
if (ref !== null) {
|
|
|
var instance = finishedWork.stateNode;
|
|
|
var instanceToUse;
|
|
|
|
|
|
switch (finishedWork.tag) {
|
|
|
case HostComponent:
|
|
|
instanceToUse = getPublicInstance(instance);
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
instanceToUse = instance;
|
|
|
} // Moved outside to ensure DCE works with this flag
|
|
|
|
|
|
if (typeof ref === 'function') {
|
|
|
ref(instanceToUse);
|
|
|
} else {
|
|
|
{
|
|
|
if (!ref.hasOwnProperty('current')) {
|
|
|
error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
ref.current = instanceToUse;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitDetachRef(current) {
|
|
|
var currentRef = current.ref;
|
|
|
|
|
|
if (currentRef !== null) {
|
|
|
if (typeof currentRef === 'function') {
|
|
|
currentRef(null);
|
|
|
} else {
|
|
|
currentRef.current = null;
|
|
|
}
|
|
|
}
|
|
|
} // User-originating errors (lifecycles and refs) should not interrupt
|
|
|
// deletion, so don't let them throw. Host-originating errors should
|
|
|
// interrupt deletion, so it's okay
|
|
|
|
|
|
|
|
|
function commitUnmount(finishedRoot, current, renderPriorityLevel) {
|
|
|
onCommitUnmount(current);
|
|
|
|
|
|
switch (current.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case MemoComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
case Block:
|
|
|
{
|
|
|
var updateQueue = current.updateQueue;
|
|
|
|
|
|
if (updateQueue !== null) {
|
|
|
var lastEffect = updateQueue.lastEffect;
|
|
|
|
|
|
if (lastEffect !== null) {
|
|
|
var firstEffect = lastEffect.next;
|
|
|
|
|
|
{
|
|
|
// When the owner fiber is deleted, the destroy function of a passive
|
|
|
// effect hook is called during the synchronous commit phase. This is
|
|
|
// a concession to implementation complexity. Calling it in the
|
|
|
// passive effect phase (like they usually are, when dependencies
|
|
|
// change during an update) would require either traversing the
|
|
|
// children of the deleted fiber again, or including unmount effects
|
|
|
// as part of the fiber effect list.
|
|
|
//
|
|
|
// Because this is during the sync commit phase, we need to change
|
|
|
// the priority.
|
|
|
//
|
|
|
// TODO: Reconsider this implementation trade off.
|
|
|
var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
|
|
|
runWithPriority$1(priorityLevel, function () {
|
|
|
var effect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
var _destroy = effect.destroy;
|
|
|
|
|
|
if (_destroy !== undefined) {
|
|
|
safelyCallDestroy(current, _destroy);
|
|
|
}
|
|
|
|
|
|
effect = effect.next;
|
|
|
} while (effect !== firstEffect);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
safelyDetachRef(current);
|
|
|
var instance = current.stateNode;
|
|
|
|
|
|
if (typeof instance.componentWillUnmount === 'function') {
|
|
|
safelyCallComponentWillUnmount(current, instance);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
|
|
|
safelyDetachRef(current);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostPortal:
|
|
|
{
|
|
|
// TODO: this is recursive.
|
|
|
// We are also not using this parent because
|
|
|
// the portal will get pushed immediately.
|
|
|
{
|
|
|
unmountHostComponents(finishedRoot, current, renderPriorityLevel);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case FundamentalComponent:
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case DehydratedFragment:
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ScopeComponent:
|
|
|
{
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
|
|
|
// While we're inside a removed host node we don't want to call
|
|
|
// removeChild on the inner nodes because they're removed by the top
|
|
|
// call anyway. We also want to call componentWillUnmount on all
|
|
|
// composites before this host node is removed from the tree. Therefore
|
|
|
// we do an inner loop while we're still inside the host node.
|
|
|
var node = root;
|
|
|
|
|
|
while (true) {
|
|
|
commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes.
|
|
|
// Skip portals because commitUnmount() currently visits them recursively.
|
|
|
|
|
|
if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
|
|
|
// If we don't use mutation we drill down into portals here instead.
|
|
|
node.tag !== HostPortal)) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if (node === root) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === root) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function detachFiber(current) {
|
|
|
var alternate = current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we
|
|
|
// should clear the child pointer of the parent alternate to let this
|
|
|
// get GC:ed but we don't know which for sure which parent is the current
|
|
|
// one so we'll settle for GC:ing the subtree of this child. This child
|
|
|
// itself will be GC:ed when the parent updates the next time.
|
|
|
|
|
|
current.return = null;
|
|
|
current.child = null;
|
|
|
current.memoizedState = null;
|
|
|
current.updateQueue = null;
|
|
|
current.dependencies = null;
|
|
|
current.alternate = null;
|
|
|
current.firstEffect = null;
|
|
|
current.lastEffect = null;
|
|
|
current.pendingProps = null;
|
|
|
current.memoizedProps = null;
|
|
|
current.stateNode = null;
|
|
|
|
|
|
if (alternate !== null) {
|
|
|
detachFiber(alternate);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function getHostParentFiber(fiber) {
|
|
|
var parent = fiber.return;
|
|
|
|
|
|
while (parent !== null) {
|
|
|
if (isHostParent(parent)) {
|
|
|
return parent;
|
|
|
}
|
|
|
|
|
|
parent = parent.return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function isHostParent(fiber) {
|
|
|
return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
|
|
|
}
|
|
|
|
|
|
function getHostSibling(fiber) {
|
|
|
// We're going to search forward into the tree until we find a sibling host
|
|
|
// node. Unfortunately, if multiple insertions are done in a row we have to
|
|
|
// search past them. This leads to exponential search for the next sibling.
|
|
|
// TODO: Find a more efficient way to do this.
|
|
|
var node = fiber;
|
|
|
|
|
|
siblings: while (true) {
|
|
|
// If we didn't find anything, let's try the next sibling.
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || isHostParent(node.return)) {
|
|
|
// If we pop out of the root or hit the parent the fiber we are the
|
|
|
// last sibling.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
|
|
|
while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
|
|
|
// If it is not host node and, we might have a host node inside it.
|
|
|
// Try to search down until we find one.
|
|
|
if (node.effectTag & Placement) {
|
|
|
// If we don't have a child, try the siblings instead.
|
|
|
continue siblings;
|
|
|
} // If we don't have a child, try the siblings instead.
|
|
|
// We also skip portals because they are not part of this host tree.
|
|
|
|
|
|
|
|
|
if (node.child === null || node.tag === HostPortal) {
|
|
|
continue siblings;
|
|
|
} else {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
}
|
|
|
} // Check if this host node is stable or about to be placed.
|
|
|
|
|
|
|
|
|
if (!(node.effectTag & Placement)) {
|
|
|
// Found it!
|
|
|
return node.stateNode;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitPlacement(finishedWork) {
|
|
|
|
|
|
|
|
|
var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.
|
|
|
|
|
|
var parent;
|
|
|
var isContainer;
|
|
|
var parentStateNode = parentFiber.stateNode;
|
|
|
|
|
|
switch (parentFiber.tag) {
|
|
|
case HostComponent:
|
|
|
parent = parentStateNode;
|
|
|
isContainer = false;
|
|
|
break;
|
|
|
|
|
|
case HostRoot:
|
|
|
parent = parentStateNode.containerInfo;
|
|
|
isContainer = true;
|
|
|
break;
|
|
|
|
|
|
case HostPortal:
|
|
|
parent = parentStateNode.containerInfo;
|
|
|
isContainer = true;
|
|
|
break;
|
|
|
|
|
|
case FundamentalComponent:
|
|
|
|
|
|
// eslint-disable-next-line-no-fallthrough
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (parentFiber.effectTag & ContentReset) {
|
|
|
// Reset the text content of the parent before doing any insertions
|
|
|
resetTextContent(parent); // Clear ContentReset from the effect tag
|
|
|
|
|
|
parentFiber.effectTag &= ~ContentReset;
|
|
|
}
|
|
|
|
|
|
var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
|
|
|
// children to find all the terminal nodes.
|
|
|
|
|
|
if (isContainer) {
|
|
|
insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
|
|
|
} else {
|
|
|
insertOrAppendPlacementNode(finishedWork, before, parent);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
|
var tag = node.tag;
|
|
|
var isHost = tag === HostComponent || tag === HostText;
|
|
|
|
|
|
if (isHost || enableFundamentalAPI ) {
|
|
|
var stateNode = isHost ? node.stateNode : node.stateNode.instance;
|
|
|
|
|
|
if (before) {
|
|
|
insertInContainerBefore(parent, stateNode, before);
|
|
|
} else {
|
|
|
appendChildToContainer(parent, stateNode);
|
|
|
}
|
|
|
} else if (tag === HostPortal) ; else {
|
|
|
var child = node.child;
|
|
|
|
|
|
if (child !== null) {
|
|
|
insertOrAppendPlacementNodeIntoContainer(child, before, parent);
|
|
|
var sibling = child.sibling;
|
|
|
|
|
|
while (sibling !== null) {
|
|
|
insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
|
|
|
sibling = sibling.sibling;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function insertOrAppendPlacementNode(node, before, parent) {
|
|
|
var tag = node.tag;
|
|
|
var isHost = tag === HostComponent || tag === HostText;
|
|
|
|
|
|
if (isHost || enableFundamentalAPI ) {
|
|
|
var stateNode = isHost ? node.stateNode : node.stateNode.instance;
|
|
|
|
|
|
if (before) {
|
|
|
insertBefore(parent, stateNode, before);
|
|
|
} else {
|
|
|
appendChild(parent, stateNode);
|
|
|
}
|
|
|
} else if (tag === HostPortal) ; else {
|
|
|
var child = node.child;
|
|
|
|
|
|
if (child !== null) {
|
|
|
insertOrAppendPlacementNode(child, before, parent);
|
|
|
var sibling = child.sibling;
|
|
|
|
|
|
while (sibling !== null) {
|
|
|
insertOrAppendPlacementNode(sibling, before, parent);
|
|
|
sibling = sibling.sibling;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
|
|
|
// We only have the top Fiber that was deleted but we need to recurse down its
|
|
|
// children to find all the terminal nodes.
|
|
|
var node = current; // Each iteration, currentParent is populated with node's host parent if not
|
|
|
// currentParentIsValid.
|
|
|
|
|
|
var currentParentIsValid = false; // Note: these two variables *must* always be updated together.
|
|
|
|
|
|
var currentParent;
|
|
|
var currentParentIsContainer;
|
|
|
|
|
|
while (true) {
|
|
|
if (!currentParentIsValid) {
|
|
|
var parent = node.return;
|
|
|
|
|
|
findParent: while (true) {
|
|
|
if (!(parent !== null)) {
|
|
|
{
|
|
|
throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var parentStateNode = parent.stateNode;
|
|
|
|
|
|
switch (parent.tag) {
|
|
|
case HostComponent:
|
|
|
currentParent = parentStateNode;
|
|
|
currentParentIsContainer = false;
|
|
|
break findParent;
|
|
|
|
|
|
case HostRoot:
|
|
|
currentParent = parentStateNode.containerInfo;
|
|
|
currentParentIsContainer = true;
|
|
|
break findParent;
|
|
|
|
|
|
case HostPortal:
|
|
|
currentParent = parentStateNode.containerInfo;
|
|
|
currentParentIsContainer = true;
|
|
|
break findParent;
|
|
|
|
|
|
}
|
|
|
|
|
|
parent = parent.return;
|
|
|
}
|
|
|
|
|
|
currentParentIsValid = true;
|
|
|
}
|
|
|
|
|
|
if (node.tag === HostComponent || node.tag === HostText) {
|
|
|
commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the
|
|
|
// node from the tree.
|
|
|
|
|
|
if (currentParentIsContainer) {
|
|
|
removeChildFromContainer(currentParent, node.stateNode);
|
|
|
} else {
|
|
|
removeChild(currentParent, node.stateNode);
|
|
|
} // Don't visit children because we already visited them.
|
|
|
|
|
|
} else if (node.tag === HostPortal) {
|
|
|
if (node.child !== null) {
|
|
|
// When we go into a portal, it becomes the parent to remove from.
|
|
|
// We will reassign it back when we pop the portal on the way up.
|
|
|
currentParent = node.stateNode.containerInfo;
|
|
|
currentParentIsContainer = true; // Visit children because portals might contain host components.
|
|
|
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
} else {
|
|
|
commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below.
|
|
|
|
|
|
if (node.child !== null) {
|
|
|
node.child.return = node;
|
|
|
node = node.child;
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (node === current) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
while (node.sibling === null) {
|
|
|
if (node.return === null || node.return === current) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
|
|
|
if (node.tag === HostPortal) {
|
|
|
// When we go out of the portal, we need to restore the parent.
|
|
|
// Since we don't keep a stack of them, we will search for it.
|
|
|
currentParentIsValid = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
node.sibling.return = node.return;
|
|
|
node = node.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitDeletion(finishedRoot, current, renderPriorityLevel) {
|
|
|
{
|
|
|
// Recursively delete all host nodes from the parent.
|
|
|
// Detach refs and call componentWillUnmount() on the whole subtree.
|
|
|
unmountHostComponents(finishedRoot, current, renderPriorityLevel);
|
|
|
}
|
|
|
|
|
|
detachFiber(current);
|
|
|
}
|
|
|
|
|
|
function commitWork(current, finishedWork) {
|
|
|
|
|
|
switch (finishedWork.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case MemoComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
case Block:
|
|
|
{
|
|
|
// Layout effects are destroyed during the mutation phase so that all
|
|
|
// destroy functions for all fibers are called before any create functions.
|
|
|
// This prevents sibling component effects from interfering with each other,
|
|
|
// e.g. a destroy function in one component should never override a ref set
|
|
|
// by a create function in another component during the same commit.
|
|
|
commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostComponent:
|
|
|
{
|
|
|
var instance = finishedWork.stateNode;
|
|
|
|
|
|
if (instance != null) {
|
|
|
// Commit the work prepared earlier.
|
|
|
var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
|
|
|
// as the newProps. The updatePayload will contain the real change in
|
|
|
// this case.
|
|
|
|
|
|
var oldProps = current !== null ? current.memoizedProps : newProps;
|
|
|
var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.
|
|
|
|
|
|
var updatePayload = finishedWork.updateQueue;
|
|
|
finishedWork.updateQueue = null;
|
|
|
|
|
|
if (updatePayload !== null) {
|
|
|
commitUpdate(instance, updatePayload, type, oldProps, newProps);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostText:
|
|
|
{
|
|
|
if (!(finishedWork.stateNode !== null)) {
|
|
|
{
|
|
|
throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var textInstance = finishedWork.stateNode;
|
|
|
var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
|
|
|
// as the newProps. The updatePayload will contain the real change in
|
|
|
// this case.
|
|
|
|
|
|
var oldText = current !== null ? current.memoizedProps : newText;
|
|
|
commitTextUpdate(textInstance, oldText, newText);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case HostRoot:
|
|
|
{
|
|
|
{
|
|
|
var _root = finishedWork.stateNode;
|
|
|
|
|
|
if (_root.hydrate) {
|
|
|
// We've just hydrated. No need to hydrate again.
|
|
|
_root.hydrate = false;
|
|
|
commitHydratedContainer(_root.containerInfo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case Profiler:
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case SuspenseComponent:
|
|
|
{
|
|
|
commitSuspenseComponent(finishedWork);
|
|
|
attachSuspenseRetryListeners(finishedWork);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case SuspenseListComponent:
|
|
|
{
|
|
|
attachSuspenseRetryListeners(finishedWork);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case IncompleteClassComponent:
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitSuspenseComponent(finishedWork) {
|
|
|
var newState = finishedWork.memoizedState;
|
|
|
var newDidTimeout;
|
|
|
var primaryChildParent = finishedWork;
|
|
|
|
|
|
if (newState === null) {
|
|
|
newDidTimeout = false;
|
|
|
} else {
|
|
|
newDidTimeout = true;
|
|
|
primaryChildParent = finishedWork.child;
|
|
|
markCommitTimeOfFallback();
|
|
|
}
|
|
|
|
|
|
if ( primaryChildParent !== null) {
|
|
|
hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
|
|
|
|
|
|
var newState = finishedWork.memoizedState;
|
|
|
|
|
|
if (newState === null) {
|
|
|
var current = finishedWork.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
var prevState = current.memoizedState;
|
|
|
|
|
|
if (prevState !== null) {
|
|
|
var suspenseInstance = prevState.dehydrated;
|
|
|
|
|
|
if (suspenseInstance !== null) {
|
|
|
commitHydratedSuspenseInstance(suspenseInstance);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function attachSuspenseRetryListeners(finishedWork) {
|
|
|
// If this boundary just timed out, then it will have a set of thenables.
|
|
|
// For each thenable, attach a listener so that when it resolves, React
|
|
|
// attempts to re-render the boundary in the primary (pre-timeout) state.
|
|
|
var thenables = finishedWork.updateQueue;
|
|
|
|
|
|
if (thenables !== null) {
|
|
|
finishedWork.updateQueue = null;
|
|
|
var retryCache = finishedWork.stateNode;
|
|
|
|
|
|
if (retryCache === null) {
|
|
|
retryCache = finishedWork.stateNode = new PossiblyWeakSet();
|
|
|
}
|
|
|
|
|
|
thenables.forEach(function (thenable) {
|
|
|
// Memoize using the boundary fiber to prevent redundant listeners.
|
|
|
var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
|
|
|
|
|
|
if (!retryCache.has(thenable)) {
|
|
|
{
|
|
|
if (thenable.__reactDoNotTraceInteractions !== true) {
|
|
|
retry = tracing.unstable_wrap(retry);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
retryCache.add(thenable);
|
|
|
thenable.then(retry, retry);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitResetTextContent(current) {
|
|
|
|
|
|
resetTextContent(current.stateNode);
|
|
|
}
|
|
|
|
|
|
var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
|
|
|
|
|
|
function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
|
|
|
var update = createUpdate(expirationTime, null); // Unmount the root by rendering null.
|
|
|
|
|
|
update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
|
|
|
// being called "element".
|
|
|
|
|
|
update.payload = {
|
|
|
element: null
|
|
|
};
|
|
|
var error = errorInfo.value;
|
|
|
|
|
|
update.callback = function () {
|
|
|
onUncaughtError(error);
|
|
|
logError(fiber, errorInfo);
|
|
|
};
|
|
|
|
|
|
return update;
|
|
|
}
|
|
|
|
|
|
function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
|
|
|
var update = createUpdate(expirationTime, null);
|
|
|
update.tag = CaptureUpdate;
|
|
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
|
|
|
|
if (typeof getDerivedStateFromError === 'function') {
|
|
|
var error$1 = errorInfo.value;
|
|
|
|
|
|
update.payload = function () {
|
|
|
logError(fiber, errorInfo);
|
|
|
return getDerivedStateFromError(error$1);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var inst = fiber.stateNode;
|
|
|
|
|
|
if (inst !== null && typeof inst.componentDidCatch === 'function') {
|
|
|
update.callback = function callback() {
|
|
|
{
|
|
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
|
}
|
|
|
|
|
|
if (typeof getDerivedStateFromError !== 'function') {
|
|
|
// To preserve the preexisting retry behavior of error boundaries,
|
|
|
// we keep track of which ones already failed during this batch.
|
|
|
// This gets reset before we yield back to the browser.
|
|
|
// TODO: Warn in strict mode if getDerivedStateFromError is
|
|
|
// not defined.
|
|
|
markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined
|
|
|
|
|
|
logError(fiber, errorInfo);
|
|
|
}
|
|
|
|
|
|
var error$1 = errorInfo.value;
|
|
|
var stack = errorInfo.stack;
|
|
|
this.componentDidCatch(error$1, {
|
|
|
componentStack: stack !== null ? stack : ''
|
|
|
});
|
|
|
|
|
|
{
|
|
|
if (typeof getDerivedStateFromError !== 'function') {
|
|
|
// If componentDidCatch is the only error boundary method defined,
|
|
|
// then it needs to call setState to recover from errors.
|
|
|
// If no state update is scheduled then the boundary will swallow the error.
|
|
|
if (fiber.expirationTime !== Sync) {
|
|
|
error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
} else {
|
|
|
update.callback = function () {
|
|
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return update;
|
|
|
}
|
|
|
|
|
|
function attachPingListener(root, renderExpirationTime, thenable) {
|
|
|
// Attach a listener to the promise to "ping" the root and retry. But
|
|
|
// only if one does not already exist for the current render expiration
|
|
|
// time (which acts like a "thread ID" here).
|
|
|
var pingCache = root.pingCache;
|
|
|
var threadIDs;
|
|
|
|
|
|
if (pingCache === null) {
|
|
|
pingCache = root.pingCache = new PossiblyWeakMap$1();
|
|
|
threadIDs = new Set();
|
|
|
pingCache.set(thenable, threadIDs);
|
|
|
} else {
|
|
|
threadIDs = pingCache.get(thenable);
|
|
|
|
|
|
if (threadIDs === undefined) {
|
|
|
threadIDs = new Set();
|
|
|
pingCache.set(thenable, threadIDs);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!threadIDs.has(renderExpirationTime)) {
|
|
|
// Memoize using the thread ID to prevent redundant listeners.
|
|
|
threadIDs.add(renderExpirationTime);
|
|
|
var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
|
|
|
thenable.then(ping, ping);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
|
|
|
// The source fiber did not complete.
|
|
|
sourceFiber.effectTag |= Incomplete; // Its effect list is no longer valid.
|
|
|
|
|
|
sourceFiber.firstEffect = sourceFiber.lastEffect = null;
|
|
|
|
|
|
if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
|
|
|
// This is a thenable.
|
|
|
var thenable = value;
|
|
|
|
|
|
if ((sourceFiber.mode & BlockingMode) === NoMode) {
|
|
|
// Reset the memoizedState to what it was before we attempted
|
|
|
// to render it.
|
|
|
var currentSource = sourceFiber.alternate;
|
|
|
|
|
|
if (currentSource) {
|
|
|
sourceFiber.updateQueue = currentSource.updateQueue;
|
|
|
sourceFiber.memoizedState = currentSource.memoizedState;
|
|
|
sourceFiber.expirationTime = currentSource.expirationTime;
|
|
|
} else {
|
|
|
sourceFiber.updateQueue = null;
|
|
|
sourceFiber.memoizedState = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.
|
|
|
|
|
|
var _workInProgress = returnFiber;
|
|
|
|
|
|
do {
|
|
|
if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
|
|
|
// Found the nearest boundary.
|
|
|
// Stash the promise on the boundary fiber. If the boundary times out, we'll
|
|
|
// attach another listener to flip the boundary back to its normal state.
|
|
|
var thenables = _workInProgress.updateQueue;
|
|
|
|
|
|
if (thenables === null) {
|
|
|
var updateQueue = new Set();
|
|
|
updateQueue.add(thenable);
|
|
|
_workInProgress.updateQueue = updateQueue;
|
|
|
} else {
|
|
|
thenables.add(thenable);
|
|
|
} // If the boundary is outside of blocking mode, we should *not*
|
|
|
// suspend the commit. Pretend as if the suspended component rendered
|
|
|
// null and keep rendering. In the commit phase, we'll schedule a
|
|
|
// subsequent synchronous update to re-render the Suspense.
|
|
|
//
|
|
|
// Note: It doesn't matter whether the component that suspended was
|
|
|
// inside a blocking mode tree. If the Suspense is outside of it, we
|
|
|
// should *not* suspend the commit.
|
|
|
|
|
|
|
|
|
if ((_workInProgress.mode & BlockingMode) === NoMode) {
|
|
|
_workInProgress.effectTag |= DidCapture; // We're going to commit this fiber even though it didn't complete.
|
|
|
// But we shouldn't call any lifecycle methods or callbacks. Remove
|
|
|
// all lifecycle effect tags.
|
|
|
|
|
|
sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
|
|
|
|
|
|
if (sourceFiber.tag === ClassComponent) {
|
|
|
var currentSourceFiber = sourceFiber.alternate;
|
|
|
|
|
|
if (currentSourceFiber === null) {
|
|
|
// This is a new mount. Change the tag so it's not mistaken for a
|
|
|
// completed class component. For example, we should not call
|
|
|
// componentWillUnmount if it is deleted.
|
|
|
sourceFiber.tag = IncompleteClassComponent;
|
|
|
} else {
|
|
|
// When we try rendering again, we should not reuse the current fiber,
|
|
|
// since it's known to be in an inconsistent state. Use a force update to
|
|
|
// prevent a bail out.
|
|
|
var update = createUpdate(Sync, null);
|
|
|
update.tag = ForceUpdate;
|
|
|
enqueueUpdate(sourceFiber, update);
|
|
|
}
|
|
|
} // The source fiber did not complete. Mark it with Sync priority to
|
|
|
// indicate that it still has pending work.
|
|
|
|
|
|
|
|
|
sourceFiber.expirationTime = Sync; // Exit without suspending.
|
|
|
|
|
|
return;
|
|
|
} // Confirmed that the boundary is in a concurrent mode tree. Continue
|
|
|
// with the normal suspend path.
|
|
|
//
|
|
|
// After this we'll use a set of heuristics to determine whether this
|
|
|
// render pass will run to completion or restart or "suspend" the commit.
|
|
|
// The actual logic for this is spread out in different places.
|
|
|
//
|
|
|
// This first principle is that if we're going to suspend when we complete
|
|
|
// a root, then we should also restart if we get an update or ping that
|
|
|
// might unsuspend it, and vice versa. The only reason to suspend is
|
|
|
// because you think you might want to restart before committing. However,
|
|
|
// it doesn't make sense to restart only while in the period we're suspended.
|
|
|
//
|
|
|
// Restarting too aggressively is also not good because it starves out any
|
|
|
// intermediate loading state. So we use heuristics to determine when.
|
|
|
// Suspense Heuristics
|
|
|
//
|
|
|
// If nothing threw a Promise or all the same fallbacks are already showing,
|
|
|
// then don't suspend/restart.
|
|
|
//
|
|
|
// If this is an initial render of a new tree of Suspense boundaries and
|
|
|
// those trigger a fallback, then don't suspend/restart. We want to ensure
|
|
|
// that we can show the initial loading state as quickly as possible.
|
|
|
//
|
|
|
// If we hit a "Delayed" case, such as when we'd switch from content back into
|
|
|
// a fallback, then we should always suspend/restart. SuspenseConfig applies to
|
|
|
// this case. If none is defined, JND is used instead.
|
|
|
//
|
|
|
// If we're already showing a fallback and it gets "retried", allowing us to show
|
|
|
// another level, but there's still an inner boundary that would show a fallback,
|
|
|
// then we suspend/restart for 500ms since the last time we showed a fallback
|
|
|
// anywhere in the tree. This effectively throttles progressive loading into a
|
|
|
// consistent train of commits. This also gives us an opportunity to restart to
|
|
|
// get to the completed state slightly earlier.
|
|
|
//
|
|
|
// If there's ambiguity due to batching it's resolved in preference of:
|
|
|
// 1) "delayed", 2) "initial render", 3) "retry".
|
|
|
//
|
|
|
// We want to ensure that a "busy" state doesn't get force committed. We want to
|
|
|
// ensure that new initial loading states can commit as soon as possible.
|
|
|
|
|
|
|
|
|
attachPingListener(root, renderExpirationTime, thenable);
|
|
|
_workInProgress.effectTag |= ShouldCapture;
|
|
|
_workInProgress.expirationTime = renderExpirationTime;
|
|
|
return;
|
|
|
} // This boundary already captured during this render. Continue to the next
|
|
|
// boundary.
|
|
|
|
|
|
|
|
|
_workInProgress = _workInProgress.return;
|
|
|
} while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
|
|
|
// TODO: Use invariant so the message is stripped in prod?
|
|
|
|
|
|
|
|
|
value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
|
|
|
} // We didn't find a boundary that could handle this type of exception. Start
|
|
|
// over and traverse parent path again, this time treating the exception
|
|
|
// as an error.
|
|
|
|
|
|
|
|
|
renderDidError();
|
|
|
value = createCapturedValue(value, sourceFiber);
|
|
|
var workInProgress = returnFiber;
|
|
|
|
|
|
do {
|
|
|
switch (workInProgress.tag) {
|
|
|
case HostRoot:
|
|
|
{
|
|
|
var _errorInfo = value;
|
|
|
workInProgress.effectTag |= ShouldCapture;
|
|
|
workInProgress.expirationTime = renderExpirationTime;
|
|
|
|
|
|
var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
|
|
|
|
|
|
enqueueCapturedUpdate(workInProgress, _update);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
// Capture and retry
|
|
|
var errorInfo = value;
|
|
|
var ctor = workInProgress.type;
|
|
|
var instance = workInProgress.stateNode;
|
|
|
|
|
|
if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
|
|
|
workInProgress.effectTag |= ShouldCapture;
|
|
|
workInProgress.expirationTime = renderExpirationTime; // Schedule the error boundary to re-render using updated state
|
|
|
|
|
|
var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
|
|
|
|
|
|
enqueueCapturedUpdate(workInProgress, _update2);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
workInProgress = workInProgress.return;
|
|
|
} while (workInProgress !== null);
|
|
|
}
|
|
|
|
|
|
var ceil = Math.ceil;
|
|
|
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
|
|
|
IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
|
|
|
var NoContext =
|
|
|
/* */
|
|
|
0;
|
|
|
var BatchedContext =
|
|
|
/* */
|
|
|
1;
|
|
|
var EventContext =
|
|
|
/* */
|
|
|
2;
|
|
|
var DiscreteEventContext =
|
|
|
/* */
|
|
|
4;
|
|
|
var LegacyUnbatchedContext =
|
|
|
/* */
|
|
|
8;
|
|
|
var RenderContext =
|
|
|
/* */
|
|
|
16;
|
|
|
var CommitContext =
|
|
|
/* */
|
|
|
32;
|
|
|
var RootIncomplete = 0;
|
|
|
var RootFatalErrored = 1;
|
|
|
var RootErrored = 2;
|
|
|
var RootSuspended = 3;
|
|
|
var RootSuspendedWithDelay = 4;
|
|
|
var RootCompleted = 5;
|
|
|
// Describes where we are in the React execution stack
|
|
|
var executionContext = NoContext; // The root we're working on
|
|
|
|
|
|
var workInProgressRoot = null; // The fiber we're working on
|
|
|
|
|
|
var workInProgress = null; // The expiration time we're rendering
|
|
|
|
|
|
var renderExpirationTime$1 = NoWork; // Whether to root completed, errored, suspended, etc.
|
|
|
|
|
|
var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown
|
|
|
|
|
|
var workInProgressRootFatalError = null; // Most recent event time among processed updates during this render.
|
|
|
// This is conceptually a time stamp but expressed in terms of an ExpirationTime
|
|
|
// because we deal mostly with expiration times in the hot path, so this avoids
|
|
|
// the conversion happening in the hot path.
|
|
|
|
|
|
var workInProgressRootLatestProcessedExpirationTime = Sync;
|
|
|
var workInProgressRootLatestSuspenseTimeout = Sync;
|
|
|
var workInProgressRootCanSuspendUsingConfig = null; // The work left over by components that were visited during this render. Only
|
|
|
// includes unprocessed updates, not work in bailed out children.
|
|
|
|
|
|
var workInProgressRootNextUnprocessedUpdateTime = NoWork; // If we're pinged while rendering we don't always restart immediately.
|
|
|
// This flag determines if it might be worthwhile to restart if an opportunity
|
|
|
// happens latere.
|
|
|
|
|
|
var workInProgressRootHasPendingPing = false; // The most recent time we committed a fallback. This lets us ensure a train
|
|
|
// model where we don't commit new loading states in too quick succession.
|
|
|
|
|
|
var globalMostRecentFallbackTime = 0;
|
|
|
var FALLBACK_THROTTLE_MS = 500;
|
|
|
var nextEffect = null;
|
|
|
var hasUncaughtError = false;
|
|
|
var firstUncaughtError = null;
|
|
|
var legacyErrorBoundariesThatAlreadyFailed = null;
|
|
|
var rootDoesHavePassiveEffects = false;
|
|
|
var rootWithPendingPassiveEffects = null;
|
|
|
var pendingPassiveEffectsRenderPriority = NoPriority;
|
|
|
var pendingPassiveEffectsExpirationTime = NoWork;
|
|
|
var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates
|
|
|
|
|
|
var NESTED_UPDATE_LIMIT = 50;
|
|
|
var nestedUpdateCount = 0;
|
|
|
var rootWithNestedUpdates = null;
|
|
|
var NESTED_PASSIVE_UPDATE_LIMIT = 50;
|
|
|
var nestedPassiveUpdateCount = 0;
|
|
|
var interruptedBy = null; // Marks the need to reschedule pending interactions at these expiration times
|
|
|
// during the commit phase. This enables them to be traced across components
|
|
|
// that spawn new work during render. E.g. hidden boundaries, suspended SSR
|
|
|
// hydration or SuspenseList.
|
|
|
|
|
|
var spawnedWorkDuringRender = null; // Expiration times are computed by adding to the current time (the start
|
|
|
// time). However, if two updates are scheduled within the same event, we
|
|
|
// should treat their start times as simultaneous, even if the actual clock
|
|
|
// time has advanced between the first and second call.
|
|
|
// In other words, because expiration times determine how updates are batched,
|
|
|
// we want all updates of like priority that occur within the same event to
|
|
|
// receive the same expiration time. Otherwise we get tearing.
|
|
|
|
|
|
var currentEventTime = NoWork;
|
|
|
function requestCurrentTimeForUpdate() {
|
|
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
|
|
// We're inside React, so it's fine to read the actual time.
|
|
|
return msToExpirationTime(now());
|
|
|
} // We're not inside React, so we may be in the middle of a browser event.
|
|
|
|
|
|
|
|
|
if (currentEventTime !== NoWork) {
|
|
|
// Use the same start time for all updates until we enter React again.
|
|
|
return currentEventTime;
|
|
|
} // This is the first update since React yielded. Compute a new start time.
|
|
|
|
|
|
|
|
|
currentEventTime = msToExpirationTime(now());
|
|
|
return currentEventTime;
|
|
|
}
|
|
|
function getCurrentTime() {
|
|
|
return msToExpirationTime(now());
|
|
|
}
|
|
|
function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
|
|
|
var mode = fiber.mode;
|
|
|
|
|
|
if ((mode & BlockingMode) === NoMode) {
|
|
|
return Sync;
|
|
|
}
|
|
|
|
|
|
var priorityLevel = getCurrentPriorityLevel();
|
|
|
|
|
|
if ((mode & ConcurrentMode) === NoMode) {
|
|
|
return priorityLevel === ImmediatePriority ? Sync : Batched;
|
|
|
}
|
|
|
|
|
|
if ((executionContext & RenderContext) !== NoContext) {
|
|
|
// Use whatever time we're already rendering
|
|
|
// TODO: Should there be a way to opt out, like with `runWithPriority`?
|
|
|
return renderExpirationTime$1;
|
|
|
}
|
|
|
|
|
|
var expirationTime;
|
|
|
|
|
|
if (suspenseConfig !== null) {
|
|
|
// Compute an expiration time based on the Suspense timeout.
|
|
|
expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
|
|
|
} else {
|
|
|
// Compute an expiration time based on the Scheduler priority.
|
|
|
switch (priorityLevel) {
|
|
|
case ImmediatePriority:
|
|
|
expirationTime = Sync;
|
|
|
break;
|
|
|
|
|
|
case UserBlockingPriority$1:
|
|
|
// TODO: Rename this to computeUserBlockingExpiration
|
|
|
expirationTime = computeInteractiveExpiration(currentTime);
|
|
|
break;
|
|
|
|
|
|
case NormalPriority:
|
|
|
case LowPriority:
|
|
|
// TODO: Handle LowPriority
|
|
|
// TODO: Rename this to... something better.
|
|
|
expirationTime = computeAsyncExpiration(currentTime);
|
|
|
break;
|
|
|
|
|
|
case IdlePriority:
|
|
|
expirationTime = Idle;
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Expected a valid priority level" );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
} // If we're in the middle of rendering a tree, do not update at the same
|
|
|
// expiration time that is already rendering.
|
|
|
// TODO: We shouldn't have to do this if the update is on a different root.
|
|
|
// Refactor computeExpirationForFiber + scheduleUpdate so we have access to
|
|
|
// the root when we check for this condition.
|
|
|
|
|
|
|
|
|
if (workInProgressRoot !== null && expirationTime === renderExpirationTime$1) {
|
|
|
// This is a trick to move this update into a separate batch
|
|
|
expirationTime -= 1;
|
|
|
}
|
|
|
|
|
|
return expirationTime;
|
|
|
}
|
|
|
function scheduleUpdateOnFiber(fiber, expirationTime) {
|
|
|
checkForNestedUpdates();
|
|
|
warnAboutRenderPhaseUpdatesInDEV(fiber);
|
|
|
var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
|
|
|
|
|
|
if (root === null) {
|
|
|
warnAboutUpdateOnUnmountedFiberInDEV(fiber);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
checkForInterruption(fiber, expirationTime);
|
|
|
recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the
|
|
|
// priority as an argument to that function and this one.
|
|
|
|
|
|
var priorityLevel = getCurrentPriorityLevel();
|
|
|
|
|
|
if (expirationTime === Sync) {
|
|
|
if ( // Check if we're inside unbatchedUpdates
|
|
|
(executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
|
|
|
(executionContext & (RenderContext | CommitContext)) === NoContext) {
|
|
|
// Register pending interactions on the root to avoid losing traced interaction data.
|
|
|
schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
|
|
|
// root inside of batchedUpdates should be synchronous, but layout updates
|
|
|
// should be deferred until the end of the batch.
|
|
|
|
|
|
performSyncWorkOnRoot(root);
|
|
|
} else {
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, expirationTime);
|
|
|
|
|
|
if (executionContext === NoContext) {
|
|
|
// Flush the synchronous work now, unless we're already working or inside
|
|
|
// a batch. This is intentionally inside scheduleUpdateOnFiber instead of
|
|
|
// scheduleCallbackForFiber to preserve the ability to schedule a callback
|
|
|
// without immediately flushing it. We only do this for user-initiated
|
|
|
// updates, to preserve historical behavior of legacy mode.
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, expirationTime);
|
|
|
}
|
|
|
|
|
|
if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
|
|
|
// discrete, even inside a discrete event.
|
|
|
priorityLevel === UserBlockingPriority$1 || priorityLevel === ImmediatePriority)) {
|
|
|
// This is the result of a discrete event. Track the lowest priority
|
|
|
// discrete update per root so we can flush them early, if needed.
|
|
|
if (rootsWithPendingDiscreteUpdates === null) {
|
|
|
rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
|
|
|
} else {
|
|
|
var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
|
|
|
|
|
|
if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
|
|
|
rootsWithPendingDiscreteUpdates.set(root, expirationTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
var scheduleWork = scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending
|
|
|
// work without treating it as a typical update that originates from an event;
|
|
|
// e.g. retrying a Suspense boundary isn't an update, but it does schedule work
|
|
|
// on a fiber.
|
|
|
|
|
|
function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
|
|
|
// Update the source fiber's expiration time
|
|
|
if (fiber.expirationTime < expirationTime) {
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
}
|
|
|
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (alternate !== null && alternate.expirationTime < expirationTime) {
|
|
|
alternate.expirationTime = expirationTime;
|
|
|
} // Walk the parent path to the root and update the child expiration time.
|
|
|
|
|
|
|
|
|
var node = fiber.return;
|
|
|
var root = null;
|
|
|
|
|
|
if (node === null && fiber.tag === HostRoot) {
|
|
|
root = fiber.stateNode;
|
|
|
} else {
|
|
|
while (node !== null) {
|
|
|
alternate = node.alternate;
|
|
|
|
|
|
if (node.childExpirationTime < expirationTime) {
|
|
|
node.childExpirationTime = expirationTime;
|
|
|
|
|
|
if (alternate !== null && alternate.childExpirationTime < expirationTime) {
|
|
|
alternate.childExpirationTime = expirationTime;
|
|
|
}
|
|
|
} else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
|
|
|
alternate.childExpirationTime = expirationTime;
|
|
|
}
|
|
|
|
|
|
if (node.return === null && node.tag === HostRoot) {
|
|
|
root = node.stateNode;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
node = node.return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (root !== null) {
|
|
|
if (workInProgressRoot === root) {
|
|
|
// Received an update to a tree that's in the middle of rendering. Mark
|
|
|
// that's unprocessed work on this root.
|
|
|
markUnprocessedUpdateTime(expirationTime);
|
|
|
|
|
|
if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
|
|
|
// The root already suspended with a delay, which means this render
|
|
|
// definitely won't finish. Since we have a new update, let's mark it as
|
|
|
// suspended now, right before marking the incoming update. This has the
|
|
|
// effect of interrupting the current render and switching to the update.
|
|
|
// TODO: This happens to work when receiving an update during the render
|
|
|
// phase, because of the trick inside computeExpirationForFiber to
|
|
|
// subtract 1 from `renderExpirationTime` to move it into a
|
|
|
// separate bucket. But we should probably model it with an exception,
|
|
|
// using the same mechanism we use to force hydration of a subtree.
|
|
|
// TODO: This does not account for low pri updates that were already
|
|
|
// scheduled before the root started rendering. Need to track the next
|
|
|
// pending expiration time (perhaps by backtracking the return path) and
|
|
|
// then trigger a restart in the `renderDidSuspendDelayIfPossible` path.
|
|
|
markRootSuspendedAtTime(root, renderExpirationTime$1);
|
|
|
}
|
|
|
} // Mark that the root has a pending update.
|
|
|
|
|
|
|
|
|
markRootUpdatedAtTime(root, expirationTime);
|
|
|
}
|
|
|
|
|
|
return root;
|
|
|
}
|
|
|
|
|
|
function getNextRootExpirationTimeToWorkOn(root) {
|
|
|
// Determines the next expiration time that the root should render, taking
|
|
|
// into account levels that may be suspended, or levels that may have
|
|
|
// received a ping.
|
|
|
var lastExpiredTime = root.lastExpiredTime;
|
|
|
|
|
|
if (lastExpiredTime !== NoWork) {
|
|
|
return lastExpiredTime;
|
|
|
} // "Pending" refers to any update that hasn't committed yet, including if it
|
|
|
// suspended. The "suspended" range is therefore a subset.
|
|
|
|
|
|
|
|
|
var firstPendingTime = root.firstPendingTime;
|
|
|
|
|
|
if (!isRootSuspendedAtTime(root, firstPendingTime)) {
|
|
|
// The highest priority pending time is not suspended. Let's work on that.
|
|
|
return firstPendingTime;
|
|
|
} // If the first pending time is suspended, check if there's a lower priority
|
|
|
// pending level that we know about. Or check if we received a ping. Work
|
|
|
// on whichever is higher priority.
|
|
|
|
|
|
|
|
|
var lastPingedTime = root.lastPingedTime;
|
|
|
var nextKnownPendingLevel = root.nextKnownPendingLevel;
|
|
|
var nextLevel = lastPingedTime > nextKnownPendingLevel ? lastPingedTime : nextKnownPendingLevel;
|
|
|
|
|
|
if ( nextLevel <= Idle && firstPendingTime !== nextLevel) {
|
|
|
// Don't work on Idle/Never priority unless everything else is committed.
|
|
|
return NoWork;
|
|
|
}
|
|
|
|
|
|
return nextLevel;
|
|
|
} // Use this function to schedule a task for a root. There's only one task per
|
|
|
// root; if a task was already scheduled, we'll check to make sure the
|
|
|
// expiration time of the existing task is the same as the expiration time of
|
|
|
// the next level that the root has work on. This function is called on every
|
|
|
// update, and right before exiting a task.
|
|
|
|
|
|
|
|
|
function ensureRootIsScheduled(root) {
|
|
|
var lastExpiredTime = root.lastExpiredTime;
|
|
|
|
|
|
if (lastExpiredTime !== NoWork) {
|
|
|
// Special case: Expired work should flush synchronously.
|
|
|
root.callbackExpirationTime = Sync;
|
|
|
root.callbackPriority = ImmediatePriority;
|
|
|
root.callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var expirationTime = getNextRootExpirationTimeToWorkOn(root);
|
|
|
var existingCallbackNode = root.callbackNode;
|
|
|
|
|
|
if (expirationTime === NoWork) {
|
|
|
// There's nothing to work on.
|
|
|
if (existingCallbackNode !== null) {
|
|
|
root.callbackNode = null;
|
|
|
root.callbackExpirationTime = NoWork;
|
|
|
root.callbackPriority = NoPriority;
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
} // TODO: If this is an update, we already read the current time. Pass the
|
|
|
// time as an argument.
|
|
|
|
|
|
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and
|
|
|
// expiration time. Otherwise, we'll cancel it and schedule a new one.
|
|
|
|
|
|
if (existingCallbackNode !== null) {
|
|
|
var existingCallbackPriority = root.callbackPriority;
|
|
|
var existingCallbackExpirationTime = root.callbackExpirationTime;
|
|
|
|
|
|
if ( // Callback must have the exact same expiration time.
|
|
|
existingCallbackExpirationTime === expirationTime && // Callback must have greater or equal priority.
|
|
|
existingCallbackPriority >= priorityLevel) {
|
|
|
// Existing callback is sufficient.
|
|
|
return;
|
|
|
} // Need to schedule a new task.
|
|
|
// TODO: Instead of scheduling a new task, we should be able to change the
|
|
|
// priority of the existing one.
|
|
|
|
|
|
|
|
|
cancelCallback(existingCallbackNode);
|
|
|
}
|
|
|
|
|
|
root.callbackExpirationTime = expirationTime;
|
|
|
root.callbackPriority = priorityLevel;
|
|
|
var callbackNode;
|
|
|
|
|
|
if (expirationTime === Sync) {
|
|
|
// Sync React callbacks are scheduled on a special internal queue
|
|
|
callbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
|
|
|
} else {
|
|
|
callbackNode = scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects
|
|
|
// ordering because tasks are processed in timeout order.
|
|
|
{
|
|
|
timeout: expirationTimeToMs(expirationTime) - now()
|
|
|
});
|
|
|
}
|
|
|
|
|
|
root.callbackNode = callbackNode;
|
|
|
} // This is the entry point for every concurrent task, i.e. anything that
|
|
|
// goes through Scheduler.
|
|
|
|
|
|
|
|
|
function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
// Since we know we're in a React event, we can clear the current
|
|
|
// event time. The next update will compute a new event time.
|
|
|
currentEventTime = NoWork;
|
|
|
|
|
|
if (didTimeout) {
|
|
|
// The render task took too long to complete. Mark the current time as
|
|
|
// expired to synchronously render all expired work in a single batch.
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.
|
|
|
|
|
|
ensureRootIsScheduled(root);
|
|
|
return null;
|
|
|
} // Determine the next expiration time to work on, using the fields stored
|
|
|
// on the root.
|
|
|
|
|
|
|
|
|
var expirationTime = getNextRootExpirationTimeToWorkOn(root);
|
|
|
|
|
|
if (expirationTime !== NoWork) {
|
|
|
var originalCallbackNode = root.callbackNode;
|
|
|
|
|
|
if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
|
|
|
{
|
|
|
throw Error( "Should not already be working." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
|
|
|
// and prepare a fresh one. Otherwise we'll continue where we left off.
|
|
|
|
|
|
if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
startWorkOnPendingInteractions(root, expirationTime);
|
|
|
} // If we have a work-in-progress fiber, it means there's still work to do
|
|
|
// in this root.
|
|
|
|
|
|
|
|
|
if (workInProgress !== null) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= RenderContext;
|
|
|
var prevDispatcher = pushDispatcher();
|
|
|
var prevInteractions = pushInteractions(root);
|
|
|
startWorkLoopTimer(workInProgress);
|
|
|
|
|
|
do {
|
|
|
try {
|
|
|
workLoopConcurrent();
|
|
|
break;
|
|
|
} catch (thrownValue) {
|
|
|
handleError(root, thrownValue);
|
|
|
}
|
|
|
} while (true);
|
|
|
|
|
|
resetContextDependencies();
|
|
|
executionContext = prevExecutionContext;
|
|
|
popDispatcher(prevDispatcher);
|
|
|
|
|
|
{
|
|
|
popInteractions(prevInteractions);
|
|
|
}
|
|
|
|
|
|
if (workInProgressRootExitStatus === RootFatalErrored) {
|
|
|
var fatalError = workInProgressRootFatalError;
|
|
|
stopInterruptedWorkLoopTimer();
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
markRootSuspendedAtTime(root, expirationTime);
|
|
|
ensureRootIsScheduled(root);
|
|
|
throw fatalError;
|
|
|
}
|
|
|
|
|
|
if (workInProgress !== null) {
|
|
|
// There's still work left over. Exit without committing.
|
|
|
stopInterruptedWorkLoopTimer();
|
|
|
} else {
|
|
|
// We now have a consistent tree. The next step is either to commit it,
|
|
|
// or, if something suspended, wait to commit it after a timeout.
|
|
|
stopFinishedWorkLoopTimer();
|
|
|
var finishedWork = root.finishedWork = root.current.alternate;
|
|
|
root.finishedExpirationTime = expirationTime;
|
|
|
finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);
|
|
|
}
|
|
|
|
|
|
ensureRootIsScheduled(root);
|
|
|
|
|
|
if (root.callbackNode === originalCallbackNode) {
|
|
|
// The task node scheduled for this root is the same one that's
|
|
|
// currently executed. Need to return a continuation.
|
|
|
return performConcurrentWorkOnRoot.bind(null, root);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function finishConcurrentRender(root, finishedWork, exitStatus, expirationTime) {
|
|
|
// Set this to null to indicate there's no in-progress render.
|
|
|
workInProgressRoot = null;
|
|
|
|
|
|
switch (exitStatus) {
|
|
|
case RootIncomplete:
|
|
|
case RootFatalErrored:
|
|
|
{
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Root did not complete. This is a bug in React." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// Flow knows about invariant, so it complains if I add a break
|
|
|
// statement, but eslint doesn't know about invariant, so it complains
|
|
|
// if I do. eslint-disable-next-line no-fallthrough
|
|
|
|
|
|
case RootErrored:
|
|
|
{
|
|
|
// If this was an async render, the error may have happened due to
|
|
|
// a mutation in a concurrent event. Try rendering one more time,
|
|
|
// synchronously, to see if the error goes away. If there are
|
|
|
// lower priority updates, let's include those, too, in case they
|
|
|
// fix the inconsistency. Render at Idle to include all updates.
|
|
|
// If it was Idle or Never or some not-yet-invented time, render
|
|
|
// at that time.
|
|
|
markRootExpiredAtTime(root, expirationTime > Idle ? Idle : expirationTime); // We assume that this second render pass will be synchronous
|
|
|
// and therefore not hit this path again.
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case RootSuspended:
|
|
|
{
|
|
|
markRootSuspendedAtTime(root, expirationTime);
|
|
|
var lastSuspendedTime = root.lastSuspendedTime;
|
|
|
|
|
|
if (expirationTime === lastSuspendedTime) {
|
|
|
root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
|
|
|
} // We have an acceptable loading state. We need to figure out if we
|
|
|
// should immediately commit it or wait a bit.
|
|
|
// If we have processed new updates during this render, we may now
|
|
|
// have a new loading state ready. We want to ensure that we commit
|
|
|
// that as soon as possible.
|
|
|
|
|
|
|
|
|
var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
|
|
|
|
|
|
if (hasNotProcessedNewUpdates && // do not delay if we're inside an act() scope
|
|
|
!( IsThisRendererActing.current)) {
|
|
|
// If we have not processed any new updates during this pass, then
|
|
|
// this is either a retry of an existing fallback state or a
|
|
|
// hidden tree. Hidden trees shouldn't be batched with other work
|
|
|
// and after that's fixed it can only be a retry. We're going to
|
|
|
// throttle committing retries so that we don't show too many
|
|
|
// loading states too quickly.
|
|
|
var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.
|
|
|
|
|
|
if (msUntilTimeout > 10) {
|
|
|
if (workInProgressRootHasPendingPing) {
|
|
|
var lastPingedTime = root.lastPingedTime;
|
|
|
|
|
|
if (lastPingedTime === NoWork || lastPingedTime >= expirationTime) {
|
|
|
// This render was pinged but we didn't get to restart
|
|
|
// earlier so try restarting now instead.
|
|
|
root.lastPingedTime = expirationTime;
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var nextTime = getNextRootExpirationTimeToWorkOn(root);
|
|
|
|
|
|
if (nextTime !== NoWork && nextTime !== expirationTime) {
|
|
|
// There's additional work on this root.
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (lastSuspendedTime !== NoWork && lastSuspendedTime !== expirationTime) {
|
|
|
// We should prefer to render the fallback of at the last
|
|
|
// suspended level. Ping the last suspended level to try
|
|
|
// rendering it again.
|
|
|
root.lastPingedTime = lastSuspendedTime;
|
|
|
break;
|
|
|
} // The render is suspended, it hasn't timed out, and there's no
|
|
|
// lower priority work to do. Instead of committing the fallback
|
|
|
// immediately, wait for more data to arrive.
|
|
|
|
|
|
|
|
|
root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
|
|
|
break;
|
|
|
}
|
|
|
} // The work expired. Commit immediately.
|
|
|
|
|
|
|
|
|
commitRoot(root);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case RootSuspendedWithDelay:
|
|
|
{
|
|
|
markRootSuspendedAtTime(root, expirationTime);
|
|
|
var _lastSuspendedTime = root.lastSuspendedTime;
|
|
|
|
|
|
if (expirationTime === _lastSuspendedTime) {
|
|
|
root.nextKnownPendingLevel = getRemainingExpirationTime(finishedWork);
|
|
|
}
|
|
|
|
|
|
if ( // do not delay if we're inside an act() scope
|
|
|
!( IsThisRendererActing.current)) {
|
|
|
// We're suspended in a state that should be avoided. We'll try to
|
|
|
// avoid committing it for as long as the timeouts let us.
|
|
|
if (workInProgressRootHasPendingPing) {
|
|
|
var _lastPingedTime = root.lastPingedTime;
|
|
|
|
|
|
if (_lastPingedTime === NoWork || _lastPingedTime >= expirationTime) {
|
|
|
// This render was pinged but we didn't get to restart earlier
|
|
|
// so try restarting now instead.
|
|
|
root.lastPingedTime = expirationTime;
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _nextTime = getNextRootExpirationTimeToWorkOn(root);
|
|
|
|
|
|
if (_nextTime !== NoWork && _nextTime !== expirationTime) {
|
|
|
// There's additional work on this root.
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
if (_lastSuspendedTime !== NoWork && _lastSuspendedTime !== expirationTime) {
|
|
|
// We should prefer to render the fallback of at the last
|
|
|
// suspended level. Ping the last suspended level to try
|
|
|
// rendering it again.
|
|
|
root.lastPingedTime = _lastSuspendedTime;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var _msUntilTimeout;
|
|
|
|
|
|
if (workInProgressRootLatestSuspenseTimeout !== Sync) {
|
|
|
// We have processed a suspense config whose expiration time we
|
|
|
// can use as the timeout.
|
|
|
_msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
|
|
|
} else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
|
|
|
// This should never normally happen because only new updates
|
|
|
// cause delayed states, so we should have processed something.
|
|
|
// However, this could also happen in an offscreen tree.
|
|
|
_msUntilTimeout = 0;
|
|
|
} else {
|
|
|
// If we don't have a suspense config, we're going to use a
|
|
|
// heuristic to determine how long we can suspend.
|
|
|
var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
|
|
|
var currentTimeMs = now();
|
|
|
var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
|
|
|
var timeElapsed = currentTimeMs - eventTimeMs;
|
|
|
|
|
|
if (timeElapsed < 0) {
|
|
|
// We get this wrong some time since we estimate the time.
|
|
|
timeElapsed = 0;
|
|
|
}
|
|
|
|
|
|
_msUntilTimeout = jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the
|
|
|
// event time is exact instead of inferred from expiration time
|
|
|
// we don't need this.
|
|
|
|
|
|
if (timeUntilExpirationMs < _msUntilTimeout) {
|
|
|
_msUntilTimeout = timeUntilExpirationMs;
|
|
|
}
|
|
|
} // Don't bother with a very short suspense time.
|
|
|
|
|
|
|
|
|
if (_msUntilTimeout > 10) {
|
|
|
// The render is suspended, it hasn't timed out, and there's no
|
|
|
// lower priority work to do. Instead of committing the fallback
|
|
|
// immediately, wait for more data to arrive.
|
|
|
root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
|
|
|
break;
|
|
|
}
|
|
|
} // The work expired. Commit immediately.
|
|
|
|
|
|
|
|
|
commitRoot(root);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case RootCompleted:
|
|
|
{
|
|
|
// The work completed. Ready to commit.
|
|
|
if ( // do not delay if we're inside an act() scope
|
|
|
!( IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
|
|
|
// If we have exceeded the minimum loading delay, which probably
|
|
|
// means we have shown a spinner already, we might have to suspend
|
|
|
// a bit longer to ensure that the spinner is shown for
|
|
|
// enough time.
|
|
|
var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
|
|
|
|
|
|
if (_msUntilTimeout2 > 10) {
|
|
|
markRootSuspendedAtTime(root, expirationTime);
|
|
|
root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
commitRoot(root);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unknown root exit status." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} // This is the entry point for synchronous tasks that don't go
|
|
|
// through Scheduler
|
|
|
|
|
|
|
|
|
function performSyncWorkOnRoot(root) {
|
|
|
// Check if there's expired work on this root. Otherwise, render at Sync.
|
|
|
var lastExpiredTime = root.lastExpiredTime;
|
|
|
var expirationTime = lastExpiredTime !== NoWork ? lastExpiredTime : Sync;
|
|
|
|
|
|
if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
|
|
|
{
|
|
|
throw Error( "Should not already be working." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack
|
|
|
// and prepare a fresh one. Otherwise we'll continue where we left off.
|
|
|
|
|
|
if (root !== workInProgressRoot || expirationTime !== renderExpirationTime$1) {
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
startWorkOnPendingInteractions(root, expirationTime);
|
|
|
} // If we have a work-in-progress fiber, it means there's still work to do
|
|
|
// in this root.
|
|
|
|
|
|
|
|
|
if (workInProgress !== null) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= RenderContext;
|
|
|
var prevDispatcher = pushDispatcher();
|
|
|
var prevInteractions = pushInteractions(root);
|
|
|
startWorkLoopTimer(workInProgress);
|
|
|
|
|
|
do {
|
|
|
try {
|
|
|
workLoopSync();
|
|
|
break;
|
|
|
} catch (thrownValue) {
|
|
|
handleError(root, thrownValue);
|
|
|
}
|
|
|
} while (true);
|
|
|
|
|
|
resetContextDependencies();
|
|
|
executionContext = prevExecutionContext;
|
|
|
popDispatcher(prevDispatcher);
|
|
|
|
|
|
{
|
|
|
popInteractions(prevInteractions);
|
|
|
}
|
|
|
|
|
|
if (workInProgressRootExitStatus === RootFatalErrored) {
|
|
|
var fatalError = workInProgressRootFatalError;
|
|
|
stopInterruptedWorkLoopTimer();
|
|
|
prepareFreshStack(root, expirationTime);
|
|
|
markRootSuspendedAtTime(root, expirationTime);
|
|
|
ensureRootIsScheduled(root);
|
|
|
throw fatalError;
|
|
|
}
|
|
|
|
|
|
if (workInProgress !== null) {
|
|
|
// This is a sync render, so we should have finished the whole tree.
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// We now have a consistent tree. Because this is a sync render, we
|
|
|
// will commit it even if something suspended.
|
|
|
stopFinishedWorkLoopTimer();
|
|
|
root.finishedWork = root.current.alternate;
|
|
|
root.finishedExpirationTime = expirationTime;
|
|
|
finishSyncRender(root);
|
|
|
} // Before exiting, make sure there's a callback scheduled for the next
|
|
|
// pending level.
|
|
|
|
|
|
|
|
|
ensureRootIsScheduled(root);
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function finishSyncRender(root) {
|
|
|
// Set this to null to indicate there's no in-progress render.
|
|
|
workInProgressRoot = null;
|
|
|
commitRoot(root);
|
|
|
}
|
|
|
function flushDiscreteUpdates() {
|
|
|
// TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
|
|
|
// However, `act` uses `batchedUpdates`, so there's no way to distinguish
|
|
|
// those two cases. Need to fix this before exposing flushDiscreteUpdates
|
|
|
// as a public API.
|
|
|
if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
|
|
|
{
|
|
|
if ((executionContext & RenderContext) !== NoContext) {
|
|
|
error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
|
|
|
}
|
|
|
} // We're already rendering, so we can't synchronously flush pending work.
|
|
|
// This is probably a nested event dispatch triggered by a lifecycle/effect,
|
|
|
// like `el.focus()`. Exit.
|
|
|
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
|
|
|
// they fire before the next serial event.
|
|
|
|
|
|
flushPassiveEffects();
|
|
|
}
|
|
|
function syncUpdates(fn, a, b, c) {
|
|
|
return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));
|
|
|
}
|
|
|
|
|
|
function flushPendingDiscreteUpdates() {
|
|
|
if (rootsWithPendingDiscreteUpdates !== null) {
|
|
|
// For each root with pending discrete updates, schedule a callback to
|
|
|
// immediately flush them.
|
|
|
var roots = rootsWithPendingDiscreteUpdates;
|
|
|
rootsWithPendingDiscreteUpdates = null;
|
|
|
roots.forEach(function (expirationTime, root) {
|
|
|
markRootExpiredAtTime(root, expirationTime);
|
|
|
ensureRootIsScheduled(root);
|
|
|
}); // Now flush the immediate queue.
|
|
|
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function batchedUpdates$1(fn, a) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= BatchedContext;
|
|
|
|
|
|
try {
|
|
|
return fn(a);
|
|
|
} finally {
|
|
|
executionContext = prevExecutionContext;
|
|
|
|
|
|
if (executionContext === NoContext) {
|
|
|
// Flush the immediate callbacks that were scheduled during this batch
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function batchedEventUpdates$1(fn, a) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= EventContext;
|
|
|
|
|
|
try {
|
|
|
return fn(a);
|
|
|
} finally {
|
|
|
executionContext = prevExecutionContext;
|
|
|
|
|
|
if (executionContext === NoContext) {
|
|
|
// Flush the immediate callbacks that were scheduled during this batch
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function discreteUpdates$1(fn, a, b, c, d) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= DiscreteEventContext;
|
|
|
|
|
|
try {
|
|
|
// Should this
|
|
|
return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
|
|
|
} finally {
|
|
|
executionContext = prevExecutionContext;
|
|
|
|
|
|
if (executionContext === NoContext) {
|
|
|
// Flush the immediate callbacks that were scheduled during this batch
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function unbatchedUpdates(fn, a) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext &= ~BatchedContext;
|
|
|
executionContext |= LegacyUnbatchedContext;
|
|
|
|
|
|
try {
|
|
|
return fn(a);
|
|
|
} finally {
|
|
|
executionContext = prevExecutionContext;
|
|
|
|
|
|
if (executionContext === NoContext) {
|
|
|
// Flush the immediate callbacks that were scheduled during this batch
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function flushSync(fn, a) {
|
|
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
|
|
{
|
|
|
{
|
|
|
throw Error( "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= BatchedContext;
|
|
|
|
|
|
try {
|
|
|
return runWithPriority$1(ImmediatePriority, fn.bind(null, a));
|
|
|
} finally {
|
|
|
executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
|
|
|
// Note that this will happen even if batchedUpdates is higher up
|
|
|
// the stack.
|
|
|
|
|
|
flushSyncCallbackQueue();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function prepareFreshStack(root, expirationTime) {
|
|
|
root.finishedWork = null;
|
|
|
root.finishedExpirationTime = NoWork;
|
|
|
var timeoutHandle = root.timeoutHandle;
|
|
|
|
|
|
if (timeoutHandle !== noTimeout) {
|
|
|
// The root previous suspended and scheduled a timeout to commit a fallback
|
|
|
// state. Now that we have additional work, cancel the timeout.
|
|
|
root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
|
|
|
|
|
|
cancelTimeout(timeoutHandle);
|
|
|
}
|
|
|
|
|
|
if (workInProgress !== null) {
|
|
|
var interruptedWork = workInProgress.return;
|
|
|
|
|
|
while (interruptedWork !== null) {
|
|
|
unwindInterruptedWork(interruptedWork);
|
|
|
interruptedWork = interruptedWork.return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
workInProgressRoot = root;
|
|
|
workInProgress = createWorkInProgress(root.current, null);
|
|
|
renderExpirationTime$1 = expirationTime;
|
|
|
workInProgressRootExitStatus = RootIncomplete;
|
|
|
workInProgressRootFatalError = null;
|
|
|
workInProgressRootLatestProcessedExpirationTime = Sync;
|
|
|
workInProgressRootLatestSuspenseTimeout = Sync;
|
|
|
workInProgressRootCanSuspendUsingConfig = null;
|
|
|
workInProgressRootNextUnprocessedUpdateTime = NoWork;
|
|
|
workInProgressRootHasPendingPing = false;
|
|
|
|
|
|
{
|
|
|
spawnedWorkDuringRender = null;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
ReactStrictModeWarnings.discardPendingWarnings();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function handleError(root, thrownValue) {
|
|
|
do {
|
|
|
try {
|
|
|
// Reset module-level state that was set during the render phase.
|
|
|
resetContextDependencies();
|
|
|
resetHooksAfterThrow();
|
|
|
resetCurrentFiber();
|
|
|
|
|
|
if (workInProgress === null || workInProgress.return === null) {
|
|
|
// Expected to be working on a non-root fiber. This is a fatal error
|
|
|
// because there's no ancestor that can handle it; the root is
|
|
|
// supposed to capture all errors that weren't caught by an error
|
|
|
// boundary.
|
|
|
workInProgressRootExitStatus = RootFatalErrored;
|
|
|
workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
|
|
|
// sibling, or the parent if there are no siblings. But since the root
|
|
|
// has no siblings nor a parent, we set it to null. Usually this is
|
|
|
// handled by `completeUnitOfWork` or `unwindWork`, but since we're
|
|
|
// interntionally not calling those, we need set it here.
|
|
|
// TODO: Consider calling `unwindWork` to pop the contexts.
|
|
|
|
|
|
workInProgress = null;
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
|
|
|
// Record the time spent rendering before an error was thrown. This
|
|
|
// avoids inaccurate Profiler durations in the case of a
|
|
|
// suspended render.
|
|
|
stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);
|
|
|
}
|
|
|
|
|
|
throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);
|
|
|
workInProgress = completeUnitOfWork(workInProgress);
|
|
|
} catch (yetAnotherThrownValue) {
|
|
|
// Something in the return path also threw.
|
|
|
thrownValue = yetAnotherThrownValue;
|
|
|
continue;
|
|
|
} // Return to the normal work loop.
|
|
|
|
|
|
|
|
|
return;
|
|
|
} while (true);
|
|
|
}
|
|
|
|
|
|
function pushDispatcher(root) {
|
|
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
|
ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
|
|
|
|
|
|
if (prevDispatcher === null) {
|
|
|
// The React isomorphic package does not include a default dispatcher.
|
|
|
// Instead the first renderer will lazily attach one, in order to give
|
|
|
// nicer error messages.
|
|
|
return ContextOnlyDispatcher;
|
|
|
} else {
|
|
|
return prevDispatcher;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function popDispatcher(prevDispatcher) {
|
|
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
|
}
|
|
|
|
|
|
function pushInteractions(root) {
|
|
|
{
|
|
|
var prevInteractions = tracing.__interactionsRef.current;
|
|
|
tracing.__interactionsRef.current = root.memoizedInteractions;
|
|
|
return prevInteractions;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function popInteractions(prevInteractions) {
|
|
|
{
|
|
|
tracing.__interactionsRef.current = prevInteractions;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function markCommitTimeOfFallback() {
|
|
|
globalMostRecentFallbackTime = now();
|
|
|
}
|
|
|
function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
|
|
|
if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Idle) {
|
|
|
workInProgressRootLatestProcessedExpirationTime = expirationTime;
|
|
|
}
|
|
|
|
|
|
if (suspenseConfig !== null) {
|
|
|
if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Idle) {
|
|
|
workInProgressRootLatestSuspenseTimeout = expirationTime; // Most of the time we only have one config and getting wrong is not bad.
|
|
|
|
|
|
workInProgressRootCanSuspendUsingConfig = suspenseConfig;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markUnprocessedUpdateTime(expirationTime) {
|
|
|
if (expirationTime > workInProgressRootNextUnprocessedUpdateTime) {
|
|
|
workInProgressRootNextUnprocessedUpdateTime = expirationTime;
|
|
|
}
|
|
|
}
|
|
|
function renderDidSuspend() {
|
|
|
if (workInProgressRootExitStatus === RootIncomplete) {
|
|
|
workInProgressRootExitStatus = RootSuspended;
|
|
|
}
|
|
|
}
|
|
|
function renderDidSuspendDelayIfPossible() {
|
|
|
if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
|
|
|
workInProgressRootExitStatus = RootSuspendedWithDelay;
|
|
|
} // Check if there's a lower priority update somewhere else in the tree.
|
|
|
|
|
|
|
|
|
if (workInProgressRootNextUnprocessedUpdateTime !== NoWork && workInProgressRoot !== null) {
|
|
|
// Mark the current render as suspended, and then mark that there's a
|
|
|
// pending update.
|
|
|
// TODO: This should immediately interrupt the current render, instead
|
|
|
// of waiting until the next time we yield.
|
|
|
markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);
|
|
|
markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);
|
|
|
}
|
|
|
}
|
|
|
function renderDidError() {
|
|
|
if (workInProgressRootExitStatus !== RootCompleted) {
|
|
|
workInProgressRootExitStatus = RootErrored;
|
|
|
}
|
|
|
} // Called during render to determine if anything has suspended.
|
|
|
// Returns false if we're not sure.
|
|
|
|
|
|
function renderHasNotSuspendedYet() {
|
|
|
// If something errored or completed, we can't really be sure,
|
|
|
// so those are false.
|
|
|
return workInProgressRootExitStatus === RootIncomplete;
|
|
|
}
|
|
|
|
|
|
function inferTimeFromExpirationTime(expirationTime) {
|
|
|
// We don't know exactly when the update was scheduled, but we can infer an
|
|
|
// approximate start time from the expiration time.
|
|
|
var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
|
|
|
return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
|
|
|
}
|
|
|
|
|
|
function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
|
|
|
// We don't know exactly when the update was scheduled, but we can infer an
|
|
|
// approximate start time from the expiration time by subtracting the timeout
|
|
|
// that was added to the event time.
|
|
|
var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
|
|
|
return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
|
|
|
} // The work loop is an extremely hot path. Tell Closure not to inline it.
|
|
|
|
|
|
/** @noinline */
|
|
|
|
|
|
|
|
|
function workLoopSync() {
|
|
|
// Already timed out, so perform work without checking if we need to yield.
|
|
|
while (workInProgress !== null) {
|
|
|
workInProgress = performUnitOfWork(workInProgress);
|
|
|
}
|
|
|
}
|
|
|
/** @noinline */
|
|
|
|
|
|
|
|
|
function workLoopConcurrent() {
|
|
|
// Perform work until Scheduler asks us to yield
|
|
|
while (workInProgress !== null && !shouldYield()) {
|
|
|
workInProgress = performUnitOfWork(workInProgress);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function performUnitOfWork(unitOfWork) {
|
|
|
// The current, flushed, state of this fiber is the alternate. Ideally
|
|
|
// nothing should rely on this, but relying on it here means that we don't
|
|
|
// need an additional field on the work in progress.
|
|
|
var current = unitOfWork.alternate;
|
|
|
startWorkTimer(unitOfWork);
|
|
|
setCurrentFiber(unitOfWork);
|
|
|
var next;
|
|
|
|
|
|
if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
|
|
|
startProfilerTimer(unitOfWork);
|
|
|
next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
|
|
|
stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
|
|
|
} else {
|
|
|
next = beginWork$1(current, unitOfWork, renderExpirationTime$1);
|
|
|
}
|
|
|
|
|
|
resetCurrentFiber();
|
|
|
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
|
|
|
|
|
if (next === null) {
|
|
|
// If this doesn't spawn new work, complete the current work.
|
|
|
next = completeUnitOfWork(unitOfWork);
|
|
|
}
|
|
|
|
|
|
ReactCurrentOwner$2.current = null;
|
|
|
return next;
|
|
|
}
|
|
|
|
|
|
function completeUnitOfWork(unitOfWork) {
|
|
|
// Attempt to complete the current unit of work, then move to the next
|
|
|
// sibling. If there are no more siblings, return to the parent fiber.
|
|
|
workInProgress = unitOfWork;
|
|
|
|
|
|
do {
|
|
|
// The current, flushed, state of this fiber is the alternate. Ideally
|
|
|
// nothing should rely on this, but relying on it here means that we don't
|
|
|
// need an additional field on the work in progress.
|
|
|
var current = workInProgress.alternate;
|
|
|
var returnFiber = workInProgress.return; // Check if the work completed or if something threw.
|
|
|
|
|
|
if ((workInProgress.effectTag & Incomplete) === NoEffect) {
|
|
|
setCurrentFiber(workInProgress);
|
|
|
var next = void 0;
|
|
|
|
|
|
if ( (workInProgress.mode & ProfileMode) === NoMode) {
|
|
|
next = completeWork(current, workInProgress, renderExpirationTime$1);
|
|
|
} else {
|
|
|
startProfilerTimer(workInProgress);
|
|
|
next = completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.
|
|
|
|
|
|
stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
|
|
|
}
|
|
|
|
|
|
stopWorkTimer(workInProgress);
|
|
|
resetCurrentFiber();
|
|
|
resetChildExpirationTime(workInProgress);
|
|
|
|
|
|
if (next !== null) {
|
|
|
// Completing this fiber spawned new work. Work on that next.
|
|
|
return next;
|
|
|
}
|
|
|
|
|
|
if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
|
|
|
(returnFiber.effectTag & Incomplete) === NoEffect) {
|
|
|
// Append all the effects of the subtree and this fiber onto the effect
|
|
|
// list of the parent. The completion order of the children affects the
|
|
|
// side-effect order.
|
|
|
if (returnFiber.firstEffect === null) {
|
|
|
returnFiber.firstEffect = workInProgress.firstEffect;
|
|
|
}
|
|
|
|
|
|
if (workInProgress.lastEffect !== null) {
|
|
|
if (returnFiber.lastEffect !== null) {
|
|
|
returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
|
|
|
}
|
|
|
|
|
|
returnFiber.lastEffect = workInProgress.lastEffect;
|
|
|
} // If this fiber had side-effects, we append it AFTER the children's
|
|
|
// side-effects. We can perform certain side-effects earlier if needed,
|
|
|
// by doing multiple passes over the effect list. We don't want to
|
|
|
// schedule our own side-effect on our own list because if end up
|
|
|
// reusing children we'll schedule this effect onto itself since we're
|
|
|
// at the end.
|
|
|
|
|
|
|
|
|
var effectTag = workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect
|
|
|
// list. PerformedWork effect is read by React DevTools but shouldn't be
|
|
|
// committed.
|
|
|
|
|
|
if (effectTag > PerformedWork) {
|
|
|
if (returnFiber.lastEffect !== null) {
|
|
|
returnFiber.lastEffect.nextEffect = workInProgress;
|
|
|
} else {
|
|
|
returnFiber.firstEffect = workInProgress;
|
|
|
}
|
|
|
|
|
|
returnFiber.lastEffect = workInProgress;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// This fiber did not complete because something threw. Pop values off
|
|
|
// the stack without entering the complete phase. If this is a boundary,
|
|
|
// capture values if possible.
|
|
|
var _next = unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time.
|
|
|
|
|
|
|
|
|
if ( (workInProgress.mode & ProfileMode) !== NoMode) {
|
|
|
// Record the render duration for the fiber that errored.
|
|
|
stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.
|
|
|
|
|
|
var actualDuration = workInProgress.actualDuration;
|
|
|
var child = workInProgress.child;
|
|
|
|
|
|
while (child !== null) {
|
|
|
actualDuration += child.actualDuration;
|
|
|
child = child.sibling;
|
|
|
}
|
|
|
|
|
|
workInProgress.actualDuration = actualDuration;
|
|
|
}
|
|
|
|
|
|
if (_next !== null) {
|
|
|
// If completing this work spawned new work, do that next. We'll come
|
|
|
// back here again.
|
|
|
// Since we're restarting, remove anything that is not a host effect
|
|
|
// from the effect tag.
|
|
|
// TODO: The name stopFailedWorkTimer is misleading because Suspense
|
|
|
// also captures and restarts.
|
|
|
stopFailedWorkTimer(workInProgress);
|
|
|
_next.effectTag &= HostEffectMask;
|
|
|
return _next;
|
|
|
}
|
|
|
|
|
|
stopWorkTimer(workInProgress);
|
|
|
|
|
|
if (returnFiber !== null) {
|
|
|
// Mark the parent fiber as incomplete and clear its effect list.
|
|
|
returnFiber.firstEffect = returnFiber.lastEffect = null;
|
|
|
returnFiber.effectTag |= Incomplete;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var siblingFiber = workInProgress.sibling;
|
|
|
|
|
|
if (siblingFiber !== null) {
|
|
|
// If there is more work to do in this returnFiber, do that next.
|
|
|
return siblingFiber;
|
|
|
} // Otherwise, return to the parent
|
|
|
|
|
|
|
|
|
workInProgress = returnFiber;
|
|
|
} while (workInProgress !== null); // We've reached the root.
|
|
|
|
|
|
|
|
|
if (workInProgressRootExitStatus === RootIncomplete) {
|
|
|
workInProgressRootExitStatus = RootCompleted;
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function getRemainingExpirationTime(fiber) {
|
|
|
var updateExpirationTime = fiber.expirationTime;
|
|
|
var childExpirationTime = fiber.childExpirationTime;
|
|
|
return updateExpirationTime > childExpirationTime ? updateExpirationTime : childExpirationTime;
|
|
|
}
|
|
|
|
|
|
function resetChildExpirationTime(completedWork) {
|
|
|
if (renderExpirationTime$1 !== Never && completedWork.childExpirationTime === Never) {
|
|
|
// The children of this component are hidden. Don't bubble their
|
|
|
// expiration times.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newChildExpirationTime = NoWork; // Bubble up the earliest expiration time.
|
|
|
|
|
|
if ( (completedWork.mode & ProfileMode) !== NoMode) {
|
|
|
// In profiling mode, resetChildExpirationTime is also used to reset
|
|
|
// profiler durations.
|
|
|
var actualDuration = completedWork.actualDuration;
|
|
|
var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
|
|
|
// only be updated if work is done on the fiber (i.e. it doesn't bailout).
|
|
|
// When work is done, it should bubble to the parent's actualDuration. If
|
|
|
// the fiber has not been cloned though, (meaning no work was done), then
|
|
|
// this value will reflect the amount of time spent working on a previous
|
|
|
// render. In that case it should not bubble. We determine whether it was
|
|
|
// cloned by comparing the child pointer.
|
|
|
|
|
|
var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
|
|
|
var child = completedWork.child;
|
|
|
|
|
|
while (child !== null) {
|
|
|
var childUpdateExpirationTime = child.expirationTime;
|
|
|
var childChildExpirationTime = child.childExpirationTime;
|
|
|
|
|
|
if (childUpdateExpirationTime > newChildExpirationTime) {
|
|
|
newChildExpirationTime = childUpdateExpirationTime;
|
|
|
}
|
|
|
|
|
|
if (childChildExpirationTime > newChildExpirationTime) {
|
|
|
newChildExpirationTime = childChildExpirationTime;
|
|
|
}
|
|
|
|
|
|
if (shouldBubbleActualDurations) {
|
|
|
actualDuration += child.actualDuration;
|
|
|
}
|
|
|
|
|
|
treeBaseDuration += child.treeBaseDuration;
|
|
|
child = child.sibling;
|
|
|
}
|
|
|
|
|
|
completedWork.actualDuration = actualDuration;
|
|
|
completedWork.treeBaseDuration = treeBaseDuration;
|
|
|
} else {
|
|
|
var _child = completedWork.child;
|
|
|
|
|
|
while (_child !== null) {
|
|
|
var _childUpdateExpirationTime = _child.expirationTime;
|
|
|
var _childChildExpirationTime = _child.childExpirationTime;
|
|
|
|
|
|
if (_childUpdateExpirationTime > newChildExpirationTime) {
|
|
|
newChildExpirationTime = _childUpdateExpirationTime;
|
|
|
}
|
|
|
|
|
|
if (_childChildExpirationTime > newChildExpirationTime) {
|
|
|
newChildExpirationTime = _childChildExpirationTime;
|
|
|
}
|
|
|
|
|
|
_child = _child.sibling;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
completedWork.childExpirationTime = newChildExpirationTime;
|
|
|
}
|
|
|
|
|
|
function commitRoot(root) {
|
|
|
var renderPriorityLevel = getCurrentPriorityLevel();
|
|
|
runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function commitRootImpl(root, renderPriorityLevel) {
|
|
|
do {
|
|
|
// `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
|
|
|
// means `flushPassiveEffects` will sometimes result in additional
|
|
|
// passive effects. So we need to keep flushing in a loop until there are
|
|
|
// no more pending effects.
|
|
|
// TODO: Might be better if `flushPassiveEffects` did not automatically
|
|
|
// flush synchronous work at the end, to avoid factoring hazards like this.
|
|
|
flushPassiveEffects();
|
|
|
} while (rootWithPendingPassiveEffects !== null);
|
|
|
|
|
|
flushRenderPhaseStrictModeWarningsInDEV();
|
|
|
|
|
|
if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
|
|
|
{
|
|
|
throw Error( "Should not already be working." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var finishedWork = root.finishedWork;
|
|
|
var expirationTime = root.finishedExpirationTime;
|
|
|
|
|
|
if (finishedWork === null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
root.finishedWork = null;
|
|
|
root.finishedExpirationTime = NoWork;
|
|
|
|
|
|
if (!(finishedWork !== root.current)) {
|
|
|
{
|
|
|
throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
|
|
|
}
|
|
|
} // commitRoot never returns a continuation; it always finishes synchronously.
|
|
|
// So we can clear these now to allow a new callback to be scheduled.
|
|
|
|
|
|
|
|
|
root.callbackNode = null;
|
|
|
root.callbackExpirationTime = NoWork;
|
|
|
root.callbackPriority = NoPriority;
|
|
|
root.nextKnownPendingLevel = NoWork;
|
|
|
startCommitTimer(); // Update the first and last pending times on this root. The new first
|
|
|
// pending time is whatever is left on the root fiber.
|
|
|
|
|
|
var remainingExpirationTimeBeforeCommit = getRemainingExpirationTime(finishedWork);
|
|
|
markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);
|
|
|
|
|
|
if (root === workInProgressRoot) {
|
|
|
// We can reset these now that they are finished.
|
|
|
workInProgressRoot = null;
|
|
|
workInProgress = null;
|
|
|
renderExpirationTime$1 = NoWork;
|
|
|
} // This indicates that the last root we worked on is not the same one that
|
|
|
// we're committing now. This most commonly happens when a suspended root
|
|
|
// times out.
|
|
|
// Get the list of effects.
|
|
|
|
|
|
|
|
|
var firstEffect;
|
|
|
|
|
|
if (finishedWork.effectTag > PerformedWork) {
|
|
|
// A fiber's effect list consists only of its children, not itself. So if
|
|
|
// the root has an effect, we need to add it to the end of the list. The
|
|
|
// resulting list is the set that would belong to the root's parent, if it
|
|
|
// had one; that is, all the effects in the tree including the root.
|
|
|
if (finishedWork.lastEffect !== null) {
|
|
|
finishedWork.lastEffect.nextEffect = finishedWork;
|
|
|
firstEffect = finishedWork.firstEffect;
|
|
|
} else {
|
|
|
firstEffect = finishedWork;
|
|
|
}
|
|
|
} else {
|
|
|
// There is no effect on the root.
|
|
|
firstEffect = finishedWork.firstEffect;
|
|
|
}
|
|
|
|
|
|
if (firstEffect !== null) {
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= CommitContext;
|
|
|
var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles
|
|
|
|
|
|
ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
|
|
|
// of the effect list for each phase: all mutation effects come before all
|
|
|
// layout effects, and so on.
|
|
|
// The first phase a "before mutation" phase. We use this phase to read the
|
|
|
// state of the host tree right before we mutate it. This is where
|
|
|
// getSnapshotBeforeUpdate is called.
|
|
|
|
|
|
startCommitSnapshotEffectsTimer();
|
|
|
prepareForCommit(root.containerInfo);
|
|
|
nextEffect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
{
|
|
|
invokeGuardedCallback(null, commitBeforeMutationEffects, null);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
if (!(nextEffect !== null)) {
|
|
|
{
|
|
|
throw Error( "Should be working on an effect." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var error = clearCaughtError();
|
|
|
captureCommitPhaseError(nextEffect, error);
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
} while (nextEffect !== null);
|
|
|
|
|
|
stopCommitSnapshotEffectsTimer();
|
|
|
|
|
|
{
|
|
|
// Mark the current commit time to be shared by all Profilers in this
|
|
|
// batch. This enables them to be grouped later.
|
|
|
recordCommitTime();
|
|
|
} // The next phase is the mutation phase, where we mutate the host tree.
|
|
|
|
|
|
|
|
|
startCommitHostEffectsTimer();
|
|
|
nextEffect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
{
|
|
|
invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
if (!(nextEffect !== null)) {
|
|
|
{
|
|
|
throw Error( "Should be working on an effect." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _error = clearCaughtError();
|
|
|
|
|
|
captureCommitPhaseError(nextEffect, _error);
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
} while (nextEffect !== null);
|
|
|
|
|
|
stopCommitHostEffectsTimer();
|
|
|
resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
|
|
|
// the mutation phase, so that the previous tree is still current during
|
|
|
// componentWillUnmount, but before the layout phase, so that the finished
|
|
|
// work is current during componentDidMount/Update.
|
|
|
|
|
|
root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
|
|
|
// the host tree after it's been mutated. The idiomatic use case for this is
|
|
|
// layout, but class component lifecycles also fire here for legacy reasons.
|
|
|
|
|
|
startCommitLifeCyclesTimer();
|
|
|
nextEffect = firstEffect;
|
|
|
|
|
|
do {
|
|
|
{
|
|
|
invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
if (!(nextEffect !== null)) {
|
|
|
{
|
|
|
throw Error( "Should be working on an effect." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _error2 = clearCaughtError();
|
|
|
|
|
|
captureCommitPhaseError(nextEffect, _error2);
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
} while (nextEffect !== null);
|
|
|
|
|
|
stopCommitLifeCyclesTimer();
|
|
|
nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
|
|
|
// opportunity to paint.
|
|
|
|
|
|
requestPaint();
|
|
|
|
|
|
{
|
|
|
popInteractions(prevInteractions);
|
|
|
}
|
|
|
|
|
|
executionContext = prevExecutionContext;
|
|
|
} else {
|
|
|
// No effects.
|
|
|
root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
|
|
|
// no effects.
|
|
|
// TODO: Maybe there's a better way to report this.
|
|
|
|
|
|
startCommitSnapshotEffectsTimer();
|
|
|
stopCommitSnapshotEffectsTimer();
|
|
|
|
|
|
{
|
|
|
recordCommitTime();
|
|
|
}
|
|
|
|
|
|
startCommitHostEffectsTimer();
|
|
|
stopCommitHostEffectsTimer();
|
|
|
startCommitLifeCyclesTimer();
|
|
|
stopCommitLifeCyclesTimer();
|
|
|
}
|
|
|
|
|
|
stopCommitTimer();
|
|
|
var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
|
|
|
|
|
|
if (rootDoesHavePassiveEffects) {
|
|
|
// This commit has passive effects. Stash a reference to them. But don't
|
|
|
// schedule a callback until after flushing layout work.
|
|
|
rootDoesHavePassiveEffects = false;
|
|
|
rootWithPendingPassiveEffects = root;
|
|
|
pendingPassiveEffectsExpirationTime = expirationTime;
|
|
|
pendingPassiveEffectsRenderPriority = renderPriorityLevel;
|
|
|
} else {
|
|
|
// We are done with the effect chain at this point so let's clear the
|
|
|
// nextEffect pointers to assist with GC. If we have passive effects, we'll
|
|
|
// clear this in flushPassiveEffects.
|
|
|
nextEffect = firstEffect;
|
|
|
|
|
|
while (nextEffect !== null) {
|
|
|
var nextNextEffect = nextEffect.nextEffect;
|
|
|
nextEffect.nextEffect = null;
|
|
|
nextEffect = nextNextEffect;
|
|
|
}
|
|
|
} // Check if there's remaining work on this root
|
|
|
|
|
|
|
|
|
var remainingExpirationTime = root.firstPendingTime;
|
|
|
|
|
|
if (remainingExpirationTime !== NoWork) {
|
|
|
{
|
|
|
if (spawnedWorkDuringRender !== null) {
|
|
|
var expirationTimes = spawnedWorkDuringRender;
|
|
|
spawnedWorkDuringRender = null;
|
|
|
|
|
|
for (var i = 0; i < expirationTimes.length; i++) {
|
|
|
scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
schedulePendingInteractions(root, remainingExpirationTime);
|
|
|
}
|
|
|
} else {
|
|
|
// If there's no remaining work, we can clear the set of already failed
|
|
|
// error boundaries.
|
|
|
legacyErrorBoundariesThatAlreadyFailed = null;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (!rootDidHavePassiveEffects) {
|
|
|
// If there are no passive effects, then we can complete the pending interactions.
|
|
|
// Otherwise, we'll wait until after the passive effects are flushed.
|
|
|
// Wait to do this until after remaining work has been scheduled,
|
|
|
// so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
|
|
|
finishPendingInteractions(root, expirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (remainingExpirationTime === Sync) {
|
|
|
// Count the number of times the root synchronously re-renders without
|
|
|
// finishing. If there are too many, it indicates an infinite update loop.
|
|
|
if (root === rootWithNestedUpdates) {
|
|
|
nestedUpdateCount++;
|
|
|
} else {
|
|
|
nestedUpdateCount = 0;
|
|
|
rootWithNestedUpdates = root;
|
|
|
}
|
|
|
} else {
|
|
|
nestedUpdateCount = 0;
|
|
|
}
|
|
|
|
|
|
onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any
|
|
|
// additional work on this root is scheduled.
|
|
|
|
|
|
ensureRootIsScheduled(root);
|
|
|
|
|
|
if (hasUncaughtError) {
|
|
|
hasUncaughtError = false;
|
|
|
var _error3 = firstUncaughtError;
|
|
|
firstUncaughtError = null;
|
|
|
throw _error3;
|
|
|
}
|
|
|
|
|
|
if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
|
|
|
// This is a legacy edge case. We just committed the initial mount of
|
|
|
// a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
|
|
|
// synchronously, but layout updates should be deferred until the end
|
|
|
// of the batch.
|
|
|
return null;
|
|
|
} // If layout work was scheduled, flush it now.
|
|
|
|
|
|
|
|
|
flushSyncCallbackQueue();
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
function commitBeforeMutationEffects() {
|
|
|
while (nextEffect !== null) {
|
|
|
var effectTag = nextEffect.effectTag;
|
|
|
|
|
|
if ((effectTag & Snapshot) !== NoEffect) {
|
|
|
setCurrentFiber(nextEffect);
|
|
|
recordEffect();
|
|
|
var current = nextEffect.alternate;
|
|
|
commitBeforeMutationLifeCycles(current, nextEffect);
|
|
|
resetCurrentFiber();
|
|
|
}
|
|
|
|
|
|
if ((effectTag & Passive) !== NoEffect) {
|
|
|
// If there are passive effects, schedule a callback to flush at
|
|
|
// the earliest opportunity.
|
|
|
if (!rootDoesHavePassiveEffects) {
|
|
|
rootDoesHavePassiveEffects = true;
|
|
|
scheduleCallback(NormalPriority, function () {
|
|
|
flushPassiveEffects();
|
|
|
return null;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitMutationEffects(root, renderPriorityLevel) {
|
|
|
// TODO: Should probably move the bulk of this function to commitWork.
|
|
|
while (nextEffect !== null) {
|
|
|
setCurrentFiber(nextEffect);
|
|
|
var effectTag = nextEffect.effectTag;
|
|
|
|
|
|
if (effectTag & ContentReset) {
|
|
|
commitResetTextContent(nextEffect);
|
|
|
}
|
|
|
|
|
|
if (effectTag & Ref) {
|
|
|
var current = nextEffect.alternate;
|
|
|
|
|
|
if (current !== null) {
|
|
|
commitDetachRef(current);
|
|
|
}
|
|
|
} // The following switch statement is only concerned about placement,
|
|
|
// updates, and deletions. To avoid needing to add a case for every possible
|
|
|
// bitmap value, we remove the secondary effects from the effect tag and
|
|
|
// switch on that value.
|
|
|
|
|
|
|
|
|
var primaryEffectTag = effectTag & (Placement | Update | Deletion | Hydrating);
|
|
|
|
|
|
switch (primaryEffectTag) {
|
|
|
case Placement:
|
|
|
{
|
|
|
commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
|
|
|
// inserted, before any life-cycles like componentDidMount gets called.
|
|
|
// TODO: findDOMNode doesn't rely on this any more but isMounted does
|
|
|
// and isMounted is deprecated anyway so we should be able to kill this.
|
|
|
|
|
|
nextEffect.effectTag &= ~Placement;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case PlacementAndUpdate:
|
|
|
{
|
|
|
// Placement
|
|
|
commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
|
|
|
// inserted, before any life-cycles like componentDidMount gets called.
|
|
|
|
|
|
nextEffect.effectTag &= ~Placement; // Update
|
|
|
|
|
|
var _current = nextEffect.alternate;
|
|
|
commitWork(_current, nextEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case Hydrating:
|
|
|
{
|
|
|
nextEffect.effectTag &= ~Hydrating;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case HydratingAndUpdate:
|
|
|
{
|
|
|
nextEffect.effectTag &= ~Hydrating; // Update
|
|
|
|
|
|
var _current2 = nextEffect.alternate;
|
|
|
commitWork(_current2, nextEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case Update:
|
|
|
{
|
|
|
var _current3 = nextEffect.alternate;
|
|
|
commitWork(_current3, nextEffect);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case Deletion:
|
|
|
{
|
|
|
commitDeletion(root, nextEffect, renderPriorityLevel);
|
|
|
break;
|
|
|
}
|
|
|
} // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
|
|
|
|
|
|
|
|
|
recordEffect();
|
|
|
resetCurrentFiber();
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function commitLayoutEffects(root, committedExpirationTime) {
|
|
|
// TODO: Should probably move the bulk of this function to commitWork.
|
|
|
while (nextEffect !== null) {
|
|
|
setCurrentFiber(nextEffect);
|
|
|
var effectTag = nextEffect.effectTag;
|
|
|
|
|
|
if (effectTag & (Update | Callback)) {
|
|
|
recordEffect();
|
|
|
var current = nextEffect.alternate;
|
|
|
commitLifeCycles(root, current, nextEffect);
|
|
|
}
|
|
|
|
|
|
if (effectTag & Ref) {
|
|
|
recordEffect();
|
|
|
commitAttachRef(nextEffect);
|
|
|
}
|
|
|
|
|
|
resetCurrentFiber();
|
|
|
nextEffect = nextEffect.nextEffect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function flushPassiveEffects() {
|
|
|
if (pendingPassiveEffectsRenderPriority !== NoPriority) {
|
|
|
var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority : pendingPassiveEffectsRenderPriority;
|
|
|
pendingPassiveEffectsRenderPriority = NoPriority;
|
|
|
return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function flushPassiveEffectsImpl() {
|
|
|
if (rootWithPendingPassiveEffects === null) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var root = rootWithPendingPassiveEffects;
|
|
|
var expirationTime = pendingPassiveEffectsExpirationTime;
|
|
|
rootWithPendingPassiveEffects = null;
|
|
|
pendingPassiveEffectsExpirationTime = NoWork;
|
|
|
|
|
|
if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
|
|
|
{
|
|
|
throw Error( "Cannot flush passive effects while already rendering." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var prevExecutionContext = executionContext;
|
|
|
executionContext |= CommitContext;
|
|
|
var prevInteractions = pushInteractions(root);
|
|
|
|
|
|
{
|
|
|
// Note: This currently assumes there are no passive effects on the root fiber
|
|
|
// because the root is not part of its own effect list.
|
|
|
// This could change in the future.
|
|
|
var _effect2 = root.current.firstEffect;
|
|
|
|
|
|
while (_effect2 !== null) {
|
|
|
{
|
|
|
setCurrentFiber(_effect2);
|
|
|
invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
if (!(_effect2 !== null)) {
|
|
|
{
|
|
|
throw Error( "Should be working on an effect." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _error5 = clearCaughtError();
|
|
|
|
|
|
captureCommitPhaseError(_effect2, _error5);
|
|
|
}
|
|
|
|
|
|
resetCurrentFiber();
|
|
|
}
|
|
|
|
|
|
var nextNextEffect = _effect2.nextEffect; // Remove nextEffect pointer to assist GC
|
|
|
|
|
|
_effect2.nextEffect = null;
|
|
|
_effect2 = nextNextEffect;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
popInteractions(prevInteractions);
|
|
|
finishPendingInteractions(root, expirationTime);
|
|
|
}
|
|
|
|
|
|
executionContext = prevExecutionContext;
|
|
|
flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
|
|
|
// exceeds the limit, we'll fire a warning.
|
|
|
|
|
|
nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function isAlreadyFailedLegacyErrorBoundary(instance) {
|
|
|
return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
|
|
|
}
|
|
|
function markLegacyErrorBoundaryAsFailed(instance) {
|
|
|
if (legacyErrorBoundariesThatAlreadyFailed === null) {
|
|
|
legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
|
|
|
} else {
|
|
|
legacyErrorBoundariesThatAlreadyFailed.add(instance);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function prepareToThrowUncaughtError(error) {
|
|
|
if (!hasUncaughtError) {
|
|
|
hasUncaughtError = true;
|
|
|
firstUncaughtError = error;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var onUncaughtError = prepareToThrowUncaughtError;
|
|
|
|
|
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
|
|
var errorInfo = createCapturedValue(error, sourceFiber);
|
|
|
var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
|
|
|
enqueueUpdate(rootFiber, update);
|
|
|
var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
|
|
|
|
|
|
if (root !== null) {
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, Sync);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function captureCommitPhaseError(sourceFiber, error) {
|
|
|
if (sourceFiber.tag === HostRoot) {
|
|
|
// Error was thrown at the root. There is no parent, so the root
|
|
|
// itself should capture it.
|
|
|
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var fiber = sourceFiber.return;
|
|
|
|
|
|
while (fiber !== null) {
|
|
|
if (fiber.tag === HostRoot) {
|
|
|
captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
|
|
|
return;
|
|
|
} else if (fiber.tag === ClassComponent) {
|
|
|
var ctor = fiber.type;
|
|
|
var instance = fiber.stateNode;
|
|
|
|
|
|
if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
|
|
|
var errorInfo = createCapturedValue(error, sourceFiber);
|
|
|
var update = createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync
|
|
|
Sync);
|
|
|
enqueueUpdate(fiber, update);
|
|
|
var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
|
|
|
|
|
|
if (root !== null) {
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, Sync);
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
fiber = fiber.return;
|
|
|
}
|
|
|
}
|
|
|
function pingSuspendedRoot(root, thenable, suspendedTime) {
|
|
|
var pingCache = root.pingCache;
|
|
|
|
|
|
if (pingCache !== null) {
|
|
|
// The thenable resolved, so we no longer need to memoize, because it will
|
|
|
// never be thrown again.
|
|
|
pingCache.delete(thenable);
|
|
|
}
|
|
|
|
|
|
if (workInProgressRoot === root && renderExpirationTime$1 === suspendedTime) {
|
|
|
// Received a ping at the same priority level at which we're currently
|
|
|
// rendering. We might want to restart this render. This should mirror
|
|
|
// the logic of whether or not a root suspends once it completes.
|
|
|
// TODO: If we're rendering sync either due to Sync, Batched or expired,
|
|
|
// we should probably never restart.
|
|
|
// If we're suspended with delay, we'll always suspend so we can always
|
|
|
// restart. If we're suspended without any updates, it might be a retry.
|
|
|
// If it's early in the retry we can restart. We can't know for sure
|
|
|
// whether we'll eventually process an update during this render pass,
|
|
|
// but it's somewhat unlikely that we get to a ping before that, since
|
|
|
// getting to the root most update is usually very fast.
|
|
|
if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
|
|
|
// Restart from the root. Don't need to schedule a ping because
|
|
|
// we're already working on this tree.
|
|
|
prepareFreshStack(root, renderExpirationTime$1);
|
|
|
} else {
|
|
|
// Even though we can't restart right now, we might get an
|
|
|
// opportunity later. So we mark this render as having a ping.
|
|
|
workInProgressRootHasPendingPing = true;
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!isRootSuspendedAtTime(root, suspendedTime)) {
|
|
|
// The root is no longer suspended at this time.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var lastPingedTime = root.lastPingedTime;
|
|
|
|
|
|
if (lastPingedTime !== NoWork && lastPingedTime < suspendedTime) {
|
|
|
// There's already a lower priority ping scheduled.
|
|
|
return;
|
|
|
} // Mark the time at which this ping was scheduled.
|
|
|
|
|
|
|
|
|
root.lastPingedTime = suspendedTime;
|
|
|
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, suspendedTime);
|
|
|
}
|
|
|
|
|
|
function retryTimedOutBoundary(boundaryFiber, retryTime) {
|
|
|
// The boundary fiber (a Suspense component or SuspenseList component)
|
|
|
// previously was rendered in its fallback state. One of the promises that
|
|
|
// suspended it has resolved, which means at least part of the tree was
|
|
|
// likely unblocked. Try rendering again, at a new expiration time.
|
|
|
if (retryTime === NoWork) {
|
|
|
var suspenseConfig = null; // Retries don't carry over the already committed update.
|
|
|
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
|
|
|
} // TODO: Special case idle priority?
|
|
|
|
|
|
|
|
|
var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
|
|
|
|
|
|
if (root !== null) {
|
|
|
ensureRootIsScheduled(root);
|
|
|
schedulePendingInteractions(root, retryTime);
|
|
|
}
|
|
|
}
|
|
|
function resolveRetryThenable(boundaryFiber, thenable) {
|
|
|
var retryTime = NoWork; // Default
|
|
|
|
|
|
var retryCache;
|
|
|
|
|
|
{
|
|
|
retryCache = boundaryFiber.stateNode;
|
|
|
}
|
|
|
|
|
|
if (retryCache !== null) {
|
|
|
// The thenable resolved, so we no longer need to memoize, because it will
|
|
|
// never be thrown again.
|
|
|
retryCache.delete(thenable);
|
|
|
}
|
|
|
|
|
|
retryTimedOutBoundary(boundaryFiber, retryTime);
|
|
|
} // Computes the next Just Noticeable Difference (JND) boundary.
|
|
|
// The theory is that a person can't tell the difference between small differences in time.
|
|
|
// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
|
|
|
// difference in the experience. However, waiting for longer might mean that we can avoid
|
|
|
// showing an intermediate loading state. The longer we have already waited, the harder it
|
|
|
// is to tell small differences in time. Therefore, the longer we've already waited,
|
|
|
// the longer we can wait additionally. At some point we have to give up though.
|
|
|
// We pick a train model where the next boundary commits at a consistent schedule.
|
|
|
// These particular numbers are vague estimates. We expect to adjust them based on research.
|
|
|
|
|
|
function jnd(timeElapsed) {
|
|
|
return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
|
|
|
}
|
|
|
|
|
|
function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
|
|
|
var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
|
|
|
|
|
|
if (busyMinDurationMs <= 0) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
var busyDelayMs = suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.
|
|
|
|
|
|
var currentTimeMs = now();
|
|
|
var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
|
|
|
var timeElapsed = currentTimeMs - eventTimeMs;
|
|
|
|
|
|
if (timeElapsed <= busyDelayMs) {
|
|
|
// If we haven't yet waited longer than the initial delay, we don't
|
|
|
// have to wait any additional time.
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.
|
|
|
|
|
|
return msUntilTimeout;
|
|
|
}
|
|
|
|
|
|
function checkForNestedUpdates() {
|
|
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
|
|
|
nestedUpdateCount = 0;
|
|
|
rootWithNestedUpdates = null;
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
|
|
|
nestedPassiveUpdateCount = 0;
|
|
|
|
|
|
error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function flushRenderPhaseStrictModeWarningsInDEV() {
|
|
|
{
|
|
|
ReactStrictModeWarnings.flushLegacyContextWarning();
|
|
|
|
|
|
{
|
|
|
ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function stopFinishedWorkLoopTimer() {
|
|
|
var didCompleteRoot = true;
|
|
|
stopWorkLoopTimer(interruptedBy, didCompleteRoot);
|
|
|
interruptedBy = null;
|
|
|
}
|
|
|
|
|
|
function stopInterruptedWorkLoopTimer() {
|
|
|
// TODO: Track which fiber caused the interruption.
|
|
|
var didCompleteRoot = false;
|
|
|
stopWorkLoopTimer(interruptedBy, didCompleteRoot);
|
|
|
interruptedBy = null;
|
|
|
}
|
|
|
|
|
|
function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
|
|
|
if ( workInProgressRoot !== null && updateExpirationTime > renderExpirationTime$1) {
|
|
|
interruptedBy = fiberThatReceivedUpdate;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnStateUpdateForUnmountedComponent = null;
|
|
|
|
|
|
function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
|
|
|
{
|
|
|
var tag = fiber.tag;
|
|
|
|
|
|
if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
|
|
|
// Only warn for user-defined components, not internal ones like Suspense.
|
|
|
return;
|
|
|
}
|
|
|
// the problematic code almost always lies inside that component.
|
|
|
|
|
|
|
|
|
var componentName = getComponentName(fiber.type) || 'ReactComponent';
|
|
|
|
|
|
if (didWarnStateUpdateForUnmountedComponent !== null) {
|
|
|
if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
didWarnStateUpdateForUnmountedComponent.add(componentName);
|
|
|
} else {
|
|
|
didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
|
|
|
}
|
|
|
|
|
|
error("Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var beginWork$1;
|
|
|
|
|
|
{
|
|
|
var dummyFiber = null;
|
|
|
|
|
|
beginWork$1 = function (current, unitOfWork, expirationTime) {
|
|
|
// If a component throws an error, we replay it again in a synchronously
|
|
|
// dispatched event, so that the debugger will treat it as an uncaught
|
|
|
// error See ReactErrorUtils for more information.
|
|
|
// Before entering the begin phase, copy the work-in-progress onto a dummy
|
|
|
// fiber. If beginWork throws, we'll use this to reset the state.
|
|
|
var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
|
|
|
|
|
|
try {
|
|
|
return beginWork(current, unitOfWork, expirationTime);
|
|
|
} catch (originalError) {
|
|
|
if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
|
|
|
// Don't replay promises. Treat everything else like an error.
|
|
|
throw originalError;
|
|
|
} // Keep this code in sync with handleError; any changes here must have
|
|
|
// corresponding changes there.
|
|
|
|
|
|
|
|
|
resetContextDependencies();
|
|
|
resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
|
|
|
// same fiber again.
|
|
|
// Unwind the failed stack frame
|
|
|
|
|
|
unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.
|
|
|
|
|
|
assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
|
|
|
|
|
|
if ( unitOfWork.mode & ProfileMode) {
|
|
|
// Reset the profiler timer.
|
|
|
startProfilerTimer(unitOfWork);
|
|
|
} // Run beginWork again.
|
|
|
|
|
|
|
|
|
invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);
|
|
|
|
|
|
if (hasCaughtError()) {
|
|
|
var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
|
|
|
// Rethrow this error instead of the original one.
|
|
|
|
|
|
throw replayError;
|
|
|
} else {
|
|
|
// This branch is reachable if the render phase is impure.
|
|
|
throw originalError;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var didWarnAboutUpdateInRender = false;
|
|
|
var didWarnAboutUpdateInRenderForAnotherComponent;
|
|
|
|
|
|
{
|
|
|
didWarnAboutUpdateInRenderForAnotherComponent = new Set();
|
|
|
}
|
|
|
|
|
|
function warnAboutRenderPhaseUpdatesInDEV(fiber) {
|
|
|
{
|
|
|
if (isRendering && (executionContext & RenderContext) !== NoContext) {
|
|
|
switch (fiber.tag) {
|
|
|
case FunctionComponent:
|
|
|
case ForwardRef:
|
|
|
case SimpleMemoComponent:
|
|
|
{
|
|
|
var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.
|
|
|
|
|
|
var dedupeKey = renderingComponentName;
|
|
|
|
|
|
if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
|
|
|
didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
|
|
|
var setStateComponentName = getComponentName(fiber.type) || 'Unknown';
|
|
|
|
|
|
error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
case ClassComponent:
|
|
|
{
|
|
|
if (!didWarnAboutUpdateInRender) {
|
|
|
error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');
|
|
|
|
|
|
didWarnAboutUpdateInRender = true;
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} // a 'shared' variable that changes when act() opens/closes in tests.
|
|
|
|
|
|
|
|
|
var IsThisRendererActing = {
|
|
|
current: false
|
|
|
};
|
|
|
function warnIfNotScopedWithMatchingAct(fiber) {
|
|
|
{
|
|
|
if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
|
|
|
error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
|
|
|
{
|
|
|
if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
|
|
|
error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
|
|
|
{
|
|
|
if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
|
|
|
error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.
|
|
|
|
|
|
var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
|
|
|
// scheduler is the actual recommendation. The alternative could be a testing build,
|
|
|
// a new lib, or whatever; we dunno just yet. This message is for early adopters
|
|
|
// to get their tests right.
|
|
|
|
|
|
function warnIfUnmockedScheduler(fiber) {
|
|
|
{
|
|
|
if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
|
|
|
if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
|
|
|
didWarnAboutUnmockedScheduler = true;
|
|
|
|
|
|
error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function computeThreadID(root, expirationTime) {
|
|
|
// Interaction threads are unique per root and expiration time.
|
|
|
return expirationTime * 1000 + root.interactionThreadID;
|
|
|
}
|
|
|
|
|
|
function markSpawnedWork(expirationTime) {
|
|
|
|
|
|
if (spawnedWorkDuringRender === null) {
|
|
|
spawnedWorkDuringRender = [expirationTime];
|
|
|
} else {
|
|
|
spawnedWorkDuringRender.push(expirationTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function scheduleInteractions(root, expirationTime, interactions) {
|
|
|
|
|
|
if (interactions.size > 0) {
|
|
|
var pendingInteractionMap = root.pendingInteractionMap;
|
|
|
var pendingInteractions = pendingInteractionMap.get(expirationTime);
|
|
|
|
|
|
if (pendingInteractions != null) {
|
|
|
interactions.forEach(function (interaction) {
|
|
|
if (!pendingInteractions.has(interaction)) {
|
|
|
// Update the pending async work count for previously unscheduled interaction.
|
|
|
interaction.__count++;
|
|
|
}
|
|
|
|
|
|
pendingInteractions.add(interaction);
|
|
|
});
|
|
|
} else {
|
|
|
pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.
|
|
|
|
|
|
interactions.forEach(function (interaction) {
|
|
|
interaction.__count++;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var subscriber = tracing.__subscriberRef.current;
|
|
|
|
|
|
if (subscriber !== null) {
|
|
|
var threadID = computeThreadID(root, expirationTime);
|
|
|
subscriber.onWorkScheduled(interactions, threadID);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function schedulePendingInteractions(root, expirationTime) {
|
|
|
|
|
|
scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
|
|
|
}
|
|
|
|
|
|
function startWorkOnPendingInteractions(root, expirationTime) {
|
|
|
// we can accurately attribute time spent working on it, And so that cascading
|
|
|
// work triggered during the render phase will be associated with it.
|
|
|
|
|
|
|
|
|
var interactions = new Set();
|
|
|
root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
|
|
|
if (scheduledExpirationTime >= expirationTime) {
|
|
|
scheduledInteractions.forEach(function (interaction) {
|
|
|
return interactions.add(interaction);
|
|
|
});
|
|
|
}
|
|
|
}); // Store the current set of interactions on the FiberRoot for a few reasons:
|
|
|
// We can re-use it in hot functions like performConcurrentWorkOnRoot()
|
|
|
// without having to recalculate it. We will also use it in commitWork() to
|
|
|
// pass to any Profiler onRender() hooks. This also provides DevTools with a
|
|
|
// way to access it when the onCommitRoot() hook is called.
|
|
|
|
|
|
root.memoizedInteractions = interactions;
|
|
|
|
|
|
if (interactions.size > 0) {
|
|
|
var subscriber = tracing.__subscriberRef.current;
|
|
|
|
|
|
if (subscriber !== null) {
|
|
|
var threadID = computeThreadID(root, expirationTime);
|
|
|
|
|
|
try {
|
|
|
subscriber.onWorkStarted(interactions, threadID);
|
|
|
} catch (error) {
|
|
|
// If the subscriber throws, rethrow it in a separate task
|
|
|
scheduleCallback(ImmediatePriority, function () {
|
|
|
throw error;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function finishPendingInteractions(root, committedExpirationTime) {
|
|
|
|
|
|
var earliestRemainingTimeAfterCommit = root.firstPendingTime;
|
|
|
var subscriber;
|
|
|
|
|
|
try {
|
|
|
subscriber = tracing.__subscriberRef.current;
|
|
|
|
|
|
if (subscriber !== null && root.memoizedInteractions.size > 0) {
|
|
|
var threadID = computeThreadID(root, committedExpirationTime);
|
|
|
subscriber.onWorkStopped(root.memoizedInteractions, threadID);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
// If the subscriber throws, rethrow it in a separate task
|
|
|
scheduleCallback(ImmediatePriority, function () {
|
|
|
throw error;
|
|
|
});
|
|
|
} finally {
|
|
|
// Clear completed interactions from the pending Map.
|
|
|
// Unless the render was suspended or cascading work was scheduled,
|
|
|
// In which case– leave pending interactions until the subsequent render.
|
|
|
var pendingInteractionMap = root.pendingInteractionMap;
|
|
|
pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
|
|
|
// Only decrement the pending interaction count if we're done.
|
|
|
// If there's still work at the current priority,
|
|
|
// That indicates that we are waiting for suspense data.
|
|
|
if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
|
|
|
pendingInteractionMap.delete(scheduledExpirationTime);
|
|
|
scheduledInteractions.forEach(function (interaction) {
|
|
|
interaction.__count--;
|
|
|
|
|
|
if (subscriber !== null && interaction.__count === 0) {
|
|
|
try {
|
|
|
subscriber.onInteractionScheduledWorkCompleted(interaction);
|
|
|
} catch (error) {
|
|
|
// If the subscriber throws, rethrow it in a separate task
|
|
|
scheduleCallback(ImmediatePriority, function () {
|
|
|
throw error;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var onScheduleFiberRoot = null;
|
|
|
var onCommitFiberRoot = null;
|
|
|
var onCommitFiberUnmount = null;
|
|
|
var hasLoggedError = false;
|
|
|
var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
|
|
|
function injectInternals(internals) {
|
|
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
|
|
|
// No DevTools
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
|
|
|
|
if (hook.isDisabled) {
|
|
|
// This isn't a real property on the hook, but it can be set to opt out
|
|
|
// of DevTools integration and associated warnings and logs.
|
|
|
// https://github.com/facebook/react/issues/3877
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (!hook.supportsFiber) {
|
|
|
{
|
|
|
error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
|
|
|
} // DevTools exists, even though it doesn't support Fiber.
|
|
|
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
var rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
|
|
|
|
|
|
if (true) {
|
|
|
// Only used by Fast Refresh
|
|
|
if (typeof hook.onScheduleFiberRoot === 'function') {
|
|
|
onScheduleFiberRoot = function (root, children) {
|
|
|
try {
|
|
|
hook.onScheduleFiberRoot(rendererID, root, children);
|
|
|
} catch (err) {
|
|
|
if ( true && !hasLoggedError) {
|
|
|
hasLoggedError = true;
|
|
|
|
|
|
error('React instrumentation encountered an error: %s', err);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
onCommitFiberRoot = function (root, expirationTime) {
|
|
|
try {
|
|
|
var didError = (root.current.effectTag & DidCapture) === DidCapture;
|
|
|
|
|
|
if (enableProfilerTimer) {
|
|
|
var currentTime = getCurrentTime();
|
|
|
var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
|
|
|
hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
|
|
|
} else {
|
|
|
hook.onCommitFiberRoot(rendererID, root, undefined, didError);
|
|
|
}
|
|
|
} catch (err) {
|
|
|
if (true) {
|
|
|
if (!hasLoggedError) {
|
|
|
hasLoggedError = true;
|
|
|
|
|
|
error('React instrumentation encountered an error: %s', err);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
onCommitFiberUnmount = function (fiber) {
|
|
|
try {
|
|
|
hook.onCommitFiberUnmount(rendererID, fiber);
|
|
|
} catch (err) {
|
|
|
if (true) {
|
|
|
if (!hasLoggedError) {
|
|
|
hasLoggedError = true;
|
|
|
|
|
|
error('React instrumentation encountered an error: %s', err);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
} catch (err) {
|
|
|
// Catch all errors because it is unsafe to throw during initialization.
|
|
|
{
|
|
|
error('React instrumentation encountered an error: %s.', err);
|
|
|
}
|
|
|
} // DevTools exists
|
|
|
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
function onScheduleRoot(root, children) {
|
|
|
if (typeof onScheduleFiberRoot === 'function') {
|
|
|
onScheduleFiberRoot(root, children);
|
|
|
}
|
|
|
}
|
|
|
function onCommitRoot(root, expirationTime) {
|
|
|
if (typeof onCommitFiberRoot === 'function') {
|
|
|
onCommitFiberRoot(root, expirationTime);
|
|
|
}
|
|
|
}
|
|
|
function onCommitUnmount(fiber) {
|
|
|
if (typeof onCommitFiberUnmount === 'function') {
|
|
|
onCommitFiberUnmount(fiber);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var hasBadMapPolyfill;
|
|
|
|
|
|
{
|
|
|
hasBadMapPolyfill = false;
|
|
|
|
|
|
try {
|
|
|
var nonExtensibleObject = Object.preventExtensions({});
|
|
|
var testMap = new Map([[nonExtensibleObject, null]]);
|
|
|
var testSet = new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused.
|
|
|
// https://github.com/rollup/rollup/issues/1771
|
|
|
// TODO: we can remove these if Rollup fixes the bug.
|
|
|
|
|
|
testMap.set(0, 0);
|
|
|
testSet.add(0);
|
|
|
} catch (e) {
|
|
|
// TODO: Consider warning about bad polyfills
|
|
|
hasBadMapPolyfill = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var debugCounter = 1;
|
|
|
|
|
|
function FiberNode(tag, pendingProps, key, mode) {
|
|
|
// Instance
|
|
|
this.tag = tag;
|
|
|
this.key = key;
|
|
|
this.elementType = null;
|
|
|
this.type = null;
|
|
|
this.stateNode = null; // Fiber
|
|
|
|
|
|
this.return = null;
|
|
|
this.child = null;
|
|
|
this.sibling = null;
|
|
|
this.index = 0;
|
|
|
this.ref = null;
|
|
|
this.pendingProps = pendingProps;
|
|
|
this.memoizedProps = null;
|
|
|
this.updateQueue = null;
|
|
|
this.memoizedState = null;
|
|
|
this.dependencies = null;
|
|
|
this.mode = mode; // Effects
|
|
|
|
|
|
this.effectTag = NoEffect;
|
|
|
this.nextEffect = null;
|
|
|
this.firstEffect = null;
|
|
|
this.lastEffect = null;
|
|
|
this.expirationTime = NoWork;
|
|
|
this.childExpirationTime = NoWork;
|
|
|
this.alternate = null;
|
|
|
|
|
|
{
|
|
|
// Note: The following is done to avoid a v8 performance cliff.
|
|
|
//
|
|
|
// Initializing the fields below to smis and later updating them with
|
|
|
// double values will cause Fibers to end up having separate shapes.
|
|
|
// This behavior/bug has something to do with Object.preventExtension().
|
|
|
// Fortunately this only impacts DEV builds.
|
|
|
// Unfortunately it makes React unusably slow for some applications.
|
|
|
// To work around this, initialize the fields below with doubles.
|
|
|
//
|
|
|
// Learn more about this here:
|
|
|
// https://github.com/facebook/react/issues/14365
|
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=8538
|
|
|
this.actualDuration = Number.NaN;
|
|
|
this.actualStartTime = Number.NaN;
|
|
|
this.selfBaseDuration = Number.NaN;
|
|
|
this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
|
|
|
// This won't trigger the performance cliff mentioned above,
|
|
|
// and it simplifies other profiler code (including DevTools).
|
|
|
|
|
|
this.actualDuration = 0;
|
|
|
this.actualStartTime = -1;
|
|
|
this.selfBaseDuration = 0;
|
|
|
this.treeBaseDuration = 0;
|
|
|
} // This is normally DEV-only except www when it adds listeners.
|
|
|
// TODO: remove the User Timing integration in favor of Root Events.
|
|
|
|
|
|
|
|
|
{
|
|
|
this._debugID = debugCounter++;
|
|
|
this._debugIsCurrentlyTiming = false;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
this._debugSource = null;
|
|
|
this._debugOwner = null;
|
|
|
this._debugNeedsRemount = false;
|
|
|
this._debugHookTypes = null;
|
|
|
|
|
|
if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
|
|
|
Object.preventExtensions(this);
|
|
|
}
|
|
|
}
|
|
|
} // This is a constructor function, rather than a POJO constructor, still
|
|
|
// please ensure we do the following:
|
|
|
// 1) Nobody should add any instance methods on this. Instance methods can be
|
|
|
// more difficult to predict when they get optimized and they are almost
|
|
|
// never inlined properly in static compilers.
|
|
|
// 2) Nobody should rely on `instanceof Fiber` for type testing. We should
|
|
|
// always know when it is a fiber.
|
|
|
// 3) We might want to experiment with using numeric keys since they are easier
|
|
|
// to optimize in a non-JIT environment.
|
|
|
// 4) We can easily go from a constructor to a createFiber object literal if that
|
|
|
// is faster.
|
|
|
// 5) It should be easy to port this to a C struct and keep a C implementation
|
|
|
// compatible.
|
|
|
|
|
|
|
|
|
var createFiber = function (tag, pendingProps, key, mode) {
|
|
|
// $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
|
|
|
return new FiberNode(tag, pendingProps, key, mode);
|
|
|
};
|
|
|
|
|
|
function shouldConstruct(Component) {
|
|
|
var prototype = Component.prototype;
|
|
|
return !!(prototype && prototype.isReactComponent);
|
|
|
}
|
|
|
|
|
|
function isSimpleFunctionComponent(type) {
|
|
|
return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
|
|
|
}
|
|
|
function resolveLazyComponentTag(Component) {
|
|
|
if (typeof Component === 'function') {
|
|
|
return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
|
|
|
} else if (Component !== undefined && Component !== null) {
|
|
|
var $$typeof = Component.$$typeof;
|
|
|
|
|
|
if ($$typeof === REACT_FORWARD_REF_TYPE) {
|
|
|
return ForwardRef;
|
|
|
}
|
|
|
|
|
|
if ($$typeof === REACT_MEMO_TYPE) {
|
|
|
return MemoComponent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return IndeterminateComponent;
|
|
|
} // This is used to create an alternate fiber to do work on.
|
|
|
|
|
|
function createWorkInProgress(current, pendingProps) {
|
|
|
var workInProgress = current.alternate;
|
|
|
|
|
|
if (workInProgress === null) {
|
|
|
// We use a double buffering pooling technique because we know that we'll
|
|
|
// only ever need at most two versions of a tree. We pool the "other" unused
|
|
|
// node that we're free to reuse. This is lazily created to avoid allocating
|
|
|
// extra objects for things that are never updated. It also allow us to
|
|
|
// reclaim the extra memory if needed.
|
|
|
workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
|
|
|
workInProgress.elementType = current.elementType;
|
|
|
workInProgress.type = current.type;
|
|
|
workInProgress.stateNode = current.stateNode;
|
|
|
|
|
|
{
|
|
|
// DEV-only fields
|
|
|
{
|
|
|
workInProgress._debugID = current._debugID;
|
|
|
}
|
|
|
|
|
|
workInProgress._debugSource = current._debugSource;
|
|
|
workInProgress._debugOwner = current._debugOwner;
|
|
|
workInProgress._debugHookTypes = current._debugHookTypes;
|
|
|
}
|
|
|
|
|
|
workInProgress.alternate = current;
|
|
|
current.alternate = workInProgress;
|
|
|
} else {
|
|
|
workInProgress.pendingProps = pendingProps; // We already have an alternate.
|
|
|
// Reset the effect tag.
|
|
|
|
|
|
workInProgress.effectTag = NoEffect; // The effect list is no longer valid.
|
|
|
|
|
|
workInProgress.nextEffect = null;
|
|
|
workInProgress.firstEffect = null;
|
|
|
workInProgress.lastEffect = null;
|
|
|
|
|
|
{
|
|
|
// We intentionally reset, rather than copy, actualDuration & actualStartTime.
|
|
|
// This prevents time from endlessly accumulating in new commits.
|
|
|
// This has the downside of resetting values for different priority renders,
|
|
|
// But works for yielding (the common case) and should support resuming.
|
|
|
workInProgress.actualDuration = 0;
|
|
|
workInProgress.actualStartTime = -1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
workInProgress.childExpirationTime = current.childExpirationTime;
|
|
|
workInProgress.expirationTime = current.expirationTime;
|
|
|
workInProgress.child = current.child;
|
|
|
workInProgress.memoizedProps = current.memoizedProps;
|
|
|
workInProgress.memoizedState = current.memoizedState;
|
|
|
workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
|
|
|
// it cannot be shared with the current fiber.
|
|
|
|
|
|
var currentDependencies = current.dependencies;
|
|
|
workInProgress.dependencies = currentDependencies === null ? null : {
|
|
|
expirationTime: currentDependencies.expirationTime,
|
|
|
firstContext: currentDependencies.firstContext,
|
|
|
responders: currentDependencies.responders
|
|
|
}; // These will be overridden during the parent's reconciliation
|
|
|
|
|
|
workInProgress.sibling = current.sibling;
|
|
|
workInProgress.index = current.index;
|
|
|
workInProgress.ref = current.ref;
|
|
|
|
|
|
{
|
|
|
workInProgress.selfBaseDuration = current.selfBaseDuration;
|
|
|
workInProgress.treeBaseDuration = current.treeBaseDuration;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
workInProgress._debugNeedsRemount = current._debugNeedsRemount;
|
|
|
|
|
|
switch (workInProgress.tag) {
|
|
|
case IndeterminateComponent:
|
|
|
case FunctionComponent:
|
|
|
case SimpleMemoComponent:
|
|
|
workInProgress.type = resolveFunctionForHotReloading(current.type);
|
|
|
break;
|
|
|
|
|
|
case ClassComponent:
|
|
|
workInProgress.type = resolveClassForHotReloading(current.type);
|
|
|
break;
|
|
|
|
|
|
case ForwardRef:
|
|
|
workInProgress.type = resolveForwardRefForHotReloading(current.type);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return workInProgress;
|
|
|
} // Used to reuse a Fiber for a second pass.
|
|
|
|
|
|
function resetWorkInProgress(workInProgress, renderExpirationTime) {
|
|
|
// This resets the Fiber to what createFiber or createWorkInProgress would
|
|
|
// have set the values to before during the first pass. Ideally this wouldn't
|
|
|
// be necessary but unfortunately many code paths reads from the workInProgress
|
|
|
// when they should be reading from current and writing to workInProgress.
|
|
|
// We assume pendingProps, index, key, ref, return are still untouched to
|
|
|
// avoid doing another reconciliation.
|
|
|
// Reset the effect tag but keep any Placement tags, since that's something
|
|
|
// that child fiber is setting, not the reconciliation.
|
|
|
workInProgress.effectTag &= Placement; // The effect list is no longer valid.
|
|
|
|
|
|
workInProgress.nextEffect = null;
|
|
|
workInProgress.firstEffect = null;
|
|
|
workInProgress.lastEffect = null;
|
|
|
var current = workInProgress.alternate;
|
|
|
|
|
|
if (current === null) {
|
|
|
// Reset to createFiber's initial values.
|
|
|
workInProgress.childExpirationTime = NoWork;
|
|
|
workInProgress.expirationTime = renderExpirationTime;
|
|
|
workInProgress.child = null;
|
|
|
workInProgress.memoizedProps = null;
|
|
|
workInProgress.memoizedState = null;
|
|
|
workInProgress.updateQueue = null;
|
|
|
workInProgress.dependencies = null;
|
|
|
|
|
|
{
|
|
|
// Note: We don't reset the actualTime counts. It's useful to accumulate
|
|
|
// actual time across multiple render passes.
|
|
|
workInProgress.selfBaseDuration = 0;
|
|
|
workInProgress.treeBaseDuration = 0;
|
|
|
}
|
|
|
} else {
|
|
|
// Reset to the cloned values that createWorkInProgress would've.
|
|
|
workInProgress.childExpirationTime = current.childExpirationTime;
|
|
|
workInProgress.expirationTime = current.expirationTime;
|
|
|
workInProgress.child = current.child;
|
|
|
workInProgress.memoizedProps = current.memoizedProps;
|
|
|
workInProgress.memoizedState = current.memoizedState;
|
|
|
workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
|
|
|
// it cannot be shared with the current fiber.
|
|
|
|
|
|
var currentDependencies = current.dependencies;
|
|
|
workInProgress.dependencies = currentDependencies === null ? null : {
|
|
|
expirationTime: currentDependencies.expirationTime,
|
|
|
firstContext: currentDependencies.firstContext,
|
|
|
responders: currentDependencies.responders
|
|
|
};
|
|
|
|
|
|
{
|
|
|
// Note: We don't reset the actualTime counts. It's useful to accumulate
|
|
|
// actual time across multiple render passes.
|
|
|
workInProgress.selfBaseDuration = current.selfBaseDuration;
|
|
|
workInProgress.treeBaseDuration = current.treeBaseDuration;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return workInProgress;
|
|
|
}
|
|
|
function createHostRootFiber(tag) {
|
|
|
var mode;
|
|
|
|
|
|
if (tag === ConcurrentRoot) {
|
|
|
mode = ConcurrentMode | BlockingMode | StrictMode;
|
|
|
} else if (tag === BlockingRoot) {
|
|
|
mode = BlockingMode | StrictMode;
|
|
|
} else {
|
|
|
mode = NoMode;
|
|
|
}
|
|
|
|
|
|
if ( isDevToolsPresent) {
|
|
|
// Always collect profile timings when DevTools are present.
|
|
|
// This enables DevTools to start capturing timing at any point–
|
|
|
// Without some nodes in the tree having empty base times.
|
|
|
mode |= ProfileMode;
|
|
|
}
|
|
|
|
|
|
return createFiber(HostRoot, null, null, mode);
|
|
|
}
|
|
|
function createFiberFromTypeAndProps(type, // React$ElementType
|
|
|
key, pendingProps, owner, mode, expirationTime) {
|
|
|
var fiber;
|
|
|
var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
|
|
|
|
|
|
var resolvedType = type;
|
|
|
|
|
|
if (typeof type === 'function') {
|
|
|
if (shouldConstruct(type)) {
|
|
|
fiberTag = ClassComponent;
|
|
|
|
|
|
{
|
|
|
resolvedType = resolveClassForHotReloading(resolvedType);
|
|
|
}
|
|
|
} else {
|
|
|
{
|
|
|
resolvedType = resolveFunctionForHotReloading(resolvedType);
|
|
|
}
|
|
|
}
|
|
|
} else if (typeof type === 'string') {
|
|
|
fiberTag = HostComponent;
|
|
|
} else {
|
|
|
getTag: switch (type) {
|
|
|
case REACT_FRAGMENT_TYPE:
|
|
|
return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
|
|
|
|
|
|
case REACT_CONCURRENT_MODE_TYPE:
|
|
|
fiberTag = Mode;
|
|
|
mode |= ConcurrentMode | BlockingMode | StrictMode;
|
|
|
break;
|
|
|
|
|
|
case REACT_STRICT_MODE_TYPE:
|
|
|
fiberTag = Mode;
|
|
|
mode |= StrictMode;
|
|
|
break;
|
|
|
|
|
|
case REACT_PROFILER_TYPE:
|
|
|
return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
|
|
|
|
|
|
case REACT_SUSPENSE_TYPE:
|
|
|
return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
|
|
|
|
|
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
|
return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
if (typeof type === 'object' && type !== null) {
|
|
|
switch (type.$$typeof) {
|
|
|
case REACT_PROVIDER_TYPE:
|
|
|
fiberTag = ContextProvider;
|
|
|
break getTag;
|
|
|
|
|
|
case REACT_CONTEXT_TYPE:
|
|
|
// This is a consumer
|
|
|
fiberTag = ContextConsumer;
|
|
|
break getTag;
|
|
|
|
|
|
case REACT_FORWARD_REF_TYPE:
|
|
|
fiberTag = ForwardRef;
|
|
|
|
|
|
{
|
|
|
resolvedType = resolveForwardRefForHotReloading(resolvedType);
|
|
|
}
|
|
|
|
|
|
break getTag;
|
|
|
|
|
|
case REACT_MEMO_TYPE:
|
|
|
fiberTag = MemoComponent;
|
|
|
break getTag;
|
|
|
|
|
|
case REACT_LAZY_TYPE:
|
|
|
fiberTag = LazyComponent;
|
|
|
resolvedType = null;
|
|
|
break getTag;
|
|
|
|
|
|
case REACT_BLOCK_TYPE:
|
|
|
fiberTag = Block;
|
|
|
break getTag;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var info = '';
|
|
|
|
|
|
{
|
|
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
|
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
|
|
|
}
|
|
|
|
|
|
var ownerName = owner ? getComponentName(owner.type) : null;
|
|
|
|
|
|
if (ownerName) {
|
|
|
info += '\n\nCheck the render method of `' + ownerName + '`.';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
fiber = createFiber(fiberTag, pendingProps, key, mode);
|
|
|
fiber.elementType = type;
|
|
|
fiber.type = resolvedType;
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromElement(element, mode, expirationTime) {
|
|
|
var owner = null;
|
|
|
|
|
|
{
|
|
|
owner = element._owner;
|
|
|
}
|
|
|
|
|
|
var type = element.type;
|
|
|
var key = element.key;
|
|
|
var pendingProps = element.props;
|
|
|
var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
|
|
|
|
|
|
{
|
|
|
fiber._debugSource = element._source;
|
|
|
fiber._debugOwner = element._owner;
|
|
|
}
|
|
|
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromFragment(elements, mode, expirationTime, key) {
|
|
|
var fiber = createFiber(Fragment, elements, key, mode);
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
|
|
|
function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
|
|
|
{
|
|
|
if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
|
|
|
error('Profiler must specify an "id" string and "onRender" function as props');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.
|
|
|
|
|
|
fiber.elementType = REACT_PROFILER_TYPE;
|
|
|
fiber.type = REACT_PROFILER_TYPE;
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
|
|
|
function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
|
|
|
var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
|
|
|
// This needs to be fixed in getComponentName so that it relies on the tag
|
|
|
// instead.
|
|
|
|
|
|
fiber.type = REACT_SUSPENSE_TYPE;
|
|
|
fiber.elementType = REACT_SUSPENSE_TYPE;
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
|
|
|
var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
|
|
|
|
|
|
{
|
|
|
// TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
|
|
|
// This needs to be fixed in getComponentName so that it relies on the tag
|
|
|
// instead.
|
|
|
fiber.type = REACT_SUSPENSE_LIST_TYPE;
|
|
|
}
|
|
|
|
|
|
fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromText(content, mode, expirationTime) {
|
|
|
var fiber = createFiber(HostText, content, null, mode);
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromHostInstanceForDeletion() {
|
|
|
var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.
|
|
|
|
|
|
fiber.elementType = 'DELETED';
|
|
|
fiber.type = 'DELETED';
|
|
|
return fiber;
|
|
|
}
|
|
|
function createFiberFromPortal(portal, mode, expirationTime) {
|
|
|
var pendingProps = portal.children !== null ? portal.children : [];
|
|
|
var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
|
|
|
fiber.expirationTime = expirationTime;
|
|
|
fiber.stateNode = {
|
|
|
containerInfo: portal.containerInfo,
|
|
|
pendingChildren: null,
|
|
|
// Used by persistent updates
|
|
|
implementation: portal.implementation
|
|
|
};
|
|
|
return fiber;
|
|
|
} // Used for stashing WIP properties to replay failed work in DEV.
|
|
|
|
|
|
function assignFiberPropertiesInDEV(target, source) {
|
|
|
if (target === null) {
|
|
|
// This Fiber's initial properties will always be overwritten.
|
|
|
// We only use a Fiber to ensure the same hidden class so DEV isn't slow.
|
|
|
target = createFiber(IndeterminateComponent, null, null, NoMode);
|
|
|
} // This is intentionally written as a list of all properties.
|
|
|
// We tried to use Object.assign() instead but this is called in
|
|
|
// the hottest path, and Object.assign() was too slow:
|
|
|
// https://github.com/facebook/react/issues/12502
|
|
|
// This code is DEV-only so size is not a concern.
|
|
|
|
|
|
|
|
|
target.tag = source.tag;
|
|
|
target.key = source.key;
|
|
|
target.elementType = source.elementType;
|
|
|
target.type = source.type;
|
|
|
target.stateNode = source.stateNode;
|
|
|
target.return = source.return;
|
|
|
target.child = source.child;
|
|
|
target.sibling = source.sibling;
|
|
|
target.index = source.index;
|
|
|
target.ref = source.ref;
|
|
|
target.pendingProps = source.pendingProps;
|
|
|
target.memoizedProps = source.memoizedProps;
|
|
|
target.updateQueue = source.updateQueue;
|
|
|
target.memoizedState = source.memoizedState;
|
|
|
target.dependencies = source.dependencies;
|
|
|
target.mode = source.mode;
|
|
|
target.effectTag = source.effectTag;
|
|
|
target.nextEffect = source.nextEffect;
|
|
|
target.firstEffect = source.firstEffect;
|
|
|
target.lastEffect = source.lastEffect;
|
|
|
target.expirationTime = source.expirationTime;
|
|
|
target.childExpirationTime = source.childExpirationTime;
|
|
|
target.alternate = source.alternate;
|
|
|
|
|
|
{
|
|
|
target.actualDuration = source.actualDuration;
|
|
|
target.actualStartTime = source.actualStartTime;
|
|
|
target.selfBaseDuration = source.selfBaseDuration;
|
|
|
target.treeBaseDuration = source.treeBaseDuration;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
target._debugID = source._debugID;
|
|
|
}
|
|
|
|
|
|
target._debugSource = source._debugSource;
|
|
|
target._debugOwner = source._debugOwner;
|
|
|
target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
|
|
|
target._debugNeedsRemount = source._debugNeedsRemount;
|
|
|
target._debugHookTypes = source._debugHookTypes;
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
this.tag = tag;
|
|
|
this.current = null;
|
|
|
this.containerInfo = containerInfo;
|
|
|
this.pendingChildren = null;
|
|
|
this.pingCache = null;
|
|
|
this.finishedExpirationTime = NoWork;
|
|
|
this.finishedWork = null;
|
|
|
this.timeoutHandle = noTimeout;
|
|
|
this.context = null;
|
|
|
this.pendingContext = null;
|
|
|
this.hydrate = hydrate;
|
|
|
this.callbackNode = null;
|
|
|
this.callbackPriority = NoPriority;
|
|
|
this.firstPendingTime = NoWork;
|
|
|
this.firstSuspendedTime = NoWork;
|
|
|
this.lastSuspendedTime = NoWork;
|
|
|
this.nextKnownPendingLevel = NoWork;
|
|
|
this.lastPingedTime = NoWork;
|
|
|
this.lastExpiredTime = NoWork;
|
|
|
|
|
|
{
|
|
|
this.interactionThreadID = tracing.unstable_getThreadID();
|
|
|
this.memoizedInteractions = new Set();
|
|
|
this.pendingInteractionMap = new Map();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
|
|
|
var root = new FiberRootNode(containerInfo, tag, hydrate);
|
|
|
// stateNode is any.
|
|
|
|
|
|
|
|
|
var uninitializedFiber = createHostRootFiber(tag);
|
|
|
root.current = uninitializedFiber;
|
|
|
uninitializedFiber.stateNode = root;
|
|
|
initializeUpdateQueue(uninitializedFiber);
|
|
|
return root;
|
|
|
}
|
|
|
function isRootSuspendedAtTime(root, expirationTime) {
|
|
|
var firstSuspendedTime = root.firstSuspendedTime;
|
|
|
var lastSuspendedTime = root.lastSuspendedTime;
|
|
|
return firstSuspendedTime !== NoWork && firstSuspendedTime >= expirationTime && lastSuspendedTime <= expirationTime;
|
|
|
}
|
|
|
function markRootSuspendedAtTime(root, expirationTime) {
|
|
|
var firstSuspendedTime = root.firstSuspendedTime;
|
|
|
var lastSuspendedTime = root.lastSuspendedTime;
|
|
|
|
|
|
if (firstSuspendedTime < expirationTime) {
|
|
|
root.firstSuspendedTime = expirationTime;
|
|
|
}
|
|
|
|
|
|
if (lastSuspendedTime > expirationTime || firstSuspendedTime === NoWork) {
|
|
|
root.lastSuspendedTime = expirationTime;
|
|
|
}
|
|
|
|
|
|
if (expirationTime <= root.lastPingedTime) {
|
|
|
root.lastPingedTime = NoWork;
|
|
|
}
|
|
|
|
|
|
if (expirationTime <= root.lastExpiredTime) {
|
|
|
root.lastExpiredTime = NoWork;
|
|
|
}
|
|
|
}
|
|
|
function markRootUpdatedAtTime(root, expirationTime) {
|
|
|
// Update the range of pending times
|
|
|
var firstPendingTime = root.firstPendingTime;
|
|
|
|
|
|
if (expirationTime > firstPendingTime) {
|
|
|
root.firstPendingTime = expirationTime;
|
|
|
} // Update the range of suspended times. Treat everything lower priority or
|
|
|
// equal to this update as unsuspended.
|
|
|
|
|
|
|
|
|
var firstSuspendedTime = root.firstSuspendedTime;
|
|
|
|
|
|
if (firstSuspendedTime !== NoWork) {
|
|
|
if (expirationTime >= firstSuspendedTime) {
|
|
|
// The entire suspended range is now unsuspended.
|
|
|
root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
|
|
|
} else if (expirationTime >= root.lastSuspendedTime) {
|
|
|
root.lastSuspendedTime = expirationTime + 1;
|
|
|
} // This is a pending level. Check if it's higher priority than the next
|
|
|
// known pending level.
|
|
|
|
|
|
|
|
|
if (expirationTime > root.nextKnownPendingLevel) {
|
|
|
root.nextKnownPendingLevel = expirationTime;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
|
|
|
// Update the range of pending times
|
|
|
root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
|
|
|
// equal to this update as unsuspended.
|
|
|
|
|
|
if (finishedExpirationTime <= root.lastSuspendedTime) {
|
|
|
// The entire suspended range is now unsuspended.
|
|
|
root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
|
|
|
} else if (finishedExpirationTime <= root.firstSuspendedTime) {
|
|
|
// Part of the suspended range is now unsuspended. Narrow the range to
|
|
|
// include everything between the unsuspended time (non-inclusive) and the
|
|
|
// last suspended time.
|
|
|
root.firstSuspendedTime = finishedExpirationTime - 1;
|
|
|
}
|
|
|
|
|
|
if (finishedExpirationTime <= root.lastPingedTime) {
|
|
|
// Clear the pinged time
|
|
|
root.lastPingedTime = NoWork;
|
|
|
}
|
|
|
|
|
|
if (finishedExpirationTime <= root.lastExpiredTime) {
|
|
|
// Clear the expired time
|
|
|
root.lastExpiredTime = NoWork;
|
|
|
}
|
|
|
}
|
|
|
function markRootExpiredAtTime(root, expirationTime) {
|
|
|
var lastExpiredTime = root.lastExpiredTime;
|
|
|
|
|
|
if (lastExpiredTime === NoWork || lastExpiredTime > expirationTime) {
|
|
|
root.lastExpiredTime = expirationTime;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnAboutNestedUpdates;
|
|
|
var didWarnAboutFindNodeInStrictMode;
|
|
|
|
|
|
{
|
|
|
didWarnAboutNestedUpdates = false;
|
|
|
didWarnAboutFindNodeInStrictMode = {};
|
|
|
}
|
|
|
|
|
|
function getContextForSubtree(parentComponent) {
|
|
|
if (!parentComponent) {
|
|
|
return emptyContextObject;
|
|
|
}
|
|
|
|
|
|
var fiber = get(parentComponent);
|
|
|
var parentContext = findCurrentUnmaskedContext(fiber);
|
|
|
|
|
|
if (fiber.tag === ClassComponent) {
|
|
|
var Component = fiber.type;
|
|
|
|
|
|
if (isContextProvider(Component)) {
|
|
|
return processChildContext(fiber, Component, parentContext);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return parentContext;
|
|
|
}
|
|
|
|
|
|
function findHostInstanceWithWarning(component, methodName) {
|
|
|
{
|
|
|
var fiber = get(component);
|
|
|
|
|
|
if (fiber === undefined) {
|
|
|
if (typeof component.render === 'function') {
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Unable to find node on an unmounted component." );
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var hostFiber = findCurrentHostFiber(fiber);
|
|
|
|
|
|
if (hostFiber === null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (hostFiber.mode & StrictMode) {
|
|
|
var componentName = getComponentName(fiber.type) || 'Component';
|
|
|
|
|
|
if (!didWarnAboutFindNodeInStrictMode[componentName]) {
|
|
|
didWarnAboutFindNodeInStrictMode[componentName] = true;
|
|
|
|
|
|
if (fiber.mode & StrictMode) {
|
|
|
error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
|
|
|
} else {
|
|
|
error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return hostFiber.stateNode;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
|
|
|
return createFiberRoot(containerInfo, tag, hydrate);
|
|
|
}
|
|
|
function updateContainer(element, container, parentComponent, callback) {
|
|
|
{
|
|
|
onScheduleRoot(container, element);
|
|
|
}
|
|
|
|
|
|
var current$1 = container.current;
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
|
|
|
{
|
|
|
// $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
|
|
|
if ('undefined' !== typeof jest) {
|
|
|
warnIfUnmockedScheduler(current$1);
|
|
|
warnIfNotScopedWithMatchingAct(current$1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var suspenseConfig = requestCurrentSuspenseConfig();
|
|
|
var expirationTime = computeExpirationForFiber(currentTime, current$1, suspenseConfig);
|
|
|
var context = getContextForSubtree(parentComponent);
|
|
|
|
|
|
if (container.context === null) {
|
|
|
container.context = context;
|
|
|
} else {
|
|
|
container.pendingContext = context;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
|
|
|
didWarnAboutNestedUpdates = true;
|
|
|
|
|
|
error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var update = createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property
|
|
|
// being called "element".
|
|
|
|
|
|
update.payload = {
|
|
|
element: element
|
|
|
};
|
|
|
callback = callback === undefined ? null : callback;
|
|
|
|
|
|
if (callback !== null) {
|
|
|
{
|
|
|
if (typeof callback !== 'function') {
|
|
|
error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
update.callback = callback;
|
|
|
}
|
|
|
|
|
|
enqueueUpdate(current$1, update);
|
|
|
scheduleWork(current$1, expirationTime);
|
|
|
return expirationTime;
|
|
|
}
|
|
|
function getPublicRootInstance(container) {
|
|
|
var containerFiber = container.current;
|
|
|
|
|
|
if (!containerFiber.child) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
switch (containerFiber.child.tag) {
|
|
|
case HostComponent:
|
|
|
return getPublicInstance(containerFiber.child.stateNode);
|
|
|
|
|
|
default:
|
|
|
return containerFiber.child.stateNode;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function markRetryTimeImpl(fiber, retryTime) {
|
|
|
var suspenseState = fiber.memoizedState;
|
|
|
|
|
|
if (suspenseState !== null && suspenseState.dehydrated !== null) {
|
|
|
if (suspenseState.retryTime < retryTime) {
|
|
|
suspenseState.retryTime = retryTime;
|
|
|
}
|
|
|
}
|
|
|
} // Increases the priority of thennables when they resolve within this boundary.
|
|
|
|
|
|
|
|
|
function markRetryTimeIfNotHydrated(fiber, retryTime) {
|
|
|
markRetryTimeImpl(fiber, retryTime);
|
|
|
var alternate = fiber.alternate;
|
|
|
|
|
|
if (alternate) {
|
|
|
markRetryTimeImpl(alternate, retryTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function attemptUserBlockingHydration$1(fiber) {
|
|
|
if (fiber.tag !== SuspenseComponent) {
|
|
|
// We ignore HostRoots here because we can't increase
|
|
|
// their priority and they should not suspend on I/O,
|
|
|
// since you have to wrap anything that might suspend in
|
|
|
// Suspense.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var expTime = computeInteractiveExpiration(requestCurrentTimeForUpdate());
|
|
|
scheduleWork(fiber, expTime);
|
|
|
markRetryTimeIfNotHydrated(fiber, expTime);
|
|
|
}
|
|
|
function attemptContinuousHydration$1(fiber) {
|
|
|
if (fiber.tag !== SuspenseComponent) {
|
|
|
// We ignore HostRoots here because we can't increase
|
|
|
// their priority and they should not suspend on I/O,
|
|
|
// since you have to wrap anything that might suspend in
|
|
|
// Suspense.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
scheduleWork(fiber, ContinuousHydration);
|
|
|
markRetryTimeIfNotHydrated(fiber, ContinuousHydration);
|
|
|
}
|
|
|
function attemptHydrationAtCurrentPriority$1(fiber) {
|
|
|
if (fiber.tag !== SuspenseComponent) {
|
|
|
// We ignore HostRoots here because we can't increase
|
|
|
// their priority other than synchronously flush it.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var currentTime = requestCurrentTimeForUpdate();
|
|
|
var expTime = computeExpirationForFiber(currentTime, fiber, null);
|
|
|
scheduleWork(fiber, expTime);
|
|
|
markRetryTimeIfNotHydrated(fiber, expTime);
|
|
|
}
|
|
|
function findHostInstanceWithNoPortals(fiber) {
|
|
|
var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
|
|
|
|
|
|
if (hostFiber === null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (hostFiber.tag === FundamentalComponent) {
|
|
|
return hostFiber.stateNode.instance;
|
|
|
}
|
|
|
|
|
|
return hostFiber.stateNode;
|
|
|
}
|
|
|
|
|
|
var shouldSuspendImpl = function (fiber) {
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
function shouldSuspend(fiber) {
|
|
|
return shouldSuspendImpl(fiber);
|
|
|
}
|
|
|
var overrideHookState = null;
|
|
|
var overrideProps = null;
|
|
|
var scheduleUpdate = null;
|
|
|
var setSuspenseHandler = null;
|
|
|
|
|
|
{
|
|
|
var copyWithSetImpl = function (obj, path, idx, value) {
|
|
|
if (idx >= path.length) {
|
|
|
return value;
|
|
|
}
|
|
|
|
|
|
var key = path[idx];
|
|
|
var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here
|
|
|
|
|
|
updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
|
|
|
return updated;
|
|
|
};
|
|
|
|
|
|
var copyWithSet = function (obj, path, value) {
|
|
|
return copyWithSetImpl(obj, path, 0, value);
|
|
|
}; // Support DevTools editable values for useState and useReducer.
|
|
|
|
|
|
|
|
|
overrideHookState = function (fiber, id, path, value) {
|
|
|
// For now, the "id" of stateful hooks is just the stateful hook index.
|
|
|
// This may change in the future with e.g. nested hooks.
|
|
|
var currentHook = fiber.memoizedState;
|
|
|
|
|
|
while (currentHook !== null && id > 0) {
|
|
|
currentHook = currentHook.next;
|
|
|
id--;
|
|
|
}
|
|
|
|
|
|
if (currentHook !== null) {
|
|
|
var newState = copyWithSet(currentHook.memoizedState, path, value);
|
|
|
currentHook.memoizedState = newState;
|
|
|
currentHook.baseState = newState; // We aren't actually adding an update to the queue,
|
|
|
// because there is no update we can add for useReducer hooks that won't trigger an error.
|
|
|
// (There's no appropriate action type for DevTools overrides.)
|
|
|
// As a result though, React will see the scheduled update as a noop and bailout.
|
|
|
// Shallow cloning props works as a workaround for now to bypass the bailout check.
|
|
|
|
|
|
fiber.memoizedProps = _assign({}, fiber.memoizedProps);
|
|
|
scheduleWork(fiber, Sync);
|
|
|
}
|
|
|
}; // Support DevTools props for function components, forwardRef, memo, host components, etc.
|
|
|
|
|
|
|
|
|
overrideProps = function (fiber, path, value) {
|
|
|
fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
|
|
|
|
|
|
if (fiber.alternate) {
|
|
|
fiber.alternate.pendingProps = fiber.pendingProps;
|
|
|
}
|
|
|
|
|
|
scheduleWork(fiber, Sync);
|
|
|
};
|
|
|
|
|
|
scheduleUpdate = function (fiber) {
|
|
|
scheduleWork(fiber, Sync);
|
|
|
};
|
|
|
|
|
|
setSuspenseHandler = function (newShouldSuspendImpl) {
|
|
|
shouldSuspendImpl = newShouldSuspendImpl;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function injectIntoDevTools(devToolsConfig) {
|
|
|
var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
|
|
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
|
return injectInternals(_assign({}, devToolsConfig, {
|
|
|
overrideHookState: overrideHookState,
|
|
|
overrideProps: overrideProps,
|
|
|
setSuspenseHandler: setSuspenseHandler,
|
|
|
scheduleUpdate: scheduleUpdate,
|
|
|
currentDispatcherRef: ReactCurrentDispatcher,
|
|
|
findHostInstanceByFiber: function (fiber) {
|
|
|
var hostFiber = findCurrentHostFiber(fiber);
|
|
|
|
|
|
if (hostFiber === null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return hostFiber.stateNode;
|
|
|
},
|
|
|
findFiberByHostInstance: function (instance) {
|
|
|
if (!findFiberByHostInstance) {
|
|
|
// Might not be implemented by the renderer.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return findFiberByHostInstance(instance);
|
|
|
},
|
|
|
// React Refresh
|
|
|
findHostInstancesForRefresh: findHostInstancesForRefresh ,
|
|
|
scheduleRefresh: scheduleRefresh ,
|
|
|
scheduleRoot: scheduleRoot ,
|
|
|
setRefreshHandler: setRefreshHandler ,
|
|
|
// Enables DevTools to append owner stacks to error messages in DEV mode.
|
|
|
getCurrentFiber: function () {
|
|
|
return current;
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
|
|
|
|
|
|
function ReactDOMRoot(container, options) {
|
|
|
this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
|
|
|
}
|
|
|
|
|
|
function ReactDOMBlockingRoot(container, tag, options) {
|
|
|
this._internalRoot = createRootImpl(container, tag, options);
|
|
|
}
|
|
|
|
|
|
ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
|
|
|
var root = this._internalRoot;
|
|
|
|
|
|
{
|
|
|
if (typeof arguments[1] === 'function') {
|
|
|
error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
|
|
|
}
|
|
|
|
|
|
var container = root.containerInfo;
|
|
|
|
|
|
if (container.nodeType !== COMMENT_NODE) {
|
|
|
var hostInstance = findHostInstanceWithNoPortals(root.current);
|
|
|
|
|
|
if (hostInstance) {
|
|
|
if (hostInstance.parentNode !== container) {
|
|
|
error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
updateContainer(children, root, null, null);
|
|
|
};
|
|
|
|
|
|
ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
|
|
|
{
|
|
|
if (typeof arguments[0] === 'function') {
|
|
|
error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var root = this._internalRoot;
|
|
|
var container = root.containerInfo;
|
|
|
updateContainer(null, root, null, function () {
|
|
|
unmarkContainerAsRoot(container);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
function createRootImpl(container, tag, options) {
|
|
|
// Tag is either LegacyRoot or Concurrent Root
|
|
|
var hydrate = options != null && options.hydrate === true;
|
|
|
var hydrationCallbacks = options != null && options.hydrationOptions || null;
|
|
|
var root = createContainer(container, tag, hydrate);
|
|
|
markContainerAsRoot(root.current, container);
|
|
|
|
|
|
if (hydrate && tag !== LegacyRoot) {
|
|
|
var doc = container.nodeType === DOCUMENT_NODE ? container : container.ownerDocument;
|
|
|
eagerlyTrapReplayableEvents(container, doc);
|
|
|
}
|
|
|
|
|
|
return root;
|
|
|
}
|
|
|
function createLegacyRoot(container, options) {
|
|
|
return new ReactDOMBlockingRoot(container, LegacyRoot, options);
|
|
|
}
|
|
|
function isValidContainer(node) {
|
|
|
return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
|
|
|
}
|
|
|
|
|
|
var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
|
|
|
var topLevelUpdateWarnings;
|
|
|
var warnedAboutHydrateAPI = false;
|
|
|
|
|
|
{
|
|
|
topLevelUpdateWarnings = function (container) {
|
|
|
if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
|
|
|
var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
|
|
|
|
|
|
if (hostInstance) {
|
|
|
if (hostInstance.parentNode !== container) {
|
|
|
error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var isRootRenderedBySomeReact = !!container._reactRootContainer;
|
|
|
var rootEl = getReactRootElementInContainer(container);
|
|
|
var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
|
|
|
|
|
|
if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
|
|
|
error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
|
|
|
}
|
|
|
|
|
|
if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
|
|
|
error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function getReactRootElementInContainer(container) {
|
|
|
if (!container) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (container.nodeType === DOCUMENT_NODE) {
|
|
|
return container.documentElement;
|
|
|
} else {
|
|
|
return container.firstChild;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function shouldHydrateDueToLegacyHeuristic(container) {
|
|
|
var rootElement = getReactRootElementInContainer(container);
|
|
|
return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
|
|
|
}
|
|
|
|
|
|
function legacyCreateRootFromDOMContainer(container, forceHydrate) {
|
|
|
var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.
|
|
|
|
|
|
if (!shouldHydrate) {
|
|
|
var warned = false;
|
|
|
var rootSibling;
|
|
|
|
|
|
while (rootSibling = container.lastChild) {
|
|
|
{
|
|
|
if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
|
|
|
warned = true;
|
|
|
|
|
|
error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
container.removeChild(rootSibling);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
|
|
|
warnedAboutHydrateAPI = true;
|
|
|
|
|
|
warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return createLegacyRoot(container, shouldHydrate ? {
|
|
|
hydrate: true
|
|
|
} : undefined);
|
|
|
}
|
|
|
|
|
|
function warnOnInvalidCallback$1(callback, callerName) {
|
|
|
{
|
|
|
if (callback !== null && typeof callback !== 'function') {
|
|
|
error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
|
|
|
{
|
|
|
topLevelUpdateWarnings(container);
|
|
|
warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
|
|
|
} // TODO: Without `any` type, Flow says "Property cannot be accessed on any
|
|
|
// member of intersection type." Whyyyyyy.
|
|
|
|
|
|
|
|
|
var root = container._reactRootContainer;
|
|
|
var fiberRoot;
|
|
|
|
|
|
if (!root) {
|
|
|
// Initial mount
|
|
|
root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
|
|
|
fiberRoot = root._internalRoot;
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
var originalCallback = callback;
|
|
|
|
|
|
callback = function () {
|
|
|
var instance = getPublicRootInstance(fiberRoot);
|
|
|
originalCallback.call(instance);
|
|
|
};
|
|
|
} // Initial mount should not be batched.
|
|
|
|
|
|
|
|
|
unbatchedUpdates(function () {
|
|
|
updateContainer(children, fiberRoot, parentComponent, callback);
|
|
|
});
|
|
|
} else {
|
|
|
fiberRoot = root._internalRoot;
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
var _originalCallback = callback;
|
|
|
|
|
|
callback = function () {
|
|
|
var instance = getPublicRootInstance(fiberRoot);
|
|
|
|
|
|
_originalCallback.call(instance);
|
|
|
};
|
|
|
} // Update
|
|
|
|
|
|
|
|
|
updateContainer(children, fiberRoot, parentComponent, callback);
|
|
|
}
|
|
|
|
|
|
return getPublicRootInstance(fiberRoot);
|
|
|
}
|
|
|
|
|
|
function findDOMNode(componentOrElement) {
|
|
|
{
|
|
|
var owner = ReactCurrentOwner$3.current;
|
|
|
|
|
|
if (owner !== null && owner.stateNode !== null) {
|
|
|
var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
|
|
|
|
|
|
if (!warnedAboutRefsInRender) {
|
|
|
error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component');
|
|
|
}
|
|
|
|
|
|
owner.stateNode._warnedAboutRefsInRender = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (componentOrElement == null) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
if (componentOrElement.nodeType === ELEMENT_NODE) {
|
|
|
return componentOrElement;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
|
|
|
}
|
|
|
}
|
|
|
function hydrate(element, container, callback) {
|
|
|
if (!isValidContainer(container)) {
|
|
|
{
|
|
|
throw Error( "Target container is not a DOM element." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
|
|
|
|
|
|
if (isModernRoot) {
|
|
|
error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
|
|
|
}
|
|
|
} // TODO: throw or warn if we couldn't hydrate?
|
|
|
|
|
|
|
|
|
return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
|
|
|
}
|
|
|
function render(element, container, callback) {
|
|
|
if (!isValidContainer(container)) {
|
|
|
{
|
|
|
throw Error( "Target container is not a DOM element." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
|
|
|
|
|
|
if (isModernRoot) {
|
|
|
error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
|
|
|
}
|
|
|
function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
|
|
|
if (!isValidContainer(containerNode)) {
|
|
|
{
|
|
|
throw Error( "Target container is not a DOM element." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!(parentComponent != null && has(parentComponent))) {
|
|
|
{
|
|
|
throw Error( "parentComponent must be a valid React Component" );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
|
|
|
}
|
|
|
function unmountComponentAtNode(container) {
|
|
|
if (!isValidContainer(container)) {
|
|
|
{
|
|
|
throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;
|
|
|
|
|
|
if (isModernRoot) {
|
|
|
error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (container._reactRootContainer) {
|
|
|
{
|
|
|
var rootEl = getReactRootElementInContainer(container);
|
|
|
var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
|
|
|
|
|
|
if (renderedByDifferentReact) {
|
|
|
error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
|
|
|
}
|
|
|
} // Unmount should not be batched.
|
|
|
|
|
|
|
|
|
unbatchedUpdates(function () {
|
|
|
legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
|
|
|
// $FlowFixMe This should probably use `delete container._reactRootContainer`
|
|
|
container._reactRootContainer = null;
|
|
|
unmarkContainerAsRoot(container);
|
|
|
});
|
|
|
}); // If you call unmountComponentAtNode twice in quick succession, you'll
|
|
|
// get `true` twice. That's probably fine?
|
|
|
|
|
|
return true;
|
|
|
} else {
|
|
|
{
|
|
|
var _rootEl = getReactRootElementInContainer(container);
|
|
|
|
|
|
var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node.
|
|
|
|
|
|
var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
|
|
|
|
|
|
if (hasNonRootReactChild) {
|
|
|
error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
|
|
|
implementation) {
|
|
|
var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
|
return {
|
|
|
// This tag allow us to uniquely identify this as a React Portal
|
|
|
$$typeof: REACT_PORTAL_TYPE,
|
|
|
key: key == null ? null : '' + key,
|
|
|
children: children,
|
|
|
containerInfo: containerInfo,
|
|
|
implementation: implementation
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var ReactVersion = '16.14.0';
|
|
|
|
|
|
setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
|
|
|
setAttemptContinuousHydration(attemptContinuousHydration$1);
|
|
|
setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
|
|
|
var didWarnAboutUnstableCreatePortal = false;
|
|
|
|
|
|
{
|
|
|
if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
|
|
|
Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
|
|
|
Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
|
|
|
error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
setRestoreImplementation(restoreControlledState$3);
|
|
|
setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
|
|
|
|
|
|
function createPortal$1(children, container) {
|
|
|
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
|
|
|
|
if (!isValidContainer(container)) {
|
|
|
{
|
|
|
throw Error( "Target container is not a DOM element." );
|
|
|
}
|
|
|
} // TODO: pass ReactDOM portal implementation as third argument
|
|
|
// $FlowFixMe The Flow type is opaque but there's no way to actually create it.
|
|
|
|
|
|
|
|
|
return createPortal(children, container, null, key);
|
|
|
}
|
|
|
|
|
|
function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
|
|
|
|
|
|
return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
|
|
|
}
|
|
|
|
|
|
function unstable_createPortal(children, container) {
|
|
|
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
|
|
|
|
{
|
|
|
if (!didWarnAboutUnstableCreatePortal) {
|
|
|
didWarnAboutUnstableCreatePortal = true;
|
|
|
|
|
|
warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return createPortal$1(children, container, key);
|
|
|
}
|
|
|
|
|
|
var Internals = {
|
|
|
// Keep in sync with ReactDOMUnstableNativeDependencies.js
|
|
|
// ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
|
|
|
Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
|
|
|
};
|
|
|
var foundDevTools = injectIntoDevTools({
|
|
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
|
|
bundleType: 1 ,
|
|
|
version: ReactVersion,
|
|
|
rendererPackageName: 'react-dom'
|
|
|
});
|
|
|
|
|
|
{
|
|
|
if (!foundDevTools && canUseDOM && window.top === window.self) {
|
|
|
// If we're in Chrome or Firefox, provide a download link if not installed.
|
|
|
if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
|
|
|
var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
|
|
|
|
|
|
if (/^(https?|file):$/.test(protocol)) {
|
|
|
// eslint-disable-next-line react-internal/no-production-logging
|
|
|
console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
|
|
exports.createPortal = createPortal$1;
|
|
|
exports.findDOMNode = findDOMNode;
|
|
|
exports.flushSync = flushSync;
|
|
|
exports.hydrate = hydrate;
|
|
|
exports.render = render;
|
|
|
exports.unmountComponentAtNode = unmountComponentAtNode;
|
|
|
exports.unstable_batchedUpdates = batchedUpdates$1;
|
|
|
exports.unstable_createPortal = unstable_createPortal;
|
|
|
exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
|
|
|
exports.version = ReactVersion;
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react-dom/index.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/react-dom/index.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
function checkDCE() {
|
|
|
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
|
if (
|
|
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
|
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
|
|
) {
|
|
|
return;
|
|
|
}
|
|
|
if (true) {
|
|
|
// This branch is unreachable because this function is only called
|
|
|
// in production, but the condition is true only in development.
|
|
|
// Therefore if the branch is still here, dead code elimination wasn't
|
|
|
// properly applied.
|
|
|
// Don't change the message. React DevTools relies on it. Also make sure
|
|
|
// this message doesn't occur elsewhere in this function, or it will cause
|
|
|
// a false positive.
|
|
|
throw new Error('^_^');
|
|
|
}
|
|
|
try {
|
|
|
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
|
} catch (err) {
|
|
|
// DevTools shouldn't crash React, no matter what.
|
|
|
// We should still report in case we break this code.
|
|
|
console.error(err);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (false) {} else {
|
|
|
module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "./node_modules/react-dom/cjs/react-dom.development.js");
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/** @license React v16.13.1
|
|
|
* react-is.development.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (true) {
|
|
|
(function() {
|
|
|
'use strict';
|
|
|
|
|
|
// 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
|
|
|
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
|
|
|
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
|
var REACT_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 REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
|
|
|
|
function isValidElementType(type) {
|
|
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
|
}
|
|
|
|
|
|
function typeOf(object) {
|
|
|
if (typeof object === 'object' && object !== null) {
|
|
|
var $$typeof = object.$$typeof;
|
|
|
|
|
|
switch ($$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
var type = object.type;
|
|
|
|
|
|
switch (type) {
|
|
|
case REACT_ASYNC_MODE_TYPE:
|
|
|
case REACT_CONCURRENT_MODE_TYPE:
|
|
|
case REACT_FRAGMENT_TYPE:
|
|
|
case REACT_PROFILER_TYPE:
|
|
|
case REACT_STRICT_MODE_TYPE:
|
|
|
case REACT_SUSPENSE_TYPE:
|
|
|
return type;
|
|
|
|
|
|
default:
|
|
|
var $$typeofType = type && type.$$typeof;
|
|
|
|
|
|
switch ($$typeofType) {
|
|
|
case REACT_CONTEXT_TYPE:
|
|
|
case REACT_FORWARD_REF_TYPE:
|
|
|
case REACT_LAZY_TYPE:
|
|
|
case REACT_MEMO_TYPE:
|
|
|
case REACT_PROVIDER_TYPE:
|
|
|
return $$typeofType;
|
|
|
|
|
|
default:
|
|
|
return $$typeof;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
return $$typeof;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
} // AsyncMode is deprecated along with isAsyncMode
|
|
|
|
|
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
|
var Element = REACT_ELEMENT_TYPE;
|
|
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
|
var Lazy = REACT_LAZY_TYPE;
|
|
|
var Memo = REACT_MEMO_TYPE;
|
|
|
var Portal = REACT_PORTAL_TYPE;
|
|
|
var Profiler = REACT_PROFILER_TYPE;
|
|
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
|
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
|
|
|
|
function isAsyncMode(object) {
|
|
|
{
|
|
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
|
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
|
|
|
|
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
|
}
|
|
|
function isConcurrentMode(object) {
|
|
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
|
}
|
|
|
function isContextConsumer(object) {
|
|
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
|
}
|
|
|
function isContextProvider(object) {
|
|
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
|
}
|
|
|
function isElement(object) {
|
|
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
|
}
|
|
|
function isForwardRef(object) {
|
|
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
|
}
|
|
|
function isFragment(object) {
|
|
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
|
}
|
|
|
function isLazy(object) {
|
|
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
|
}
|
|
|
function isMemo(object) {
|
|
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
|
}
|
|
|
function isPortal(object) {
|
|
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
|
}
|
|
|
function isProfiler(object) {
|
|
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
|
}
|
|
|
function isStrictMode(object) {
|
|
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
|
}
|
|
|
function isSuspense(object) {
|
|
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
|
}
|
|
|
|
|
|
exports.AsyncMode = AsyncMode;
|
|
|
exports.ConcurrentMode = ConcurrentMode;
|
|
|
exports.ContextConsumer = ContextConsumer;
|
|
|
exports.ContextProvider = ContextProvider;
|
|
|
exports.Element = Element;
|
|
|
exports.ForwardRef = ForwardRef;
|
|
|
exports.Fragment = Fragment;
|
|
|
exports.Lazy = Lazy;
|
|
|
exports.Memo = Memo;
|
|
|
exports.Portal = Portal;
|
|
|
exports.Profiler = Profiler;
|
|
|
exports.StrictMode = StrictMode;
|
|
|
exports.Suspense = Suspense;
|
|
|
exports.isAsyncMode = isAsyncMode;
|
|
|
exports.isConcurrentMode = isConcurrentMode;
|
|
|
exports.isContextConsumer = isContextConsumer;
|
|
|
exports.isContextProvider = isContextProvider;
|
|
|
exports.isElement = isElement;
|
|
|
exports.isForwardRef = isForwardRef;
|
|
|
exports.isFragment = isFragment;
|
|
|
exports.isLazy = isLazy;
|
|
|
exports.isMemo = isMemo;
|
|
|
exports.isPortal = isPortal;
|
|
|
exports.isProfiler = isProfiler;
|
|
|
exports.isStrictMode = isStrictMode;
|
|
|
exports.isSuspense = isSuspense;
|
|
|
exports.isValidElementType = isValidElementType;
|
|
|
exports.typeOf = typeOf;
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react-is/index.js":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./node_modules/react-is/index.js ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
if (false) {} else {
|
|
|
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react/cjs/react.development.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/react/cjs/react.development.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/** @license React v16.14.0
|
|
|
* react.development.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (true) {
|
|
|
(function() {
|
|
|
'use strict';
|
|
|
|
|
|
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
|
|
|
var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
|
|
|
|
|
|
var ReactVersion = '16.14.0';
|
|
|
|
|
|
// 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 REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Keeps track of the current dispatcher.
|
|
|
*/
|
|
|
var ReactCurrentDispatcher = {
|
|
|
/**
|
|
|
* @internal
|
|
|
* @type {ReactComponent}
|
|
|
*/
|
|
|
current: null
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Keeps track of the current batch's configuration such as how long an update
|
|
|
* should suspend for if it needs to.
|
|
|
*/
|
|
|
var ReactCurrentBatchConfig = {
|
|
|
suspense: null
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* Keeps track of the current owner.
|
|
|
*
|
|
|
* The current owner is the component who should own any components that are
|
|
|
* currently being constructed.
|
|
|
*/
|
|
|
var ReactCurrentOwner = {
|
|
|
/**
|
|
|
* @internal
|
|
|
* @type {ReactComponent}
|
|
|
*/
|
|
|
current: null
|
|
|
};
|
|
|
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
var Resolved = 1;
|
|
|
function refineResolvedLazyComponent(lazyComponent) {
|
|
|
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
|
}
|
|
|
|
|
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
|
var functionName = innerType.displayName || innerType.name || '';
|
|
|
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
|
}
|
|
|
|
|
|
function getComponentName(type) {
|
|
|
if (type == null) {
|
|
|
// Host root, text node or just invalid type.
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (typeof type.tag === 'number') {
|
|
|
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 = {};
|
|
|
var currentlyValidatingElement = null;
|
|
|
function setCurrentlyValidatingElement(element) {
|
|
|
{
|
|
|
currentlyValidatingElement = element;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
// Stack implementation injected by the current renderer.
|
|
|
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
|
|
|
|
ReactDebugCurrentFrame.getStackAddendum = function () {
|
|
|
var stack = ''; // Add an extra top frame while an element is being validated
|
|
|
|
|
|
if (currentlyValidatingElement) {
|
|
|
var name = getComponentName(currentlyValidatingElement.type);
|
|
|
var owner = currentlyValidatingElement._owner;
|
|
|
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
|
|
} // Delegate to the injected renderer-specific implementation
|
|
|
|
|
|
|
|
|
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
|
|
|
|
if (impl) {
|
|
|
stack += impl() || '';
|
|
|
}
|
|
|
|
|
|
return stack;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Used by act() to track whether you're inside an act() scope.
|
|
|
*/
|
|
|
var IsSomeRendererActing = {
|
|
|
current: false
|
|
|
};
|
|
|
|
|
|
var ReactSharedInternals = {
|
|
|
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
|
|
ReactCurrentBatchConfig: ReactCurrentBatchConfig,
|
|
|
ReactCurrentOwner: ReactCurrentOwner,
|
|
|
IsSomeRendererActing: IsSomeRendererActing,
|
|
|
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
|
assign: _assign
|
|
|
};
|
|
|
|
|
|
{
|
|
|
_assign(ReactSharedInternals, {
|
|
|
// These should not be included in production.
|
|
|
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
|
|
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
|
|
// TODO: remove in React 17.0.
|
|
|
ReactComponentTreeHook: {}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 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) {}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
|
|
|
|
function warnNoop(publicInstance, callerName) {
|
|
|
{
|
|
|
var _constructor = publicInstance.constructor;
|
|
|
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
|
|
var warningKey = componentName + "." + callerName;
|
|
|
|
|
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
|
|
|
|
|
|
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* This is the abstract API for an update queue.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var ReactNoopUpdateQueue = {
|
|
|
/**
|
|
|
* Checks whether or not this composite component is mounted.
|
|
|
* @param {ReactClass} publicInstance The instance we want to test.
|
|
|
* @return {boolean} True if mounted, false otherwise.
|
|
|
* @protected
|
|
|
* @final
|
|
|
*/
|
|
|
isMounted: function (publicInstance) {
|
|
|
return false;
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* Forces an update. This should only be invoked when it is known with
|
|
|
* certainty that we are **not** in a DOM transaction.
|
|
|
*
|
|
|
* You may want to call this when you know that some deeper aspect of the
|
|
|
* component's state has changed but `setState` was not called.
|
|
|
*
|
|
|
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
|
* `componentWillUpdate` and `componentDidUpdate`.
|
|
|
*
|
|
|
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
|
* @param {?function} callback Called after component is updated.
|
|
|
* @param {?string} callerName name of the calling function in the public API.
|
|
|
* @internal
|
|
|
*/
|
|
|
enqueueForceUpdate: function (publicInstance, callback, callerName) {
|
|
|
warnNoop(publicInstance, 'forceUpdate');
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
|
* You should treat `this.state` as immutable.
|
|
|
*
|
|
|
* There is no guarantee that `this.state` will be immediately updated, so
|
|
|
* accessing `this.state` after calling this method may return the old value.
|
|
|
*
|
|
|
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
|
* @param {object} completeState Next state.
|
|
|
* @param {?function} callback Called after component is updated.
|
|
|
* @param {?string} callerName name of the calling function in the public API.
|
|
|
* @internal
|
|
|
*/
|
|
|
enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
|
|
|
warnNoop(publicInstance, 'replaceState');
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* Sets a subset of the state. This only exists because _pendingState is
|
|
|
* internal. This provides a merging strategy that is not available to deep
|
|
|
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
|
* during the merge.
|
|
|
*
|
|
|
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
|
* @param {object} partialState Next partial state to be merged with state.
|
|
|
* @param {?function} callback Called after component is updated.
|
|
|
* @param {?string} Name of the calling function in the public API.
|
|
|
* @internal
|
|
|
*/
|
|
|
enqueueSetState: function (publicInstance, partialState, callback, callerName) {
|
|
|
warnNoop(publicInstance, 'setState');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var emptyObject = {};
|
|
|
|
|
|
{
|
|
|
Object.freeze(emptyObject);
|
|
|
}
|
|
|
/**
|
|
|
* Base class helpers for the updating state of a component.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function Component(props, context, updater) {
|
|
|
this.props = props;
|
|
|
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
|
|
|
|
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
|
|
|
// renderer.
|
|
|
|
|
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
|
}
|
|
|
|
|
|
Component.prototype.isReactComponent = {};
|
|
|
/**
|
|
|
* Sets a subset of the state. Always use this to mutate
|
|
|
* state. You should treat `this.state` as immutable.
|
|
|
*
|
|
|
* There is no guarantee that `this.state` will be immediately updated, so
|
|
|
* accessing `this.state` after calling this method may return the old value.
|
|
|
*
|
|
|
* There is no guarantee that calls to `setState` will run synchronously,
|
|
|
* as they may eventually be batched together. You can provide an optional
|
|
|
* callback that will be executed when the call to setState is actually
|
|
|
* completed.
|
|
|
*
|
|
|
* When a function is provided to setState, it will be called at some point in
|
|
|
* the future (not synchronously). It will be called with the up to date
|
|
|
* component arguments (state, props, context). These values can be different
|
|
|
* from this.* because your function may be called after receiveProps but before
|
|
|
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
|
* assigned to this.
|
|
|
*
|
|
|
* @param {object|function} partialState Next partial state or function to
|
|
|
* produce next partial state to be merged with current state.
|
|
|
* @param {?function} callback Called after state is updated.
|
|
|
* @final
|
|
|
* @protected
|
|
|
*/
|
|
|
|
|
|
Component.prototype.setState = function (partialState, callback) {
|
|
|
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
|
|
|
{
|
|
|
throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
|
};
|
|
|
/**
|
|
|
* Forces an update. This should only be invoked when it is known with
|
|
|
* certainty that we are **not** in a DOM transaction.
|
|
|
*
|
|
|
* You may want to call this when you know that some deeper aspect of the
|
|
|
* component's state has changed but `setState` was not called.
|
|
|
*
|
|
|
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
|
* `componentWillUpdate` and `componentDidUpdate`.
|
|
|
*
|
|
|
* @param {?function} callback Called after update is complete.
|
|
|
* @final
|
|
|
* @protected
|
|
|
*/
|
|
|
|
|
|
|
|
|
Component.prototype.forceUpdate = function (callback) {
|
|
|
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
|
};
|
|
|
/**
|
|
|
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
|
* we would like to deprecate them, we're not going to move them over to this
|
|
|
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
|
*/
|
|
|
|
|
|
|
|
|
{
|
|
|
var deprecatedAPIs = {
|
|
|
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
|
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
|
};
|
|
|
|
|
|
var defineDeprecationWarning = function (methodName, info) {
|
|
|
Object.defineProperty(Component.prototype, methodName, {
|
|
|
get: function () {
|
|
|
warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
|
|
|
|
|
|
return undefined;
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
|
|
|
for (var fnName in deprecatedAPIs) {
|
|
|
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
|
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function ComponentDummy() {}
|
|
|
|
|
|
ComponentDummy.prototype = Component.prototype;
|
|
|
/**
|
|
|
* Convenience component with default shallow equality check for sCU.
|
|
|
*/
|
|
|
|
|
|
function PureComponent(props, context, updater) {
|
|
|
this.props = props;
|
|
|
this.context = context; // If a component has string refs, we will assign a different object later.
|
|
|
|
|
|
this.refs = emptyObject;
|
|
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
|
}
|
|
|
|
|
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
|
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
|
|
|
|
|
|
_assign(pureComponentPrototype, Component.prototype);
|
|
|
|
|
|
pureComponentPrototype.isPureReactComponent = true;
|
|
|
|
|
|
// an immutable object with a single mutable value
|
|
|
function createRef() {
|
|
|
var refObject = {
|
|
|
current: null
|
|
|
};
|
|
|
|
|
|
{
|
|
|
Object.seal(refObject);
|
|
|
}
|
|
|
|
|
|
return refObject;
|
|
|
}
|
|
|
|
|
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
|
var RESERVED_PROPS = {
|
|
|
key: true,
|
|
|
ref: true,
|
|
|
__self: true,
|
|
|
__source: true
|
|
|
};
|
|
|
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
|
|
|
|
{
|
|
|
didWarnAboutStringRefs = {};
|
|
|
}
|
|
|
|
|
|
function hasValidRef(config) {
|
|
|
{
|
|
|
if (hasOwnProperty.call(config, 'ref')) {
|
|
|
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
|
|
|
|
|
|
if (getter && getter.isReactWarning) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return config.ref !== undefined;
|
|
|
}
|
|
|
|
|
|
function hasValidKey(config) {
|
|
|
{
|
|
|
if (hasOwnProperty.call(config, 'key')) {
|
|
|
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
|
|
|
|
|
|
if (getter && getter.isReactWarning) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return config.key !== undefined;
|
|
|
}
|
|
|
|
|
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
|
var warnAboutAccessingKey = function () {
|
|
|
{
|
|
|
if (!specialPropKeyWarningShown) {
|
|
|
specialPropKeyWarningShown = true;
|
|
|
|
|
|
error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
warnAboutAccessingKey.isReactWarning = true;
|
|
|
Object.defineProperty(props, 'key', {
|
|
|
get: warnAboutAccessingKey,
|
|
|
configurable: true
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function defineRefPropWarningGetter(props, displayName) {
|
|
|
var warnAboutAccessingRef = function () {
|
|
|
{
|
|
|
if (!specialPropRefWarningShown) {
|
|
|
specialPropRefWarningShown = true;
|
|
|
|
|
|
error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
warnAboutAccessingRef.isReactWarning = true;
|
|
|
Object.defineProperty(props, 'ref', {
|
|
|
get: warnAboutAccessingRef,
|
|
|
configurable: true
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
|
{
|
|
|
if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
|
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
|
|
|
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
|
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
|
|
|
|
|
|
didWarnAboutStringRefs[componentName] = true;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Factory method to create a new React element. This no longer adheres to
|
|
|
* the class pattern, so do not use new to call it. Also, instanceof check
|
|
|
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
|
|
|
* if something is a React Element.
|
|
|
*
|
|
|
* @param {*} type
|
|
|
* @param {*} props
|
|
|
* @param {*} key
|
|
|
* @param {string|object} ref
|
|
|
* @param {*} owner
|
|
|
* @param {*} self A *temporary* helper to detect places where `this` is
|
|
|
* different from the `owner` when React.createElement is called, so that we
|
|
|
* can warn. We want to get rid of owner and replace string `ref`s with arrow
|
|
|
* functions, and as long as `this` and owner are the same, there will be no
|
|
|
* change in behavior.
|
|
|
* @param {*} source An annotation object (added by a transpiler or otherwise)
|
|
|
* indicating filename, line number, and/or other information.
|
|
|
* @internal
|
|
|
*/
|
|
|
|
|
|
|
|
|
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
|
var element = {
|
|
|
// This tag allows us to uniquely identify this as a React Element
|
|
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
|
// Built-in properties that belong on the element
|
|
|
type: type,
|
|
|
key: key,
|
|
|
ref: ref,
|
|
|
props: props,
|
|
|
// Record the component responsible for creating this element.
|
|
|
_owner: owner
|
|
|
};
|
|
|
|
|
|
{
|
|
|
// The validation flag is currently mutative. We put it on
|
|
|
// an external backing store so that we can freeze the whole object.
|
|
|
// This can be replaced with a WeakMap once they are implemented in
|
|
|
// commonly used development environments.
|
|
|
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
|
|
|
// the validation flag non-enumerable (where possible, which should
|
|
|
// include every environment we run tests in), so the test framework
|
|
|
// ignores it.
|
|
|
|
|
|
Object.defineProperty(element._store, 'validated', {
|
|
|
configurable: false,
|
|
|
enumerable: false,
|
|
|
writable: true,
|
|
|
value: false
|
|
|
}); // self and source are DEV only properties.
|
|
|
|
|
|
Object.defineProperty(element, '_self', {
|
|
|
configurable: false,
|
|
|
enumerable: false,
|
|
|
writable: false,
|
|
|
value: self
|
|
|
}); // Two elements created in two different places should be considered
|
|
|
// equal for testing purposes and therefore we hide it from enumeration.
|
|
|
|
|
|
Object.defineProperty(element, '_source', {
|
|
|
configurable: false,
|
|
|
enumerable: false,
|
|
|
writable: false,
|
|
|
value: source
|
|
|
});
|
|
|
|
|
|
if (Object.freeze) {
|
|
|
Object.freeze(element.props);
|
|
|
Object.freeze(element);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return element;
|
|
|
};
|
|
|
/**
|
|
|
* Create and return a new ReactElement of the given type.
|
|
|
* See https://reactjs.org/docs/react-api.html#createelement
|
|
|
*/
|
|
|
|
|
|
function createElement(type, config, children) {
|
|
|
var propName; // Reserved names are extracted
|
|
|
|
|
|
var props = {};
|
|
|
var key = null;
|
|
|
var ref = null;
|
|
|
var self = null;
|
|
|
var source = null;
|
|
|
|
|
|
if (config != null) {
|
|
|
if (hasValidRef(config)) {
|
|
|
ref = config.ref;
|
|
|
|
|
|
{
|
|
|
warnIfStringRefCannotBeAutoConverted(config);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (hasValidKey(config)) {
|
|
|
key = '' + config.key;
|
|
|
}
|
|
|
|
|
|
self = config.__self === undefined ? null : config.__self;
|
|
|
source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
|
|
|
|
|
|
for (propName in config) {
|
|
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
|
props[propName] = config[propName];
|
|
|
}
|
|
|
}
|
|
|
} // Children can be more than one argument, and those are transferred onto
|
|
|
// the newly allocated props object.
|
|
|
|
|
|
|
|
|
var childrenLength = arguments.length - 2;
|
|
|
|
|
|
if (childrenLength === 1) {
|
|
|
props.children = children;
|
|
|
} else if (childrenLength > 1) {
|
|
|
var childArray = Array(childrenLength);
|
|
|
|
|
|
for (var i = 0; i < childrenLength; i++) {
|
|
|
childArray[i] = arguments[i + 2];
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (Object.freeze) {
|
|
|
Object.freeze(childArray);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
props.children = childArray;
|
|
|
} // Resolve default props
|
|
|
|
|
|
|
|
|
if (type && type.defaultProps) {
|
|
|
var defaultProps = type.defaultProps;
|
|
|
|
|
|
for (propName in defaultProps) {
|
|
|
if (props[propName] === undefined) {
|
|
|
props[propName] = defaultProps[propName];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
{
|
|
|
if (key || ref) {
|
|
|
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
|
|
|
|
if (key) {
|
|
|
defineKeyPropWarningGetter(props, displayName);
|
|
|
}
|
|
|
|
|
|
if (ref) {
|
|
|
defineRefPropWarningGetter(props, displayName);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
|
}
|
|
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
|
return newElement;
|
|
|
}
|
|
|
/**
|
|
|
* Clone and return a new ReactElement using element as the starting point.
|
|
|
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
|
*/
|
|
|
|
|
|
function cloneElement(element, config, children) {
|
|
|
if (!!(element === null || element === undefined)) {
|
|
|
{
|
|
|
throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var propName; // Original props are copied
|
|
|
|
|
|
var props = _assign({}, element.props); // Reserved names are extracted
|
|
|
|
|
|
|
|
|
var key = element.key;
|
|
|
var ref = element.ref; // Self is preserved since the owner is preserved.
|
|
|
|
|
|
var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
|
|
|
// transpiler, and the original source is probably a better indicator of the
|
|
|
// true owner.
|
|
|
|
|
|
var source = element._source; // Owner will be preserved, unless ref is overridden
|
|
|
|
|
|
var owner = element._owner;
|
|
|
|
|
|
if (config != null) {
|
|
|
if (hasValidRef(config)) {
|
|
|
// Silently steal the ref from the parent.
|
|
|
ref = config.ref;
|
|
|
owner = ReactCurrentOwner.current;
|
|
|
}
|
|
|
|
|
|
if (hasValidKey(config)) {
|
|
|
key = '' + config.key;
|
|
|
} // Remaining properties override existing props
|
|
|
|
|
|
|
|
|
var defaultProps;
|
|
|
|
|
|
if (element.type && element.type.defaultProps) {
|
|
|
defaultProps = element.type.defaultProps;
|
|
|
}
|
|
|
|
|
|
for (propName in config) {
|
|
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
|
if (config[propName] === undefined && defaultProps !== undefined) {
|
|
|
// Resolve default props
|
|
|
props[propName] = defaultProps[propName];
|
|
|
} else {
|
|
|
props[propName] = config[propName];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} // Children can be more than one argument, and those are transferred onto
|
|
|
// the newly allocated props object.
|
|
|
|
|
|
|
|
|
var childrenLength = arguments.length - 2;
|
|
|
|
|
|
if (childrenLength === 1) {
|
|
|
props.children = children;
|
|
|
} else if (childrenLength > 1) {
|
|
|
var childArray = Array(childrenLength);
|
|
|
|
|
|
for (var i = 0; i < childrenLength; i++) {
|
|
|
childArray[i] = arguments[i + 2];
|
|
|
}
|
|
|
|
|
|
props.children = childArray;
|
|
|
}
|
|
|
|
|
|
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
|
}
|
|
|
/**
|
|
|
* Verifies the object is a ReactElement.
|
|
|
* See https://reactjs.org/docs/react-api.html#isvalidelement
|
|
|
* @param {?object} object
|
|
|
* @return {boolean} True if `object` is a ReactElement.
|
|
|
* @final
|
|
|
*/
|
|
|
|
|
|
function isValidElement(object) {
|
|
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
|
}
|
|
|
|
|
|
var SEPARATOR = '.';
|
|
|
var SUBSEPARATOR = ':';
|
|
|
/**
|
|
|
* Escape and wrap key so it is safe to use as a reactid
|
|
|
*
|
|
|
* @param {string} key to be escaped.
|
|
|
* @return {string} the escaped key.
|
|
|
*/
|
|
|
|
|
|
function escape(key) {
|
|
|
var escapeRegex = /[=:]/g;
|
|
|
var escaperLookup = {
|
|
|
'=': '=0',
|
|
|
':': '=2'
|
|
|
};
|
|
|
var escapedString = ('' + key).replace(escapeRegex, function (match) {
|
|
|
return escaperLookup[match];
|
|
|
});
|
|
|
return '$' + escapedString;
|
|
|
}
|
|
|
/**
|
|
|
* TODO: Test that a single child and an array with one item have the same key
|
|
|
* pattern.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var didWarnAboutMaps = false;
|
|
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
|
|
|
|
function escapeUserProvidedKey(text) {
|
|
|
return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
|
|
|
}
|
|
|
|
|
|
var POOL_SIZE = 10;
|
|
|
var traverseContextPool = [];
|
|
|
|
|
|
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
|
|
|
if (traverseContextPool.length) {
|
|
|
var traverseContext = traverseContextPool.pop();
|
|
|
traverseContext.result = mapResult;
|
|
|
traverseContext.keyPrefix = keyPrefix;
|
|
|
traverseContext.func = mapFunction;
|
|
|
traverseContext.context = mapContext;
|
|
|
traverseContext.count = 0;
|
|
|
return traverseContext;
|
|
|
} else {
|
|
|
return {
|
|
|
result: mapResult,
|
|
|
keyPrefix: keyPrefix,
|
|
|
func: mapFunction,
|
|
|
context: mapContext,
|
|
|
count: 0
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function releaseTraverseContext(traverseContext) {
|
|
|
traverseContext.result = null;
|
|
|
traverseContext.keyPrefix = null;
|
|
|
traverseContext.func = null;
|
|
|
traverseContext.context = null;
|
|
|
traverseContext.count = 0;
|
|
|
|
|
|
if (traverseContextPool.length < POOL_SIZE) {
|
|
|
traverseContextPool.push(traverseContext);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @param {?*} children Children tree container.
|
|
|
* @param {!string} nameSoFar Name of the key path so far.
|
|
|
* @param {!function} callback Callback to invoke with each child found.
|
|
|
* @param {?*} traverseContext Used to pass information throughout the traversal
|
|
|
* process.
|
|
|
* @return {!number} The number of children in this subtree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
|
|
|
var type = typeof children;
|
|
|
|
|
|
if (type === 'undefined' || type === 'boolean') {
|
|
|
// All of the above are perceived as null.
|
|
|
children = null;
|
|
|
}
|
|
|
|
|
|
var invokeCallback = false;
|
|
|
|
|
|
if (children === null) {
|
|
|
invokeCallback = true;
|
|
|
} else {
|
|
|
switch (type) {
|
|
|
case 'string':
|
|
|
case 'number':
|
|
|
invokeCallback = true;
|
|
|
break;
|
|
|
|
|
|
case 'object':
|
|
|
switch (children.$$typeof) {
|
|
|
case REACT_ELEMENT_TYPE:
|
|
|
case REACT_PORTAL_TYPE:
|
|
|
invokeCallback = true;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (invokeCallback) {
|
|
|
callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
|
|
|
// so that it's consistent if the number of children grows.
|
|
|
nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
var child;
|
|
|
var nextName;
|
|
|
var subtreeCount = 0; // Count of children found in the current subtree.
|
|
|
|
|
|
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
|
|
|
|
if (Array.isArray(children)) {
|
|
|
for (var i = 0; i < children.length; i++) {
|
|
|
child = children[i];
|
|
|
nextName = nextNamePrefix + getComponentKey(child, i);
|
|
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
|
}
|
|
|
} else {
|
|
|
var iteratorFn = getIteratorFn(children);
|
|
|
|
|
|
if (typeof iteratorFn === 'function') {
|
|
|
|
|
|
{
|
|
|
// Warn about using Maps as children
|
|
|
if (iteratorFn === children.entries) {
|
|
|
if (!didWarnAboutMaps) {
|
|
|
warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
|
|
|
}
|
|
|
|
|
|
didWarnAboutMaps = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var iterator = iteratorFn.call(children);
|
|
|
var step;
|
|
|
var ii = 0;
|
|
|
|
|
|
while (!(step = iterator.next()).done) {
|
|
|
child = step.value;
|
|
|
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
|
}
|
|
|
} else if (type === 'object') {
|
|
|
var addendum = '';
|
|
|
|
|
|
{
|
|
|
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
|
|
}
|
|
|
|
|
|
var childrenString = '' + children;
|
|
|
|
|
|
{
|
|
|
{
|
|
|
throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return subtreeCount;
|
|
|
}
|
|
|
/**
|
|
|
* Traverses children that are typically specified as `props.children`, but
|
|
|
* might also be specified through attributes:
|
|
|
*
|
|
|
* - `traverseAllChildren(this.props.children, ...)`
|
|
|
* - `traverseAllChildren(this.props.leftPanelChildren, ...)`
|
|
|
*
|
|
|
* The `traverseContext` is an optional argument that is passed through the
|
|
|
* entire traversal. It can be used to store accumulations or anything else that
|
|
|
* the callback might find relevant.
|
|
|
*
|
|
|
* @param {?*} children Children tree object.
|
|
|
* @param {!function} callback To invoke upon traversing each child.
|
|
|
* @param {?*} traverseContext Context for traversal.
|
|
|
* @return {!number} The number of children in this subtree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function traverseAllChildren(children, callback, traverseContext) {
|
|
|
if (children == null) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
return traverseAllChildrenImpl(children, '', callback, traverseContext);
|
|
|
}
|
|
|
/**
|
|
|
* Generate a key string that identifies a component within a set.
|
|
|
*
|
|
|
* @param {*} component A component that could contain a manual key.
|
|
|
* @param {number} index Index that is used if a manual key is not provided.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
|
|
|
|
|
|
function getComponentKey(component, index) {
|
|
|
// Do some typechecking here since we call this blindly. We want to ensure
|
|
|
// that we don't block potential future ES APIs.
|
|
|
if (typeof component === 'object' && component !== null && component.key != null) {
|
|
|
// Explicit key
|
|
|
return escape(component.key);
|
|
|
} // Implicit key determined by the index in the set
|
|
|
|
|
|
|
|
|
return index.toString(36);
|
|
|
}
|
|
|
|
|
|
function forEachSingleChild(bookKeeping, child, name) {
|
|
|
var func = bookKeeping.func,
|
|
|
context = bookKeeping.context;
|
|
|
func.call(context, child, bookKeeping.count++);
|
|
|
}
|
|
|
/**
|
|
|
* Iterates through children that are typically specified as `props.children`.
|
|
|
*
|
|
|
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
|
|
*
|
|
|
* The provided forEachFunc(child, index) will be called for each
|
|
|
* leaf child.
|
|
|
*
|
|
|
* @param {?*} children Children tree container.
|
|
|
* @param {function(*, int)} forEachFunc
|
|
|
* @param {*} forEachContext Context for forEachContext.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
|
if (children == null) {
|
|
|
return children;
|
|
|
}
|
|
|
|
|
|
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
|
|
|
traverseAllChildren(children, forEachSingleChild, traverseContext);
|
|
|
releaseTraverseContext(traverseContext);
|
|
|
}
|
|
|
|
|
|
function mapSingleChildIntoContext(bookKeeping, child, childKey) {
|
|
|
var result = bookKeeping.result,
|
|
|
keyPrefix = bookKeeping.keyPrefix,
|
|
|
func = bookKeeping.func,
|
|
|
context = bookKeeping.context;
|
|
|
var mappedChild = func.call(context, child, bookKeeping.count++);
|
|
|
|
|
|
if (Array.isArray(mappedChild)) {
|
|
|
mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
|
|
|
return c;
|
|
|
});
|
|
|
} else if (mappedChild != null) {
|
|
|
if (isValidElement(mappedChild)) {
|
|
|
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
|
|
// traverseAllChildren used to do for objects as children
|
|
|
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
|
|
|
}
|
|
|
|
|
|
result.push(mappedChild);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
|
|
var escapedPrefix = '';
|
|
|
|
|
|
if (prefix != null) {
|
|
|
escapedPrefix = escapeUserProvidedKey(prefix) + '/';
|
|
|
}
|
|
|
|
|
|
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
|
|
|
traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
|
|
|
releaseTraverseContext(traverseContext);
|
|
|
}
|
|
|
/**
|
|
|
* Maps children that are typically specified as `props.children`.
|
|
|
*
|
|
|
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
|
|
*
|
|
|
* The provided mapFunction(child, key, index) will be called for each
|
|
|
* leaf child.
|
|
|
*
|
|
|
* @param {?*} children Children tree container.
|
|
|
* @param {function(*, int)} func The map function.
|
|
|
* @param {*} context Context for mapFunction.
|
|
|
* @return {object} Object containing the ordered map of results.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function mapChildren(children, func, context) {
|
|
|
if (children == null) {
|
|
|
return children;
|
|
|
}
|
|
|
|
|
|
var result = [];
|
|
|
mapIntoWithKeyPrefixInternal(children, result, null, func, context);
|
|
|
return result;
|
|
|
}
|
|
|
/**
|
|
|
* Count the number of children that are typically specified as
|
|
|
* `props.children`.
|
|
|
*
|
|
|
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
|
|
*
|
|
|
* @param {?*} children Children tree container.
|
|
|
* @return {number} The number of children.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function countChildren(children) {
|
|
|
return traverseAllChildren(children, function () {
|
|
|
return null;
|
|
|
}, null);
|
|
|
}
|
|
|
/**
|
|
|
* Flatten a children object (typically specified as `props.children`) and
|
|
|
* return an array with appropriately re-keyed children.
|
|
|
*
|
|
|
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
|
|
*/
|
|
|
|
|
|
|
|
|
function toArray(children) {
|
|
|
var result = [];
|
|
|
mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
|
|
|
return child;
|
|
|
});
|
|
|
return result;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the first child in a collection of children and verifies that there
|
|
|
* is only one child in the collection.
|
|
|
*
|
|
|
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
|
|
*
|
|
|
* The current implementation of this function assumes that a single child gets
|
|
|
* passed without a wrapper, but the purpose of this helper function is to
|
|
|
* abstract away the particular structure of children.
|
|
|
*
|
|
|
* @param {?object} children Child collection structure.
|
|
|
* @return {ReactElement} The first and only `ReactElement` contained in the
|
|
|
* structure.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function onlyChild(children) {
|
|
|
if (!isValidElement(children)) {
|
|
|
{
|
|
|
throw Error( "React.Children.only expected to receive a single React element child." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return children;
|
|
|
}
|
|
|
|
|
|
function createContext(defaultValue, calculateChangedBits) {
|
|
|
if (calculateChangedBits === undefined) {
|
|
|
calculateChangedBits = null;
|
|
|
} else {
|
|
|
{
|
|
|
if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
|
|
|
error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var context = {
|
|
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
|
_calculateChangedBits: calculateChangedBits,
|
|
|
// As a workaround to support multiple concurrent renderers, we categorize
|
|
|
// some renderers as primary and others as secondary. We only expect
|
|
|
// there to be two concurrent renderers at most: React Native (primary) and
|
|
|
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
|
// Secondary renderers store their context values on separate fields.
|
|
|
_currentValue: defaultValue,
|
|
|
_currentValue2: defaultValue,
|
|
|
// Used to track how many concurrent renderers this context currently
|
|
|
// supports within in a single renderer. Such as parallel server rendering.
|
|
|
_threadCount: 0,
|
|
|
// These are circular
|
|
|
Provider: null,
|
|
|
Consumer: null
|
|
|
};
|
|
|
context.Provider = {
|
|
|
$$typeof: REACT_PROVIDER_TYPE,
|
|
|
_context: context
|
|
|
};
|
|
|
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
|
var hasWarnedAboutUsingConsumerProvider = false;
|
|
|
|
|
|
{
|
|
|
// A separate object, but proxies back to the original context object for
|
|
|
// backwards compatibility. It has a different $$typeof, so we can properly
|
|
|
// warn for the incorrect usage of Context as a Consumer.
|
|
|
var Consumer = {
|
|
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
|
_context: context,
|
|
|
_calculateChangedBits: context._calculateChangedBits
|
|
|
}; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
|
|
|
|
|
|
Object.defineProperties(Consumer, {
|
|
|
Provider: {
|
|
|
get: function () {
|
|
|
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
|
hasWarnedAboutUsingConsumerProvider = true;
|
|
|
|
|
|
error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
|
|
|
}
|
|
|
|
|
|
return context.Provider;
|
|
|
},
|
|
|
set: function (_Provider) {
|
|
|
context.Provider = _Provider;
|
|
|
}
|
|
|
},
|
|
|
_currentValue: {
|
|
|
get: function () {
|
|
|
return context._currentValue;
|
|
|
},
|
|
|
set: function (_currentValue) {
|
|
|
context._currentValue = _currentValue;
|
|
|
}
|
|
|
},
|
|
|
_currentValue2: {
|
|
|
get: function () {
|
|
|
return context._currentValue2;
|
|
|
},
|
|
|
set: function (_currentValue2) {
|
|
|
context._currentValue2 = _currentValue2;
|
|
|
}
|
|
|
},
|
|
|
_threadCount: {
|
|
|
get: function () {
|
|
|
return context._threadCount;
|
|
|
},
|
|
|
set: function (_threadCount) {
|
|
|
context._threadCount = _threadCount;
|
|
|
}
|
|
|
},
|
|
|
Consumer: {
|
|
|
get: function () {
|
|
|
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
|
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
|
|
|
|
error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
|
|
}
|
|
|
|
|
|
return context.Consumer;
|
|
|
}
|
|
|
}
|
|
|
}); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
|
|
|
|
|
|
context.Consumer = Consumer;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
context._currentRenderer = null;
|
|
|
context._currentRenderer2 = null;
|
|
|
}
|
|
|
|
|
|
return context;
|
|
|
}
|
|
|
|
|
|
function lazy(ctor) {
|
|
|
var lazyType = {
|
|
|
$$typeof: REACT_LAZY_TYPE,
|
|
|
_ctor: ctor,
|
|
|
// React uses these fields to store the result.
|
|
|
_status: -1,
|
|
|
_result: null
|
|
|
};
|
|
|
|
|
|
{
|
|
|
// In production, this would just set it on the object.
|
|
|
var defaultProps;
|
|
|
var propTypes;
|
|
|
Object.defineProperties(lazyType, {
|
|
|
defaultProps: {
|
|
|
configurable: true,
|
|
|
get: function () {
|
|
|
return defaultProps;
|
|
|
},
|
|
|
set: function (newDefaultProps) {
|
|
|
error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
|
|
|
|
defaultProps = newDefaultProps; // Match production behavior more closely:
|
|
|
|
|
|
Object.defineProperty(lazyType, 'defaultProps', {
|
|
|
enumerable: true
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
propTypes: {
|
|
|
configurable: true,
|
|
|
get: function () {
|
|
|
return propTypes;
|
|
|
},
|
|
|
set: function (newPropTypes) {
|
|
|
error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
|
|
|
|
|
propTypes = newPropTypes; // Match production behavior more closely:
|
|
|
|
|
|
Object.defineProperty(lazyType, 'propTypes', {
|
|
|
enumerable: true
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return lazyType;
|
|
|
}
|
|
|
|
|
|
function forwardRef(render) {
|
|
|
{
|
|
|
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
|
error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
|
} else if (typeof render !== 'function') {
|
|
|
error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
|
} else {
|
|
|
if (render.length !== 0 && render.length !== 2) {
|
|
|
error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (render != null) {
|
|
|
if (render.defaultProps != null || render.propTypes != null) {
|
|
|
error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
|
render: render
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function isValidElementType(type) {
|
|
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
|
}
|
|
|
|
|
|
function memo(type, compare) {
|
|
|
{
|
|
|
if (!isValidElementType(type)) {
|
|
|
error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
$$typeof: REACT_MEMO_TYPE,
|
|
|
type: type,
|
|
|
compare: compare === undefined ? null : compare
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function resolveDispatcher() {
|
|
|
var dispatcher = ReactCurrentDispatcher.current;
|
|
|
|
|
|
if (!(dispatcher !== null)) {
|
|
|
{
|
|
|
throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return dispatcher;
|
|
|
}
|
|
|
|
|
|
function useContext(Context, unstable_observedBits) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
|
|
|
{
|
|
|
if (unstable_observedBits !== undefined) {
|
|
|
error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
|
|
|
} // TODO: add a more generic warning for invalid values.
|
|
|
|
|
|
|
|
|
if (Context._context !== undefined) {
|
|
|
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
|
|
|
// and nobody should be using this in existing code.
|
|
|
|
|
|
if (realContext.Consumer === Context) {
|
|
|
error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
|
} else if (realContext.Provider === Context) {
|
|
|
error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return dispatcher.useContext(Context, unstable_observedBits);
|
|
|
}
|
|
|
function useState(initialState) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useState(initialState);
|
|
|
}
|
|
|
function useReducer(reducer, initialArg, init) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useReducer(reducer, initialArg, init);
|
|
|
}
|
|
|
function useRef(initialValue) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useRef(initialValue);
|
|
|
}
|
|
|
function useEffect(create, deps) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useEffect(create, deps);
|
|
|
}
|
|
|
function useLayoutEffect(create, deps) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useLayoutEffect(create, deps);
|
|
|
}
|
|
|
function useCallback(callback, deps) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useCallback(callback, deps);
|
|
|
}
|
|
|
function useMemo(create, deps) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useMemo(create, deps);
|
|
|
}
|
|
|
function useImperativeHandle(ref, create, deps) {
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
|
}
|
|
|
function useDebugValue(value, formatterFn) {
|
|
|
{
|
|
|
var dispatcher = resolveDispatcher();
|
|
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var propTypesMisspellWarningShown;
|
|
|
|
|
|
{
|
|
|
propTypesMisspellWarningShown = false;
|
|
|
}
|
|
|
|
|
|
function getDeclarationErrorAddendum() {
|
|
|
if (ReactCurrentOwner.current) {
|
|
|
var name = getComponentName(ReactCurrentOwner.current.type);
|
|
|
|
|
|
if (name) {
|
|
|
return '\n\nCheck the render method of `' + name + '`.';
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
function getSourceInfoErrorAddendum(source) {
|
|
|
if (source !== undefined) {
|
|
|
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
|
var lineNumber = source.lineNumber;
|
|
|
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
|
if (elementProps !== null && elementProps !== undefined) {
|
|
|
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
|
}
|
|
|
|
|
|
return '';
|
|
|
}
|
|
|
/**
|
|
|
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
|
* object keys are not valid. This allows us to keep track of children between
|
|
|
* updates.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var ownerHasKeyUseWarning = {};
|
|
|
|
|
|
function getCurrentComponentErrorInfo(parentType) {
|
|
|
var info = getDeclarationErrorAddendum();
|
|
|
|
|
|
if (!info) {
|
|
|
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
|
|
|
|
if (parentName) {
|
|
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return info;
|
|
|
}
|
|
|
/**
|
|
|
* Warn if the element doesn't have an explicit key assigned to it.
|
|
|
* This element is in an array. The array could grow and shrink or be
|
|
|
* reordered. All children that haven't already been validated are required to
|
|
|
* have a "key" property assigned to it. Error statuses are cached so a warning
|
|
|
* will only be shown once.
|
|
|
*
|
|
|
* @internal
|
|
|
* @param {ReactElement} element Element that requires a key.
|
|
|
* @param {*} parentType element's parent's type.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validateExplicitKey(element, parentType) {
|
|
|
if (!element._store || element._store.validated || element.key != null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
element._store.validated = true;
|
|
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
|
|
|
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
|
|
|
// property, it may be the creator of the child that's responsible for
|
|
|
// assigning it a key.
|
|
|
|
|
|
var childOwner = '';
|
|
|
|
|
|
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
|
// Give the component that originally created this child.
|
|
|
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
|
}
|
|
|
|
|
|
setCurrentlyValidatingElement(element);
|
|
|
|
|
|
{
|
|
|
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
|
}
|
|
|
|
|
|
setCurrentlyValidatingElement(null);
|
|
|
}
|
|
|
/**
|
|
|
* Ensure that every element either is passed in a static location, in an
|
|
|
* array with an explicit keys property defined, or in an object literal
|
|
|
* with valid key property.
|
|
|
*
|
|
|
* @internal
|
|
|
* @param {ReactNode} node Statically passed child of any type.
|
|
|
* @param {*} parentType node's parent's type.
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validateChildKeys(node, parentType) {
|
|
|
if (typeof node !== 'object') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (Array.isArray(node)) {
|
|
|
for (var i = 0; i < node.length; i++) {
|
|
|
var child = node[i];
|
|
|
|
|
|
if (isValidElement(child)) {
|
|
|
validateExplicitKey(child, parentType);
|
|
|
}
|
|
|
}
|
|
|
} else if (isValidElement(node)) {
|
|
|
// This element was passed in a valid location.
|
|
|
if (node._store) {
|
|
|
node._store.validated = true;
|
|
|
}
|
|
|
} else if (node) {
|
|
|
var iteratorFn = getIteratorFn(node);
|
|
|
|
|
|
if (typeof iteratorFn === 'function') {
|
|
|
// Entry iterators used to provide implicit keys,
|
|
|
// but now we print a separate warning for them later.
|
|
|
if (iteratorFn !== node.entries) {
|
|
|
var iterator = iteratorFn.call(node);
|
|
|
var step;
|
|
|
|
|
|
while (!(step = iterator.next()).done) {
|
|
|
if (isValidElement(step.value)) {
|
|
|
validateExplicitKey(step.value, parentType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Given an element, validate that its props follow the propTypes definition,
|
|
|
* provided by the type.
|
|
|
*
|
|
|
* @param {ReactElement} element
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validatePropTypes(element) {
|
|
|
{
|
|
|
var type = element.type;
|
|
|
|
|
|
if (type === null || type === undefined || typeof type === 'string') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var name = getComponentName(type);
|
|
|
var propTypes;
|
|
|
|
|
|
if (typeof type === 'function') {
|
|
|
propTypes = type.propTypes;
|
|
|
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
|
// Inner props are checked in the reconciler.
|
|
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
|
propTypes = type.propTypes;
|
|
|
} else {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (propTypes) {
|
|
|
setCurrentlyValidatingElement(element);
|
|
|
checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
|
|
|
setCurrentlyValidatingElement(null);
|
|
|
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
|
propTypesMisspellWarningShown = true;
|
|
|
|
|
|
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
|
}
|
|
|
|
|
|
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
|
|
|
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Given a fragment, validate that it can only be provided with fragment props
|
|
|
* @param {ReactElement} fragment
|
|
|
*/
|
|
|
|
|
|
|
|
|
function validateFragmentProps(fragment) {
|
|
|
{
|
|
|
setCurrentlyValidatingElement(fragment);
|
|
|
var keys = Object.keys(fragment.props);
|
|
|
|
|
|
for (var i = 0; i < keys.length; i++) {
|
|
|
var key = keys[i];
|
|
|
|
|
|
if (key !== 'children' && key !== 'key') {
|
|
|
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (fragment.ref !== null) {
|
|
|
error('Invalid attribute `ref` supplied to `React.Fragment`.');
|
|
|
}
|
|
|
|
|
|
setCurrentlyValidatingElement(null);
|
|
|
}
|
|
|
}
|
|
|
function createElementWithValidation(type, props, children) {
|
|
|
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
|
// succeed and there will likely be errors in render.
|
|
|
|
|
|
if (!validType) {
|
|
|
var info = '';
|
|
|
|
|
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
|
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
|
}
|
|
|
|
|
|
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
|
|
|
|
if (sourceInfo) {
|
|
|
info += sourceInfo;
|
|
|
} else {
|
|
|
info += getDeclarationErrorAddendum();
|
|
|
}
|
|
|
|
|
|
var typeString;
|
|
|
|
|
|
if (type === null) {
|
|
|
typeString = 'null';
|
|
|
} else if (Array.isArray(type)) {
|
|
|
typeString = 'array';
|
|
|
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
|
typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
|
|
|
info = ' Did you accidentally export a JSX literal instead of a component?';
|
|
|
} else {
|
|
|
typeString = typeof type;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
|
|
|
// TODO: Drop this when these are no longer allowed as the type argument.
|
|
|
|
|
|
if (element == null) {
|
|
|
return element;
|
|
|
} // Skip key warning if the type isn't valid since our key validation logic
|
|
|
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
|
// We don't want exception behavior to differ between dev and prod.
|
|
|
// (Rendering will throw with a helpful message and as soon as the type is
|
|
|
// fixed, the key warnings will appear.)
|
|
|
|
|
|
|
|
|
if (validType) {
|
|
|
for (var i = 2; i < arguments.length; i++) {
|
|
|
validateChildKeys(arguments[i], type);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
|
validateFragmentProps(element);
|
|
|
} else {
|
|
|
validatePropTypes(element);
|
|
|
}
|
|
|
|
|
|
return element;
|
|
|
}
|
|
|
var didWarnAboutDeprecatedCreateFactory = false;
|
|
|
function createFactoryWithValidation(type) {
|
|
|
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
|
validatedFactory.type = type;
|
|
|
|
|
|
{
|
|
|
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
|
didWarnAboutDeprecatedCreateFactory = true;
|
|
|
|
|
|
warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
|
|
|
} // Legacy hook: remove it
|
|
|
|
|
|
|
|
|
Object.defineProperty(validatedFactory, 'type', {
|
|
|
enumerable: false,
|
|
|
get: function () {
|
|
|
warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
|
|
|
|
|
|
Object.defineProperty(this, 'type', {
|
|
|
value: type
|
|
|
});
|
|
|
return type;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return validatedFactory;
|
|
|
}
|
|
|
function cloneElementWithValidation(element, props, children) {
|
|
|
var newElement = cloneElement.apply(this, arguments);
|
|
|
|
|
|
for (var i = 2; i < arguments.length; i++) {
|
|
|
validateChildKeys(arguments[i], newElement.type);
|
|
|
}
|
|
|
|
|
|
validatePropTypes(newElement);
|
|
|
return newElement;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
|
|
|
try {
|
|
|
var frozenObject = Object.freeze({});
|
|
|
var testMap = new Map([[frozenObject, null]]);
|
|
|
var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
|
|
|
// https://github.com/rollup/rollup/issues/1771
|
|
|
// TODO: we can remove these if Rollup fixes the bug.
|
|
|
|
|
|
testMap.set(0, 0);
|
|
|
testSet.add(0);
|
|
|
} catch (e) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var createElement$1 = createElementWithValidation ;
|
|
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
|
var createFactory = createFactoryWithValidation ;
|
|
|
var Children = {
|
|
|
map: mapChildren,
|
|
|
forEach: forEachChildren,
|
|
|
count: countChildren,
|
|
|
toArray: toArray,
|
|
|
only: onlyChild
|
|
|
};
|
|
|
|
|
|
exports.Children = Children;
|
|
|
exports.Component = Component;
|
|
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
|
exports.PureComponent = PureComponent;
|
|
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
|
exports.cloneElement = cloneElement$1;
|
|
|
exports.createContext = createContext;
|
|
|
exports.createElement = createElement$1;
|
|
|
exports.createFactory = createFactory;
|
|
|
exports.createRef = createRef;
|
|
|
exports.forwardRef = forwardRef;
|
|
|
exports.isValidElement = isValidElement;
|
|
|
exports.lazy = lazy;
|
|
|
exports.memo = memo;
|
|
|
exports.useCallback = useCallback;
|
|
|
exports.useContext = useContext;
|
|
|
exports.useDebugValue = useDebugValue;
|
|
|
exports.useEffect = useEffect;
|
|
|
exports.useImperativeHandle = useImperativeHandle;
|
|
|
exports.useLayoutEffect = useLayoutEffect;
|
|
|
exports.useMemo = useMemo;
|
|
|
exports.useReducer = useReducer;
|
|
|
exports.useRef = useRef;
|
|
|
exports.useState = useState;
|
|
|
exports.version = ReactVersion;
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/react/index.js":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./node_modules/react/index.js ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
if (false) {} else {
|
|
|
module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/regenerator-runtime/runtime.js":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/regenerator-runtime/runtime.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
/**
|
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
var runtime = (function (exports) {
|
|
|
"use strict";
|
|
|
|
|
|
var Op = Object.prototype;
|
|
|
var hasOwn = Op.hasOwnProperty;
|
|
|
var undefined; // More compressible than void 0.
|
|
|
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
|
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
|
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
|
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
|
|
|
|
function define(obj, key, value) {
|
|
|
Object.defineProperty(obj, key, {
|
|
|
value: value,
|
|
|
enumerable: true,
|
|
|
configurable: true,
|
|
|
writable: true
|
|
|
});
|
|
|
return obj[key];
|
|
|
}
|
|
|
try {
|
|
|
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
|
define({}, "");
|
|
|
} catch (err) {
|
|
|
define = function(obj, key, value) {
|
|
|
return obj[key] = value;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
|
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
|
var generator = Object.create(protoGenerator.prototype);
|
|
|
var context = new Context(tryLocsList || []);
|
|
|
|
|
|
// The ._invoke method unifies the implementations of the .next,
|
|
|
// .throw, and .return methods.
|
|
|
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
|
|
|
|
return generator;
|
|
|
}
|
|
|
exports.wrap = wrap;
|
|
|
|
|
|
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
|
// record like context.tryEntries[i].completion. This interface could
|
|
|
// have been (and was previously) designed to take a closure to be
|
|
|
// invoked without arguments, but in all the cases we care about we
|
|
|
// already have an existing method we want to call, so there's no need
|
|
|
// to create a new function object. We can even get away with assuming
|
|
|
// the method takes exactly one argument, since that happens to be true
|
|
|
// in every case, so we don't have to touch the arguments object. The
|
|
|
// only additional allocation required is the completion record, which
|
|
|
// has a stable shape and so hopefully should be cheap to allocate.
|
|
|
function tryCatch(fn, obj, arg) {
|
|
|
try {
|
|
|
return { type: "normal", arg: fn.call(obj, arg) };
|
|
|
} catch (err) {
|
|
|
return { type: "throw", arg: err };
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var GenStateSuspendedStart = "suspendedStart";
|
|
|
var GenStateSuspendedYield = "suspendedYield";
|
|
|
var GenStateExecuting = "executing";
|
|
|
var GenStateCompleted = "completed";
|
|
|
|
|
|
// Returning this object from the innerFn has the same effect as
|
|
|
// breaking out of the dispatch switch statement.
|
|
|
var ContinueSentinel = {};
|
|
|
|
|
|
// Dummy constructor functions that we use as the .constructor and
|
|
|
// .constructor.prototype properties for functions that return Generator
|
|
|
// objects. For full spec compliance, you may wish to configure your
|
|
|
// minifier not to mangle the names of these two functions.
|
|
|
function Generator() {}
|
|
|
function GeneratorFunction() {}
|
|
|
function GeneratorFunctionPrototype() {}
|
|
|
|
|
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
|
// don't natively support it.
|
|
|
var IteratorPrototype = {};
|
|
|
IteratorPrototype[iteratorSymbol] = function () {
|
|
|
return this;
|
|
|
};
|
|
|
|
|
|
var getProto = Object.getPrototypeOf;
|
|
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
|
if (NativeIteratorPrototype &&
|
|
|
NativeIteratorPrototype !== Op &&
|
|
|
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
|
// This environment has a native %IteratorPrototype%; use it instead
|
|
|
// of the polyfill.
|
|
|
IteratorPrototype = NativeIteratorPrototype;
|
|
|
}
|
|
|
|
|
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
|
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
|
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
|
GeneratorFunction.displayName = define(
|
|
|
GeneratorFunctionPrototype,
|
|
|
toStringTagSymbol,
|
|
|
"GeneratorFunction"
|
|
|
);
|
|
|
|
|
|
// Helper for defining the .next, .throw, and .return methods of the
|
|
|
// Iterator interface in terms of a single ._invoke method.
|
|
|
function defineIteratorMethods(prototype) {
|
|
|
["next", "throw", "return"].forEach(function(method) {
|
|
|
define(prototype, method, function(arg) {
|
|
|
return this._invoke(method, arg);
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
exports.isGeneratorFunction = function(genFun) {
|
|
|
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
|
return ctor
|
|
|
? ctor === GeneratorFunction ||
|
|
|
// For the native GeneratorFunction constructor, the best we can
|
|
|
// do is to check its .name property.
|
|
|
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
|
: false;
|
|
|
};
|
|
|
|
|
|
exports.mark = function(genFun) {
|
|
|
if (Object.setPrototypeOf) {
|
|
|
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
|
} else {
|
|
|
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
|
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
|
}
|
|
|
genFun.prototype = Object.create(Gp);
|
|
|
return genFun;
|
|
|
};
|
|
|
|
|
|
// Within the body of any async function, `await x` is transformed to
|
|
|
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
|
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
|
// meant to be awaited.
|
|
|
exports.awrap = function(arg) {
|
|
|
return { __await: arg };
|
|
|
};
|
|
|
|
|
|
function AsyncIterator(generator, PromiseImpl) {
|
|
|
function invoke(method, arg, resolve, reject) {
|
|
|
var record = tryCatch(generator[method], generator, arg);
|
|
|
if (record.type === "throw") {
|
|
|
reject(record.arg);
|
|
|
} else {
|
|
|
var result = record.arg;
|
|
|
var value = result.value;
|
|
|
if (value &&
|
|
|
typeof value === "object" &&
|
|
|
hasOwn.call(value, "__await")) {
|
|
|
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
|
invoke("next", value, resolve, reject);
|
|
|
}, function(err) {
|
|
|
invoke("throw", err, resolve, reject);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
|
// When a yielded Promise is resolved, its final value becomes
|
|
|
// the .value of the Promise<{value,done}> result for the
|
|
|
// current iteration.
|
|
|
result.value = unwrapped;
|
|
|
resolve(result);
|
|
|
}, function(error) {
|
|
|
// If a rejected Promise was yielded, throw the rejection back
|
|
|
// into the async generator function so it can be handled there.
|
|
|
return invoke("throw", error, resolve, reject);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var previousPromise;
|
|
|
|
|
|
function enqueue(method, arg) {
|
|
|
function callInvokeWithMethodAndArg() {
|
|
|
return new PromiseImpl(function(resolve, reject) {
|
|
|
invoke(method, arg, resolve, reject);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return previousPromise =
|
|
|
// If enqueue has been called before, then we want to wait until
|
|
|
// all previous Promises have been resolved before calling invoke,
|
|
|
// so that results are always delivered in the correct order. If
|
|
|
// enqueue has not been called before, then it is important to
|
|
|
// call invoke immediately, without waiting on a callback to fire,
|
|
|
// so that the async generator function has the opportunity to do
|
|
|
// any necessary setup in a predictable way. This predictability
|
|
|
// is why the Promise constructor synchronously invokes its
|
|
|
// executor callback, and why async functions synchronously
|
|
|
// execute code before the first await. Since we implement simple
|
|
|
// async functions in terms of async generators, it is especially
|
|
|
// important to get this right, even though it requires care.
|
|
|
previousPromise ? previousPromise.then(
|
|
|
callInvokeWithMethodAndArg,
|
|
|
// Avoid propagating failures to Promises returned by later
|
|
|
// invocations of the iterator.
|
|
|
callInvokeWithMethodAndArg
|
|
|
) : callInvokeWithMethodAndArg();
|
|
|
}
|
|
|
|
|
|
// Define the unified helper method that is used to implement .next,
|
|
|
// .throw, and .return (see defineIteratorMethods).
|
|
|
this._invoke = enqueue;
|
|
|
}
|
|
|
|
|
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
|
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
|
return this;
|
|
|
};
|
|
|
exports.AsyncIterator = AsyncIterator;
|
|
|
|
|
|
// Note that simple async functions are implemented on top of
|
|
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
|
// the final result produced by the iterator.
|
|
|
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
|
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
|
|
|
|
var iter = new AsyncIterator(
|
|
|
wrap(innerFn, outerFn, self, tryLocsList),
|
|
|
PromiseImpl
|
|
|
);
|
|
|
|
|
|
return exports.isGeneratorFunction(outerFn)
|
|
|
? iter // If outerFn is a generator, return the full iterator.
|
|
|
: iter.next().then(function(result) {
|
|
|
return result.done ? result.value : iter.next();
|
|
|
});
|
|
|
};
|
|
|
|
|
|
function makeInvokeMethod(innerFn, self, context) {
|
|
|
var state = GenStateSuspendedStart;
|
|
|
|
|
|
return function invoke(method, arg) {
|
|
|
if (state === GenStateExecuting) {
|
|
|
throw new Error("Generator is already running");
|
|
|
}
|
|
|
|
|
|
if (state === GenStateCompleted) {
|
|
|
if (method === "throw") {
|
|
|
throw arg;
|
|
|
}
|
|
|
|
|
|
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
|
return doneResult();
|
|
|
}
|
|
|
|
|
|
context.method = method;
|
|
|
context.arg = arg;
|
|
|
|
|
|
while (true) {
|
|
|
var delegate = context.delegate;
|
|
|
if (delegate) {
|
|
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
|
if (delegateResult) {
|
|
|
if (delegateResult === ContinueSentinel) continue;
|
|
|
return delegateResult;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (context.method === "next") {
|
|
|
// Setting context._sent for legacy support of Babel's
|
|
|
// function.sent implementation.
|
|
|
context.sent = context._sent = context.arg;
|
|
|
|
|
|
} else if (context.method === "throw") {
|
|
|
if (state === GenStateSuspendedStart) {
|
|
|
state = GenStateCompleted;
|
|
|
throw context.arg;
|
|
|
}
|
|
|
|
|
|
context.dispatchException(context.arg);
|
|
|
|
|
|
} else if (context.method === "return") {
|
|
|
context.abrupt("return", context.arg);
|
|
|
}
|
|
|
|
|
|
state = GenStateExecuting;
|
|
|
|
|
|
var record = tryCatch(innerFn, self, context);
|
|
|
if (record.type === "normal") {
|
|
|
// If an exception is thrown from innerFn, we leave state ===
|
|
|
// GenStateExecuting and loop back for another invocation.
|
|
|
state = context.done
|
|
|
? GenStateCompleted
|
|
|
: GenStateSuspendedYield;
|
|
|
|
|
|
if (record.arg === ContinueSentinel) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
value: record.arg,
|
|
|
done: context.done
|
|
|
};
|
|
|
|
|
|
} else if (record.type === "throw") {
|
|
|
state = GenStateCompleted;
|
|
|
// Dispatch the exception by looping back around to the
|
|
|
// context.dispatchException(context.arg) call above.
|
|
|
context.method = "throw";
|
|
|
context.arg = record.arg;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
|
// result, either by returning a { value, done } result from the
|
|
|
// delegate iterator, or by modifying context.method and context.arg,
|
|
|
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
|
function maybeInvokeDelegate(delegate, context) {
|
|
|
var method = delegate.iterator[context.method];
|
|
|
if (method === undefined) {
|
|
|
// A .throw or .return when the delegate iterator has no .throw
|
|
|
// method always terminates the yield* loop.
|
|
|
context.delegate = null;
|
|
|
|
|
|
if (context.method === "throw") {
|
|
|
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
|
if (delegate.iterator["return"]) {
|
|
|
// If the delegate iterator has a return method, give it a
|
|
|
// chance to clean up.
|
|
|
context.method = "return";
|
|
|
context.arg = undefined;
|
|
|
maybeInvokeDelegate(delegate, context);
|
|
|
|
|
|
if (context.method === "throw") {
|
|
|
// If maybeInvokeDelegate(context) changed context.method from
|
|
|
// "return" to "throw", let that override the TypeError below.
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
context.method = "throw";
|
|
|
context.arg = new TypeError(
|
|
|
"The iterator does not provide a 'throw' method");
|
|
|
}
|
|
|
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
|
|
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
|
|
|
|
if (record.type === "throw") {
|
|
|
context.method = "throw";
|
|
|
context.arg = record.arg;
|
|
|
context.delegate = null;
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
|
|
|
var info = record.arg;
|
|
|
|
|
|
if (! info) {
|
|
|
context.method = "throw";
|
|
|
context.arg = new TypeError("iterator result is not an object");
|
|
|
context.delegate = null;
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
|
|
|
if (info.done) {
|
|
|
// Assign the result of the finished delegate to the temporary
|
|
|
// variable specified by delegate.resultName (see delegateYield).
|
|
|
context[delegate.resultName] = info.value;
|
|
|
|
|
|
// Resume execution at the desired location (see delegateYield).
|
|
|
context.next = delegate.nextLoc;
|
|
|
|
|
|
// If context.method was "throw" but the delegate handled the
|
|
|
// exception, let the outer generator proceed normally. If
|
|
|
// context.method was "next", forget context.arg since it has been
|
|
|
// "consumed" by the delegate iterator. If context.method was
|
|
|
// "return", allow the original .return call to continue in the
|
|
|
// outer generator.
|
|
|
if (context.method !== "return") {
|
|
|
context.method = "next";
|
|
|
context.arg = undefined;
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
// Re-yield the result returned by the delegate method.
|
|
|
return info;
|
|
|
}
|
|
|
|
|
|
// The delegate iterator is finished, so forget it and continue with
|
|
|
// the outer generator.
|
|
|
context.delegate = null;
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
|
|
|
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
|
// unified ._invoke helper method.
|
|
|
defineIteratorMethods(Gp);
|
|
|
|
|
|
define(Gp, toStringTagSymbol, "Generator");
|
|
|
|
|
|
// A Generator should always return itself as the iterator object when the
|
|
|
// @@iterator function is called on it. Some browsers' implementations of the
|
|
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
|
Gp[iteratorSymbol] = function() {
|
|
|
return this;
|
|
|
};
|
|
|
|
|
|
Gp.toString = function() {
|
|
|
return "[object Generator]";
|
|
|
};
|
|
|
|
|
|
function pushTryEntry(locs) {
|
|
|
var entry = { tryLoc: locs[0] };
|
|
|
|
|
|
if (1 in locs) {
|
|
|
entry.catchLoc = locs[1];
|
|
|
}
|
|
|
|
|
|
if (2 in locs) {
|
|
|
entry.finallyLoc = locs[2];
|
|
|
entry.afterLoc = locs[3];
|
|
|
}
|
|
|
|
|
|
this.tryEntries.push(entry);
|
|
|
}
|
|
|
|
|
|
function resetTryEntry(entry) {
|
|
|
var record = entry.completion || {};
|
|
|
record.type = "normal";
|
|
|
delete record.arg;
|
|
|
entry.completion = record;
|
|
|
}
|
|
|
|
|
|
function Context(tryLocsList) {
|
|
|
// The root entry object (effectively a try statement without a catch
|
|
|
// or a finally block) gives us a place to store values thrown from
|
|
|
// locations where there is no enclosing try statement.
|
|
|
this.tryEntries = [{ tryLoc: "root" }];
|
|
|
tryLocsList.forEach(pushTryEntry, this);
|
|
|
this.reset(true);
|
|
|
}
|
|
|
|
|
|
exports.keys = function(object) {
|
|
|
var keys = [];
|
|
|
for (var key in object) {
|
|
|
keys.push(key);
|
|
|
}
|
|
|
keys.reverse();
|
|
|
|
|
|
// Rather than returning an object with a next method, we keep
|
|
|
// things simple and return the next function itself.
|
|
|
return function next() {
|
|
|
while (keys.length) {
|
|
|
var key = keys.pop();
|
|
|
if (key in object) {
|
|
|
next.value = key;
|
|
|
next.done = false;
|
|
|
return next;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// To avoid creating an additional object, we just hang the .value
|
|
|
// and .done properties off the next function object itself. This
|
|
|
// also ensures that the minifier will not anonymize the function.
|
|
|
next.done = true;
|
|
|
return next;
|
|
|
};
|
|
|
};
|
|
|
|
|
|
function values(iterable) {
|
|
|
if (iterable) {
|
|
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
|
if (iteratorMethod) {
|
|
|
return iteratorMethod.call(iterable);
|
|
|
}
|
|
|
|
|
|
if (typeof iterable.next === "function") {
|
|
|
return iterable;
|
|
|
}
|
|
|
|
|
|
if (!isNaN(iterable.length)) {
|
|
|
var i = -1, next = function next() {
|
|
|
while (++i < iterable.length) {
|
|
|
if (hasOwn.call(iterable, i)) {
|
|
|
next.value = iterable[i];
|
|
|
next.done = false;
|
|
|
return next;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
next.value = undefined;
|
|
|
next.done = true;
|
|
|
|
|
|
return next;
|
|
|
};
|
|
|
|
|
|
return next.next = next;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Return an iterator with no values.
|
|
|
return { next: doneResult };
|
|
|
}
|
|
|
exports.values = values;
|
|
|
|
|
|
function doneResult() {
|
|
|
return { value: undefined, done: true };
|
|
|
}
|
|
|
|
|
|
Context.prototype = {
|
|
|
constructor: Context,
|
|
|
|
|
|
reset: function(skipTempReset) {
|
|
|
this.prev = 0;
|
|
|
this.next = 0;
|
|
|
// Resetting context._sent for legacy support of Babel's
|
|
|
// function.sent implementation.
|
|
|
this.sent = this._sent = undefined;
|
|
|
this.done = false;
|
|
|
this.delegate = null;
|
|
|
|
|
|
this.method = "next";
|
|
|
this.arg = undefined;
|
|
|
|
|
|
this.tryEntries.forEach(resetTryEntry);
|
|
|
|
|
|
if (!skipTempReset) {
|
|
|
for (var name in this) {
|
|
|
// Not sure about the optimal order of these conditions:
|
|
|
if (name.charAt(0) === "t" &&
|
|
|
hasOwn.call(this, name) &&
|
|
|
!isNaN(+name.slice(1))) {
|
|
|
this[name] = undefined;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
stop: function() {
|
|
|
this.done = true;
|
|
|
|
|
|
var rootEntry = this.tryEntries[0];
|
|
|
var rootRecord = rootEntry.completion;
|
|
|
if (rootRecord.type === "throw") {
|
|
|
throw rootRecord.arg;
|
|
|
}
|
|
|
|
|
|
return this.rval;
|
|
|
},
|
|
|
|
|
|
dispatchException: function(exception) {
|
|
|
if (this.done) {
|
|
|
throw exception;
|
|
|
}
|
|
|
|
|
|
var context = this;
|
|
|
function handle(loc, caught) {
|
|
|
record.type = "throw";
|
|
|
record.arg = exception;
|
|
|
context.next = loc;
|
|
|
|
|
|
if (caught) {
|
|
|
// If the dispatched exception was caught by a catch block,
|
|
|
// then let that catch block handle the exception normally.
|
|
|
context.method = "next";
|
|
|
context.arg = undefined;
|
|
|
}
|
|
|
|
|
|
return !! caught;
|
|
|
}
|
|
|
|
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
|
var entry = this.tryEntries[i];
|
|
|
var record = entry.completion;
|
|
|
|
|
|
if (entry.tryLoc === "root") {
|
|
|
// Exception thrown outside of any try block that could handle
|
|
|
// it, so set the completion value of the entire function to
|
|
|
// throw the exception.
|
|
|
return handle("end");
|
|
|
}
|
|
|
|
|
|
if (entry.tryLoc <= this.prev) {
|
|
|
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
|
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
|
|
|
|
if (hasCatch && hasFinally) {
|
|
|
if (this.prev < entry.catchLoc) {
|
|
|
return handle(entry.catchLoc, true);
|
|
|
} else if (this.prev < entry.finallyLoc) {
|
|
|
return handle(entry.finallyLoc);
|
|
|
}
|
|
|
|
|
|
} else if (hasCatch) {
|
|
|
if (this.prev < entry.catchLoc) {
|
|
|
return handle(entry.catchLoc, true);
|
|
|
}
|
|
|
|
|
|
} else if (hasFinally) {
|
|
|
if (this.prev < entry.finallyLoc) {
|
|
|
return handle(entry.finallyLoc);
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
throw new Error("try statement without catch or finally");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
abrupt: function(type, arg) {
|
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
|
var entry = this.tryEntries[i];
|
|
|
if (entry.tryLoc <= this.prev &&
|
|
|
hasOwn.call(entry, "finallyLoc") &&
|
|
|
this.prev < entry.finallyLoc) {
|
|
|
var finallyEntry = entry;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (finallyEntry &&
|
|
|
(type === "break" ||
|
|
|
type === "continue") &&
|
|
|
finallyEntry.tryLoc <= arg &&
|
|
|
arg <= finallyEntry.finallyLoc) {
|
|
|
// Ignore the finally entry if control is not jumping to a
|
|
|
// location outside the try/catch block.
|
|
|
finallyEntry = null;
|
|
|
}
|
|
|
|
|
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
|
record.type = type;
|
|
|
record.arg = arg;
|
|
|
|
|
|
if (finallyEntry) {
|
|
|
this.method = "next";
|
|
|
this.next = finallyEntry.finallyLoc;
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
|
|
|
return this.complete(record);
|
|
|
},
|
|
|
|
|
|
complete: function(record, afterLoc) {
|
|
|
if (record.type === "throw") {
|
|
|
throw record.arg;
|
|
|
}
|
|
|
|
|
|
if (record.type === "break" ||
|
|
|
record.type === "continue") {
|
|
|
this.next = record.arg;
|
|
|
} else if (record.type === "return") {
|
|
|
this.rval = this.arg = record.arg;
|
|
|
this.method = "return";
|
|
|
this.next = "end";
|
|
|
} else if (record.type === "normal" && afterLoc) {
|
|
|
this.next = afterLoc;
|
|
|
}
|
|
|
|
|
|
return ContinueSentinel;
|
|
|
},
|
|
|
|
|
|
finish: function(finallyLoc) {
|
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
|
var entry = this.tryEntries[i];
|
|
|
if (entry.finallyLoc === finallyLoc) {
|
|
|
this.complete(entry.completion, entry.afterLoc);
|
|
|
resetTryEntry(entry);
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
|
|
|
"catch": function(tryLoc) {
|
|
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
|
var entry = this.tryEntries[i];
|
|
|
if (entry.tryLoc === tryLoc) {
|
|
|
var record = entry.completion;
|
|
|
if (record.type === "throw") {
|
|
|
var thrown = record.arg;
|
|
|
resetTryEntry(entry);
|
|
|
}
|
|
|
return thrown;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// The context.catch method must only be called with a location
|
|
|
// argument that corresponds to a known catch block.
|
|
|
throw new Error("illegal catch attempt");
|
|
|
},
|
|
|
|
|
|
delegateYield: function(iterable, resultName, nextLoc) {
|
|
|
this.delegate = {
|
|
|
iterator: values(iterable),
|
|
|
resultName: resultName,
|
|
|
nextLoc: nextLoc
|
|
|
};
|
|
|
|
|
|
if (this.method === "next") {
|
|
|
// Deliberately forget the last sent value so that we don't
|
|
|
// accidentally pass it on to the delegate.
|
|
|
this.arg = undefined;
|
|
|
}
|
|
|
|
|
|
return ContinueSentinel;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
// Regardless of whether this script is executing as a CommonJS module
|
|
|
// or not, return the runtime object so that we can declare the variable
|
|
|
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
|
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
|
return exports;
|
|
|
|
|
|
}(
|
|
|
// If this script is executing as a CommonJS module, use module.exports
|
|
|
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
|
// object. Either way, the resulting object will be used to initialize
|
|
|
// the regeneratorRuntime variable at the top of this file.
|
|
|
true ? module.exports : undefined
|
|
|
));
|
|
|
|
|
|
try {
|
|
|
regeneratorRuntime = runtime;
|
|
|
} catch (accidentalStrictMode) {
|
|
|
// This module should not be running in strict mode, so the above
|
|
|
// assignment should always work unless something is misconfigured. Just
|
|
|
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
|
// strict mode using a global Function call. This could conceivably fail
|
|
|
// if a Content Security Policy forbids using Function, but in that case
|
|
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* WEBPACK VAR INJECTION */(function(global) {/**
|
|
|
* A collection of shims that provide minimal functionality of the ES6 collections.
|
|
|
*
|
|
|
* These implementations are not meant to be used outside of the ResizeObserver
|
|
|
* modules as they cover only a limited range of use cases.
|
|
|
*/
|
|
|
/* eslint-disable require-jsdoc, valid-jsdoc */
|
|
|
var MapShim = (function () {
|
|
|
if (typeof Map !== 'undefined') {
|
|
|
return Map;
|
|
|
}
|
|
|
/**
|
|
|
* Returns index in provided array that matches the specified key.
|
|
|
*
|
|
|
* @param {Array<Array>} arr
|
|
|
* @param {*} key
|
|
|
* @returns {number}
|
|
|
*/
|
|
|
function getIndex(arr, key) {
|
|
|
var result = -1;
|
|
|
arr.some(function (entry, index) {
|
|
|
if (entry[0] === key) {
|
|
|
result = index;
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
|
return result;
|
|
|
}
|
|
|
return /** @class */ (function () {
|
|
|
function class_1() {
|
|
|
this.__entries__ = [];
|
|
|
}
|
|
|
Object.defineProperty(class_1.prototype, "size", {
|
|
|
/**
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
get: function () {
|
|
|
return this.__entries__.length;
|
|
|
},
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
/**
|
|
|
* @param {*} key
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
class_1.prototype.get = function (key) {
|
|
|
var index = getIndex(this.__entries__, key);
|
|
|
var entry = this.__entries__[index];
|
|
|
return entry && entry[1];
|
|
|
};
|
|
|
/**
|
|
|
* @param {*} key
|
|
|
* @param {*} value
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
class_1.prototype.set = function (key, value) {
|
|
|
var index = getIndex(this.__entries__, key);
|
|
|
if (~index) {
|
|
|
this.__entries__[index][1] = value;
|
|
|
}
|
|
|
else {
|
|
|
this.__entries__.push([key, value]);
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* @param {*} key
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
class_1.prototype.delete = function (key) {
|
|
|
var entries = this.__entries__;
|
|
|
var index = getIndex(entries, key);
|
|
|
if (~index) {
|
|
|
entries.splice(index, 1);
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* @param {*} key
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
class_1.prototype.has = function (key) {
|
|
|
return !!~getIndex(this.__entries__, key);
|
|
|
};
|
|
|
/**
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
class_1.prototype.clear = function () {
|
|
|
this.__entries__.splice(0);
|
|
|
};
|
|
|
/**
|
|
|
* @param {Function} callback
|
|
|
* @param {*} [ctx=null]
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
class_1.prototype.forEach = function (callback, ctx) {
|
|
|
if (ctx === void 0) { ctx = null; }
|
|
|
for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
|
|
|
var entry = _a[_i];
|
|
|
callback.call(ctx, entry[1], entry[0]);
|
|
|
}
|
|
|
};
|
|
|
return class_1;
|
|
|
}());
|
|
|
})();
|
|
|
|
|
|
/**
|
|
|
* Detects whether window and document objects are available in current environment.
|
|
|
*/
|
|
|
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
|
|
|
|
|
|
// Returns global object of a current environment.
|
|
|
var global$1 = (function () {
|
|
|
if (typeof global !== 'undefined' && global.Math === Math) {
|
|
|
return global;
|
|
|
}
|
|
|
if (typeof self !== 'undefined' && self.Math === Math) {
|
|
|
return self;
|
|
|
}
|
|
|
if (typeof window !== 'undefined' && window.Math === Math) {
|
|
|
return window;
|
|
|
}
|
|
|
// eslint-disable-next-line no-new-func
|
|
|
return Function('return this')();
|
|
|
})();
|
|
|
|
|
|
/**
|
|
|
* A shim for the requestAnimationFrame which falls back to the setTimeout if
|
|
|
* first one is not supported.
|
|
|
*
|
|
|
* @returns {number} Requests' identifier.
|
|
|
*/
|
|
|
var requestAnimationFrame$1 = (function () {
|
|
|
if (typeof requestAnimationFrame === 'function') {
|
|
|
// It's required to use a bounded function because IE sometimes throws
|
|
|
// an "Invalid calling object" error if rAF is invoked without the global
|
|
|
// object on the left hand side.
|
|
|
return requestAnimationFrame.bind(global$1);
|
|
|
}
|
|
|
return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
|
|
|
})();
|
|
|
|
|
|
// Defines minimum timeout before adding a trailing call.
|
|
|
var trailingTimeout = 2;
|
|
|
/**
|
|
|
* Creates a wrapper function which ensures that provided callback will be
|
|
|
* invoked only once during the specified delay period.
|
|
|
*
|
|
|
* @param {Function} callback - Function to be invoked after the delay period.
|
|
|
* @param {number} delay - Delay after which to invoke callback.
|
|
|
* @returns {Function}
|
|
|
*/
|
|
|
function throttle (callback, delay) {
|
|
|
var leadingCall = false, trailingCall = false, lastCallTime = 0;
|
|
|
/**
|
|
|
* Invokes the original callback function and schedules new invocation if
|
|
|
* the "proxy" was called during current request.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
function resolvePending() {
|
|
|
if (leadingCall) {
|
|
|
leadingCall = false;
|
|
|
callback();
|
|
|
}
|
|
|
if (trailingCall) {
|
|
|
proxy();
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Callback invoked after the specified delay. It will further postpone
|
|
|
* invocation of the original function delegating it to the
|
|
|
* requestAnimationFrame.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
function timeoutCallback() {
|
|
|
requestAnimationFrame$1(resolvePending);
|
|
|
}
|
|
|
/**
|
|
|
* Schedules invocation of the original function.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
function proxy() {
|
|
|
var timeStamp = Date.now();
|
|
|
if (leadingCall) {
|
|
|
// Reject immediately following calls.
|
|
|
if (timeStamp - lastCallTime < trailingTimeout) {
|
|
|
return;
|
|
|
}
|
|
|
// Schedule new call to be in invoked when the pending one is resolved.
|
|
|
// This is important for "transitions" which never actually start
|
|
|
// immediately so there is a chance that we might miss one if change
|
|
|
// happens amids the pending invocation.
|
|
|
trailingCall = true;
|
|
|
}
|
|
|
else {
|
|
|
leadingCall = true;
|
|
|
trailingCall = false;
|
|
|
setTimeout(timeoutCallback, delay);
|
|
|
}
|
|
|
lastCallTime = timeStamp;
|
|
|
}
|
|
|
return proxy;
|
|
|
}
|
|
|
|
|
|
// Minimum delay before invoking the update of observers.
|
|
|
var REFRESH_DELAY = 20;
|
|
|
// A list of substrings of CSS properties used to find transition events that
|
|
|
// might affect dimensions of observed elements.
|
|
|
var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
|
|
|
// Check if MutationObserver is available.
|
|
|
var mutationObserverSupported = typeof MutationObserver !== 'undefined';
|
|
|
/**
|
|
|
* Singleton controller class which handles updates of ResizeObserver instances.
|
|
|
*/
|
|
|
var ResizeObserverController = /** @class */ (function () {
|
|
|
/**
|
|
|
* Creates a new instance of ResizeObserverController.
|
|
|
*
|
|
|
* @private
|
|
|
*/
|
|
|
function ResizeObserverController() {
|
|
|
/**
|
|
|
* Indicates whether DOM listeners have been added.
|
|
|
*
|
|
|
* @private {boolean}
|
|
|
*/
|
|
|
this.connected_ = false;
|
|
|
/**
|
|
|
* Tells that controller has subscribed for Mutation Events.
|
|
|
*
|
|
|
* @private {boolean}
|
|
|
*/
|
|
|
this.mutationEventsAdded_ = false;
|
|
|
/**
|
|
|
* Keeps reference to the instance of MutationObserver.
|
|
|
*
|
|
|
* @private {MutationObserver}
|
|
|
*/
|
|
|
this.mutationsObserver_ = null;
|
|
|
/**
|
|
|
* A list of connected observers.
|
|
|
*
|
|
|
* @private {Array<ResizeObserverSPI>}
|
|
|
*/
|
|
|
this.observers_ = [];
|
|
|
this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
|
|
|
this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
|
|
|
}
|
|
|
/**
|
|
|
* Adds observer to observers list.
|
|
|
*
|
|
|
* @param {ResizeObserverSPI} observer - Observer to be added.
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.addObserver = function (observer) {
|
|
|
if (!~this.observers_.indexOf(observer)) {
|
|
|
this.observers_.push(observer);
|
|
|
}
|
|
|
// Add listeners if they haven't been added yet.
|
|
|
if (!this.connected_) {
|
|
|
this.connect_();
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Removes observer from observers list.
|
|
|
*
|
|
|
* @param {ResizeObserverSPI} observer - Observer to be removed.
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.removeObserver = function (observer) {
|
|
|
var observers = this.observers_;
|
|
|
var index = observers.indexOf(observer);
|
|
|
// Remove observer if it's present in registry.
|
|
|
if (~index) {
|
|
|
observers.splice(index, 1);
|
|
|
}
|
|
|
// Remove listeners if controller has no connected observers.
|
|
|
if (!observers.length && this.connected_) {
|
|
|
this.disconnect_();
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Invokes the update of observers. It will continue running updates insofar
|
|
|
* it detects changes.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.refresh = function () {
|
|
|
var changesDetected = this.updateObservers_();
|
|
|
// Continue running updates if changes have been detected as there might
|
|
|
// be future ones caused by CSS transitions.
|
|
|
if (changesDetected) {
|
|
|
this.refresh();
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Updates every observer from observers list and notifies them of queued
|
|
|
* entries.
|
|
|
*
|
|
|
* @private
|
|
|
* @returns {boolean} Returns "true" if any observer has detected changes in
|
|
|
* dimensions of it's elements.
|
|
|
*/
|
|
|
ResizeObserverController.prototype.updateObservers_ = function () {
|
|
|
// Collect observers that have active observations.
|
|
|
var activeObservers = this.observers_.filter(function (observer) {
|
|
|
return observer.gatherActive(), observer.hasActive();
|
|
|
});
|
|
|
// Deliver notifications in a separate cycle in order to avoid any
|
|
|
// collisions between observers, e.g. when multiple instances of
|
|
|
// ResizeObserver are tracking the same element and the callback of one
|
|
|
// of them changes content dimensions of the observed target. Sometimes
|
|
|
// this may result in notifications being blocked for the rest of observers.
|
|
|
activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
|
|
|
return activeObservers.length > 0;
|
|
|
};
|
|
|
/**
|
|
|
* Initializes DOM listeners.
|
|
|
*
|
|
|
* @private
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.connect_ = function () {
|
|
|
// Do nothing if running in a non-browser environment or if listeners
|
|
|
// have been already added.
|
|
|
if (!isBrowser || this.connected_) {
|
|
|
return;
|
|
|
}
|
|
|
// Subscription to the "Transitionend" event is used as a workaround for
|
|
|
// delayed transitions. This way it's possible to capture at least the
|
|
|
// final state of an element.
|
|
|
document.addEventListener('transitionend', this.onTransitionEnd_);
|
|
|
window.addEventListener('resize', this.refresh);
|
|
|
if (mutationObserverSupported) {
|
|
|
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
|
this.mutationsObserver_.observe(document, {
|
|
|
attributes: true,
|
|
|
childList: true,
|
|
|
characterData: true,
|
|
|
subtree: true
|
|
|
});
|
|
|
}
|
|
|
else {
|
|
|
document.addEventListener('DOMSubtreeModified', this.refresh);
|
|
|
this.mutationEventsAdded_ = true;
|
|
|
}
|
|
|
this.connected_ = true;
|
|
|
};
|
|
|
/**
|
|
|
* Removes DOM listeners.
|
|
|
*
|
|
|
* @private
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.disconnect_ = function () {
|
|
|
// Do nothing if running in a non-browser environment or if listeners
|
|
|
// have been already removed.
|
|
|
if (!isBrowser || !this.connected_) {
|
|
|
return;
|
|
|
}
|
|
|
document.removeEventListener('transitionend', this.onTransitionEnd_);
|
|
|
window.removeEventListener('resize', this.refresh);
|
|
|
if (this.mutationsObserver_) {
|
|
|
this.mutationsObserver_.disconnect();
|
|
|
}
|
|
|
if (this.mutationEventsAdded_) {
|
|
|
document.removeEventListener('DOMSubtreeModified', this.refresh);
|
|
|
}
|
|
|
this.mutationsObserver_ = null;
|
|
|
this.mutationEventsAdded_ = false;
|
|
|
this.connected_ = false;
|
|
|
};
|
|
|
/**
|
|
|
* "Transitionend" event handler.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {TransitionEvent} event
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
|
|
|
var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
|
|
|
// Detect whether transition may affect dimensions of an element.
|
|
|
var isReflowProperty = transitionKeys.some(function (key) {
|
|
|
return !!~propertyName.indexOf(key);
|
|
|
});
|
|
|
if (isReflowProperty) {
|
|
|
this.refresh();
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Returns instance of the ResizeObserverController.
|
|
|
*
|
|
|
* @returns {ResizeObserverController}
|
|
|
*/
|
|
|
ResizeObserverController.getInstance = function () {
|
|
|
if (!this.instance_) {
|
|
|
this.instance_ = new ResizeObserverController();
|
|
|
}
|
|
|
return this.instance_;
|
|
|
};
|
|
|
/**
|
|
|
* Holds reference to the controller's instance.
|
|
|
*
|
|
|
* @private {ResizeObserverController}
|
|
|
*/
|
|
|
ResizeObserverController.instance_ = null;
|
|
|
return ResizeObserverController;
|
|
|
}());
|
|
|
|
|
|
/**
|
|
|
* Defines non-writable/enumerable properties of the provided target object.
|
|
|
*
|
|
|
* @param {Object} target - Object for which to define properties.
|
|
|
* @param {Object} props - Properties to be defined.
|
|
|
* @returns {Object} Target object.
|
|
|
*/
|
|
|
var defineConfigurable = (function (target, props) {
|
|
|
for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
|
|
|
var key = _a[_i];
|
|
|
Object.defineProperty(target, key, {
|
|
|
value: props[key],
|
|
|
enumerable: false,
|
|
|
writable: false,
|
|
|
configurable: true
|
|
|
});
|
|
|
}
|
|
|
return target;
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* Returns the global object associated with provided element.
|
|
|
*
|
|
|
* @param {Object} target
|
|
|
* @returns {Object}
|
|
|
*/
|
|
|
var getWindowOf = (function (target) {
|
|
|
// Assume that the element is an instance of Node, which means that it
|
|
|
// has the "ownerDocument" property from which we can retrieve a
|
|
|
// corresponding global object.
|
|
|
var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
|
|
|
// Return the local global object if it's not possible extract one from
|
|
|
// provided element.
|
|
|
return ownerGlobal || global$1;
|
|
|
});
|
|
|
|
|
|
// Placeholder of an empty content rectangle.
|
|
|
var emptyRect = createRectInit(0, 0, 0, 0);
|
|
|
/**
|
|
|
* Converts provided string to a number.
|
|
|
*
|
|
|
* @param {number|string} value
|
|
|
* @returns {number}
|
|
|
*/
|
|
|
function toFloat(value) {
|
|
|
return parseFloat(value) || 0;
|
|
|
}
|
|
|
/**
|
|
|
* Extracts borders size from provided styles.
|
|
|
*
|
|
|
* @param {CSSStyleDeclaration} styles
|
|
|
* @param {...string} positions - Borders positions (top, right, ...)
|
|
|
* @returns {number}
|
|
|
*/
|
|
|
function getBordersSize(styles) {
|
|
|
var positions = [];
|
|
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
|
positions[_i - 1] = arguments[_i];
|
|
|
}
|
|
|
return positions.reduce(function (size, position) {
|
|
|
var value = styles['border-' + position + '-width'];
|
|
|
return size + toFloat(value);
|
|
|
}, 0);
|
|
|
}
|
|
|
/**
|
|
|
* Extracts paddings sizes from provided styles.
|
|
|
*
|
|
|
* @param {CSSStyleDeclaration} styles
|
|
|
* @returns {Object} Paddings box.
|
|
|
*/
|
|
|
function getPaddings(styles) {
|
|
|
var positions = ['top', 'right', 'bottom', 'left'];
|
|
|
var paddings = {};
|
|
|
for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
|
|
|
var position = positions_1[_i];
|
|
|
var value = styles['padding-' + position];
|
|
|
paddings[position] = toFloat(value);
|
|
|
}
|
|
|
return paddings;
|
|
|
}
|
|
|
/**
|
|
|
* Calculates content rectangle of provided SVG element.
|
|
|
*
|
|
|
* @param {SVGGraphicsElement} target - Element content rectangle of which needs
|
|
|
* to be calculated.
|
|
|
* @returns {DOMRectInit}
|
|
|
*/
|
|
|
function getSVGContentRect(target) {
|
|
|
var bbox = target.getBBox();
|
|
|
return createRectInit(0, 0, bbox.width, bbox.height);
|
|
|
}
|
|
|
/**
|
|
|
* Calculates content rectangle of provided HTMLElement.
|
|
|
*
|
|
|
* @param {HTMLElement} target - Element for which to calculate the content rectangle.
|
|
|
* @returns {DOMRectInit}
|
|
|
*/
|
|
|
function getHTMLElementContentRect(target) {
|
|
|
// Client width & height properties can't be
|
|
|
// used exclusively as they provide rounded values.
|
|
|
var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
|
|
|
// By this condition we can catch all non-replaced inline, hidden and
|
|
|
// detached elements. Though elements with width & height properties less
|
|
|
// than 0.5 will be discarded as well.
|
|
|
//
|
|
|
// Without it we would need to implement separate methods for each of
|
|
|
// those cases and it's not possible to perform a precise and performance
|
|
|
// effective test for hidden elements. E.g. even jQuery's ':visible' filter
|
|
|
// gives wrong results for elements with width & height less than 0.5.
|
|
|
if (!clientWidth && !clientHeight) {
|
|
|
return emptyRect;
|
|
|
}
|
|
|
var styles = getWindowOf(target).getComputedStyle(target);
|
|
|
var paddings = getPaddings(styles);
|
|
|
var horizPad = paddings.left + paddings.right;
|
|
|
var vertPad = paddings.top + paddings.bottom;
|
|
|
// Computed styles of width & height are being used because they are the
|
|
|
// only dimensions available to JS that contain non-rounded values. It could
|
|
|
// be possible to utilize the getBoundingClientRect if only it's data wasn't
|
|
|
// affected by CSS transformations let alone paddings, borders and scroll bars.
|
|
|
var width = toFloat(styles.width), height = toFloat(styles.height);
|
|
|
// Width & height include paddings and borders when the 'border-box' box
|
|
|
// model is applied (except for IE).
|
|
|
if (styles.boxSizing === 'border-box') {
|
|
|
// Following conditions are required to handle Internet Explorer which
|
|
|
// doesn't include paddings and borders to computed CSS dimensions.
|
|
|
//
|
|
|
// We can say that if CSS dimensions + paddings are equal to the "client"
|
|
|
// properties then it's either IE, and thus we don't need to subtract
|
|
|
// anything, or an element merely doesn't have paddings/borders styles.
|
|
|
if (Math.round(width + horizPad) !== clientWidth) {
|
|
|
width -= getBordersSize(styles, 'left', 'right') + horizPad;
|
|
|
}
|
|
|
if (Math.round(height + vertPad) !== clientHeight) {
|
|
|
height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
|
|
|
}
|
|
|
}
|
|
|
// Following steps can't be applied to the document's root element as its
|
|
|
// client[Width/Height] properties represent viewport area of the window.
|
|
|
// Besides, it's as well not necessary as the <html> itself neither has
|
|
|
// rendered scroll bars nor it can be clipped.
|
|
|
if (!isDocumentElement(target)) {
|
|
|
// In some browsers (only in Firefox, actually) CSS width & height
|
|
|
// include scroll bars size which can be removed at this step as scroll
|
|
|
// bars are the only difference between rounded dimensions + paddings
|
|
|
// and "client" properties, though that is not always true in Chrome.
|
|
|
var vertScrollbar = Math.round(width + horizPad) - clientWidth;
|
|
|
var horizScrollbar = Math.round(height + vertPad) - clientHeight;
|
|
|
// Chrome has a rather weird rounding of "client" properties.
|
|
|
// E.g. for an element with content width of 314.2px it sometimes gives
|
|
|
// the client width of 315px and for the width of 314.7px it may give
|
|
|
// 314px. And it doesn't happen all the time. So just ignore this delta
|
|
|
// as a non-relevant.
|
|
|
if (Math.abs(vertScrollbar) !== 1) {
|
|
|
width -= vertScrollbar;
|
|
|
}
|
|
|
if (Math.abs(horizScrollbar) !== 1) {
|
|
|
height -= horizScrollbar;
|
|
|
}
|
|
|
}
|
|
|
return createRectInit(paddings.left, paddings.top, width, height);
|
|
|
}
|
|
|
/**
|
|
|
* Checks whether provided element is an instance of the SVGGraphicsElement.
|
|
|
*
|
|
|
* @param {Element} target - Element to be checked.
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
var isSVGGraphicsElement = (function () {
|
|
|
// Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
|
|
|
// interface.
|
|
|
if (typeof SVGGraphicsElement !== 'undefined') {
|
|
|
return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
|
|
|
}
|
|
|
// If it's so, then check that element is at least an instance of the
|
|
|
// SVGElement and that it has the "getBBox" method.
|
|
|
// eslint-disable-next-line no-extra-parens
|
|
|
return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
|
|
|
typeof target.getBBox === 'function'); };
|
|
|
})();
|
|
|
/**
|
|
|
* Checks whether provided element is a document element (<html>).
|
|
|
*
|
|
|
* @param {Element} target - Element to be checked.
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
function isDocumentElement(target) {
|
|
|
return target === getWindowOf(target).document.documentElement;
|
|
|
}
|
|
|
/**
|
|
|
* Calculates an appropriate content rectangle for provided html or svg element.
|
|
|
*
|
|
|
* @param {Element} target - Element content rectangle of which needs to be calculated.
|
|
|
* @returns {DOMRectInit}
|
|
|
*/
|
|
|
function getContentRect(target) {
|
|
|
if (!isBrowser) {
|
|
|
return emptyRect;
|
|
|
}
|
|
|
if (isSVGGraphicsElement(target)) {
|
|
|
return getSVGContentRect(target);
|
|
|
}
|
|
|
return getHTMLElementContentRect(target);
|
|
|
}
|
|
|
/**
|
|
|
* Creates rectangle with an interface of the DOMRectReadOnly.
|
|
|
* Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
|
|
|
*
|
|
|
* @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
|
|
|
* @returns {DOMRectReadOnly}
|
|
|
*/
|
|
|
function createReadOnlyRect(_a) {
|
|
|
var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
|
|
|
// If DOMRectReadOnly is available use it as a prototype for the rectangle.
|
|
|
var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
|
|
|
var rect = Object.create(Constr.prototype);
|
|
|
// Rectangle's properties are not writable and non-enumerable.
|
|
|
defineConfigurable(rect, {
|
|
|
x: x, y: y, width: width, height: height,
|
|
|
top: y,
|
|
|
right: x + width,
|
|
|
bottom: height + y,
|
|
|
left: x
|
|
|
});
|
|
|
return rect;
|
|
|
}
|
|
|
/**
|
|
|
* Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
|
|
|
* Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
|
|
|
*
|
|
|
* @param {number} x - X coordinate.
|
|
|
* @param {number} y - Y coordinate.
|
|
|
* @param {number} width - Rectangle's width.
|
|
|
* @param {number} height - Rectangle's height.
|
|
|
* @returns {DOMRectInit}
|
|
|
*/
|
|
|
function createRectInit(x, y, width, height) {
|
|
|
return { x: x, y: y, width: width, height: height };
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Class that is responsible for computations of the content rectangle of
|
|
|
* provided DOM element and for keeping track of it's changes.
|
|
|
*/
|
|
|
var ResizeObservation = /** @class */ (function () {
|
|
|
/**
|
|
|
* Creates an instance of ResizeObservation.
|
|
|
*
|
|
|
* @param {Element} target - Element to be observed.
|
|
|
*/
|
|
|
function ResizeObservation(target) {
|
|
|
/**
|
|
|
* Broadcasted width of content rectangle.
|
|
|
*
|
|
|
* @type {number}
|
|
|
*/
|
|
|
this.broadcastWidth = 0;
|
|
|
/**
|
|
|
* Broadcasted height of content rectangle.
|
|
|
*
|
|
|
* @type {number}
|
|
|
*/
|
|
|
this.broadcastHeight = 0;
|
|
|
/**
|
|
|
* Reference to the last observed content rectangle.
|
|
|
*
|
|
|
* @private {DOMRectInit}
|
|
|
*/
|
|
|
this.contentRect_ = createRectInit(0, 0, 0, 0);
|
|
|
this.target = target;
|
|
|
}
|
|
|
/**
|
|
|
* Updates content rectangle and tells whether it's width or height properties
|
|
|
* have changed since the last broadcast.
|
|
|
*
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
ResizeObservation.prototype.isActive = function () {
|
|
|
var rect = getContentRect(this.target);
|
|
|
this.contentRect_ = rect;
|
|
|
return (rect.width !== this.broadcastWidth ||
|
|
|
rect.height !== this.broadcastHeight);
|
|
|
};
|
|
|
/**
|
|
|
* Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
|
|
|
* from the corresponding properties of the last observed content rectangle.
|
|
|
*
|
|
|
* @returns {DOMRectInit} Last observed content rectangle.
|
|
|
*/
|
|
|
ResizeObservation.prototype.broadcastRect = function () {
|
|
|
var rect = this.contentRect_;
|
|
|
this.broadcastWidth = rect.width;
|
|
|
this.broadcastHeight = rect.height;
|
|
|
return rect;
|
|
|
};
|
|
|
return ResizeObservation;
|
|
|
}());
|
|
|
|
|
|
var ResizeObserverEntry = /** @class */ (function () {
|
|
|
/**
|
|
|
* Creates an instance of ResizeObserverEntry.
|
|
|
*
|
|
|
* @param {Element} target - Element that is being observed.
|
|
|
* @param {DOMRectInit} rectInit - Data of the element's content rectangle.
|
|
|
*/
|
|
|
function ResizeObserverEntry(target, rectInit) {
|
|
|
var contentRect = createReadOnlyRect(rectInit);
|
|
|
// According to the specification following properties are not writable
|
|
|
// and are also not enumerable in the native implementation.
|
|
|
//
|
|
|
// Property accessors are not being used as they'd require to define a
|
|
|
// private WeakMap storage which may cause memory leaks in browsers that
|
|
|
// don't support this type of collections.
|
|
|
defineConfigurable(this, { target: target, contentRect: contentRect });
|
|
|
}
|
|
|
return ResizeObserverEntry;
|
|
|
}());
|
|
|
|
|
|
var ResizeObserverSPI = /** @class */ (function () {
|
|
|
/**
|
|
|
* Creates a new instance of ResizeObserver.
|
|
|
*
|
|
|
* @param {ResizeObserverCallback} callback - Callback function that is invoked
|
|
|
* when one of the observed elements changes it's content dimensions.
|
|
|
* @param {ResizeObserverController} controller - Controller instance which
|
|
|
* is responsible for the updates of observer.
|
|
|
* @param {ResizeObserver} callbackCtx - Reference to the public
|
|
|
* ResizeObserver instance which will be passed to callback function.
|
|
|
*/
|
|
|
function ResizeObserverSPI(callback, controller, callbackCtx) {
|
|
|
/**
|
|
|
* Collection of resize observations that have detected changes in dimensions
|
|
|
* of elements.
|
|
|
*
|
|
|
* @private {Array<ResizeObservation>}
|
|
|
*/
|
|
|
this.activeObservations_ = [];
|
|
|
/**
|
|
|
* Registry of the ResizeObservation instances.
|
|
|
*
|
|
|
* @private {Map<Element, ResizeObservation>}
|
|
|
*/
|
|
|
this.observations_ = new MapShim();
|
|
|
if (typeof callback !== 'function') {
|
|
|
throw new TypeError('The callback provided as parameter 1 is not a function.');
|
|
|
}
|
|
|
this.callback_ = callback;
|
|
|
this.controller_ = controller;
|
|
|
this.callbackCtx_ = callbackCtx;
|
|
|
}
|
|
|
/**
|
|
|
* Starts observing provided element.
|
|
|
*
|
|
|
* @param {Element} target - Element to be observed.
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.observe = function (target) {
|
|
|
if (!arguments.length) {
|
|
|
throw new TypeError('1 argument required, but only 0 present.');
|
|
|
}
|
|
|
// Do nothing if current environment doesn't have the Element interface.
|
|
|
if (typeof Element === 'undefined' || !(Element instanceof Object)) {
|
|
|
return;
|
|
|
}
|
|
|
if (!(target instanceof getWindowOf(target).Element)) {
|
|
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
|
}
|
|
|
var observations = this.observations_;
|
|
|
// Do nothing if element is already being observed.
|
|
|
if (observations.has(target)) {
|
|
|
return;
|
|
|
}
|
|
|
observations.set(target, new ResizeObservation(target));
|
|
|
this.controller_.addObserver(this);
|
|
|
// Force the update of observations.
|
|
|
this.controller_.refresh();
|
|
|
};
|
|
|
/**
|
|
|
* Stops observing provided element.
|
|
|
*
|
|
|
* @param {Element} target - Element to stop observing.
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.unobserve = function (target) {
|
|
|
if (!arguments.length) {
|
|
|
throw new TypeError('1 argument required, but only 0 present.');
|
|
|
}
|
|
|
// Do nothing if current environment doesn't have the Element interface.
|
|
|
if (typeof Element === 'undefined' || !(Element instanceof Object)) {
|
|
|
return;
|
|
|
}
|
|
|
if (!(target instanceof getWindowOf(target).Element)) {
|
|
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
|
}
|
|
|
var observations = this.observations_;
|
|
|
// Do nothing if element is not being observed.
|
|
|
if (!observations.has(target)) {
|
|
|
return;
|
|
|
}
|
|
|
observations.delete(target);
|
|
|
if (!observations.size) {
|
|
|
this.controller_.removeObserver(this);
|
|
|
}
|
|
|
};
|
|
|
/**
|
|
|
* Stops observing all elements.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.disconnect = function () {
|
|
|
this.clearActive();
|
|
|
this.observations_.clear();
|
|
|
this.controller_.removeObserver(this);
|
|
|
};
|
|
|
/**
|
|
|
* Collects observation instances the associated element of which has changed
|
|
|
* it's content rectangle.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.gatherActive = function () {
|
|
|
var _this = this;
|
|
|
this.clearActive();
|
|
|
this.observations_.forEach(function (observation) {
|
|
|
if (observation.isActive()) {
|
|
|
_this.activeObservations_.push(observation);
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
/**
|
|
|
* Invokes initial callback function with a list of ResizeObserverEntry
|
|
|
* instances collected from active resize observations.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.broadcastActive = function () {
|
|
|
// Do nothing if observer doesn't have active observations.
|
|
|
if (!this.hasActive()) {
|
|
|
return;
|
|
|
}
|
|
|
var ctx = this.callbackCtx_;
|
|
|
// Create ResizeObserverEntry instance for every active observation.
|
|
|
var entries = this.activeObservations_.map(function (observation) {
|
|
|
return new ResizeObserverEntry(observation.target, observation.broadcastRect());
|
|
|
});
|
|
|
this.callback_.call(ctx, entries, ctx);
|
|
|
this.clearActive();
|
|
|
};
|
|
|
/**
|
|
|
* Clears the collection of active observations.
|
|
|
*
|
|
|
* @returns {void}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.clearActive = function () {
|
|
|
this.activeObservations_.splice(0);
|
|
|
};
|
|
|
/**
|
|
|
* Tells whether observer has active observations.
|
|
|
*
|
|
|
* @returns {boolean}
|
|
|
*/
|
|
|
ResizeObserverSPI.prototype.hasActive = function () {
|
|
|
return this.activeObservations_.length > 0;
|
|
|
};
|
|
|
return ResizeObserverSPI;
|
|
|
}());
|
|
|
|
|
|
// Registry of internal observers. If WeakMap is not available use current shim
|
|
|
// for the Map collection as it has all required methods and because WeakMap
|
|
|
// can't be fully polyfilled anyway.
|
|
|
var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
|
|
|
/**
|
|
|
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
|
|
|
* exposing only those methods and properties that are defined in the spec.
|
|
|
*/
|
|
|
var ResizeObserver = /** @class */ (function () {
|
|
|
/**
|
|
|
* Creates a new instance of ResizeObserver.
|
|
|
*
|
|
|
* @param {ResizeObserverCallback} callback - Callback that is invoked when
|
|
|
* dimensions of the observed elements change.
|
|
|
*/
|
|
|
function ResizeObserver(callback) {
|
|
|
if (!(this instanceof ResizeObserver)) {
|
|
|
throw new TypeError('Cannot call a class as a function.');
|
|
|
}
|
|
|
if (!arguments.length) {
|
|
|
throw new TypeError('1 argument required, but only 0 present.');
|
|
|
}
|
|
|
var controller = ResizeObserverController.getInstance();
|
|
|
var observer = new ResizeObserverSPI(callback, controller, this);
|
|
|
observers.set(this, observer);
|
|
|
}
|
|
|
return ResizeObserver;
|
|
|
}());
|
|
|
// Expose public methods of ResizeObserver.
|
|
|
[
|
|
|
'observe',
|
|
|
'unobserve',
|
|
|
'disconnect'
|
|
|
].forEach(function (method) {
|
|
|
ResizeObserver.prototype[method] = function () {
|
|
|
var _a;
|
|
|
return (_a = observers.get(this))[method].apply(_a, arguments);
|
|
|
};
|
|
|
});
|
|
|
|
|
|
var index = (function () {
|
|
|
// Export existing implementation if available.
|
|
|
if (typeof global$1.ResizeObserver !== 'undefined') {
|
|
|
return global$1.ResizeObserver;
|
|
|
}
|
|
|
return ResizeObserver;
|
|
|
})();
|
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (index);
|
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/scheduler/cjs/scheduler-tracing.development.js":
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/** @license React v0.19.1
|
|
|
* scheduler-tracing.development.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (true) {
|
|
|
(function() {
|
|
|
'use strict';
|
|
|
|
|
|
var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
|
|
|
|
|
|
var interactionIDCounter = 0;
|
|
|
var threadIDCounter = 0; // Set of currently traced interactions.
|
|
|
// Interactions "stack"–
|
|
|
// Meaning that newly traced interactions are appended to the previously active set.
|
|
|
// When an interaction goes out of scope, the previous set (if any) is restored.
|
|
|
|
|
|
exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
|
|
|
|
|
|
exports.__subscriberRef = null;
|
|
|
|
|
|
{
|
|
|
exports.__interactionsRef = {
|
|
|
current: new Set()
|
|
|
};
|
|
|
exports.__subscriberRef = {
|
|
|
current: null
|
|
|
};
|
|
|
}
|
|
|
function unstable_clear(callback) {
|
|
|
|
|
|
var prevInteractions = exports.__interactionsRef.current;
|
|
|
exports.__interactionsRef.current = new Set();
|
|
|
|
|
|
try {
|
|
|
return callback();
|
|
|
} finally {
|
|
|
exports.__interactionsRef.current = prevInteractions;
|
|
|
}
|
|
|
}
|
|
|
function unstable_getCurrent() {
|
|
|
{
|
|
|
return exports.__interactionsRef.current;
|
|
|
}
|
|
|
}
|
|
|
function unstable_getThreadID() {
|
|
|
return ++threadIDCounter;
|
|
|
}
|
|
|
function unstable_trace(name, timestamp, callback) {
|
|
|
var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
|
|
|
|
|
|
var interaction = {
|
|
|
__count: 1,
|
|
|
id: interactionIDCounter++,
|
|
|
name: name,
|
|
|
timestamp: timestamp
|
|
|
};
|
|
|
var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
|
|
|
// To do that, clone the current interactions.
|
|
|
// The previous set will be restored upon completion.
|
|
|
|
|
|
var interactions = new Set(prevInteractions);
|
|
|
interactions.add(interaction);
|
|
|
exports.__interactionsRef.current = interactions;
|
|
|
var subscriber = exports.__subscriberRef.current;
|
|
|
var returnValue;
|
|
|
|
|
|
try {
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onInteractionTraced(interaction);
|
|
|
}
|
|
|
} finally {
|
|
|
try {
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkStarted(interactions, threadID);
|
|
|
}
|
|
|
} finally {
|
|
|
try {
|
|
|
returnValue = callback();
|
|
|
} finally {
|
|
|
exports.__interactionsRef.current = prevInteractions;
|
|
|
|
|
|
try {
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkStopped(interactions, threadID);
|
|
|
}
|
|
|
} finally {
|
|
|
interaction.__count--; // If no async work was scheduled for this interaction,
|
|
|
// Notify subscribers that it's completed.
|
|
|
|
|
|
if (subscriber !== null && interaction.__count === 0) {
|
|
|
subscriber.onInteractionScheduledWorkCompleted(interaction);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return returnValue;
|
|
|
}
|
|
|
function unstable_wrap(callback) {
|
|
|
var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
|
|
|
|
|
|
var wrappedInteractions = exports.__interactionsRef.current;
|
|
|
var subscriber = exports.__subscriberRef.current;
|
|
|
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkScheduled(wrappedInteractions, threadID);
|
|
|
} // Update the pending async work count for the current interactions.
|
|
|
// Update after calling subscribers in case of error.
|
|
|
|
|
|
|
|
|
wrappedInteractions.forEach(function (interaction) {
|
|
|
interaction.__count++;
|
|
|
});
|
|
|
var hasRun = false;
|
|
|
|
|
|
function wrapped() {
|
|
|
var prevInteractions = exports.__interactionsRef.current;
|
|
|
exports.__interactionsRef.current = wrappedInteractions;
|
|
|
subscriber = exports.__subscriberRef.current;
|
|
|
|
|
|
try {
|
|
|
var returnValue;
|
|
|
|
|
|
try {
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkStarted(wrappedInteractions, threadID);
|
|
|
}
|
|
|
} finally {
|
|
|
try {
|
|
|
returnValue = callback.apply(undefined, arguments);
|
|
|
} finally {
|
|
|
exports.__interactionsRef.current = prevInteractions;
|
|
|
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkStopped(wrappedInteractions, threadID);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return returnValue;
|
|
|
} finally {
|
|
|
if (!hasRun) {
|
|
|
// We only expect a wrapped function to be executed once,
|
|
|
// But in the event that it's executed more than once–
|
|
|
// Only decrement the outstanding interaction counts once.
|
|
|
hasRun = true; // Update pending async counts for all wrapped interactions.
|
|
|
// If this was the last scheduled async work for any of them,
|
|
|
// Mark them as completed.
|
|
|
|
|
|
wrappedInteractions.forEach(function (interaction) {
|
|
|
interaction.__count--;
|
|
|
|
|
|
if (subscriber !== null && interaction.__count === 0) {
|
|
|
subscriber.onInteractionScheduledWorkCompleted(interaction);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
wrapped.cancel = function cancel() {
|
|
|
subscriber = exports.__subscriberRef.current;
|
|
|
|
|
|
try {
|
|
|
if (subscriber !== null) {
|
|
|
subscriber.onWorkCanceled(wrappedInteractions, threadID);
|
|
|
}
|
|
|
} finally {
|
|
|
// Update pending async counts for all wrapped interactions.
|
|
|
// If this was the last scheduled async work for any of them,
|
|
|
// Mark them as completed.
|
|
|
wrappedInteractions.forEach(function (interaction) {
|
|
|
interaction.__count--;
|
|
|
|
|
|
if (subscriber && interaction.__count === 0) {
|
|
|
subscriber.onInteractionScheduledWorkCompleted(interaction);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return wrapped;
|
|
|
}
|
|
|
|
|
|
var subscribers = null;
|
|
|
|
|
|
{
|
|
|
subscribers = new Set();
|
|
|
}
|
|
|
|
|
|
function unstable_subscribe(subscriber) {
|
|
|
{
|
|
|
subscribers.add(subscriber);
|
|
|
|
|
|
if (subscribers.size === 1) {
|
|
|
exports.__subscriberRef.current = {
|
|
|
onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
|
|
|
onInteractionTraced: onInteractionTraced,
|
|
|
onWorkCanceled: onWorkCanceled,
|
|
|
onWorkScheduled: onWorkScheduled,
|
|
|
onWorkStarted: onWorkStarted,
|
|
|
onWorkStopped: onWorkStopped
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function unstable_unsubscribe(subscriber) {
|
|
|
{
|
|
|
subscribers.delete(subscriber);
|
|
|
|
|
|
if (subscribers.size === 0) {
|
|
|
exports.__subscriberRef.current = null;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onInteractionTraced(interaction) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onInteractionTraced(interaction);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onInteractionScheduledWorkCompleted(interaction) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onInteractionScheduledWorkCompleted(interaction);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onWorkScheduled(interactions, threadID) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onWorkScheduled(interactions, threadID);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onWorkStarted(interactions, threadID) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onWorkStarted(interactions, threadID);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onWorkStopped(interactions, threadID) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onWorkStopped(interactions, threadID);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function onWorkCanceled(interactions, threadID) {
|
|
|
var didCatchError = false;
|
|
|
var caughtError = null;
|
|
|
subscribers.forEach(function (subscriber) {
|
|
|
try {
|
|
|
subscriber.onWorkCanceled(interactions, threadID);
|
|
|
} catch (error) {
|
|
|
if (!didCatchError) {
|
|
|
didCatchError = true;
|
|
|
caughtError = error;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (didCatchError) {
|
|
|
throw caughtError;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
exports.unstable_clear = unstable_clear;
|
|
|
exports.unstable_getCurrent = unstable_getCurrent;
|
|
|
exports.unstable_getThreadID = unstable_getThreadID;
|
|
|
exports.unstable_subscribe = unstable_subscribe;
|
|
|
exports.unstable_trace = unstable_trace;
|
|
|
exports.unstable_unsubscribe = unstable_unsubscribe;
|
|
|
exports.unstable_wrap = unstable_wrap;
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/scheduler/cjs/scheduler.development.js":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
|
|
|
\*************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
/** @license React v0.19.1
|
|
|
* scheduler.development.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (true) {
|
|
|
(function() {
|
|
|
'use strict';
|
|
|
|
|
|
var enableSchedulerDebugging = false;
|
|
|
var enableProfiling = true;
|
|
|
|
|
|
var requestHostCallback;
|
|
|
var requestHostTimeout;
|
|
|
var cancelHostTimeout;
|
|
|
var shouldYieldToHost;
|
|
|
var requestPaint;
|
|
|
|
|
|
if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
|
|
|
// implementation using setTimeout.
|
|
|
typeof window === 'undefined' || // Check if MessageChannel is supported, too.
|
|
|
typeof MessageChannel !== 'function') {
|
|
|
// If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
|
|
|
// fallback to a naive implementation.
|
|
|
var _callback = null;
|
|
|
var _timeoutID = null;
|
|
|
|
|
|
var _flushCallback = function () {
|
|
|
if (_callback !== null) {
|
|
|
try {
|
|
|
var currentTime = exports.unstable_now();
|
|
|
var hasRemainingTime = true;
|
|
|
|
|
|
_callback(hasRemainingTime, currentTime);
|
|
|
|
|
|
_callback = null;
|
|
|
} catch (e) {
|
|
|
setTimeout(_flushCallback, 0);
|
|
|
throw e;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var initialTime = Date.now();
|
|
|
|
|
|
exports.unstable_now = function () {
|
|
|
return Date.now() - initialTime;
|
|
|
};
|
|
|
|
|
|
requestHostCallback = function (cb) {
|
|
|
if (_callback !== null) {
|
|
|
// Protect against re-entrancy.
|
|
|
setTimeout(requestHostCallback, 0, cb);
|
|
|
} else {
|
|
|
_callback = cb;
|
|
|
setTimeout(_flushCallback, 0);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
requestHostTimeout = function (cb, ms) {
|
|
|
_timeoutID = setTimeout(cb, ms);
|
|
|
};
|
|
|
|
|
|
cancelHostTimeout = function () {
|
|
|
clearTimeout(_timeoutID);
|
|
|
};
|
|
|
|
|
|
shouldYieldToHost = function () {
|
|
|
return false;
|
|
|
};
|
|
|
|
|
|
requestPaint = exports.unstable_forceFrameRate = function () {};
|
|
|
} else {
|
|
|
// Capture local references to native APIs, in case a polyfill overrides them.
|
|
|
var performance = window.performance;
|
|
|
var _Date = window.Date;
|
|
|
var _setTimeout = window.setTimeout;
|
|
|
var _clearTimeout = window.clearTimeout;
|
|
|
|
|
|
if (typeof console !== 'undefined') {
|
|
|
// TODO: Scheduler no longer requires these methods to be polyfilled. But
|
|
|
// maybe we want to continue warning if they don't exist, to preserve the
|
|
|
// option to rely on it in the future?
|
|
|
var requestAnimationFrame = window.requestAnimationFrame;
|
|
|
var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
|
|
|
|
|
|
if (typeof requestAnimationFrame !== 'function') {
|
|
|
// Using console['error'] to evade Babel and ESLint
|
|
|
console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
|
}
|
|
|
|
|
|
if (typeof cancelAnimationFrame !== 'function') {
|
|
|
// Using console['error'] to evade Babel and ESLint
|
|
|
console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (typeof performance === 'object' && typeof performance.now === 'function') {
|
|
|
exports.unstable_now = function () {
|
|
|
return performance.now();
|
|
|
};
|
|
|
} else {
|
|
|
var _initialTime = _Date.now();
|
|
|
|
|
|
exports.unstable_now = function () {
|
|
|
return _Date.now() - _initialTime;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var isMessageLoopRunning = false;
|
|
|
var scheduledHostCallback = null;
|
|
|
var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
|
|
|
// thread, like user events. By default, it yields multiple times per frame.
|
|
|
// It does not attempt to align with frame boundaries, since most tasks don't
|
|
|
// need to be frame aligned; for those that do, use requestAnimationFrame.
|
|
|
|
|
|
var yieldInterval = 5;
|
|
|
var deadline = 0; // TODO: Make this configurable
|
|
|
|
|
|
{
|
|
|
// `isInputPending` is not available. Since we have no way of knowing if
|
|
|
// there's pending input, always yield at the end of the frame.
|
|
|
shouldYieldToHost = function () {
|
|
|
return exports.unstable_now() >= deadline;
|
|
|
}; // Since we yield every frame regardless, `requestPaint` has no effect.
|
|
|
|
|
|
|
|
|
requestPaint = function () {};
|
|
|
}
|
|
|
|
|
|
exports.unstable_forceFrameRate = function (fps) {
|
|
|
if (fps < 0 || fps > 125) {
|
|
|
// Using console['error'] to evade Babel and ESLint
|
|
|
console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (fps > 0) {
|
|
|
yieldInterval = Math.floor(1000 / fps);
|
|
|
} else {
|
|
|
// reset the framerate
|
|
|
yieldInterval = 5;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var performWorkUntilDeadline = function () {
|
|
|
if (scheduledHostCallback !== null) {
|
|
|
var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
|
|
|
// cycle. This means there's always time remaining at the beginning of
|
|
|
// the message event.
|
|
|
|
|
|
deadline = currentTime + yieldInterval;
|
|
|
var hasTimeRemaining = true;
|
|
|
|
|
|
try {
|
|
|
var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
|
|
|
|
|
|
if (!hasMoreWork) {
|
|
|
isMessageLoopRunning = false;
|
|
|
scheduledHostCallback = null;
|
|
|
} else {
|
|
|
// If there's more work, schedule the next message event at the end
|
|
|
// of the preceding one.
|
|
|
port.postMessage(null);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
// If a scheduler task throws, exit the current browser task so the
|
|
|
// error can be observed.
|
|
|
port.postMessage(null);
|
|
|
throw error;
|
|
|
}
|
|
|
} else {
|
|
|
isMessageLoopRunning = false;
|
|
|
} // Yielding to the browser will give it a chance to paint, so we can
|
|
|
};
|
|
|
|
|
|
var channel = new MessageChannel();
|
|
|
var port = channel.port2;
|
|
|
channel.port1.onmessage = performWorkUntilDeadline;
|
|
|
|
|
|
requestHostCallback = function (callback) {
|
|
|
scheduledHostCallback = callback;
|
|
|
|
|
|
if (!isMessageLoopRunning) {
|
|
|
isMessageLoopRunning = true;
|
|
|
port.postMessage(null);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
requestHostTimeout = function (callback, ms) {
|
|
|
taskTimeoutID = _setTimeout(function () {
|
|
|
callback(exports.unstable_now());
|
|
|
}, ms);
|
|
|
};
|
|
|
|
|
|
cancelHostTimeout = function () {
|
|
|
_clearTimeout(taskTimeoutID);
|
|
|
|
|
|
taskTimeoutID = -1;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function push(heap, node) {
|
|
|
var index = heap.length;
|
|
|
heap.push(node);
|
|
|
siftUp(heap, node, index);
|
|
|
}
|
|
|
function peek(heap) {
|
|
|
var first = heap[0];
|
|
|
return first === undefined ? null : first;
|
|
|
}
|
|
|
function pop(heap) {
|
|
|
var first = heap[0];
|
|
|
|
|
|
if (first !== undefined) {
|
|
|
var last = heap.pop();
|
|
|
|
|
|
if (last !== first) {
|
|
|
heap[0] = last;
|
|
|
siftDown(heap, last, 0);
|
|
|
}
|
|
|
|
|
|
return first;
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function siftUp(heap, node, i) {
|
|
|
var index = i;
|
|
|
|
|
|
while (true) {
|
|
|
var parentIndex = index - 1 >>> 1;
|
|
|
var parent = heap[parentIndex];
|
|
|
|
|
|
if (parent !== undefined && compare(parent, node) > 0) {
|
|
|
// The parent is larger. Swap positions.
|
|
|
heap[parentIndex] = node;
|
|
|
heap[index] = parent;
|
|
|
index = parentIndex;
|
|
|
} else {
|
|
|
// The parent is smaller. Exit.
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function siftDown(heap, node, i) {
|
|
|
var index = i;
|
|
|
var length = heap.length;
|
|
|
|
|
|
while (index < length) {
|
|
|
var leftIndex = (index + 1) * 2 - 1;
|
|
|
var left = heap[leftIndex];
|
|
|
var rightIndex = leftIndex + 1;
|
|
|
var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
|
|
|
|
|
|
if (left !== undefined && compare(left, node) < 0) {
|
|
|
if (right !== undefined && compare(right, left) < 0) {
|
|
|
heap[index] = right;
|
|
|
heap[rightIndex] = node;
|
|
|
index = rightIndex;
|
|
|
} else {
|
|
|
heap[index] = left;
|
|
|
heap[leftIndex] = node;
|
|
|
index = leftIndex;
|
|
|
}
|
|
|
} else if (right !== undefined && compare(right, node) < 0) {
|
|
|
heap[index] = right;
|
|
|
heap[rightIndex] = node;
|
|
|
index = rightIndex;
|
|
|
} else {
|
|
|
// Neither child is smaller. Exit.
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function compare(a, b) {
|
|
|
// Compare sort index first, then task id.
|
|
|
var diff = a.sortIndex - b.sortIndex;
|
|
|
return diff !== 0 ? diff : a.id - b.id;
|
|
|
}
|
|
|
|
|
|
// TODO: Use symbols?
|
|
|
var NoPriority = 0;
|
|
|
var ImmediatePriority = 1;
|
|
|
var UserBlockingPriority = 2;
|
|
|
var NormalPriority = 3;
|
|
|
var LowPriority = 4;
|
|
|
var IdlePriority = 5;
|
|
|
|
|
|
var runIdCounter = 0;
|
|
|
var mainThreadIdCounter = 0;
|
|
|
var profilingStateSize = 4;
|
|
|
var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer
|
|
|
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
|
|
|
typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
|
|
|
;
|
|
|
var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
|
|
|
|
|
|
var PRIORITY = 0;
|
|
|
var CURRENT_TASK_ID = 1;
|
|
|
var CURRENT_RUN_ID = 2;
|
|
|
var QUEUE_SIZE = 3;
|
|
|
|
|
|
{
|
|
|
profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
|
|
|
// array might include canceled tasks.
|
|
|
|
|
|
profilingState[QUEUE_SIZE] = 0;
|
|
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
|
} // Bytes per element is 4
|
|
|
|
|
|
|
|
|
var INITIAL_EVENT_LOG_SIZE = 131072;
|
|
|
var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
|
|
|
|
|
|
var eventLogSize = 0;
|
|
|
var eventLogBuffer = null;
|
|
|
var eventLog = null;
|
|
|
var eventLogIndex = 0;
|
|
|
var TaskStartEvent = 1;
|
|
|
var TaskCompleteEvent = 2;
|
|
|
var TaskErrorEvent = 3;
|
|
|
var TaskCancelEvent = 4;
|
|
|
var TaskRunEvent = 5;
|
|
|
var TaskYieldEvent = 6;
|
|
|
var SchedulerSuspendEvent = 7;
|
|
|
var SchedulerResumeEvent = 8;
|
|
|
|
|
|
function logEvent(entries) {
|
|
|
if (eventLog !== null) {
|
|
|
var offset = eventLogIndex;
|
|
|
eventLogIndex += entries.length;
|
|
|
|
|
|
if (eventLogIndex + 1 > eventLogSize) {
|
|
|
eventLogSize *= 2;
|
|
|
|
|
|
if (eventLogSize > MAX_EVENT_LOG_SIZE) {
|
|
|
// Using console['error'] to evade Babel and ESLint
|
|
|
console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
|
|
|
stopLoggingProfilingEvents();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var newEventLog = new Int32Array(eventLogSize * 4);
|
|
|
newEventLog.set(eventLog);
|
|
|
eventLogBuffer = newEventLog.buffer;
|
|
|
eventLog = newEventLog;
|
|
|
}
|
|
|
|
|
|
eventLog.set(entries, offset);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function startLoggingProfilingEvents() {
|
|
|
eventLogSize = INITIAL_EVENT_LOG_SIZE;
|
|
|
eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
|
|
|
eventLog = new Int32Array(eventLogBuffer);
|
|
|
eventLogIndex = 0;
|
|
|
}
|
|
|
function stopLoggingProfilingEvents() {
|
|
|
var buffer = eventLogBuffer;
|
|
|
eventLogSize = 0;
|
|
|
eventLogBuffer = null;
|
|
|
eventLog = null;
|
|
|
eventLogIndex = 0;
|
|
|
return buffer;
|
|
|
}
|
|
|
function markTaskStart(task, ms) {
|
|
|
{
|
|
|
profilingState[QUEUE_SIZE]++;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
// performance.now returns a float, representing milliseconds. When the
|
|
|
// event is logged, it's coerced to an int. Convert to microseconds to
|
|
|
// maintain extra degrees of precision.
|
|
|
logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markTaskCompleted(task, ms) {
|
|
|
{
|
|
|
profilingState[PRIORITY] = NoPriority;
|
|
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
|
profilingState[QUEUE_SIZE]--;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([TaskCompleteEvent, ms * 1000, task.id]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markTaskCanceled(task, ms) {
|
|
|
{
|
|
|
profilingState[QUEUE_SIZE]--;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([TaskCancelEvent, ms * 1000, task.id]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markTaskErrored(task, ms) {
|
|
|
{
|
|
|
profilingState[PRIORITY] = NoPriority;
|
|
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
|
profilingState[QUEUE_SIZE]--;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([TaskErrorEvent, ms * 1000, task.id]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markTaskRun(task, ms) {
|
|
|
{
|
|
|
runIdCounter++;
|
|
|
profilingState[PRIORITY] = task.priorityLevel;
|
|
|
profilingState[CURRENT_TASK_ID] = task.id;
|
|
|
profilingState[CURRENT_RUN_ID] = runIdCounter;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markTaskYield(task, ms) {
|
|
|
{
|
|
|
profilingState[PRIORITY] = NoPriority;
|
|
|
profilingState[CURRENT_TASK_ID] = 0;
|
|
|
profilingState[CURRENT_RUN_ID] = 0;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markSchedulerSuspended(ms) {
|
|
|
{
|
|
|
mainThreadIdCounter++;
|
|
|
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
function markSchedulerUnsuspended(ms) {
|
|
|
{
|
|
|
if (eventLog !== null) {
|
|
|
logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* eslint-disable no-var */
|
|
|
// Math.pow(2, 30) - 1
|
|
|
// 0b111111111111111111111111111111
|
|
|
|
|
|
var maxSigned31BitInt = 1073741823; // Times out immediately
|
|
|
|
|
|
var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
|
|
|
|
|
|
var USER_BLOCKING_PRIORITY = 250;
|
|
|
var NORMAL_PRIORITY_TIMEOUT = 5000;
|
|
|
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
|
|
|
|
|
|
var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap
|
|
|
|
|
|
var taskQueue = [];
|
|
|
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
|
|
|
|
|
|
var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
|
|
|
var currentTask = null;
|
|
|
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
|
|
|
|
|
|
var isPerformingWork = false;
|
|
|
var isHostCallbackScheduled = false;
|
|
|
var isHostTimeoutScheduled = false;
|
|
|
|
|
|
function advanceTimers(currentTime) {
|
|
|
// Check for tasks that are no longer delayed and add them to the queue.
|
|
|
var timer = peek(timerQueue);
|
|
|
|
|
|
while (timer !== null) {
|
|
|
if (timer.callback === null) {
|
|
|
// Timer was cancelled.
|
|
|
pop(timerQueue);
|
|
|
} else if (timer.startTime <= currentTime) {
|
|
|
// Timer fired. Transfer to the task queue.
|
|
|
pop(timerQueue);
|
|
|
timer.sortIndex = timer.expirationTime;
|
|
|
push(taskQueue, timer);
|
|
|
|
|
|
{
|
|
|
markTaskStart(timer, currentTime);
|
|
|
timer.isQueued = true;
|
|
|
}
|
|
|
} else {
|
|
|
// Remaining timers are pending.
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
timer = peek(timerQueue);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function handleTimeout(currentTime) {
|
|
|
isHostTimeoutScheduled = false;
|
|
|
advanceTimers(currentTime);
|
|
|
|
|
|
if (!isHostCallbackScheduled) {
|
|
|
if (peek(taskQueue) !== null) {
|
|
|
isHostCallbackScheduled = true;
|
|
|
requestHostCallback(flushWork);
|
|
|
} else {
|
|
|
var firstTimer = peek(timerQueue);
|
|
|
|
|
|
if (firstTimer !== null) {
|
|
|
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function flushWork(hasTimeRemaining, initialTime) {
|
|
|
{
|
|
|
markSchedulerUnsuspended(initialTime);
|
|
|
} // We'll need a host callback the next time work is scheduled.
|
|
|
|
|
|
|
|
|
isHostCallbackScheduled = false;
|
|
|
|
|
|
if (isHostTimeoutScheduled) {
|
|
|
// We scheduled a timeout but it's no longer needed. Cancel it.
|
|
|
isHostTimeoutScheduled = false;
|
|
|
cancelHostTimeout();
|
|
|
}
|
|
|
|
|
|
isPerformingWork = true;
|
|
|
var previousPriorityLevel = currentPriorityLevel;
|
|
|
|
|
|
try {
|
|
|
if (enableProfiling) {
|
|
|
try {
|
|
|
return workLoop(hasTimeRemaining, initialTime);
|
|
|
} catch (error) {
|
|
|
if (currentTask !== null) {
|
|
|
var currentTime = exports.unstable_now();
|
|
|
markTaskErrored(currentTask, currentTime);
|
|
|
currentTask.isQueued = false;
|
|
|
}
|
|
|
|
|
|
throw error;
|
|
|
}
|
|
|
} else {
|
|
|
// No catch in prod codepath.
|
|
|
return workLoop(hasTimeRemaining, initialTime);
|
|
|
}
|
|
|
} finally {
|
|
|
currentTask = null;
|
|
|
currentPriorityLevel = previousPriorityLevel;
|
|
|
isPerformingWork = false;
|
|
|
|
|
|
{
|
|
|
var _currentTime = exports.unstable_now();
|
|
|
|
|
|
markSchedulerSuspended(_currentTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function workLoop(hasTimeRemaining, initialTime) {
|
|
|
var currentTime = initialTime;
|
|
|
advanceTimers(currentTime);
|
|
|
currentTask = peek(taskQueue);
|
|
|
|
|
|
while (currentTask !== null && !(enableSchedulerDebugging )) {
|
|
|
if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
|
|
|
// This currentTask hasn't expired, and we've reached the deadline.
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var callback = currentTask.callback;
|
|
|
|
|
|
if (callback !== null) {
|
|
|
currentTask.callback = null;
|
|
|
currentPriorityLevel = currentTask.priorityLevel;
|
|
|
var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
|
|
|
markTaskRun(currentTask, currentTime);
|
|
|
var continuationCallback = callback(didUserCallbackTimeout);
|
|
|
currentTime = exports.unstable_now();
|
|
|
|
|
|
if (typeof continuationCallback === 'function') {
|
|
|
currentTask.callback = continuationCallback;
|
|
|
markTaskYield(currentTask, currentTime);
|
|
|
} else {
|
|
|
{
|
|
|
markTaskCompleted(currentTask, currentTime);
|
|
|
currentTask.isQueued = false;
|
|
|
}
|
|
|
|
|
|
if (currentTask === peek(taskQueue)) {
|
|
|
pop(taskQueue);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
advanceTimers(currentTime);
|
|
|
} else {
|
|
|
pop(taskQueue);
|
|
|
}
|
|
|
|
|
|
currentTask = peek(taskQueue);
|
|
|
} // Return whether there's additional work
|
|
|
|
|
|
|
|
|
if (currentTask !== null) {
|
|
|
return true;
|
|
|
} else {
|
|
|
var firstTimer = peek(timerQueue);
|
|
|
|
|
|
if (firstTimer !== null) {
|
|
|
requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unstable_runWithPriority(priorityLevel, eventHandler) {
|
|
|
switch (priorityLevel) {
|
|
|
case ImmediatePriority:
|
|
|
case UserBlockingPriority:
|
|
|
case NormalPriority:
|
|
|
case LowPriority:
|
|
|
case IdlePriority:
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
priorityLevel = NormalPriority;
|
|
|
}
|
|
|
|
|
|
var previousPriorityLevel = currentPriorityLevel;
|
|
|
currentPriorityLevel = priorityLevel;
|
|
|
|
|
|
try {
|
|
|
return eventHandler();
|
|
|
} finally {
|
|
|
currentPriorityLevel = previousPriorityLevel;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unstable_next(eventHandler) {
|
|
|
var priorityLevel;
|
|
|
|
|
|
switch (currentPriorityLevel) {
|
|
|
case ImmediatePriority:
|
|
|
case UserBlockingPriority:
|
|
|
case NormalPriority:
|
|
|
// Shift down to normal priority
|
|
|
priorityLevel = NormalPriority;
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
// Anything lower than normal priority should remain at the current level.
|
|
|
priorityLevel = currentPriorityLevel;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
var previousPriorityLevel = currentPriorityLevel;
|
|
|
currentPriorityLevel = priorityLevel;
|
|
|
|
|
|
try {
|
|
|
return eventHandler();
|
|
|
} finally {
|
|
|
currentPriorityLevel = previousPriorityLevel;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unstable_wrapCallback(callback) {
|
|
|
var parentPriorityLevel = currentPriorityLevel;
|
|
|
return function () {
|
|
|
// This is a fork of runWithPriority, inlined for performance.
|
|
|
var previousPriorityLevel = currentPriorityLevel;
|
|
|
currentPriorityLevel = parentPriorityLevel;
|
|
|
|
|
|
try {
|
|
|
return callback.apply(this, arguments);
|
|
|
} finally {
|
|
|
currentPriorityLevel = previousPriorityLevel;
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function timeoutForPriorityLevel(priorityLevel) {
|
|
|
switch (priorityLevel) {
|
|
|
case ImmediatePriority:
|
|
|
return IMMEDIATE_PRIORITY_TIMEOUT;
|
|
|
|
|
|
case UserBlockingPriority:
|
|
|
return USER_BLOCKING_PRIORITY;
|
|
|
|
|
|
case IdlePriority:
|
|
|
return IDLE_PRIORITY;
|
|
|
|
|
|
case LowPriority:
|
|
|
return LOW_PRIORITY_TIMEOUT;
|
|
|
|
|
|
case NormalPriority:
|
|
|
default:
|
|
|
return NORMAL_PRIORITY_TIMEOUT;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unstable_scheduleCallback(priorityLevel, callback, options) {
|
|
|
var currentTime = exports.unstable_now();
|
|
|
var startTime;
|
|
|
var timeout;
|
|
|
|
|
|
if (typeof options === 'object' && options !== null) {
|
|
|
var delay = options.delay;
|
|
|
|
|
|
if (typeof delay === 'number' && delay > 0) {
|
|
|
startTime = currentTime + delay;
|
|
|
} else {
|
|
|
startTime = currentTime;
|
|
|
}
|
|
|
|
|
|
timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
|
|
|
} else {
|
|
|
timeout = timeoutForPriorityLevel(priorityLevel);
|
|
|
startTime = currentTime;
|
|
|
}
|
|
|
|
|
|
var expirationTime = startTime + timeout;
|
|
|
var newTask = {
|
|
|
id: taskIdCounter++,
|
|
|
callback: callback,
|
|
|
priorityLevel: priorityLevel,
|
|
|
startTime: startTime,
|
|
|
expirationTime: expirationTime,
|
|
|
sortIndex: -1
|
|
|
};
|
|
|
|
|
|
{
|
|
|
newTask.isQueued = false;
|
|
|
}
|
|
|
|
|
|
if (startTime > currentTime) {
|
|
|
// This is a delayed task.
|
|
|
newTask.sortIndex = startTime;
|
|
|
push(timerQueue, newTask);
|
|
|
|
|
|
if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
|
|
|
// All tasks are delayed, and this is the task with the earliest delay.
|
|
|
if (isHostTimeoutScheduled) {
|
|
|
// Cancel an existing timeout.
|
|
|
cancelHostTimeout();
|
|
|
} else {
|
|
|
isHostTimeoutScheduled = true;
|
|
|
} // Schedule a timeout.
|
|
|
|
|
|
|
|
|
requestHostTimeout(handleTimeout, startTime - currentTime);
|
|
|
}
|
|
|
} else {
|
|
|
newTask.sortIndex = expirationTime;
|
|
|
push(taskQueue, newTask);
|
|
|
|
|
|
{
|
|
|
markTaskStart(newTask, currentTime);
|
|
|
newTask.isQueued = true;
|
|
|
} // Schedule a host callback, if needed. If we're already performing work,
|
|
|
// wait until the next time we yield.
|
|
|
|
|
|
|
|
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
|
isHostCallbackScheduled = true;
|
|
|
requestHostCallback(flushWork);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return newTask;
|
|
|
}
|
|
|
|
|
|
function unstable_pauseExecution() {
|
|
|
}
|
|
|
|
|
|
function unstable_continueExecution() {
|
|
|
|
|
|
if (!isHostCallbackScheduled && !isPerformingWork) {
|
|
|
isHostCallbackScheduled = true;
|
|
|
requestHostCallback(flushWork);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function unstable_getFirstCallbackNode() {
|
|
|
return peek(taskQueue);
|
|
|
}
|
|
|
|
|
|
function unstable_cancelCallback(task) {
|
|
|
{
|
|
|
if (task.isQueued) {
|
|
|
var currentTime = exports.unstable_now();
|
|
|
markTaskCanceled(task, currentTime);
|
|
|
task.isQueued = false;
|
|
|
}
|
|
|
} // Null out the callback to indicate the task has been canceled. (Can't
|
|
|
// remove from the queue because you can't remove arbitrary nodes from an
|
|
|
// array based heap, only the first one.)
|
|
|
|
|
|
|
|
|
task.callback = null;
|
|
|
}
|
|
|
|
|
|
function unstable_getCurrentPriorityLevel() {
|
|
|
return currentPriorityLevel;
|
|
|
}
|
|
|
|
|
|
function unstable_shouldYield() {
|
|
|
var currentTime = exports.unstable_now();
|
|
|
advanceTimers(currentTime);
|
|
|
var firstTask = peek(taskQueue);
|
|
|
return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
|
|
|
}
|
|
|
|
|
|
var unstable_requestPaint = requestPaint;
|
|
|
var unstable_Profiling = {
|
|
|
startLoggingProfilingEvents: startLoggingProfilingEvents,
|
|
|
stopLoggingProfilingEvents: stopLoggingProfilingEvents,
|
|
|
sharedProfilingBuffer: sharedProfilingBuffer
|
|
|
} ;
|
|
|
|
|
|
exports.unstable_IdlePriority = IdlePriority;
|
|
|
exports.unstable_ImmediatePriority = ImmediatePriority;
|
|
|
exports.unstable_LowPriority = LowPriority;
|
|
|
exports.unstable_NormalPriority = NormalPriority;
|
|
|
exports.unstable_Profiling = unstable_Profiling;
|
|
|
exports.unstable_UserBlockingPriority = UserBlockingPriority;
|
|
|
exports.unstable_cancelCallback = unstable_cancelCallback;
|
|
|
exports.unstable_continueExecution = unstable_continueExecution;
|
|
|
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
|
|
|
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
|
|
|
exports.unstable_next = unstable_next;
|
|
|
exports.unstable_pauseExecution = unstable_pauseExecution;
|
|
|
exports.unstable_requestPaint = unstable_requestPaint;
|
|
|
exports.unstable_runWithPriority = unstable_runWithPriority;
|
|
|
exports.unstable_scheduleCallback = unstable_scheduleCallback;
|
|
|
exports.unstable_shouldYield = unstable_shouldYield;
|
|
|
exports.unstable_wrapCallback = unstable_wrapCallback;
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/scheduler/index.js":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/scheduler/index.js ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
if (false) {} else {
|
|
|
module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/scheduler/cjs/scheduler.development.js");
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/scheduler/tracing.js":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/scheduler/tracing.js ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
if (false) {} else {
|
|
|
module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "./node_modules/scheduler/cjs/scheduler-tracing.development.js");
|
|
|
}
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/shallowequal/index.js":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/shallowequal/index.js ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
//
|
|
|
|
|
|
module.exports = function shallowEqual(objA, objB, compare, compareContext) {
|
|
|
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
|
|
|
|
if (ret !== void 0) {
|
|
|
return !!ret;
|
|
|
}
|
|
|
|
|
|
if (objA === objB) {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var keysA = Object.keys(objA);
|
|
|
var keysB = Object.keys(objB);
|
|
|
|
|
|
if (keysA.length !== keysB.length) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
|
|
|
|
|
|
// Test for A's keys different from B.
|
|
|
for (var idx = 0; idx < keysA.length; idx++) {
|
|
|
var key = keysA[idx];
|
|
|
|
|
|
if (!bHasOwnProperty(key)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
var valueA = objA[key];
|
|
|
var valueB = objB[key];
|
|
|
|
|
|
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
|
|
|
|
if (ret === false || (ret === void 0 && valueA !== valueB)) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
|
|
|
/*!****************************************************************************!*\
|
|
|
!*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
|
|
|
\****************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
var isOldIE = function isOldIE() {
|
|
|
var memo;
|
|
|
return function memorize() {
|
|
|
if (typeof memo === 'undefined') {
|
|
|
// Test for IE <= 9 as proposed by Browserhacks
|
|
|
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
|
// Tests for existence of standard globals is to allow style-loader
|
|
|
// to operate correctly into non-standard environments
|
|
|
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
|
memo = Boolean(window && document && document.all && !window.atob);
|
|
|
}
|
|
|
|
|
|
return memo;
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
var getTarget = function getTarget() {
|
|
|
var memo = {};
|
|
|
return function memorize(target) {
|
|
|
if (typeof memo[target] === 'undefined') {
|
|
|
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
|
|
|
|
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
|
try {
|
|
|
// This will throw an exception if access to iframe is blocked
|
|
|
// due to cross-origin restrictions
|
|
|
styleTarget = styleTarget.contentDocument.head;
|
|
|
} catch (e) {
|
|
|
// istanbul ignore next
|
|
|
styleTarget = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
memo[target] = styleTarget;
|
|
|
}
|
|
|
|
|
|
return memo[target];
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
var stylesInDom = [];
|
|
|
|
|
|
function getIndexByIdentifier(identifier) {
|
|
|
var result = -1;
|
|
|
|
|
|
for (var i = 0; i < stylesInDom.length; i++) {
|
|
|
if (stylesInDom[i].identifier === identifier) {
|
|
|
result = i;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
function modulesToDom(list, options) {
|
|
|
var idCountMap = {};
|
|
|
var identifiers = [];
|
|
|
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
var item = list[i];
|
|
|
var id = options.base ? item[0] + options.base : item[0];
|
|
|
var count = idCountMap[id] || 0;
|
|
|
var identifier = "".concat(id, " ").concat(count);
|
|
|
idCountMap[id] = count + 1;
|
|
|
var index = getIndexByIdentifier(identifier);
|
|
|
var obj = {
|
|
|
css: item[1],
|
|
|
media: item[2],
|
|
|
sourceMap: item[3]
|
|
|
};
|
|
|
|
|
|
if (index !== -1) {
|
|
|
stylesInDom[index].references++;
|
|
|
stylesInDom[index].updater(obj);
|
|
|
} else {
|
|
|
stylesInDom.push({
|
|
|
identifier: identifier,
|
|
|
updater: addStyle(obj, options),
|
|
|
references: 1
|
|
|
});
|
|
|
}
|
|
|
|
|
|
identifiers.push(identifier);
|
|
|
}
|
|
|
|
|
|
return identifiers;
|
|
|
}
|
|
|
|
|
|
function insertStyleElement(options) {
|
|
|
var style = document.createElement('style');
|
|
|
var attributes = options.attributes || {};
|
|
|
|
|
|
if (typeof attributes.nonce === 'undefined') {
|
|
|
var nonce = true ? __webpack_require__.nc : undefined;
|
|
|
|
|
|
if (nonce) {
|
|
|
attributes.nonce = nonce;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Object.keys(attributes).forEach(function (key) {
|
|
|
style.setAttribute(key, attributes[key]);
|
|
|
});
|
|
|
|
|
|
if (typeof options.insert === 'function') {
|
|
|
options.insert(style);
|
|
|
} else {
|
|
|
var target = getTarget(options.insert || 'head');
|
|
|
|
|
|
if (!target) {
|
|
|
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
|
}
|
|
|
|
|
|
target.appendChild(style);
|
|
|
}
|
|
|
|
|
|
return style;
|
|
|
}
|
|
|
|
|
|
function removeStyleElement(style) {
|
|
|
// istanbul ignore if
|
|
|
if (style.parentNode === null) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
style.parentNode.removeChild(style);
|
|
|
}
|
|
|
/* istanbul ignore next */
|
|
|
|
|
|
|
|
|
var replaceText = function replaceText() {
|
|
|
var textStore = [];
|
|
|
return function replace(index, replacement) {
|
|
|
textStore[index] = replacement;
|
|
|
return textStore.filter(Boolean).join('\n');
|
|
|
};
|
|
|
}();
|
|
|
|
|
|
function applyToSingletonTag(style, index, remove, obj) {
|
|
|
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
|
|
|
|
/* istanbul ignore if */
|
|
|
|
|
|
if (style.styleSheet) {
|
|
|
style.styleSheet.cssText = replaceText(index, css);
|
|
|
} else {
|
|
|
var cssNode = document.createTextNode(css);
|
|
|
var childNodes = style.childNodes;
|
|
|
|
|
|
if (childNodes[index]) {
|
|
|
style.removeChild(childNodes[index]);
|
|
|
}
|
|
|
|
|
|
if (childNodes.length) {
|
|
|
style.insertBefore(cssNode, childNodes[index]);
|
|
|
} else {
|
|
|
style.appendChild(cssNode);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function applyToTag(style, options, obj) {
|
|
|
var css = obj.css;
|
|
|
var media = obj.media;
|
|
|
var sourceMap = obj.sourceMap;
|
|
|
|
|
|
if (media) {
|
|
|
style.setAttribute('media', media);
|
|
|
} else {
|
|
|
style.removeAttribute('media');
|
|
|
}
|
|
|
|
|
|
if (sourceMap && typeof btoa !== 'undefined') {
|
|
|
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
|
} // For old IE
|
|
|
|
|
|
/* istanbul ignore if */
|
|
|
|
|
|
|
|
|
if (style.styleSheet) {
|
|
|
style.styleSheet.cssText = css;
|
|
|
} else {
|
|
|
while (style.firstChild) {
|
|
|
style.removeChild(style.firstChild);
|
|
|
}
|
|
|
|
|
|
style.appendChild(document.createTextNode(css));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var singleton = null;
|
|
|
var singletonCounter = 0;
|
|
|
|
|
|
function addStyle(obj, options) {
|
|
|
var style;
|
|
|
var update;
|
|
|
var remove;
|
|
|
|
|
|
if (options.singleton) {
|
|
|
var styleIndex = singletonCounter++;
|
|
|
style = singleton || (singleton = insertStyleElement(options));
|
|
|
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
|
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
|
} else {
|
|
|
style = insertStyleElement(options);
|
|
|
update = applyToTag.bind(null, style, options);
|
|
|
|
|
|
remove = function remove() {
|
|
|
removeStyleElement(style);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
update(obj);
|
|
|
return function updateStyle(newObj) {
|
|
|
if (newObj) {
|
|
|
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
update(obj = newObj);
|
|
|
} else {
|
|
|
remove();
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
module.exports = function (list, options) {
|
|
|
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
|
// tags it will allow on a page
|
|
|
|
|
|
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
|
options.singleton = isOldIE();
|
|
|
}
|
|
|
|
|
|
list = list || [];
|
|
|
var lastIdentifiers = modulesToDom(list, options);
|
|
|
return function update(newList) {
|
|
|
newList = newList || [];
|
|
|
|
|
|
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
|
var identifier = lastIdentifiers[i];
|
|
|
var index = getIndexByIdentifier(identifier);
|
|
|
stylesInDom[index].references--;
|
|
|
}
|
|
|
|
|
|
var newLastIdentifiers = modulesToDom(newList, options);
|
|
|
|
|
|
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
|
var _identifier = lastIdentifiers[_i];
|
|
|
|
|
|
var _index = getIndexByIdentifier(_identifier);
|
|
|
|
|
|
if (stylesInDom[_index].references === 0) {
|
|
|
stylesInDom[_index].updater();
|
|
|
|
|
|
stylesInDom.splice(_index, 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
lastIdentifiers = newLastIdentifiers;
|
|
|
};
|
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/webpack/buildin/global.js":
|
|
|
/*!***********************************!*\
|
|
|
!*** (webpack)/buildin/global.js ***!
|
|
|
\***********************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
var g;
|
|
|
|
|
|
// This works in non-strict mode
|
|
|
g = (function() {
|
|
|
return this;
|
|
|
})();
|
|
|
|
|
|
try {
|
|
|
// This works if eval is allowed (see CSP)
|
|
|
g = g || new Function("return this")();
|
|
|
} catch (e) {
|
|
|
// This works if the window reference is available
|
|
|
if (typeof window === "object") g = window;
|
|
|
}
|
|
|
|
|
|
// g can still be undefined, but nothing to do about it...
|
|
|
// We return undefined, instead of nothing here, so it's
|
|
|
// easier to handle this case. if(!global) { ...}
|
|
|
|
|
|
module.exports = g;
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./node_modules/webpack/buildin/module.js":
|
|
|
/*!***********************************!*\
|
|
|
!*** (webpack)/buildin/module.js ***!
|
|
|
\***********************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
module.exports = function(module) {
|
|
|
if (!module.webpackPolyfill) {
|
|
|
module.deprecate = function() {};
|
|
|
module.paths = [];
|
|
|
// module.parent = undefined by default
|
|
|
if (!module.children) module.children = [];
|
|
|
Object.defineProperty(module, "loaded", {
|
|
|
enumerable: true,
|
|
|
get: function() {
|
|
|
return module.l;
|
|
|
}
|
|
|
});
|
|
|
Object.defineProperty(module, "id", {
|
|
|
enumerable: true,
|
|
|
get: function() {
|
|
|
return module.i;
|
|
|
}
|
|
|
});
|
|
|
module.webpackPolyfill = 1;
|
|
|
}
|
|
|
return module;
|
|
|
};
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/components/MyButton/index.jsx":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/components/MyButton/index.jsx ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var antd_lib_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/lib/button */ "./node_modules/antd/lib/button/index.js");
|
|
|
/* harmony import */ var antd_lib_button__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(antd_lib_button__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var MyButton = function MyButton(_ref) {
|
|
|
var buttonRef = _ref.buttonRef,
|
|
|
text = _ref.text,
|
|
|
click = _ref.click;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
|
ref: buttonRef
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd_lib_button__WEBPACK_IMPORTED_MODULE_2___default.a, {
|
|
|
type: "primary",
|
|
|
onClick: click
|
|
|
}, text));
|
|
|
};
|
|
|
|
|
|
MyButton.propTypes = {
|
|
|
buttonRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.shape({
|
|
|
current: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.instanceOf(Element)
|
|
|
}),
|
|
|
text: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string.isRequired,
|
|
|
click: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MyButton);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/containers/DashboardContainer/index.jsx":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/containers/DashboardContainer/index.jsx ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DashboardContainer; });
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var _components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/MyButton/index.jsx */ "./src/components/MyButton/index.jsx");
|
|
|
/* harmony import */ var _TabelaPessoas_index_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TabelaPessoas/index.jsx */ "./src/containers/TabelaPessoas/index.jsx");
|
|
|
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less */ "./src/containers/DashboardContainer/index.less");
|
|
|
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
|
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
|
|
|
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
|
|
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
|
|
|
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
|
|
|
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
|
|
|
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
|
|
|
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
|
|
|
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DashboardContainer = /*#__PURE__*/function (_Component) {
|
|
|
_inherits(DashboardContainer, _Component);
|
|
|
|
|
|
var _super = _createSuper(DashboardContainer);
|
|
|
|
|
|
function DashboardContainer(props) {
|
|
|
var _this;
|
|
|
|
|
|
_classCallCheck(this, DashboardContainer);
|
|
|
|
|
|
_this = _super.call(this, props);
|
|
|
_this.state = {
|
|
|
counter: 0
|
|
|
};
|
|
|
_this.button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createRef();
|
|
|
_this.click = _this.click.bind(_assertThisInitialized(_this));
|
|
|
return _this;
|
|
|
}
|
|
|
|
|
|
_createClass(DashboardContainer, [{
|
|
|
key: "componentWillMount",
|
|
|
value: function componentWillMount() {
|
|
|
/*
|
|
|
// Basic sample of the service call:
|
|
|
fetch('/services/my-test.netuno', {
|
|
|
credentials: 'include'
|
|
|
}).then((response) => {
|
|
|
return response.json();
|
|
|
}).then((json) => {
|
|
|
// json...;
|
|
|
});
|
|
|
*/
|
|
|
|
|
|
/*
|
|
|
// Better sample of the recommended way to call services:
|
|
|
const fail = ()=> {
|
|
|
this.setState({ loading: false });
|
|
|
notification["error"]({
|
|
|
message: 'Error',
|
|
|
description: 'Data loading error...',
|
|
|
style: {
|
|
|
marginTop: 100,
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
netuno.service({
|
|
|
url: '/services/my-data-service',
|
|
|
method: 'POST',
|
|
|
credentials: 'include',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json'
|
|
|
},
|
|
|
body: JSON.stringify({
|
|
|
param1: 'value1',
|
|
|
param2: 'value2'
|
|
|
}),
|
|
|
success: (response)=> {
|
|
|
console.log(response);
|
|
|
if (response.json) {
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
data: response.json
|
|
|
});
|
|
|
} else {
|
|
|
fail();
|
|
|
}
|
|
|
},
|
|
|
fail: ()=> {
|
|
|
fail();
|
|
|
}
|
|
|
});
|
|
|
*/
|
|
|
}
|
|
|
}, {
|
|
|
key: "componentDidUpdate",
|
|
|
value: function componentDidUpdate(prevProps, prevState, snapshot) {
|
|
|
$(this.button.current).fadeOut(250).fadeIn(250);
|
|
|
}
|
|
|
}, {
|
|
|
key: "click",
|
|
|
value: function click() {
|
|
|
this.setState({
|
|
|
counter: this.state.counter + 1
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
key: "render",
|
|
|
value: function render() {
|
|
|
var counter = this.state.counter;
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
|
className: "my-dashboard"
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
|
className: "my-dashboard__button"
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TabelaPessoas_index_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_MyButton_index_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
|
mainRef: this.button,
|
|
|
text: "ReactJS \u26A1 Ant.Design \uD83D\uDC49 Click me! ".concat(counter),
|
|
|
click: this.click
|
|
|
})));
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return DashboardContainer;
|
|
|
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/containers/DashboardContainer/index.less":
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./src/containers/DashboardContainer/index.less ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var api = __webpack_require__(/*! ../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
|
|
|
var content = __webpack_require__(/*! !../../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../../node_modules/less-loader/dist/cjs.js??ref--6-2!./index.less */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/less-loader/dist/cjs.js?!./src/containers/DashboardContainer/index.less");
|
|
|
|
|
|
content = content.__esModule ? content.default : content;
|
|
|
|
|
|
if (typeof content === 'string') {
|
|
|
content = [[module.i, content, '']];
|
|
|
}
|
|
|
|
|
|
var options = {};
|
|
|
|
|
|
options.insert = "head";
|
|
|
options.singleton = false;
|
|
|
|
|
|
var update = api(content, options);
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = content.locals || {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/containers/TabelaPessoas/index.jsx":
|
|
|
/*!************************************************!*\
|
|
|
!*** ./src/containers/TabelaPessoas/index.jsx ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! antd/lib/table */ "./node_modules/antd/lib/table/index.js");
|
|
|
/* harmony import */ var antd_lib_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(antd_lib_table__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
/* harmony import */ var antd_lib_tag__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! antd/lib/tag */ "./node_modules/antd/lib/tag/index.js");
|
|
|
/* harmony import */ var antd_lib_tag__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(antd_lib_tag__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
|
|
|
|
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
|
|
|
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TabelaPessoas = function TabelaPessoas(_ref) {
|
|
|
var buttonRef = _ref.buttonRef,
|
|
|
text = _ref.text,
|
|
|
click = _ref.click;
|
|
|
|
|
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])([]),
|
|
|
_useState2 = _slicedToArray(_useState, 2),
|
|
|
tabelaDados = _useState2[0],
|
|
|
setTabelaDados = _useState2[1];
|
|
|
|
|
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(false),
|
|
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
|
carregando = _useState4[0],
|
|
|
setCarregando = _useState4[1];
|
|
|
|
|
|
Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
|
|
netuno.service({
|
|
|
method: "GET",
|
|
|
url: "/services/pessoas",
|
|
|
credentials: "include",
|
|
|
sucess: function sucess(response) {
|
|
|
if (response.json) {
|
|
|
setTabelaDados(response.json);
|
|
|
}
|
|
|
},
|
|
|
fail: function fail(e) {
|
|
|
console.log("Erro ao carregar dados");
|
|
|
}
|
|
|
});
|
|
|
}, []);
|
|
|
var columns = [{
|
|
|
title: 'Nome',
|
|
|
dataIndex: 'nome',
|
|
|
key: 'nome'
|
|
|
}, {
|
|
|
title: 'Cidade',
|
|
|
dataIndex: 'cidade',
|
|
|
key: 'cidade'
|
|
|
}, {
|
|
|
title: 'Comunidades',
|
|
|
dataIndex: 'comunidades',
|
|
|
key: 'comunidades',
|
|
|
render: function render(comunidades, data) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, comunidades.map(function (comunidade) {
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd_lib_tag__WEBPACK_IMPORTED_MODULE_3___default.a, {
|
|
|
key: comunidade.nome
|
|
|
}, comunidade.nome);
|
|
|
}));
|
|
|
}
|
|
|
}];
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd_lib_table__WEBPACK_IMPORTED_MODULE_2___default.a, {
|
|
|
columns: columns,
|
|
|
dataSource: tabelaDados,
|
|
|
loading: carregando
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
TabelaPessoas.propTypes = {};
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (MyButton);
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/index.jsx":
|
|
|
/*!***********************!*\
|
|
|
!*** ./src/index.jsx ***!
|
|
|
\***********************/
|
|
|
/*! no exports provided */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
"use strict";
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
|
|
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
/* harmony import */ var _containers_DashboardContainer_index_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./containers/DashboardContainer/index.jsx */ "./src/containers/DashboardContainer/index.jsx");
|
|
|
|
|
|
|
|
|
|
|
|
var dashboardDiv = document.getElementById("app-dashboard");
|
|
|
var dashboardContainer = dashboardDiv ? react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_containers_DashboardContainer_index_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], null), dashboardDiv) : false;
|
|
|
netuno.addNavigationLoad(function () {
|
|
|
$('[netuno-navigation]').find('a').on('netuno:click', function (e) {
|
|
|
var link = $(e.target);
|
|
|
|
|
|
if (dashboardContainer && link.is('[netuno-navigation-dashboard]')) {// Menu > Dashboard > Clicked!
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
netuno.addContentLoad(function (container) {
|
|
|
// When any content is loaded dinamically this is executed...
|
|
|
if (container.is('[netuno-form-search="YOUR_FORM_NAME"]')) {// When search page is loaded...
|
|
|
} else if (container.is('[netuno-form-edit="YOUR_FORM_NAME"]')) {// When form edit is loaded...
|
|
|
}
|
|
|
});
|
|
|
netuno.addPageLoad(function () {
|
|
|
// When page is loaded...
|
|
|
var modal = $('#app-dashboard-modal-form');
|
|
|
modal.on('hidden.bs.modal', function () {
|
|
|
modal.find('[netuno-form-edit]').empty();
|
|
|
});
|
|
|
$('#app-dashboard-modal-form-button').on('click', function () {
|
|
|
modal.modal('show');
|
|
|
netuno.loadFormEdit(modal.find('[netuno-form]'));
|
|
|
});
|
|
|
modal.find('[netuno-form]').on('netuno:save', function () {
|
|
|
modal.modal('hide');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ "./src/styles/main.less":
|
|
|
/*!******************************!*\
|
|
|
!*** ./src/styles/main.less ***!
|
|
|
\******************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var api = __webpack_require__(/*! ../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
|
|
|
var content = __webpack_require__(/*! !../../node_modules/css-loader/dist/cjs.js??ref--6-1!../../node_modules/less-loader/dist/cjs.js??ref--6-2!./main.less */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/less-loader/dist/cjs.js?!./src/styles/main.less");
|
|
|
|
|
|
content = content.__esModule ? content.default : content;
|
|
|
|
|
|
if (typeof content === 'string') {
|
|
|
content = [[module.i, content, '']];
|
|
|
}
|
|
|
|
|
|
var options = {};
|
|
|
|
|
|
options.insert = "head";
|
|
|
options.singleton = false;
|
|
|
|
|
|
var update = api(content, options);
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = content.locals || {};
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 0:
|
|
|
/*!****************************************************!*\
|
|
|
!*** multi ./src/index.jsx ./src/styles/main.less ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
__webpack_require__(/*! ./src/index.jsx */"./src/index.jsx");
|
|
|
module.exports = __webpack_require__(/*! ./src/styles/main.less */"./src/styles/main.less");
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
/******/ });
|
|
|
//# sourceMappingURL=main.js.map
|