react-component-trigger 0.0.7 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,27 +1,39 @@
1
- # Boilerplate for React.js components
1
+ # react-component-trigger
2
2
 
3
- This is a simple boilerplate that has been developed to make it easier to develop React components and small projects.
3
+ > ⚠️ **This package is deprecated, unmaintained, and does nothing. Do not depend on it in any project.**
4
4
 
5
- ## Basic Usage
5
+ ## What is this
6
6
 
7
- ```
8
- Clone the boilerplate if you haven't downloaded it
9
- $ git clone https://github.com/billgo/react-component-boilerplate.git my-component
7
+ This is an **empty package**. It exports no usable functionality.
10
8
 
11
- To get started with fresh history
12
- $ cd my-component
13
- $ rm -rf .git
14
- $ git init
15
- $ git add .
16
- $ git commit -am "Init"
17
- ```
9
+ I originally intended to remove this package from npm entirely, but under [npm's unpublish policy](https://docs.npmjs.com/policies/unpublish), a package that has been published for more than 72 hours and is depended on by others cannot be unpublished unconditionally.
18
10
 
19
- ## Common Tasks
11
+ To prevent anyone from continuing to rely on an abandoned package, I published this **blank version** in its place — it does nothing and introduces no side effects.
20
12
 
21
- - Developing - yarn sample - Runs the development server at localhost:6060 and use Hot Module Replacement.
22
- - Publishing a version - yarn publish - Pushes a new version to npm and updates the project site.
23
- - Building sample site - yarn run build:sample - Builds the documentation into ./docs directory.
13
+ ## A note on the original code
24
14
 
25
- ## License
15
+ This package was published while I was still learning. The original code was written very casually and is **not safe**. I strongly advise no individual and no organization to use any of the original code directly — it was never intended for production use.
26
16
 
27
- React-component-boilerplate is available under MIT.
17
+ ## What you should do
18
+
19
+ - If your project has this package installed, **remove it**:
20
+
21
+ ```bash
22
+ npm uninstall react-component-trigger
23
+ ```
24
+
25
+ - Do not install or depend on this package in new projects.
26
+ - This repository does not accept issues or pull requests, and will receive no further updates.
27
+
28
+ ## References: npm package management policies
29
+
30
+ For context on why this package was published as an empty replacement rather than removed, see npm's official policies:
31
+
32
+ - [Unpublish policy](https://docs.npmjs.com/policies/unpublish) — when and how a package may (or may not) be removed from the registry, including the 72-hour rule and the dependents restriction.
33
+ - [Removing/unpublishing a package (CLI guide)](https://docs.npmjs.com/unpublishing-packages-from-the-registry) — `npm unpublish` behavior and limitations.
34
+ - [Deprecating a package or version](https://docs.npmjs.com/deprecating-and-undeprecating-packages-or-package-versions) — using `npm deprecate` to warn users without removing the package.
35
+ - [Package name guidelines](https://docs.npmjs.com/package-name-guidelines) — naming rules and squatting restrictions.
36
+ - [npm Open-Source Terms](https://docs.npmjs.com/policies/open-source-terms) — the terms governing public packages on the registry.
37
+ - [npm Code of Conduct](https://docs.npmjs.com/policies/conduct) — expected behavior for registry participants.
38
+
39
+ Thanks for understanding.
@@ -0,0 +1,4 @@
1
+ //#region src/index.d.ts
2
+ declare class NpmTemplate {}
3
+ //#endregion
4
+ export { NpmTemplate };
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ //#region src/index.ts
2
+ var NpmTemplate = class {};
3
+ //#endregion
4
+ export { NpmTemplate };
package/package.json CHANGED
@@ -1,186 +1,53 @@
1
1
  {
2
2
  "name": "react-component-trigger",
3
- "npmName": "ReactComponentTrigger",
4
- "version": "0.0.7",
5
- "description": "react component trigger",
6
- "license": "MIT",
7
- "author": "Billgo",
8
- "main": "lib/index.js",
3
+ "version": "10.0.0",
4
+ "license": "UNLICENSED",
5
+ "description": "A small Esmkit tslib package.",
6
+ "author": "Billgo <hi@billgo.me>",
7
+ "bugs": "https://github.com/esmkit/npmjs-template/issues",
8
+ "repository": "https://github.com/esmkit/npmjs-template.git",
9
+ "type": "module",
10
+ "sideEffects": false,
11
+ "main": "./dist/index.js",
12
+ "module": "./dist/index.js",
13
+ "browser": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
9
15
  "files": [
10
- "lib",
11
- "umd"
16
+ "dist",
17
+ "README.md"
12
18
  ],
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/billgo/react-components.git"
16
- },
17
- "bugs": {
18
- "url": "https://github.com/billgo/react-components/issues"
19
- },
20
- "scripts": {
21
- "prepare": "npm run build && npm run start",
22
- "start": "rimraf umd && mkdir umd && webpack --config webpack.config.js",
23
- "start:sample": "start-sample -p 6060",
24
- "build": "rimraf lib && mkdir lib && cpx 'source/**/*.less' lib && babel source --out-dir lib",
25
- "build:sample": "build-sample -s public -o samples-docs",
26
- "analyz": "NODE_ENV=production npm_config_report=true npm run start",
27
- "sample": "npm run start:sample",
28
- "lint": "npm run lint:js && npm run lint:style",
29
- "lint:js": "prettier-eslint --write source/**/*.{js,jsx}",
30
- "lint:style": "stylelint-config-prettier-check source/**/*.{css,less}",
31
- "test": "NODE_ENV=test jest"
32
- },
33
- "babel": {
34
- "presets": [
35
- "common"
36
- ],
37
- "comments": false,
38
- "minified": true
39
- },
40
- "jest": {
41
- "verbose": true,
42
- "moduleFileExtensions": [
43
- "js",
44
- "jsx"
45
- ],
46
- "moduleDirectories": [
47
- "node_modules",
48
- "source"
49
- ],
50
- "moduleNameMapper": {
51
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/fileMock.js",
52
- "\\.(css|less|scss)$": "<rootDir>/mocks/styleMock.js"
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "browser": "./dist/index.js",
23
+ "import": "./dist/index.js"
53
24
  },
54
- "testPathIgnorePatterns": [
55
- "/node_modules/",
56
- "/build/",
57
- "/lib/",
58
- "/umd/"
59
- ],
60
- "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$",
61
- "testEnvironment": "enzyme",
62
- "setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js",
63
- "unmockedModulePathPatterns": [
64
- "react",
65
- "enzyme",
66
- "jest-enzyme"
67
- ],
68
- "transform": {
69
- "^.+\\.js$": "babel-jest"
70
- }
71
- },
72
- "eslintConfig": {
73
- "rules": {
74
- "prettier/prettier": "error"
75
- },
76
- "plugins": [
77
- "babel",
78
- "prettier"
79
- ],
80
- "extends": [
81
- "plugin:prettier/recommended",
82
- "prettier/flowtype",
83
- "prettier/react",
84
- "prettier/standard"
85
- ],
86
- "parserOptions": {
87
- "ecmaVersion": 6,
88
- "sourceType": "module",
89
- "ecmaFeatures": {
90
- "jsx": true
91
- }
92
- },
93
- "env": {
94
- "browser": true,
95
- "node": true,
96
- "jest": true,
97
- "es6": true
98
- }
99
- },
100
- "stylelint": {
101
- "extends": "stylelint-config-prettier",
102
- "rules": {
103
- "at-rule-no-unknown": [
104
- true,
105
- {
106
- "ignoreAtRules": [
107
- "extends"
108
- ]
109
- }
110
- ],
111
- "block-no-empty": null,
112
- "unit-whitelist": [
113
- "em",
114
- "rem",
115
- "s"
116
- ]
117
- }
25
+ "./package.json": "./package.json"
118
26
  },
27
+ "scripts": {
28
+ "dev": "tsdown --watch",
29
+ "build": "tsdown",
30
+ "check": "biome check .",
31
+ "check:fix": "biome check --write .",
32
+ "docs:dev": "rspress dev",
33
+ "docs:build": "rspress build",
34
+ "docs:preview": "rspress preview",
35
+ "typecheck": "tsc --noEmit",
36
+ "test": "bun test"
37
+ },
38
+ "dependencies": {},
119
39
  "devDependencies": {
120
- "@babel/cli": "7.2.3",
121
- "@babel/core": "7.2.2",
122
- "@babel/runtime": "^7.2.0",
123
- "@teakit/samples": "0.0.6",
124
- "autoprefixer": "9.4.5",
125
- "babel-core": "^7.0.0-bridge",
126
- "babel-eslint": "^10.0.1",
127
- "babel-jest": "^23.6.0",
128
- "babel-loader": "^8.0.4",
129
- "babel-preset-common": "0.0.5",
130
- "cpx": "^1.5.0",
131
- "css-loader": "2.1.0",
132
- "cssnano": "^4.1.7",
133
- "empty-module": "0.0.2",
134
- "enzyme": "^3.7.0",
135
- "enzyme-adapter-react-16": "^1.7.0",
136
- "eslint": "^5.9.0",
137
- "eslint-config-prettier": "^3.1.0",
138
- "eslint-plugin-prettier": "^3.0.0",
139
- "exports-loader": "^0.7.0",
140
- "file-loader": "3.0.1",
141
- "flow-bin": "0.90.0",
142
- "html-loader": "^0.5.5",
143
- "html-webpack-plugin": "^3.0.7",
144
- "imports-loader": "^0.8.0",
145
- "jest": "^23.6.0",
146
- "jest-cli": "^23.6.0",
147
- "jest-environment-enzyme": "^7.0.1",
148
- "jest-enzyme": "^7.0.1",
149
- "jsx-loader": "^0.13.2",
150
- "less": "3.9.0",
151
- "less-loader": "^4.0.6",
152
- "mini-css-extract-plugin": "^0.5.0",
153
- "optimize-css-assets-webpack-plugin": "^5.0.1",
154
- "postcss": "7.0.11",
155
- "postcss-cli": "6.1.1",
156
- "postcss-flexbugs-fixes": "^4.1.0",
157
- "postcss-less": "^3.1.0",
158
- "postcss-loader": "^3.0.0",
159
- "postcss-safe-parser": "^4.0.1",
160
- "prettier": "1.15.3",
161
- "prettier-eslint": "^8.8.2",
162
- "prettier-eslint-cli": "^4.7.1",
163
- "prettier-stylelint": "^0.4.2",
164
- "rimraf": "^2.6.2",
165
- "shelljs": "^0.8.2",
166
- "style-loader": "^0.23.1",
167
- "stylelint": "^9.9.0",
168
- "stylelint-config-prettier": "^4.0.0",
169
- "terser-webpack-plugin": "^1.1.0",
170
- "url-loader": "^1.1.1",
171
- "webpack": "4.28.4",
172
- "webpack-bundle-analyzer": "^3.0.3",
173
- "webpack-cli": "^3.1.1",
174
- "webpack-dev-middleware": "^3.4.0",
175
- "webpack-hot-middleware": "^2.24.3"
176
- },
177
- "dependencies": {
178
- "classnames": "2.2.6",
179
- "prop-types": "15.6.2",
180
- "react": "16.7.0",
181
- "react-component-align": "^0.0.7",
182
- "react-component-animate": "^0.0.7",
183
- "react-dom": "16.7.0",
184
- "react-utilset": "0.0.7"
40
+ "@biomejs/biome": "2.5.0",
41
+ "@devjskit/biome-config": "^0.2.2",
42
+ "@rspress/core": "^2.0.14",
43
+ "@types/node": "^25.9.3",
44
+ "@types/web": "^0.0.350",
45
+ "bun-types": "^1.3.14",
46
+ "tsdown": "^0.22.3",
47
+ "typescript": "^6.0.3"
48
+ },
49
+ "publishConfig": {
50
+ "registry": "https://registry.npmjs.org/",
51
+ "access": "public"
185
52
  }
186
53
  }
@@ -1 +0,0 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";import React from"react";import PropTypes from"prop-types";var LazyRenderBox=function(_React$Component){_inherits(LazyRenderBox,_React$Component);function LazyRenderBox(){_classCallCheck(this,LazyRenderBox);return _possibleConstructorReturn(this,_getPrototypeOf(LazyRenderBox).apply(this,arguments))}_createClass(LazyRenderBox,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){return nextProps.hiddenClassName||nextProps.visible}},{key:"render",value:function render(){var _this$props=this.props,hiddenClassName=_this$props.hiddenClassName,visible=_this$props.visible,props=_objectWithoutProperties(_this$props,["hiddenClassName","visible"]);if(hiddenClassName||React.Children.count(props.children)>1){if(!visible&&hiddenClassName){props.className+=" ".concat(hiddenClassName)}return React.createElement("div",props)}return React.Children.only(props.children)}}]);return LazyRenderBox}(React.Component);LazyRenderBox.propTypes={children:PropTypes.any,className:PropTypes.string,visible:PropTypes.bool,hiddenClassName:PropTypes.string};export default LazyRenderBox;
package/lib/Popup.js DELETED
@@ -1 +0,0 @@
1
- import _extends from"@babel/runtime/helpers/extends";import _objectSpread from"@babel/runtime/helpers/objectSpread";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import React from"react";import ReactDOM from"react-dom";import PropTypes from"prop-types";import Align from"react-component-align";import Animate from"react-component-animate";import PopupInner from"./PopupInner";import LazyRenderBox from"./LazyRenderBox";import{saveRef}from"./utils";var Popup=function(_React$Component){_inherits(Popup,_React$Component);function Popup(_props){var _this;_classCallCheck(this,Popup);_this=_possibleConstructorReturn(this,_getPrototypeOf(Popup).call(this,_props));_this.onAlign=function(popupDomNode,align){var props=_this.props;var currentAlignClassName=props.getClassNameFromAlign(align);if(_this.currentAlignClassName!==currentAlignClassName){_this.currentAlignClassName=currentAlignClassName;popupDomNode.className=_this.getClassName(currentAlignClassName)}props.onAlign(popupDomNode,align)};_this.setStretchSize=function(){var _this$props=_this.props,stretch=_this$props.stretch,getRootDomNode=_this$props.getRootDomNode,visible=_this$props.visible;var _this$state=_this.state,stretchChecked=_this$state.stretchChecked,targetHeight=_this$state.targetHeight,targetWidth=_this$state.targetWidth;if(!stretch||!visible){if(stretchChecked){_this.setState({stretchChecked:false})}return}var $ele=getRootDomNode();if(!$ele)return;var height=$ele.offsetHeight;var width=$ele.offsetWidth;if(targetHeight!==height||targetWidth!==width||!stretchChecked){_this.setState({stretchChecked:true,targetHeight:height,targetWidth:width})}};_this.getTargetElement=function(){return _this.props.getRootDomNode()};_this.getAlignTarget=function(){var point=_this.props.point;if(point){return point}return _this.getTargetElement};_this.state={stretchChecked:false,targetWidth:undefined,targetHeight:undefined};_this.savePopupRef=saveRef.bind(_assertThisInitialized(_assertThisInitialized(_this)),"popupInstance");_this.saveAlignRef=saveRef.bind(_assertThisInitialized(_assertThisInitialized(_this)),"alignInstance");return _this}_createClass(Popup,[{key:"componentDidMount",value:function componentDidMount(){this.rootNode=this.getPopupDomNode();this.setStretchSize()}},{key:"componentDidUpdate",value:function componentDidUpdate(){this.setStretchSize()}},{key:"getPopupDomNode",value:function getPopupDomNode(){return ReactDOM.findDOMNode(this.popupInstance)}},{key:"getMaskTransitionName",value:function getMaskTransitionName(){var props=this.props;var transitionName=props.maskTransitionName;var animation=props.maskAnimation;if(!transitionName&&animation){transitionName="".concat(props.prefixCls,"-").concat(animation)}return transitionName}},{key:"getTransitionName",value:function getTransitionName(){var props=this.props;var transitionName=props.transitionName;if(!transitionName&&props.animation){transitionName="".concat(props.prefixCls,"-").concat(props.animation)}return transitionName}},{key:"getClassName",value:function getClassName(currentAlignClassName){return"".concat(this.props.prefixCls," ").concat(this.props.className," ").concat(currentAlignClassName)}},{key:"getPopupElement",value:function getPopupElement(){var _this2=this;var savePopupRef=this.savePopupRef;var _this$state2=this.state,stretchChecked=_this$state2.stretchChecked,targetHeight=_this$state2.targetHeight,targetWidth=_this$state2.targetWidth;var _this$props2=this.props,align=_this$props2.align,visible=_this$props2.visible,prefixCls=_this$props2.prefixCls,style=_this$props2.style,getClassNameFromAlign=_this$props2.getClassNameFromAlign,destroyPopupOnHide=_this$props2.destroyPopupOnHide,stretch=_this$props2.stretch,children=_this$props2.children,onMouseEnter=_this$props2.onMouseEnter,onMouseLeave=_this$props2.onMouseLeave,onMouseDown=_this$props2.onMouseDown,onTouchStart=_this$props2.onTouchStart;var className=this.getClassName(this.currentAlignClassName||getClassNameFromAlign(align));var hiddenClassName="".concat(prefixCls,"-hidden");if(!visible){this.currentAlignClassName=null}var sizeStyle={};if(stretch){if(stretch.indexOf("height")!==-1){sizeStyle.height=targetHeight}else if(stretch.indexOf("minHeight")!==-1){sizeStyle.minHeight=targetHeight}if(stretch.indexOf("width")!==-1){sizeStyle.width=targetWidth}else if(stretch.indexOf("minWidth")!==-1){sizeStyle.minWidth=targetWidth}if(!stretchChecked){sizeStyle.visibility="hidden";setTimeout(function(){if(_this2.alignInstance){_this2.alignInstance.forceAlign()}},0)}}var newStyle=_objectSpread({},sizeStyle,style,this.getZIndexStyle());var popupInnerProps={className:className,prefixCls:prefixCls,ref:savePopupRef,onMouseEnter:onMouseEnter,onMouseLeave:onMouseLeave,onMouseDown:onMouseDown,onTouchStart:onTouchStart,style:newStyle};if(destroyPopupOnHide){return React.createElement(Animate,{component:"",exclusive:true,transitionAppear:true,transitionName:this.getTransitionName()},visible?React.createElement(Align,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:true,align:align,onAlign:this.onAlign},React.createElement(PopupInner,_extends({visible:true},popupInnerProps),children)):null)}return React.createElement(Animate,{component:"",exclusive:true,transitionAppear:true,transitionName:this.getTransitionName(),showProp:"xVisible"},React.createElement(Align,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:true,xVisible:visible,childrenProps:{visible:"xVisible"},disabled:!visible,align:align,onAlign:this.onAlign},React.createElement(PopupInner,_extends({hiddenClassName:hiddenClassName},popupInnerProps),children)))}},{key:"getZIndexStyle",value:function getZIndexStyle(){var style={};var props=this.props;if(props.zIndex!==undefined){style.zIndex=props.zIndex}return style}},{key:"getMaskElement",value:function getMaskElement(){var props=this.props;var maskElement;if(props.mask){var maskTransition=this.getMaskTransitionName();maskElement=React.createElement(LazyRenderBox,{style:this.getZIndexStyle(),key:"mask",className:"".concat(props.prefixCls,"-mask"),hiddenClassName:"".concat(props.prefixCls,"-mask-hidden"),visible:props.visible});if(maskTransition){maskElement=React.createElement(Animate,{key:"mask",showProp:"visible",transitionAppear:true,component:"",transitionName:maskTransition},maskElement)}}return maskElement}},{key:"render",value:function render(){return React.createElement("div",null,this.getMaskElement(),this.getPopupElement())}}]);return Popup}(React.Component);Popup.propTypes={visible:PropTypes.bool,style:PropTypes.object,getClassNameFromAlign:PropTypes.func,onAlign:PropTypes.func,getRootDomNode:PropTypes.func,align:PropTypes.any,destroyPopupOnHide:PropTypes.bool,className:PropTypes.string,prefixCls:PropTypes.string,onMouseEnter:PropTypes.func,onMouseLeave:PropTypes.func,onMouseDown:PropTypes.func,onTouchStart:PropTypes.func,stretch:PropTypes.string,children:PropTypes.node,point:PropTypes.shape({pageX:PropTypes.number,pageY:PropTypes.number})};export default Popup;
package/lib/PopupInner.js DELETED
@@ -1 +0,0 @@
1
- import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";import React from"react";import PropTypes from"prop-types";import LazyRenderBox from"./LazyRenderBox";var PopupInner=function(_React$Component){_inherits(PopupInner,_React$Component);function PopupInner(){_classCallCheck(this,PopupInner);return _possibleConstructorReturn(this,_getPrototypeOf(PopupInner).apply(this,arguments))}_createClass(PopupInner,[{key:"render",value:function render(){var props=this.props;var className=props.className;if(!props.visible){className+=" ".concat(props.hiddenClassName)}return React.createElement("div",{className:className,onMouseEnter:props.onMouseEnter,onMouseLeave:props.onMouseLeave,onMouseDown:props.onMouseDown,onTouchStart:props.onTouchStart,style:props.style},React.createElement(LazyRenderBox,{className:"".concat(props.prefixCls,"-content"),visible:props.visible},props.children))}}]);return PopupInner}(React.Component);PopupInner.propTypes={hiddenClassName:PropTypes.string,className:PropTypes.string,prefixCls:PropTypes.string,onMouseEnter:PropTypes.func,onMouseLeave:PropTypes.func,onMouseDown:PropTypes.func,onTouchStart:PropTypes.func,children:PropTypes.any};export default PopupInner;
package/lib/Trigger.js DELETED
@@ -1 +0,0 @@
1
- import _extends from"@babel/runtime/helpers/extends";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import React from"react";import PropTypes from"prop-types";import{findDOMNode,createPortal}from"react-dom";import Portal from"react-utilset/lib/Portal";import ContainerRender from"react-utilset/lib/ContainerRender";import addEventListener from"react-utilset/lib/dom/addEventListenerWrap";import classNames from"classnames";import{getAlignFromPlacement,getAlignPopupClassName}from"./utils";import Popup from"./Popup";function noop(){}function contains(root,n){var node=n;while(node){if(node===root){return true}node=node.parentNode}return false}function returnEmptyString(){return""}function returnDocument(){return window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var IS_REACT_16=!!createPortal;var contextTypes={rcTrigger:PropTypes.shape({onPopupMouseDown:PropTypes.func})};var Trigger=function(_React$Component){_inherits(Trigger,_React$Component);function Trigger(_props){var _this;_classCallCheck(this,Trigger);_this=_possibleConstructorReturn(this,_getPrototypeOf(Trigger).call(this,_props));_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){if(e.relatedTarget&&!e.relatedTarget.setTimeout&&_this._component&&_this._component.getPopupDomNode&&contains(_this._component.getPopupDomNode(),e.relatedTarget)){return}_this.delaySetPopupVisible(false,_this.props.mouseLeaveDelay)};_this.onFocus=function(e){_this.fireEvents("onFocus",e);_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);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;if(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(){var _this$context$rcTrigg=_this.context.rcTrigger,rcTrigger=_this$context$rcTrigg===void 0?{}:_this$context$rcTrigg;_this.hasPopupMouseDown=true;clearTimeout(_this.mouseDownTimeout);_this.mouseDownTimeout=setTimeout(function(){_this.hasPopupMouseDown=false},0);if(rcTrigger.onPopupMouseDown){rcTrigger.onPopupMouseDown.apply(rcTrigger,arguments)}};_this.onDocumentClick=function(event){if(_this.props.mask&&!_this.props.maskClosable){return}var target=event.target;var root=findDOMNode(_assertThisInitialized(_assertThisInitialized(_this)));if(!contains(root,target)&&!_this.hasPopupMouseDown){_this.close()}};_this.getRootDomNode=function(){return findDOMNode(_assertThisInitialized(_assertThisInitialized(_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(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,action=_this$props2.action,onPopupAlign=_this$props2.onPopupAlign,popupAnimation=_this$props2.popupAnimation,popupTransitionName=_this$props2.popupTransitionName,popupStyle=_this$props2.popupStyle,mask=_this$props2.mask,maskAnimation=_this$props2.maskAnimation,maskTransitionName=_this$props2.maskTransitionName,zIndex=_this$props2.zIndex,popup=_this$props2.popup,stretch=_this$props2.stretch,alignPoint=_this$props2.alignPoint;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 React.createElement(Popup,_extends({prefixCls:prefixCls,destroyPopupOnHide:destroyPopupOnHide,visible:popupVisible,point:alignPoint&&point,className:popupClassName,action:action,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,ref:_this.savePopup}),typeof popup==="function"?popup():popup)};_this.getContainer=function(){var _assertThisInitialize=_assertThisInitialized(_assertThisInitialized(_this)),props=_assertThisInitialize.props;var popupContainer=document.createElement("div");popupContainer.style.position="absolute";popupContainer.style.top="0";popupContainer.style.left="0";popupContainer.style.width="100%";var mountNode=props.getPopupContainer?props.getPopupContainer(findDOMNode(_assertThisInitialized(_assertThisInitialized(_this)))):props.getDocument().body;mountNode.appendChild(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.prevPopupVisible!==_this.state.popupVisible){_this.props.afterPopupVisibleChange(_this.state.popupVisible)}};_this.savePopup=function(node){_this._component=node};var _popupVisible;if("popupVisible"in _props){_popupVisible=!!_props.popupVisible}else{_popupVisible=!!_props.defaultPopupVisible}_this.prevPopupVisible=_popupVisible;_this.state={popupVisible:_popupVisible};return _this}_createClass(Trigger,[{key:"getChildContext",value:function getChildContext(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}}},{key:"componentWillMount",value:function componentWillMount(){var _this2=this;ALL_HANDLERS.forEach(function(h){_this2["fire".concat(h)]=function(e){_this2.fireEvents(h,e)}})}},{key:"componentDidMount",value:function componentDidMount(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var popupVisible=_ref.popupVisible;if(popupVisible!==undefined){this.setState({popupVisible:popupVisible})}}},{key:"componentDidUpdate",value:function componentDidUpdate(_,prevState){var props=this.props;var state=this.state;var triggerAfterPopupVisibleChange=function triggerAfterPopupVisibleChange(){if(prevState.popupVisible!==state.popupVisible){props.afterPopupVisibleChange(state.popupVisible)}};if(!IS_REACT_16){this.renderComponent(null,triggerAfterPopupVisibleChange)}this.prevPopupVisible=prevState.popupVisible;if(state.popupVisible){var currentDocument;if(!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())){currentDocument=props.getDocument();this.clickOutsideHandler=addEventListener(currentDocument,"mousedown",this.onDocumentClick)}if(!this.touchOutsideHandler){currentDocument=currentDocument||props.getDocument();this.touchOutsideHandler=addEventListener(currentDocument,"touchstart",this.onDocumentClick)}if(!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()){currentDocument=currentDocument||props.getDocument();this.contextMenuOutsideHandler1=addEventListener(currentDocument,"scroll",this.onContextMenuClose)}if(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()){this.contextMenuOutsideHandler2=addEventListener(window,"blur",this.onContextMenuClose)}return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.clearDelayTimer();this.clearOutsideHandler();clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function getPopupDomNode(){if(this._component&&this._component.getPopupDomNode){return this._component.getPopupDomNode()}return null}},{key:"getPopupAlign",value:function getPopupAlign(){var props=this.props;var popupPlacement=props.popupPlacement,popupAlign=props.popupAlign,builtinPlacements=props.builtinPlacements;if(popupPlacement&&builtinPlacements){return getAlignFromPlacement(builtinPlacements,popupPlacement,popupAlign)}return popupAlign}},{key:"setPopupVisible",value:function setPopupVisible(popupVisible,event){var alignPoint=this.props.alignPoint;this.clearDelayTimer();if(this.state.popupVisible!==popupVisible){if(!("popupVisible"in this.props)){this.setState({popupVisible:popupVisible})}this.props.onPopupVisibleChange(popupVisible)}if(alignPoint&&event){this.setPoint(event)}}},{key:"delaySetPopupVisible",value:function delaySetPopupVisible(visible,delayS,event){var _this3=this;var delay=delayS*1000;this.clearDelayTimer();if(delay){var point=event?{pageX:event.pageX,pageY:event.pageY}:null;this.delayTimer=setTimeout(function(){_this3.setPopupVisible(visible,point);_this3.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$props3=this.props,action=_this$props3.action,showAction=_this$props3.showAction;return action.indexOf("click")!==-1||showAction.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function isContextMenuToShow(){var _this$props4=this.props,action=_this$props4.action,showAction=_this$props4.showAction;return action.indexOf("contextMenu")!==-1||showAction.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function isClickToHide(){var _this$props5=this.props,action=_this$props5.action,hideAction=_this$props5.hideAction;return action.indexOf("click")!==-1||hideAction.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function isMouseEnterToShow(){var _this$props6=this.props,action=_this$props6.action,showAction=_this$props6.showAction;return action.indexOf("hover")!==-1||showAction.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function isMouseLeaveToHide(){var _this$props7=this.props,action=_this$props7.action,hideAction=_this$props7.hideAction;return action.indexOf("hover")!==-1||hideAction.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function isFocusToShow(){var _this$props8=this.props,action=_this$props8.action,showAction=_this$props8.showAction;return action.indexOf("focus")!==-1||showAction.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function isBlurToHide(){var _this$props9=this.props,action=_this$props9.action,hideAction=_this$props9.hideAction;return action.indexOf("focus")!==-1||hideAction.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function forcePopupAlign(){if(this.state.popupVisible&&this._component&&this._component.alignInstance){this._component.alignInstance.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 _this4=this;var popupVisible=this.state.popupVisible;var _this$props10=this.props,children=_this$props10.children,forceRender=_this$props10.forceRender,alignPoint=_this$props10.alignPoint,className=_this$props10.className;var child=React.Children.only(children);var newChildProps={key:"trigger"};if(this.isContextMenuToShow()){newChildProps.onContextMenu=this.onContextMenu}else{newChildProps.onContextMenu=this.createTwoChains("onContextMenu")}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")}if(this.isMouseEnterToShow()){newChildProps.onMouseEnter=this.onMouseEnter;if(alignPoint){newChildProps.onMouseMove=this.onMouseMove}}else{newChildProps.onMouseEnter=this.createTwoChains("onMouseEnter")}if(this.isMouseLeaveToHide()){newChildProps.onMouseLeave=this.onMouseLeave}else{newChildProps.onMouseLeave=this.createTwoChains("onMouseLeave")}if(this.isFocusToShow()||this.isBlurToHide()){newChildProps.onFocus=this.onFocus;newChildProps.onBlur=this.onBlur}else{newChildProps.onFocus=this.createTwoChains("onFocus");newChildProps.onBlur=this.createTwoChains("onBlur")}var childrenClassName=classNames(child&&child.props&&child.props.className,className);if(childrenClassName){newChildProps.className=childrenClassName}var trigger=React.cloneElement(child,newChildProps);if(!IS_REACT_16){return React.createElement(ContainerRender,{parent:this,visible:popupVisible,autoMount:false,forceRender:forceRender,getComponent:this.getComponent,getContainer:this.getContainer},function(_ref2){var renderComponent=_ref2.renderComponent;_this4.renderComponent=renderComponent;return trigger})}var portal;if(popupVisible||this._component||forceRender){portal=React.createElement(Portal,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())}return[trigger,portal]}}]);return Trigger}(React.Component);Trigger.propTypes={children:PropTypes.any,action:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),showAction:PropTypes.any,hideAction:PropTypes.any,getPopupClassNameFromAlign:PropTypes.any,onPopupVisibleChange:PropTypes.func,afterPopupVisibleChange:PropTypes.func,popup:PropTypes.oneOfType([PropTypes.node,PropTypes.func]).isRequired,popupStyle:PropTypes.object,prefixCls:PropTypes.string,popupClassName:PropTypes.string,className:PropTypes.string,popupPlacement:PropTypes.string,builtinPlacements:PropTypes.object,popupTransitionName:PropTypes.oneOfType([PropTypes.string,PropTypes.object]),popupAnimation:PropTypes.any,mouseEnterDelay:PropTypes.number,mouseLeaveDelay:PropTypes.number,zIndex:PropTypes.number,focusDelay:PropTypes.number,blurDelay:PropTypes.number,getPopupContainer:PropTypes.func,getDocument:PropTypes.func,forceRender:PropTypes.bool,destroyPopupOnHide:PropTypes.bool,mask:PropTypes.bool,maskClosable:PropTypes.bool,onPopupAlign:PropTypes.func,popupAlign:PropTypes.object,popupVisible:PropTypes.bool,defaultPopupVisible:PropTypes.bool,maskTransitionName:PropTypes.oneOfType([PropTypes.string,PropTypes.object]),maskAnimation:PropTypes.string,stretch:PropTypes.string,alignPoint:PropTypes.bool};Trigger.contextTypes=contextTypes;Trigger.childContextTypes=contextTypes;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:[]};export{Trigger as default};
package/lib/index.js DELETED
@@ -1 +0,0 @@
1
- import Trigger from"./Trigger";export{Trigger};export default Trigger;
package/lib/index.less DELETED
File without changes
@@ -1 +0,0 @@
1
- import React from"react";export default(function(){return React.createElement("div",{className:"pa-wide"},React.createElement("h1",null,"Trigger"))});
package/lib/index.test.js DELETED
@@ -1 +0,0 @@
1
- import React from"react";import{mount,shallow}from"enzyme";function Fixture(){return React.createElement("div",null,React.createElement("input",{id:"disabled",disabled:true}),React.createElement("input",{id:"not"}))}describe("components",function(){describe("Fixture",function(){it("should render correctly",function(){var wrapper=mount(React.createElement(Fixture,null));expect(wrapper.find("#disabled")).toBeDisabled();expect(wrapper.find("#not")).not.toBeDisabled()})})});
package/lib/mock.js DELETED
@@ -1 +0,0 @@
1
- import Portal from"react-toolset/lib/Portal";import Trigger from"./index";Portal.prototype.render=function(){return this.props.children};var render=Trigger.prototype.render;Trigger.prototype.render=function(){var tree=render.call(this);if(this.state.popupVisible||this._component){return tree}return tree[0]};export default Trigger;
package/lib/utils.js DELETED
@@ -1 +0,0 @@
1
- import _objectSpread from"@babel/runtime/helpers/objectSpread";function isPointsEq(a1,a2,isAlignPoint){if(isAlignPoint){return a1[0]===a2[0]}return a1[0]===a2[0]&&a1[1]===a2[1]}export function getAlignFromPlacement(builtinPlacements,placementStr,align){var baseAlign=builtinPlacements[placementStr]||{};return _objectSpread({},baseAlign,align)}export function getAlignPopupClassName(builtinPlacements,prefixCls,align,isAlignPoint){var points=align.points;for(var placement in builtinPlacements){if(builtinPlacements.hasOwnProperty(placement)){if(isPointsEq(builtinPlacements[placement].points,points,isAlignPoint)){return"".concat(prefixCls,"-placement-").concat(placement)}}}return""}export function saveRef(name,component){this[name]=component}
File without changes
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("ReactComponentTrigger",["prop-types","react","react-dom"],e):"object"==typeof exports?exports.ReactComponentTrigger=e(require("prop-types"),require("react"),require("react-dom")):t.ReactComponentTrigger=e(t.PropTypes,t.React,t.ReactDOM)}(window,function(t,e,n){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=149)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){t.exports=n},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}t.exports=function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}},function(t,e,n){var o=n(74),r=n(2);t.exports=function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?r(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){var o=n(75);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var o=n(9);t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(14),r=n(25);t.exports=n(15)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(23),r=n(61),i=n(33),a=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(122),r=n(32);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(37)("wks"),r=n(26),i=n(11).Symbol,a="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(51)),r=a(n(81)),i=a(n(82));function a(t){return t&&t.__esModule?t:{default:t}}var u="[object Null]",s="[object Undefined]",c=o.default?o.default.toStringTag:void 0;e.default=function(t){return null==t?void 0===t?s:u:c&&c in Object(t)?(0,r.default)(t):(0,i.default)(t)}},function(t,e){t.exports=!0},function(t,e){var n=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(18);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&t.push(a)}else if("object"===i)for(var u in o)n.call(o,u)&&o[u]&&t.push(u)}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(48),a=(o=i)&&o.__esModule?o:{default:o};var u="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,s=a.default||u||Function("return this")();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){return null!=t&&"object"==(void 0===t?"undefined":o(t))}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(18);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var o=n(65),r=n(38);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){var o=n(37)("keys"),r=n(26);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var o=n(22),r=n(11),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var o=n(14).f,r=n(12),i=n(17)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(17)},function(t,e,n){var o=n(11),r=n(22),i=n(21),a=n(40),u=n(14).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCssAnimationSupported=void 0;var o=a(n(113)),r=a(n(144)),i=a(n(145));function a(t){return t&&t.__esModule?t:{default:t}}var u=0!==r.default.endEvents.length,s=["Webkit","Moz","O","ms"],c=["-webkit-","-moz-","-o-","ms-",""];function l(t,e){for(var n=window.getComputedStyle(t,null),o="",r=0;r<c.length&&!(o=n.getPropertyValue(c[r]+e));r++);return o}function f(t){if(u){var e=parseFloat(l(t,"transition-delay"))||0,n=parseFloat(l(t,"transition-duration"))||0,o=parseFloat(l(t,"animation-delay"))||0,r=parseFloat(l(t,"animation-duration"))||0,i=Math.max(n+e,r+o);t.rcEndAnimTimeout=setTimeout(function(){t.rcEndAnimTimeout=null,t.rcEndListener&&t.rcEndListener()},1e3*i+200)}}function p(t){t.rcEndAnimTimeout&&(clearTimeout(t.rcEndAnimTimeout),t.rcEndAnimTimeout=null)}var d=function(t,e,n){var a="object"===(void 0===e?"undefined":(0,o.default)(e)),u=a?e.name:e,s=a?e.active:e+"-active",c=n,l=void 0,d=void 0,v=(0,i.default)(t);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(c=n.end,l=n.start,d=n.active),t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(e){e&&e.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),p(t),v.remove(u),v.remove(s),r.default.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,c&&c())},r.default.addEndEventListener(t,t.rcEndListener),l&&l(),v.add(u),t.rcAnimTimeout=setTimeout(function(){t.rcAnimTimeout=null,v.add(s),d&&setTimeout(d,0),f(t)},30),{stop:function(){t.rcEndListener&&t.rcEndListener()}}};d.style=function(t,e,n){t.rcEndListener&&t.rcEndListener(),t.rcEndListener=function(e){e&&e.target!==t||(t.rcAnimTimeout&&(clearTimeout(t.rcAnimTimeout),t.rcAnimTimeout=null),p(t),r.default.removeEndEventListener(t,t.rcEndListener),t.rcEndListener=null,n&&n())},r.default.addEndEventListener(t,t.rcEndListener),t.rcAnimTimeout=setTimeout(function(){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);t.rcAnimTimeout=null,f(t)},0)},d.setTransition=function(t,e,n){var o=e,r=n;void 0===n&&(r=o,o=""),o=o||"",s.forEach(function(e){t.style[e+"Transition"+o]=r})},d.isCssAnimationSupported=u,e.isCssAnimationSupported=u,e.default=d},function(t,e,n){(function(e){for(var o=n(146),r="undefined"==typeof window?e:window,i=["moz","webkit"],a="AnimationFrame",u=r["request"+a],s=r["cancel"+a]||r["cancelRequest"+a],c=0;!u&&c<i.length;c++)u=r[i[c]+"Request"+a],s=r[i[c]+"Cancel"+a]||r[i[c]+"CancelRequest"+a];if(!u||!s){var l=0,f=0,p=[];u=function(t){if(0===p.length){var e=o(),n=Math.max(0,1e3/60-(e-l));l=n+e,setTimeout(function(){var t=p.slice(0);p.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return p.push({handle:++f,callback:t,cancelled:!1}),f},s=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}t.exports=function(t){return u.call(r,t)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=u,t.cancelAnimationFrame=s}}).call(this,n(49))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(46)),r=i(n(52));function i(t){return t&&t.__esModule?t:{default:t}}var a=Object.prototype.hasOwnProperty;e.default=function(t,e,n){var i=t[e];a.call(t,e)&&(0,r.default)(i,n)&&(void 0!==n||e in t)||(0,o.default)(t,e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(47),i=(o=r)&&o.__esModule?o:{default:o};e.default=function(t,e,n){"__proto__"==e&&i.default?(0,i.default)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(76),i=(o=r)&&o.__esModule?o:{default:o};var a=function(){try{var t=(0,i.default)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.default=a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.default=o}).call(this,n(49))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(20)),r=i(n(29));function i(t){return t&&t.__esModule?t:{default:t}}var a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.default=function(t){if(!(0,r.default)(t))return!1;var e=(0,o.default)(t);return e==u||e==s||e==a||e==c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(28);var i=((o=r)&&o.__esModule?o:{default:o}).default.Symbol;e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.default=function(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=9007199254740991;e.default=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(95)),r=i(n(97));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return null!=t&&(0,r.default)(t.length)&&!(0,o.default)(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var o=n(21),r=n(60),i=n(63),a=n(13),u=n(34),s=n(120),c=n(39),l=n(127),f=n(17)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,m,h,y){s(n,e,v);var b,g,M,w=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",E="values"==m,O=!1,P=t.prototype,T=P[f]||P["@@iterator"]||m&&P[m],_=T||w(m),j=m?E?w("entries"):_:void 0,A="Array"==e&&P.entries||T;if(A&&(M=l(A.call(new t)))!==Object.prototype&&M.next&&(c(M,S,!0),o||"function"==typeof M[f]||a(M,f,d)),E&&T&&"values"!==T.name&&(O=!0,_=function(){return T.call(this)}),o&&!y||!p&&!O&&P[f]||a(P,f,_),u[e]=_,u[S]=d,m)if(b={values:E?_:w("values"),keys:h?_:w("keys"),entries:j},y)for(g in b)g in P||i(P,g,b[g]);else r(r.P+r.F*(p||O),e,b);return b}},function(t,e,n){var o=n(11),r=n(22),i=n(118),a=n(13),u=n(12),s=function(t,e,n){var c,l,f,p=t&s.F,d=t&s.G,v=t&s.S,m=t&s.P,h=t&s.B,y=t&s.W,b=d?r:r[e]||(r[e]={}),g=b.prototype,M=d?o:v?o[e]:(o[e]||{}).prototype;for(c in d&&(n=e),n)(l=!p&&M&&void 0!==M[c])&&u(b,c)||(f=l?M[c]:n[c],b[c]=d&&"function"!=typeof M[c]?n[c]:h&&l?i(f,o):y&&M[c]==f?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[c]=f,t&s.R&&g&&!g[c]&&a(g,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){t.exports=!n(15)&&!n(24)(function(){return 7!=Object.defineProperty(n(62)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(18),r=n(11).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){t.exports=n(13)},function(t,e,n){var o=n(23),r=n(121),i=n(38),a=n(36)("IE_PROTO"),u=function(){},s=function(){var t,e=n(62)("iframe"),o=i.length;for(e.style.display="none",n(126).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;o--;)delete s.prototype[i[o]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=o(t),n=new u,u.prototype=null,n[a]=t):n=s(),void 0===e?n:r(n,e)}},function(t,e,n){var o=n(12),r=n(16),i=n(123)(!1),a=n(36)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),s=0,c=[];for(n in u)n!=a&&o(u,n)&&c.push(n);for(;e.length>s;)o(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(65),r=n(38).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e){t.exports=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=c(n(45)),r=c(n(84)),i=c(n(85)),a=c(n(56)),u=c(n(57)),s=c(n(98));function c(t){return t&&t.__esModule?t:{default:t}}var l=Object.prototype.hasOwnProperty,f=(0,i.default)(function(t,e){if((0,a.default)(e)||(0,u.default)(e))(0,r.default)(e,(0,s.default)(e),t);else for(var n in e)l.call(e,n)&&(0,o.default)(t,n,e[n])});e.default=f},function(t,e,n){"use strict";function o(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function r(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}Object.defineProperty(e,"__esModule",{value:!0}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,e.polyfill=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,u=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?u="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=o,e.componentWillReceiveProps=r),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,o)}}return t}},function(t,e,n){var o=n(148);t.exports=function(t,e){if(null==t)return{};var n,r,i=o(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},function(t,e,n){},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(t){return n(t)}:t.exports=o=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},o(e)}t.exports=o},function(t,e){function n(e,o){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,o)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(77)),r=i(n(83));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var n=(0,r.default)(t,e);return(0,o.default)(n)?n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=u(n(78)),r=u(n(80)),i=u(n(29)),a=u(n(50));function u(t){return t&&t.__esModule?t:{default:t}}var s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,p=l.hasOwnProperty,d=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.default=function(t){return!(!(0,i.default)(t)||(0,o.default)(t))&&((0,a.default)(t)?d:s).test((0,r.default)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(79),i=(o=r)&&o.__esModule?o:{default:o};var a,u=(a=/[^.]+$/.exec(i.default&&i.default.keys&&i.default.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.default=function(t){return!!u&&u in t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(28);var i=((o=r)&&o.__esModule?o:{default:o}).default["__core-js_shared__"];e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Function.prototype.toString;e.default=function(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(51),i=(o=r)&&o.__esModule?o:{default:o};var a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=i.default?i.default.toStringTag:void 0;e.default=function(t){var e=u.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=s.call(t);return o&&(e?t[c]=n:delete t[c]),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.prototype.toString;e.default=function(t){return o.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(45)),r=i(n(46));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,s=e.length;++u<s;){var c=e[u],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?(0,r.default)(n,c,l):(0,o.default)(n,c,l)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(86)),r=i(n(93));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return(0,o.default)(function(e,n){var o=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&(0,r.default)(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++o<i;){var s=n[o];s&&t(e,s,o,a)}return e})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(87)),r=a(n(89)),i=a(n(53));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){return(0,r.default)((0,o.default)(t,e,i.default),t+"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(88),i=(o=r)&&o.__esModule?o:{default:o};var a=Math.max;e.default=function(t,e,n){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,u=a(o.length-e,0),s=Array(u);++r<u;)s[r]=o[e+r];r=-1;for(var c=Array(e+1);++r<e;)c[r]=o[r];return c[e]=n(s),(0,i.default)(t,this,c)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(90));function r(t){return t&&t.__esModule?t:{default:t}}var i=(0,r(n(92)).default)(o.default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(47)),r=a(n(53)),i=a(n(91));function a(t){return t&&t.__esModule?t:{default:t}}var u=o.default?function(t,e){return(0,o.default)(t,"toString",{configurable:!0,enumerable:!1,value:(0,i.default)(e),writable:!0})}:r.default;e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=800,r=16,i=Date.now;e.default=function(t){var e=0,n=0;return function(){var a=i(),u=r-(a-n);if(n=a,u>0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=s(n(54)),i=s(n(52)),a=s(n(94)),u=s(n(29));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){if(!(0,u.default)(n))return!1;var s=void 0===e?"undefined":o(e);return!!("number"==s?(0,a.default)(n)&&(0,r.default)(e,n.length):"string"==s&&e in n)&&(0,i.default)(n[e],t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(50)),r=i(n(55));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return null!=t&&(0,r.default)(t.length)&&!(0,o.default)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(20)),r=i(n(96));function i(t){return t&&t.__esModule?t:{default:t}}var a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.default=function(t){if(!(0,r.default)(t))return!1;var e=(0,o.default)(t);return e==u||e==s||e==a||e==c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=9007199254740991;e.default=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(99)),r=a(n(110)),i=a(n(57));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){return(0,i.default)(t)?(0,o.default)(t):(0,r.default)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=c(n(100)),r=c(n(54)),i=c(n(101)),a=c(n(102)),u=c(n(104)),s=c(n(108));function c(t){return t&&t.__esModule?t:{default:t}}var l=Object.prototype.hasOwnProperty;e.default=function(t,e){var n=(0,i.default)(t),c=!n&&(0,s.default)(t),f=!n&&!c&&(0,a.default)(t),p=!n&&!c&&!f&&(0,u.default)(t),d=n||c||f||p,v=d?(0,o.default)(t.length,String):[],m=v.length;for(var h in t)!e&&!l.call(t,h)||d&&("length"==h||f&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,r.default)(h,m))||v.push(h);return v}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Array.isArray;e.default=o},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=a(n(28)),i=a(n(103));function a(t){return t&&t.__esModule?t:{default:t}}var u="object"==o(e)&&e&&!e.nodeType&&e,s=u&&"object"==o(t)&&t&&!t.nodeType&&t,c=s&&s.exports===u?r.default.Buffer:void 0,l=(c?c.isBuffer:void 0)||i.default;e.default=l}).call(this,n(58)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(105)),r=a(n(106)),i=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}var u=i.default&&i.default.isTypedArray,s=u?(0,r.default)(u):o.default;e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(20)),r=a(n(55)),i=a(n(30));function a(t){return t&&t.__esModule?t:{default:t}}var u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.default=function(t){return(0,i.default)(t)&&(0,r.default)(t.length)&&!!u[(0,o.default)(t)]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){return t(e)}}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(48),a=(o=i)&&o.__esModule?o:{default:o};var u="object"==r(e)&&e&&!e.nodeType&&e,s=u&&"object"==r(t)&&t&&!t.nodeType&&t,c=s&&s.exports===u&&a.default.process,l=function(){try{return c&&c.binding&&c.binding("util")}catch(t){}}();e.default=l}).call(this,n(58)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(109)),r=i(n(30));function i(t){return t&&t.__esModule?t:{default:t}}var a=Object.prototype,u=a.hasOwnProperty,s=a.propertyIsEnumerable,c=(0,o.default)(function(){return arguments}())?o.default:function(t){return(0,r.default)(t)&&u.call(t,"callee")&&!s.call(t,"callee")};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(20)),r=i(n(30));function i(t){return t&&t.__esModule?t:{default:t}}var a="[object Arguments]";e.default=function(t){return(0,r.default)(t)&&(0,o.default)(t)==a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(56)),r=i(n(111));function i(t){return t&&t.__esModule?t:{default:t}}var a=Object.prototype.hasOwnProperty;e.default=function(t){if(!(0,o.default)(t))return(0,r.default)(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(112);var i=(0,((o=r)&&o.__esModule?o:{default:o}).default)(Object.keys,Object);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){"use strict";e.__esModule=!0;var o=a(n(114)),r=a(n(133)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===i(o.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){t.exports={default:n(115),__esModule:!0}},function(t,e,n){n(116),n(129),t.exports=n(40).f("iterator")},function(t,e,n){"use strict";var o=n(117)(!0);n(59)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var o=n(31),r=n(32);t.exports=function(t){return function(e,n){var i,a,u=String(r(e)),s=o(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s))<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){var o=n(119);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var o=n(64),r=n(25),i=n(39),a={};n(13)(a,n(17)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var o=n(14),r=n(23),i=n(35);t.exports=n(15)?Object.defineProperties:function(t,e){r(t);for(var n,a=i(e),u=a.length,s=0;u>s;)o.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var o=n(66);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,n){var o=n(16),r=n(124),i=n(125);t.exports=function(t){return function(e,n,a){var u,s=o(e),c=r(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var o=n(31),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){var o=n(31),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(11).document;t.exports=o&&o.documentElement},function(t,e,n){var o=n(12),r=n(128),i=n(36)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var o=n(32);t.exports=function(t){return Object(o(t))}},function(t,e,n){n(130);for(var o=n(11),r=n(13),i=n(34),a=n(17)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],l=o[c],f=l&&l.prototype;f&&!f[a]&&r(f,a,c),i[c]=i.Array}},function(t,e,n){"use strict";var o=n(131),r=n(132),i=n(34),a=n(16);t.exports=n(59)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(134),__esModule:!0}},function(t,e,n){n(135),n(141),n(142),n(143),t.exports=n(22).Symbol},function(t,e,n){"use strict";var o=n(11),r=n(12),i=n(15),a=n(60),u=n(63),s=n(136).KEY,c=n(24),l=n(37),f=n(39),p=n(26),d=n(17),v=n(40),m=n(41),h=n(137),y=n(138),b=n(23),g=n(18),M=n(16),w=n(33),S=n(25),E=n(64),O=n(139),P=n(140),T=n(14),_=n(35),j=P.f,A=T.f,x=O.f,k=o.Symbol,C=o.JSON,D=C&&C.stringify,L=d("_hidden"),W=d("toPrimitive"),N={}.propertyIsEnumerable,R=l("symbol-registry"),F=l("symbols"),V=l("op-symbols"),H=Object.prototype,U="function"==typeof k,z=o.QObject,X=!z||!z.prototype||!z.prototype.findChild,Y=i&&c(function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=j(H,e);o&&delete H[e],A(t,e,n),o&&t!==H&&A(H,e,o)}:A,B=function(t){var e=F[t]=E(k.prototype);return e._k=t,e},q=U&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},$=function(t,e,n){return t===H&&$(V,e,n),b(t),e=w(e,!0),b(n),r(F,e)?(n.enumerable?(r(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:S(0,!1)})):(r(t,L)||A(t,L,S(1,{})),t[L][e]=!0),Y(t,e,n)):A(t,e,n)},G=function(t,e){b(t);for(var n,o=h(e=M(e)),r=0,i=o.length;i>r;)$(t,n=o[r++],e[n]);return t},I=function(t){var e=N.call(this,t=w(t,!0));return!(this===H&&r(F,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(F,t)||r(this,L)&&this[L][t])||e)},K=function(t,e){if(t=M(t),e=w(e,!0),t!==H||!r(F,e)||r(V,e)){var n=j(t,e);return!n||!r(F,e)||r(t,L)&&t[L][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=x(M(t)),o=[],i=0;n.length>i;)r(F,e=n[i++])||e==L||e==s||o.push(e);return o},J=function(t){for(var e,n=t===H,o=x(n?V:M(t)),i=[],a=0;o.length>a;)!r(F,e=o[a++])||n&&!r(H,e)||i.push(F[e]);return i};U||(u((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===H&&e.call(V,n),r(this,L)&&r(this[L],t)&&(this[L][t]=!1),Y(this,t,S(1,n))};return i&&X&&Y(H,t,{configurable:!0,set:e}),B(t)}).prototype,"toString",function(){return this._k}),P.f=K,T.f=$,n(68).f=O.f=Z,n(42).f=I,n(67).f=J,i&&!n(21)&&u(H,"propertyIsEnumerable",I,!0),v.f=function(t){return B(d(t))}),a(a.G+a.W+a.F*!U,{Symbol:k});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)d(Q[tt++]);for(var et=_(d.store),nt=0;et.length>nt;)m(et[nt++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=k(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?E(t):G(E(t),e)},defineProperty:$,defineProperties:G,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:J}),C&&a(a.S+a.F*(!U||c(function(){var t=k();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e=o[1],(g(e)||void 0!==t)&&!q(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),o[1]=e,D.apply(C,o)}}),k.prototype[W]||n(13)(k.prototype,W,k.prototype.valueOf),f(k,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e,n){var o=n(26)("meta"),r=n(18),i=n(12),a=n(14).f,u=0,s=Object.isExtensible||function(){return!0},c=!n(24)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,o,{value:{i:"O"+ ++u,w:{}}})},f=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[o].i},getWeak:function(t,e){if(!i(t,o)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return c&&f.NEED&&s(t)&&!i(t,o)&&l(t),t}}},function(t,e,n){var o=n(35),r=n(67),i=n(42);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,n){var o=n(66);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){var o=n(16),r=n(68).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(o(t))}},function(t,e,n){var o=n(42),r=n(25),i=n(16),a=n(33),u=n(12),s=n(61),c=Object.getOwnPropertyDescriptor;e.f=n(15)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(41)("asyncIterator")},function(t,e,n){n(41)("observable")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},r={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},i=[],a=[];function u(t,e,n){t.addEventListener(e,n,!1)}function s(t,e,n){t.removeEventListener(e,n,!1)}"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var t=document.createElement("div").style;function e(e,n){for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];for(var i in r)if(i in t){n.push(r[i]);break}}}"AnimationEvent"in window||(delete o.animationstart.animation,delete r.animationend.animation),"TransitionEvent"in window||(delete o.transitionstart.transition,delete r.transitionend.transition),e(o,i),e(r,a)}();var c={startEvents:i,addStartEventListener:function(t,e){0!==i.length?i.forEach(function(n){u(t,n,e)}):window.setTimeout(e,0)},removeStartEventListener:function(t,e){0!==i.length&&i.forEach(function(n){s(t,n,e)})},endEvents:a,addEndEventListener:function(t,e){0!==a.length?a.forEach(function(n){u(t,n,e)}):window.setTimeout(e,0)},removeEndEventListener:function(t,e){0!==a.length&&a.forEach(function(n){s(t,n,e)})}};e.default=c,t.exports=e.default},function(t,e,n){try{var o=n(69)}catch(t){o=n(69)}var r=/\s+/,i=Object.prototype.toString;function a(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}t.exports=function(t){return new a(t)},a.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~o(e,t)||e.push(t),this.el.className=e.join(" "),this},a.prototype.remove=function(t){if("[object RegExp]"==i.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),n=o(e,t);return~n&&e.splice(n,1),this.el.className=e.join(" "),this},a.prototype.removeMatching=function(t){for(var e=this.array(),n=0;n<e.length;n++)t.test(e[n])&&this.remove(e[n]);return this},a.prototype.toggle=function(t,e){return this.list?(void 0!==e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},a.prototype.array=function(){var t=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(r);return""===t[0]&&t.shift(),t},a.prototype.has=a.prototype.contains=function(t){return this.list?this.list.contains(t):!!~o(this.array(),t)}},function(t,e,n){(function(e){(function(){var n,o,r,i,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},o=e.hrtime,i=(n=function(){var t;return 1e9*(t=o())[0]+t[1]})(),u=1e9*e.uptime(),a=i-u):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(147))},function(t,e){var n,o,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var s,c=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=c.length;e;){for(s=c,c=[];++f<e;)s&&s[f].run();f=-1,e=c.length}s=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function v(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new v(t,e)),1!==c.length||l||u(d)},v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}},function(t,e,n){"use strict";n.r(e);n(73);var o=n(19),r=n.n(o),i=n(4),a=n.n(i),u=n(5),s=n.n(u),c=n(6),l=n.n(c),f=n(7),p=n.n(f),d=n(8),v=n.n(d),m=n(2),h=n.n(m),y=n(1),b=n.n(y),g=n(0),M=n.n(g),w=n(3),S=n.n(w),E=function(t){function e(){return a()(this,e),l()(this,p()(e).apply(this,arguments))}return v()(e,t),s()(e,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(t){var e=this.props.didUpdate;e&&e(t)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?S.a.createPortal(this.props.children,this._container):null}}]),e}(b.a.Component);E.propTypes={getContainer:M.a.func.isRequired,children:M.a.node.isRequired,didUpdate:M.a.func};var O=function(t){function e(){var t,n;a()(this,e);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=l()(this,(t=p()(e)).call.apply(t,[this].concat(r)))).removeContainer=function(){n.container&&(S.a.unmountComponentAtNode(n.container),n.container.parentNode.removeChild(n.container),n.container=null)},n.renderComponent=function(t,e){var o=n.props,r=o.visible,i=o.getComponent,a=o.forceRender,u=o.getContainer,s=o.parent;(r||s._component||a)&&(n.container||(n.container=u()),S.a.unstable_renderSubtreeIntoContainer(s,i(t),n.container,function(){e&&e.call(this)}))},n}return v()(e,t),s()(e,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),e}(b.a.Component);O.propTypes={autoMount:M.a.bool,autoDestroy:M.a.bool,visible:M.a.bool,forceRender:M.a.bool,parent:M.a.any,getComponent:M.a.func.isRequired,getContainer:M.a.func.isRequired,children:M.a.func.isRequired},O.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1};var P=n(70),T=n.n(P);function _(){return!1}function j(){return!0}function A(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}A.prototype={isEventObject:1,constructor:A,isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_,preventDefault:function(){this.isDefaultPrevented=j},stopPropagation:function(){this.isPropagationStopped=j},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j,this.stopPropagation()},halt:function(t){t?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}};var x=!0,k=!1,C=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function D(t){return null==t}var L=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(t,e){D(t.which)&&(t.which=D(e.charCode)?e.keyCode:e.charCode),void 0===t.metaKey&&(t.metaKey=t.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(t,e){var n,o,r,i=e.wheelDelta,a=e.axis,u=e.wheelDeltaY,s=e.wheelDeltaX,c=e.detail;i&&(r=i/120),c&&(r=0-(c%3==0?c/3:c)),void 0!==a&&(a===t.HORIZONTAL_AXIS?(o=0,n=0-r):a===t.VERTICAL_AXIS&&(n=0,o=r)),void 0!==u&&(o=u/120),void 0!==s&&(n=-1*s/120),n||o||(o=r),void 0!==n&&(t.deltaX=n),void 0!==o&&(t.deltaY=o),void 0!==r&&(t.delta=r)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(t,e){var n,o,r,i=t.target,a=e.button;return i&&D(t.pageX)&&!D(e.clientX)&&(o=(n=i.ownerDocument||document).documentElement,r=n.body,t.pageX=e.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),!t.relatedTarget&&t.fromElement&&(t.relatedTarget=t.fromElement===i?t.toElement:t.fromElement),t}}];function W(){return x}function N(){return k}function R(t){var e=t.type,n="function"==typeof t.stopPropagation||"boolean"==typeof t.cancelBubble;A.call(this),this.nativeEvent=t;var o=N;"defaultPrevented"in t?o=t.defaultPrevented?W:N:"getPreventDefault"in t?o=t.getPreventDefault()?W:N:"returnValue"in t&&(o=t.returnValue===k?W:N),this.isDefaultPrevented=o;var r,i,a=[],u=C.concat();for(L.forEach(function(t){e.match(t.reg)&&(u=u.concat(t.props),t.fix&&a.push(t.fix))}),r=u.length;r;)this[i=u[--r]]=t[i];for(!this.target&&n&&(this.target=t.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),r=a.length;r;)(0,a[--r])(this,t);this.timeStamp=t.timeStamp||Date.now()}var F=A.prototype;function V(t,e,n){return function(t,e,n,o){function r(e){var o=new R(e);n.call(t,o)}if(t.addEventListener){var i=!1;return"object"==typeof o?i=o.capture||!1:"boolean"==typeof o&&(i=o),t.addEventListener(e,r,o||!1),{remove:function(){t.removeEventListener(e,r,i)}}}if(t.attachEvent)return t.attachEvent("on".concat(e),r),{remove:function(){t.detachEvent("on".concat(e),r)}}}(t,e,S.a.unstable_batchedUpdates?function(t){S.a.unstable_batchedUpdates(n,t)}:n)}T()(R.prototype,F,{constructor:R,preventDefault:function(){var t=this.nativeEvent;t.preventDefault?t.preventDefault():t.returnValue=k,F.preventDefault.call(this)},stopPropagation:function(){var t=this.nativeEvent;t.stopPropagation?t.stopPropagation():t.cancelBubble=x,F.stopPropagation.call(this)}});var H=n(27),U=n.n(H),z=n(10),X=n.n(z);function Y(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function B(t,e){this[t]=e}var q,$=n(9),G=n.n($),I={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function K(){if(void 0!==q)return q;q="";var t=document.createElement("p").style;for(var e in I)e+"Transform"in t&&(q=e);return q}function Z(){return K()?"".concat(K(),"TransitionProperty"):"transitionProperty"}function J(){return K()?"".concat(K(),"Transform"):"transform"}function Q(t,e){var n=Z();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function tt(t,e){var n=J();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var et,nt=/matrix\((.*)\)/,ot=/matrix3d\((.*)\)/;function rt(t,e,n){var o=n;if("object"!=typeof e)return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(t.style[e]=o)):et(t,e);for(var r in e)e.hasOwnProperty(r)&&rt(t,r,e[r])}function it(t,e){var n=t["page".concat(e?"Y":"X","Offset")],o="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var r=t.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function at(t){return it(t)}function ut(t){return it(t,!0)}function st(t){var e=function(t){var e,n,o,r=t.ownerDocument,i=r.body,a=r&&r.documentElement;return n=(e=t.getBoundingClientRect()).left,o=e.top,{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(t),n=t.ownerDocument,o=n.defaultView||n.parentWindow;return e.left+=at(o),e.top+=ut(o),e}function ct(t){return null!=t&&t==t.window}function lt(t){return ct(t)?t.document:9===t.nodeType?t:t.ownerDocument}var ft=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),pt=/^(top|right|bottom|left)$/,dt="currentStyle",vt="runtimeStyle",mt="left",ht="px";function yt(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function bt(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function gt(t,e,n){"static"===rt(t,"position")&&(t.style.position="relative");var o=-999,r=-999,i=yt("left",n),a=yt("top",n),u=bt(i),s=bt(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var c,l="",f=st(t);("left"in e||"top"in e)&&(l=(c=t).style.transitionProperty||c.style[Z()]||"",Q(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(o,"px")),"top"in e&&(t.style[s]="",t.style[a]="".concat(r,"px"));var p=st(t),d={};for(var v in e)if(e.hasOwnProperty(v)){var m=yt(v,n),h="left"===v?o:r,y=f[v]-p[v];d[m]=m===v?h+y:h-y}rt(t,d),t.offsetTop,t.offsetLeft,("left"in e||"top"in e)&&Q(t,l);var b={};for(var g in e)if(e.hasOwnProperty(g)){var M=yt(g,n),w=e[g]-f[g];b[M]=g===M?d[M]+w:d[M]-w}rt(t,b)}function Mt(t,e){var n=st(t),o=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(J());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(t),r={x:o.x,y:o.y};"left"in e&&(r.x=o.x+e.left-n.left),"top"in e&&(r.y=o.y+e.top-n.top),function(t,e){var n=window.getComputedStyle(t,null),o=n.getPropertyValue("transform")||n.getPropertyValue(J());if(o&&"none"!==o){var r,i=o.match(nt);i?((r=(i=i[1]).split(",").map(function(t){return parseFloat(t,10)}))[4]=e.x,r[5]=e.y,tt(t,"matrix(".concat(r.join(","),")"))):((r=o.match(ot)[1].split(",").map(function(t){return parseFloat(t,10)}))[12]=e.x,r[13]=e.y,tt(t,"matrix3d(".concat(r.join(","),")")))}else tt(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,r)}function wt(t,e){for(var n=0;n<t.length;n++)e(t[n])}function St(t){return"border-box"===et(t,"boxSizing")}"undefined"!=typeof window&&(et=window.getComputedStyle?function(t,e,n){var o=n,r="",i=lt(t);return(o=o||i.defaultView.getComputedStyle(t,null))&&(r=o.getPropertyValue(e)||o[e]),r}:function(t,e){var n=t[dt]&&t[dt][e];if(ft.test(n)&&!pt.test(e)){var o=t.style,r=o[mt],i=t[vt][mt];t[vt][mt]=t[dt][mt],o[mt]="fontSize"===e?"1em":n||0,n=o.pixelLeft+ht,o[mt]=r,t[vt][mt]=i}return""===n?"auto":n});var Et=["margin","border","padding"],Ot=-1,Pt=2,Tt=1;function _t(t,e,n){var o,r,i,a=0;for(r=0;r<e.length;r++)if(o=e[r])for(i=0;i<n.length;i++){var u=void 0;u="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(et(t,u))||0}return a}var jt={};function At(t,e,n){var o=n;if(ct(t))return"width"===e?jt.viewportWidth(t):jt.viewportHeight(t);if(9===t.nodeType)return"width"===e?jt.docWidth(t):jt.docHeight(t);var r="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?t.offsetWidth:t.offsetHeight,a=(et(t),St(t)),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=et(t,e))||Number(u)<0)&&(u=t.style[e]||0),u=parseFloat(u)||0),void 0===o&&(o=a?Tt:Ot);var s=void 0!==i||a,c=i||u;return o===Ot?s?c-_t(t,["border","padding"],r):u:s?o===Tt?c:c+(o===Pt?-_t(t,["border"],r):_t(t,["margin"],r)):u+_t(t,Et.slice(o),r)}wt(["Width","Height"],function(t){jt["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],jt["viewport".concat(t)](n))},jt["viewport".concat(t)]=function(e){var n="client".concat(t),o=e.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}});var xt={position:"absolute",visibility:"hidden",display:"block"};function kt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o,r=e[0];return 0!==r.offsetWidth?o=At.apply(void 0,e):function(t,e,n){var o,r={},i=t.style;for(o in e)e.hasOwnProperty(o)&&(r[o]=i[o],i[o]=e[o]);for(o in n.call(t),e)e.hasOwnProperty(o)&&(i[o]=r[o])}(r,xt,function(){o=At.apply(void 0,e)}),o}function Ct(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}wt(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);jt["outer".concat(e)]=function(e,n){return e&&kt(e,t,n?0:Tt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];jt[t]=function(e,o){var r=o;if(void 0===r)return e&&kt(e,t,Ot);if(e){et(e);return St(e)&&(r+=_t(e,["padding","border"],n)),rt(e,t,r)}}});var Dt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:lt,offset:function(t,e,n){if(void 0===e)return st(t);!function(t,e,n){n.useCssRight||n.useCssBottom?gt(t,e,n):n.useCssTransform&&J()in document.body.style?Mt(t,e):gt(t,e,n)}(t,e,n||{})},isWindow:ct,each:wt,css:rt,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:Ct,getWindowScrollLeft:function(t){return at(t)},getWindowScrollTop:function(t){return ut(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)Dt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};Ct(Dt,jt);var Lt=Dt;var Wt=function(t){var e,n=t.ownerDocument.body,o=Lt.css(t,"position");if("fixed"!==o&&"absolute"!==o)return"html"===t.nodeName.toLowerCase()?null:t.parentNode;for(e=t.parentNode;e&&e!==n;e=e.parentNode)if("static"!==(o=Lt.css(e,"position")))return e;return null};var Nt=function(t){for(var e,n,o,r={left:0,right:1/0,top:0,bottom:1/0},i=Wt(t),a=t.ownerDocument,u=a.defaultView||a.parentWindow,s=a.body,c=a.documentElement;i;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===i.clientWidth||i===s||i===c||"visible"===Lt.css(i,"overflow")){if(i===s||i===c)break}else{var l=Lt.offset(i);l.left+=i.clientLeft,l.top+=i.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+i.clientWidth),r.bottom=Math.min(r.bottom,l.top+i.clientHeight),r.left=Math.max(r.left,l.left)}i=Wt(i)}return e=Lt.getWindowScrollLeft(u),n=Lt.getWindowScrollTop(u),r.left=Math.max(r.left,e),r.top=Math.max(r.top,n),o={width:Lt.viewportWidth(u),height:Lt.viewportHeight(u)},r.right=Math.min(r.right,e+o.width),r.bottom=Math.min(r.bottom,n+o.height),r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null};var Rt=function(t,e,n,o,r){var i=Lt.clone(t),a={width:e.width,height:e.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top<o.top&&(i.top=o.top),r.resizeHeight&&i.top>=o.top&&i.top+a.height>o.bottom&&(a.height-=i.top+a.height-o.bottom),r.adjustY&&i.top+a.height>o.bottom&&(i.top=Math.max(o.bottom-a.height,o.top)),Lt.mix(i,a)};var Ft=function(t){var e,n,o;if(Lt.isWindow(t)||9===t.nodeType){var r=Lt.getWindow(t);e={left:Lt.getWindowScrollLeft(r),top:Lt.getWindowScrollTop(r)},n=Lt.viewportWidth(r),o=Lt.viewportHeight(r)}else e=Lt.offset(t),n=Lt.outerWidth(t),o=Lt.outerHeight(t);return e.width=n,e.height=o,e};var Vt=function(t,e){var n,o,r=e.charAt(0),i=e.charAt(1),a=t.width,u=t.height;return n=t.left,o=t.top,"c"===r?o+=u/2:"b"===r&&(o+=u),"c"===i?n+=a/2:"r"===i&&(n+=a),{left:n,top:o}};var Ht=function(t,e,n,o,r){var i,a,u,s;return i={left:t.left,top:t.top},u=Vt(e,n[1]),a=[(s=Vt(t,n[0])).left-u.left,s.top-u.top],{left:i.left-a[0]+o[0]-r[0],top:i.top-a[1]+o[1]-r[1]}};function Ut(t,e,n){return t.left<n.left||t.left+e.width>n.right}function zt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Xt(t){var e=Nt(t),n=Ft(t);return!e||n.left+n.width<=e.left||n.top+n.height<=e.top||n.left>=e.right||n.top>=e.bottom}function Yt(t,e,n){var o=[];return Lt.each(t,function(t){o.push(t.replace(e,function(t){return n[t]}))}),o}function Bt(t,e){return t[e]=-t[e],t}function qt(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function $t(t){return t.bottom-t.top}function Gt(t){return t.right-t.left}function It(t,e){t[0]=qt(t[0],e.width),t[1]=qt(t[1],e.height)}function Kt(t,e,n){var o=n.points,r=n.offset||[0,0],i=n.targetOffset||[0,0],a=n.overflow,u=n.target||e,s=n.source||t;r=[].concat(r),i=[].concat(i),a=a||{};var c={},l=0,f=Nt(s),p=Ft(s),d=Ft(u);It(r,p),It(i,d);var v,m,h=Ht(p,d,o,r,i),y=Lt.merge(p,h),b=!Xt(u),g=Lt.merge(d,Vt(d,o[1])),M=o[0].charAt(1);v="c"===M?Lt.merge(f,{left:g.left-p.width/2}):Lt.merge(f,G()({},"l"===M?"left":"right",g.left+r[0]));var w=o[0].charAt(0),S=v,E=m="c"===w?Lt.merge(f,{top:g.top-p.height/2}):Lt.merge(f,G()({},"t"===w?"top":"bottom",g.top+r[1]));if(f&&(a.adjustX||a.adjustY)&&b){if(a.adjustX&&Ut(h,p,f)){var O=Yt(o,/[lr]/gi,{l:"r",r:"l"}),P=Bt(r,0),T=Bt(i,0),_=Ht(p,d,O,P,T),j=Lt.merge(f,G()({},"l"===O[0].charAt(1)?"left":"right",Vt(d,O[1]).left));Gt(j)>Gt(v)&&!function(t,e,n){return t.left>n.right||t.left+e.width<n.left}(_,p,f)&&(l=1,o=O,r=P,i=T,S=j)}if(a.adjustY&&zt(h,p,f)){var A=Yt(o,/[tb]/gi,{t:"b",b:"t"}),x=Bt(r,1),k=Bt(i,1),C=Ht(p,d,A,x,k),D=Lt.merge(f,G()({},"t"===A[0].charAt(0)?"top":"bottom",Vt(d,A[1]).top));$t(D)>$t(m)&&!function(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}(C,p,f)&&(l=1,o=A,r=x,i=k,E=D)}l&&(h=Ht(p,d,o,r,i),Lt.mix(y,h)),c.resizeHeight=a.resizeHeight,c.resizeWidth=a.resizeWidth,c.adjustX=a.adjustX&&Ut(h,p,S),c.adjustY=a.adjustY&&zt(h,p,E),(c.adjustX||c.adjustY)&&(y=Rt(h,p,S,E,c))}return y.width!==p.width&&Lt.css(s,"width",Lt.width(s)+y.width-p.width),y.height!==p.height&&Lt.css(s,"height",Lt.height(s)+y.height-p.height),Lt.offset(s,{left:y.left,top:y.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform}),{points:o,offset:r,targetOffset:i,overflow:c}}function Zt(t,e,n){var o=n.target||e,r=Ft(o);Xt(o);return Kt(t,r,n)}function Jt(t){return t&&"object"==typeof t&&t.window===t}function Qt(t){return"function"==typeof t&&t?t():null}function te(t){return"object"==typeof t&&t?t:null}Zt.__getOffsetParent=Wt,Zt.__getVisibleRectForElement=Nt;var ee=function(t){function e(){var t,n;a()(this,e);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(n=l()(this,(t=p()(e)).call.apply(t,[this].concat(r)))).forceAlign=function(){var t=n.props,e=t.disabled,o=t.target,r=t.align,i=t.onAlign;if(!e&&o){var a,u=S.a.findDOMNode(h()(h()(n))),s=Qt(o),c=te(o);s?a=Zt(u,s,r):c&&(a=function(t,e,n){var o=Lt.getDocument(t),r=o.defaultView||o.parentWindow,i=Lt.getWindowScrollLeft(r),a=Lt.getWindowScrollTop(r),u=(Lt.viewportWidth(r),Lt.viewportHeight(r),{left:"pageX"in e?e.pageX:i+e.clientX,top:"pageY"in e?e.pageY:a+e.clientY,width:0,height:0}),s=[n.points[0],"cc"];return Kt(t,u,X()({},n,{points:s}))}(u,c,r)),i&&i(u,a)}},n}return v()(e,t),s()(e,[{key:"componentDidMount",value:function(){var t=this.props;this.forceAlign(),!t.disabled&&t.monitorWindowResize&&this.startMonitorWindowResize()}},{key:"componentDidUpdate",value:function(t){var e,n,o=!1,r=this.props;if(!r.disabled){var i=S.a.findDOMNode(this),a=i?i.getBoundingClientRect():null;if(t.disabled)o=!0;else{var u=Qt(t.target),s=Qt(r.target),c=te(t.target),l=te(r.target);Jt(u)&&Jt(s)?o=!1:(u!==s||u&&!s&&l||c&&l&&s||l&&!((e=c)===(n=l)||e&&n&&("pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n&&e.clientX===n.clientX&&e.clientY===n.clientY)))&&(o=!0);var f=this.sourceRect||{};o||!i||f.width===a.width&&f.height===a.height||(o=!0)}this.sourceRect=a}o&&this.forceAlign(),r.monitorWindowResize&&!r.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()}},{key:"componentWillUnmount",value:function(){this.stopMonitorWindowResize()}},{key:"startMonitorWindowResize",value:function(){this.resizeHandler||(this.bufferMonitor=function(t,e){var n;function o(){n&&(clearTimeout(n),n=null)}function r(){o(),n=setTimeout(t,e)}return r.clear=o,r}(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=V(window,"resize",this.bufferMonitor))}},{key:"stopMonitorWindowResize",value:function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)}},{key:"render",value:function(){var t=this,e=this.props,n=e.childrenProps,o=e.children,r=b.a.Children.only(o);if(n){var i={};return Object.keys(n).forEach(function(e){i[e]=t.props[n[e]]}),b.a.cloneElement(r,i)}return r}}]),e}(b.a.Component);ee.propTypes={childrenProps:M.a.object,align:M.a.object.isRequired,target:M.a.oneOfType([M.a.func,M.a.shape({clientX:M.a.number,clientY:M.a.number,pageX:M.a.number,pageY:M.a.number})]),onAlign:M.a.func,monitorBufferTime:M.a.number,monitorWindowResize:M.a.bool,disabled:M.a.bool,children:M.a.any},ee.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};var ne=ee;function oe(t){var e=[];return b.a.Children.forEach(t,function(t){e.push(t)}),e}function re(t,e){var n=null;return t&&t.forEach(function(t){n||t&&t.key===e&&(n=t)}),n}function ie(t,e,n){var o=null;return t&&t.forEach(function(t){if(t&&t.key===e&&t.props[n]){if(o)throw new Error("two child with same key for <rc-animate> children");o=t}}),o}var ae=n(43),ue=n.n(ae),se={isAppearSupported:function(t){return t.transitionName&&t.transitionAppear||t.animation.appear},isEnterSupported:function(t){return t.transitionName&&t.transitionEnter||t.animation.enter},isLeaveSupported:function(t){return t.transitionName&&t.transitionLeave||t.animation.leave},allowAppearCallback:function(t){return t.transitionAppear||t.animation.appear},allowEnterCallback:function(t){return t.transitionEnter||t.animation.enter},allowLeaveCallback:function(t){return t.transitionLeave||t.animation.leave}},ce={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},le=function(t){function e(){return a()(this,e),l()(this,p()(e).apply(this,arguments))}return v()(e,t),s()(e,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(t){se.isEnterSupported(this.props)?this.transition("enter",t):t()}},{key:"componentWillAppear",value:function(t){se.isAppearSupported(this.props)?this.transition("appear",t):t()}},{key:"componentWillLeave",value:function(t){se.isLeaveSupported(this.props)?this.transition("leave",t):t()}},{key:"transition",value:function(t,e){var n=this,o=S.a.findDOMNode(this),r=this.props,i=r.transitionName,a="object"==typeof i;this.stop();var u=function(){n.stopper=null,e()};if((ae.isCssAnimationSupported||!r.animation[t])&&i&&r[ce[t]]){var s=a?i[t]:"".concat(i,"-").concat(t),c="".concat(s,"-active");a&&i["".concat(t,"Active")]&&(c=i["".concat(t,"Active")]),this.stopper=ue()(o,{name:s,active:c},u)}else this.stopper=r.animation[t](o,u)}},{key:"stop",value:function(){var t=this.stopper;t&&(this.stopper=null,t.stop())}},{key:"render",value:function(){return this.props.children}}]),e}(b.a.Component);le.propTypes={children:M.a.any};var fe=n(71),pe=n(44),de=n.n(pe),ve=!("undefined"==typeof window||!window.document||!window.document.createElement);function me(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var he,ye,be,ge=(he=ve,ye="undefined"!=typeof window?window:{},be={animationend:me("Animation","AnimationEnd"),transitionend:me("Transition","TransitionEnd")},he&&("AnimationEvent"in ye||delete be.animationend.animation,"TransitionEvent"in ye||delete be.transitionend.transition),be),Me={};ve&&(Me=document.createElement("div").style);var we={};function Se(t){if(we[t])return we[t];var e=ge[t];if(e)for(var n=Object.keys(e),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(e,i)&&i in Me)return we[t]=e[i],we[t]}return""}var Ee=Se("animationend"),Oe=Se("transitionend");function Pe(t,e){return t?"object"==typeof t?t[e.replace(/-\w/g,function(t){return t[1].toUpperCase()})]:"".concat(t,"-").concat(e):null}var Te="none",_e="appear",je="enter",Ae="leave";var xe=function(t){function e(e){return!(!e.motionName||!t)}var n=function(t){function n(){var t;return a()(this,n),(t=l()(this,p()(n).call(this))).onDomUpdate=function(){var n=t.state,o=n.status,r=n.newStatus,i=t.props,a=i.onAppearStart,u=i.onEnterStart,s=i.onLeaveStart,c=i.onAppearActive,l=i.onEnterActive,f=i.onLeaveActive,p=i.motionAppear,d=i.motionEnter,v=i.motionLeave;if(e(t.props)){var m=S.a.findDOMNode(h()(h()(t)));t.$ele!==m&&(t.removeEventListener(t.$ele),t.addEventListener(m),t.$ele=m),r&&o===_e&&p?t.updateStatus(a,null,null,function(){t.updateActiveStatus(c,_e)}):r&&o===je&&d?t.updateStatus(u,null,null,function(){t.updateActiveStatus(l,je)}):r&&o===Ae&&v&&t.updateStatus(s,null,null,function(){t.updateActiveStatus(f,Ae)})}},t.onMotionEnd=function(e){var n=t.state,o=n.status,r=n.statusActive,i=t.props,a=i.onAppearEnd,u=i.onEnterEnd,s=i.onLeaveEnd;o===_e&&r?t.updateStatus(a,{status:Te},e):o===je&&r?t.updateStatus(u,{status:Te},e):o===Ae&&r&&t.updateStatus(s,{status:Te},e)},t.addEventListener=function(e){e&&(e.addEventListener(Oe,t.onMotionEnd),e.addEventListener(Ee,t.onMotionEnd))},t.removeEventListener=function(e){e&&(e.removeEventListener(Oe,t.onMotionEnd),e.removeEventListener(Ee,t.onMotionEnd))},t.updateStatus=function(e,n,o,r){var i,a=e?e(S.a.findDOMNode(h()(h()(t))),o):null;!1===a||t._destroyed||(r&&(i=function(){t.nextFrame(r)}),t.setState(X()({statusStyle:"object"==typeof a?a:null,newStatus:!1},n),i))},t.updateActiveStatus=function(e,n){t.nextFrame(function(){t.state.status===n&&t.updateStatus(e,{statusActive:!0})})},t.nextFrame=function(e){t.cancelNextFrame(),t.raf=de()(e)},t.cancelNextFrame=function(){t.raf&&(de.a.cancel(t.raf),t.raf=null)},t.state={status:Te,statusActive:!1,newStatus:!1,statusStyle:null},t.$ele=null,t.raf=null,t}return v()(n,t),s()(n,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$ele),this.cancelNextFrame()}},{key:"render",value:function(){var t,n=this.state,o=n.status,r=n.statusActive,i=n.statusStyle,a=this.props,u=a.children,s=a.motionName,c=a.visible,l=a.removeOnLeave,f=a.leavedClassName;return u?o!==Te&&e(this.props)?u({className:U()((t={},G()(t,Pe(s,o),o!==Te),G()(t,Pe(s,"".concat(o,"-active")),o!==Te&&r),G()(t,s,"string"==typeof s),t)),style:i}):c?u({}):l?null:u({className:f}):null}}],[{key:"getDerivedStateFromProps",value:function(t,n){var o=n.prevProps;if(!e(t))return{};var r=t.visible,i=t.motionAppear,a=t.motionEnter,u=t.motionLeave,s=t.motionLeaveImmediately,c={prevProps:t};return!o&&r&&i&&(c.status=_e,c.statusActive=!1,c.newStatus=!0),o&&!o.visible&&r&&a&&(c.status=je,c.statusActive=!1,c.newStatus=!0),(o&&o.visible&&!r&&u||!o&&s&&!r&&u)&&(c.status=Ae,c.statusActive=!1,c.newStatus=!0),c}}]),n}(b.a.Component);return n.propTypes={visible:M.a.bool,children:M.a.func,motionName:M.a.oneOfType([M.a.string,M.a.object]),motionAppear:M.a.bool,motionEnter:M.a.bool,motionLeave:M.a.bool,motionLeaveImmediately:M.a.bool,removeOnLeave:M.a.bool,leavedClassName:M.a.string,onAppearStart:M.a.func,onAppearActive:M.a.func,onAppearEnd:M.a.func,onEnterStart:M.a.func,onEnterActive:M.a.func,onEnterEnd:M.a.func,onLeaveStart:M.a.func,onLeaveActive:M.a.func,onLeaveEnd:M.a.func},n.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Object(fe.polyfill)(n),n}(!(!Ee||!Oe)),ke="rc_animate_".concat(Date.now());function Ce(t){var e=t.children;return b.a.isValidElement(e)&&!e.key?b.a.cloneElement(e,{key:ke}):e}function De(){}var Le=function(t){function e(t){var n;return a()(this,e),(n=l()(this,p()(e).call(this,t))).performEnter=function(t){n.childrenRefs[t]&&(n.currentlyAnimatingKeys[t]=!0,n.childrenRefs[t].componentWillEnter(n.handleDoneAdding.bind(h()(h()(n)),t,"enter")))},n.performAppear=function(t){n.childrenRefs[t]&&(n.currentlyAnimatingKeys[t]=!0,n.childrenRefs[t].componentWillAppear(n.handleDoneAdding.bind(h()(h()(n)),t,"appear")))},n.handleDoneAdding=function(t,e){var o=n.props;if(delete n.currentlyAnimatingKeys[t],!o.exclusive||o===n.nextProps){var r=oe(Ce(o));n.isValidChildByKey(r,t)?"appear"===e?se.allowAppearCallback(o)&&(o.onAppear(t),o.onEnd(t,!0)):se.allowEnterCallback(o)&&(o.onEnter(t),o.onEnd(t,!0)):n.performLeave(t)}},n.performLeave=function(t){n.childrenRefs[t]&&(n.currentlyAnimatingKeys[t]=!0,n.childrenRefs[t].componentWillLeave(n.handleDoneLeaving.bind(h()(h()(n)),t)))},n.handleDoneLeaving=function(t){var e=n.props;if(delete n.currentlyAnimatingKeys[t],!e.exclusive||e===n.nextProps){var o,r,i,a,u=oe(Ce(e));if(n.isValidChildByKey(u,t))n.performEnter(t);else{var s=function(){se.allowLeaveCallback(e)&&(e.onLeave(t),e.onEnd(t,!1))};o=n.state.children,r=u,i=e.showProp,(a=o.length===r.length)&&o.forEach(function(t,e){var n=r[e];t&&n&&(t&&!n||!t&&n?a=!1:t.key!==n.key?a=!1:i&&t.props[i]!==n.props[i]&&(a=!1))}),a?s():n.setState({children:u},s)}}},n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:oe(Ce(t))},n.childrenRefs={},n}return v()(e,t),s()(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props.showProp,n=this.state.children;e&&(n=n.filter(function(t){return!!t.props[e]})),n.forEach(function(e){e&&t.performAppear(e.key)})}},{key:"componentWillReceiveProps",value:function(t){var e=this;this.nextProps=t;var n=oe(Ce(t)),o=this.props;o.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(t){e.stop(t)});var r,i,a,u,s=o.showProp,c=this.currentlyAnimatingKeys,l=o.exclusive?oe(Ce(o)):this.state.children,f=[];s?(l.forEach(function(t){var e,o=t&&re(n,t.key);(e=o&&o.props[s]||!t.props[s]?o:b.a.cloneElement(o||t,G()({},s,!0)))&&f.push(e)}),n.forEach(function(t){t&&re(l,t.key)||f.push(t)})):(r=n,i=[],a={},u=[],l.forEach(function(t){t&&re(r,t.key)?u.length&&(a[t.key]=u,u=[]):u.push(t)}),r.forEach(function(t){t&&Object.prototype.hasOwnProperty.call(a,t.key)&&(i=i.concat(a[t.key])),i.push(t)}),f=i=i.concat(u)),this.setState({children:f}),n.forEach(function(t){var n=t&&t.key;if(!t||!c[n]){var o=t&&re(l,n);if(s){var r=t.props[s];if(o)!ie(l,n,s)&&r&&e.keysToEnter.push(n);else r&&e.keysToEnter.push(n)}else o||e.keysToEnter.push(n)}}),l.forEach(function(t){var o=t&&t.key;if(!t||!c[o]){var r=t&&re(n,o);if(s){var i=t.props[s];if(r)!ie(n,o,s)&&i&&e.keysToLeave.push(o);else i&&e.keysToLeave.push(o)}else r||e.keysToLeave.push(o)}})}},{key:"componentDidUpdate",value:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(t,e){var n=this.props.showProp;return n?ie(t,e,n):re(t,e)}},{key:"stop",value:function(t){delete this.currentlyAnimatingKeys[t];var e=this.childrenRefs[t];e&&e.stop()}},{key:"render",value:function(){var t=this,e=this.props;this.nextProps=e;var n=this.state.children,o=null;n&&(o=n.map(function(n){if(null==n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return b.a.createElement(le,{key:n.key,ref:function(e){t.childrenRefs[n.key]=e},animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},n)}));var r=e.component;if(r){var i=e;return"string"==typeof r&&(i=X()({className:e.className,style:e.style},e.componentProps)),b.a.createElement(r,i,o)}return o[0]||null}}]),e}(b.a.Component);Le.isAnimate=!0,Le.CSSMotion=xe,Le.propTypes={component:M.a.any,componentProps:M.a.object,animation:M.a.object,transitionName:M.a.oneOfType([M.a.string,M.a.object]),transitionEnter:M.a.bool,transitionAppear:M.a.bool,exclusive:M.a.bool,transitionLeave:M.a.bool,onEnd:M.a.func,onEnter:M.a.func,onLeave:M.a.func,onAppear:M.a.func,showProp:M.a.string,children:M.a.node},Le.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:De,onEnter:De,onLeave:De,onAppear:De};var We=Le,Ne=n(72),Re=n.n(Ne),Fe=function(t){function e(){return a()(this,e),l()(this,p()(e).apply(this,arguments))}return v()(e,t),s()(e,[{key:"shouldComponentUpdate",value:function(t){return t.hiddenClassName||t.visible}},{key:"render",value:function(){var t=this.props,e=t.hiddenClassName,n=t.visible,o=Re()(t,["hiddenClassName","visible"]);return e||b.a.Children.count(o.children)>1?(!n&&e&&(o.className+=" ".concat(e)),b.a.createElement("div",o)):b.a.Children.only(o.children)}}]),e}(b.a.Component);Fe.propTypes={children:M.a.any,className:M.a.string,visible:M.a.bool,hiddenClassName:M.a.string};var Ve=Fe,He=function(t){function e(){return a()(this,e),l()(this,p()(e).apply(this,arguments))}return v()(e,t),s()(e,[{key:"render",value:function(){var t=this.props,e=t.className;return t.visible||(e+=" ".concat(t.hiddenClassName)),b.a.createElement("div",{className:e,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,style:t.style},b.a.createElement(Ve,{className:"".concat(t.prefixCls,"-content"),visible:t.visible},t.children))}}]),e}(b.a.Component);He.propTypes={hiddenClassName:M.a.string,className:M.a.string,prefixCls:M.a.string,onMouseEnter:M.a.func,onMouseLeave:M.a.func,onMouseDown:M.a.func,onTouchStart:M.a.func,children:M.a.any};var Ue=He,ze=function(t){function e(t){var n;return a()(this,e),(n=l()(this,p()(e).call(this,t))).onAlign=function(t,e){var o=n.props,r=o.getClassNameFromAlign(e);n.currentAlignClassName!==r&&(n.currentAlignClassName=r,t.className=n.getClassName(r)),o.onAlign(t,e)},n.setStretchSize=function(){var t=n.props,e=t.stretch,o=t.getRootDomNode,r=t.visible,i=n.state,a=i.stretchChecked,u=i.targetHeight,s=i.targetWidth;if(e&&r){var c=o();if(c){var l=c.offsetHeight,f=c.offsetWidth;u===l&&s===f&&a||n.setState({stretchChecked:!0,targetHeight:l,targetWidth:f})}}else a&&n.setState({stretchChecked:!1})},n.getTargetElement=function(){return n.props.getRootDomNode()},n.getAlignTarget=function(){var t=n.props.point;return t||n.getTargetElement},n.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},n.savePopupRef=B.bind(h()(h()(n)),"popupInstance"),n.saveAlignRef=B.bind(h()(h()(n)),"alignInstance"),n}return v()(e,t),s()(e,[{key:"componentDidMount",value:function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()}},{key:"componentDidUpdate",value:function(){this.setStretchSize()}},{key:"getPopupDomNode",value:function(){return S.a.findDOMNode(this.popupInstance)}},{key:"getMaskTransitionName",value:function(){var t=this.props,e=t.maskTransitionName,n=t.maskAnimation;return!e&&n&&(e="".concat(t.prefixCls,"-").concat(n)),e}},{key:"getTransitionName",value:function(){var t=this.props,e=t.transitionName;return!e&&t.animation&&(e="".concat(t.prefixCls,"-").concat(t.animation)),e}},{key:"getClassName",value:function(t){return"".concat(this.props.prefixCls," ").concat(this.props.className," ").concat(t)}},{key:"getPopupElement",value:function(){var t=this,e=this.savePopupRef,n=this.state,o=n.stretchChecked,i=n.targetHeight,a=n.targetWidth,u=this.props,s=u.align,c=u.visible,l=u.prefixCls,f=u.style,p=u.getClassNameFromAlign,d=u.destroyPopupOnHide,v=u.stretch,m=u.children,h=u.onMouseEnter,y=u.onMouseLeave,g=u.onMouseDown,M=u.onTouchStart,w=this.getClassName(this.currentAlignClassName||p(s)),S="".concat(l,"-hidden");c||(this.currentAlignClassName=null);var E={};v&&(-1!==v.indexOf("height")?E.height=i:-1!==v.indexOf("minHeight")&&(E.minHeight=i),-1!==v.indexOf("width")?E.width=a:-1!==v.indexOf("minWidth")&&(E.minWidth=a),o||(E.visibility="hidden",setTimeout(function(){t.alignInstance&&t.alignInstance.forceAlign()},0)));var O={className:w,prefixCls:l,ref:e,onMouseEnter:h,onMouseLeave:y,onMouseDown:g,onTouchStart:M,style:X()({},E,f,this.getZIndexStyle())};return d?b.a.createElement(We,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},c?b.a.createElement(ne,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:s,onAlign:this.onAlign},b.a.createElement(Ue,r()({visible:!0},O),m)):null):b.a.createElement(We,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},b.a.createElement(ne,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:s,onAlign:this.onAlign},b.a.createElement(Ue,r()({hiddenClassName:S},O),m)))}},{key:"getZIndexStyle",value:function(){var t={},e=this.props;return void 0!==e.zIndex&&(t.zIndex=e.zIndex),t}},{key:"getMaskElement",value:function(){var t,e=this.props;if(e.mask){var n=this.getMaskTransitionName();t=b.a.createElement(Ve,{style:this.getZIndexStyle(),key:"mask",className:"".concat(e.prefixCls,"-mask"),hiddenClassName:"".concat(e.prefixCls,"-mask-hidden"),visible:e.visible}),n&&(t=b.a.createElement(We,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t}},{key:"render",value:function(){return b.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())}}]),e}(b.a.Component);ze.propTypes={visible:M.a.bool,style:M.a.object,getClassNameFromAlign:M.a.func,onAlign:M.a.func,getRootDomNode:M.a.func,align:M.a.any,destroyPopupOnHide:M.a.bool,className:M.a.string,prefixCls:M.a.string,onMouseEnter:M.a.func,onMouseLeave:M.a.func,onMouseDown:M.a.func,onTouchStart:M.a.func,stretch:M.a.string,children:M.a.node,point:M.a.shape({pageX:M.a.number,pageY:M.a.number})};var Xe=ze;function Ye(){}function Be(t,e){for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var qe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],$e=!!w.createPortal,Ge={rcTrigger:M.a.shape({onPopupMouseDown:M.a.func})},Ie=function(t){function e(t){var n,o;return a()(this,e),(n=l()(this,p()(e).call(this,t))).onMouseEnter=function(t){var e=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",t),n.delaySetPopupVisible(!0,e,e?null:t)},n.onMouseMove=function(t){n.fireEvents("onMouseMove",t),n.setPoint(t)},n.onMouseLeave=function(t){n.fireEvents("onMouseLeave",t),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&n._component&&n._component.getPopupDomNode&&Be(n._component.getPopupDomNode(),t.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(t){n.fireEvents("onFocus",t),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(t){n.fireEvents("onMouseDown",t),n.preClickTime=Date.now()},n.onTouchStart=function(t){n.fireEvents("onTouchStart",t),n.preTouchTime=Date.now()},n.onBlur=function(t){n.fireEvents("onBlur",t),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(t){t.preventDefault(),n.fireEvents("onContextMenu",t),n.setPopupVisible(!0,t)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(t){if(n.fireEvents("onClick",t),n.focusTime){var e;if(n.preClickTime&&n.preTouchTime?e=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?e=n.preClickTime:n.preTouchTime&&(e=n.preTouchTime),Math.abs(e-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,t&&t.preventDefault&&t.preventDefault();var o=!n.state.popupVisible;(n.isClickToHide()&&!o||o&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,t)},n.onPopupMouseDown=function(){var t=n.context.rcTrigger,e=void 0===t?{}:t;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=setTimeout(function(){n.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown.apply(e,arguments)},n.onDocumentClick=function(t){if(!n.props.mask||n.props.maskClosable){var e=t.target;Be(Object(w.findDOMNode)(h()(h()(n))),e)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){return Object(w.findDOMNode)(h()(h()(n)))},n.getPopupClassNameFromAlign=function(t){var e=[],o=n.props,r=o.popupPlacement,i=o.builtinPlacements,a=o.prefixCls,u=o.alignPoint,s=o.getPopupClassNameFromAlign;return r&&i&&e.push(function(t,e,n,o){var r=n.points;for(var i in t)if(t.hasOwnProperty(i)&&Y(t[i].points,r,o))return"".concat(e,"-placement-").concat(i);return""}(i,a,t,u)),s&&e.push(s(t)),e.join(" ")},n.getComponent=function(){var t=n.props,e=t.prefixCls,o=t.destroyPopupOnHide,i=t.popupClassName,a=t.action,u=t.onPopupAlign,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,f=t.mask,p=t.maskAnimation,d=t.maskTransitionName,v=t.zIndex,m=t.popup,h=t.stretch,y=t.alignPoint,g=n.state,M=g.popupVisible,w=g.point,S=n.getPopupAlign(),E={};return n.isMouseEnterToShow()&&(E.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(E.onMouseLeave=n.onPopupMouseLeave),E.onMouseDown=n.onPopupMouseDown,E.onTouchStart=n.onPopupMouseDown,b.a.createElement(Xe,r()({prefixCls:e,destroyPopupOnHide:o,visible:M,point:y&&w,className:i,action:a,align:S,onAlign:u,animation:s,getClassNameFromAlign:n.getPopupClassNameFromAlign},E,{stretch:h,getRootDomNode:n.getRootDomNode,style:l,mask:f,zIndex:v,transitionName:c,maskAnimation:p,maskTransitionName:d,ref:n.savePopup}),"function"==typeof m?m():m)},n.getContainer=function(){var t=h()(h()(n)).props,e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",(t.getPopupContainer?t.getPopupContainer(Object(w.findDOMNode)(h()(h()(n)))):t.getDocument().body).appendChild(e),e},n.setPoint=function(t){n.props.alignPoint&&t&&n.setState({point:{pageX:t.pageX,pageY:t.pageY}})},n.handlePortalUpdate=function(){n.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)},n.savePopup=function(t){n._component=t},o="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,n.prevPopupVisible=o,n.state={popupVisible:o},n}return v()(e,t),s()(e,[{key:"getChildContext",value:function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}}},{key:"componentWillMount",value:function(){var t=this;qe.forEach(function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})}},{key:"componentDidMount",value:function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})}},{key:"componentWillReceiveProps",value:function(t){var e=t.popupVisible;void 0!==e&&this.setState({popupVisible:e})}},{key:"componentDidUpdate",value:function(t,e){var n,o=this.props,r=this.state;if($e||this.renderComponent(null,function(){e.popupVisible!==r.popupVisible&&o.afterPopupVisibleChange(r.popupVisible)}),this.prevPopupVisible=e.popupVisible,r.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(n=o.getDocument(),this.clickOutsideHandler=V(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||o.getDocument(),this.touchOutsideHandler=V(n,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(n=n||o.getDocument(),this.contextMenuOutsideHandler1=V(n,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=V(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return X()({},o,n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint;this.clearDelayTimer(),this.state.popupVisible!==t&&("popupVisible"in this.props||this.setState({popupVisible:t}),this.props.onPopupVisibleChange(t)),n&&e&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var o=this,r=1e3*e;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(function(){o.setPopupVisible(t,i),o.clearDelayTimer()},r)}else this.setPopupVisible(t,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var o=this.props[t];o&&o(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this,e=this.state.popupVisible,n=this.props,o=n.children,r=n.forceRender,i=n.alignPoint,a=n.className,u=b.a.Children.only(o),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var c=U()(u&&u.props&&u.props.className,a);c&&(s.className=c);var l,f=b.a.cloneElement(u,s);return $e?((e||this._component||r)&&(l=b.a.createElement(E,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[f,l]):b.a.createElement(O,{parent:this,visible:e,autoMount:!1,forceRender:r,getComponent:this.getComponent,getContainer:this.getContainer},function(e){var n=e.renderComponent;return t.renderComponent=n,f})}}]),e}(b.a.Component);Ie.propTypes={children:M.a.any,action:M.a.oneOfType([M.a.string,M.a.arrayOf(M.a.string)]),showAction:M.a.any,hideAction:M.a.any,getPopupClassNameFromAlign:M.a.any,onPopupVisibleChange:M.a.func,afterPopupVisibleChange:M.a.func,popup:M.a.oneOfType([M.a.node,M.a.func]).isRequired,popupStyle:M.a.object,prefixCls:M.a.string,popupClassName:M.a.string,className:M.a.string,popupPlacement:M.a.string,builtinPlacements:M.a.object,popupTransitionName:M.a.oneOfType([M.a.string,M.a.object]),popupAnimation:M.a.any,mouseEnterDelay:M.a.number,mouseLeaveDelay:M.a.number,zIndex:M.a.number,focusDelay:M.a.number,blurDelay:M.a.number,getPopupContainer:M.a.func,getDocument:M.a.func,forceRender:M.a.bool,destroyPopupOnHide:M.a.bool,mask:M.a.bool,maskClosable:M.a.bool,onPopupAlign:M.a.func,popupAlign:M.a.object,popupVisible:M.a.bool,defaultPopupVisible:M.a.bool,maskTransitionName:M.a.oneOfType([M.a.string,M.a.object]),maskAnimation:M.a.string,stretch:M.a.string,alignPoint:M.a.bool},Ie.contextTypes=Ge,Ie.childContextTypes=Ge,Ie.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(){return window.document},onPopupVisibleChange:Ye,afterPopupVisibleChange:Ye,onPopupAlign:Ye,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};n.d(e,"Trigger",function(){return Ie})}])});