From 3f5dd4bd52b28637f90f8ddf1a5f1cdb105772a8 Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Thu, 29 Apr 2021 11:47:28 +0800 Subject: [PATCH] js to ts --- addon/web/client/.eslintignore | 1 + addon/web/client/.eslintrc.yml | 33 + addon/web/client/README.md | 24 - addon/web/client/build/asset-manifest.json | 30 +- addon/web/client/build/index.html | 2 +- ...a0e0.chunk.css => main.451c1dcc.chunk.css} | 2 +- .../static/css/main.451c1dcc.chunk.css.map | 1 + .../static/css/main.cb45a0e0.chunk.css.map | 1 - .../build/static/js/2.68265363.chunk.js | 3 - .../build/static/js/2.68265363.chunk.js.map | 1 - .../build/static/js/2.88d332b9.chunk.js | 3 + ...SE.txt => 2.88d332b9.chunk.js.LICENSE.txt} | 10 +- .../build/static/js/2.88d332b9.chunk.js.map | 1 + .../build/static/js/3.a88e738d.chunk.js | 2 + .../build/static/js/3.a88e738d.chunk.js.map | 1 + .../build/static/js/3.f3a1fc42.chunk.js | 2 - .../build/static/js/3.f3a1fc42.chunk.js.map | 1 - .../build/static/js/main.5904c112.chunk.js | 2 + .../static/js/main.5904c112.chunk.js.map | 1 + .../build/static/js/main.6b681f56.chunk.js | 2 - .../static/js/main.6b681f56.chunk.js.map | 1 - ...n.48e80cd2.js => runtime-main.bcda7d85.js} | 4 +- ...d2.js.map => runtime-main.bcda7d85.js.map} | 2 +- addon/web/client/package-lock.json | 36070 ++++++++++++++++ addon/web/client/package.json | 21 +- addon/web/client/src/App.css | 62 +- .../client/src/{App.test.js => App.test.tsx} | 1 + addon/web/client/src/{App.js => App.tsx} | 154 +- .../{BreakPoint.js => BreakPoint.tsx} | 32 +- .../components/{EditFlow.js => EditFlow.tsx} | 52 +- addon/web/client/src/{flow.js => flow.ts} | 23 +- addon/web/client/src/{index.js => index.tsx} | 0 .../web/client/src/{message.js => message.ts} | 101 +- addon/web/client/src/react-app-env.d.ts | 1 + ...{reportWebVitals.js => reportWebVitals.ts} | 4 +- .../src/{setupTests.js => setupTests.ts} | 0 addon/web/client/src/{utils.js => utils.ts} | 8 +- addon/web/client/tsconfig.json | 26 + addon/web/client/yarn.lock | 3815 +- 39 files changed, 38416 insertions(+), 2084 deletions(-) create mode 100644 addon/web/client/.eslintignore create mode 100644 addon/web/client/.eslintrc.yml rename addon/web/client/build/static/css/{main.cb45a0e0.chunk.css => main.451c1dcc.chunk.css} (94%) create mode 100644 addon/web/client/build/static/css/main.451c1dcc.chunk.css.map delete mode 100644 addon/web/client/build/static/css/main.cb45a0e0.chunk.css.map delete mode 100644 addon/web/client/build/static/js/2.68265363.chunk.js delete mode 100644 addon/web/client/build/static/js/2.68265363.chunk.js.map create mode 100644 addon/web/client/build/static/js/2.88d332b9.chunk.js rename addon/web/client/build/static/js/{2.68265363.chunk.js.LICENSE.txt => 2.88d332b9.chunk.js.LICENSE.txt} (87%) create mode 100644 addon/web/client/build/static/js/2.88d332b9.chunk.js.map create mode 100644 addon/web/client/build/static/js/3.a88e738d.chunk.js create mode 100644 addon/web/client/build/static/js/3.a88e738d.chunk.js.map delete mode 100644 addon/web/client/build/static/js/3.f3a1fc42.chunk.js delete mode 100644 addon/web/client/build/static/js/3.f3a1fc42.chunk.js.map create mode 100644 addon/web/client/build/static/js/main.5904c112.chunk.js create mode 100644 addon/web/client/build/static/js/main.5904c112.chunk.js.map delete mode 100644 addon/web/client/build/static/js/main.6b681f56.chunk.js delete mode 100644 addon/web/client/build/static/js/main.6b681f56.chunk.js.map rename addon/web/client/build/static/js/{runtime-main.48e80cd2.js => runtime-main.bcda7d85.js} (75%) rename addon/web/client/build/static/js/{runtime-main.48e80cd2.js.map => runtime-main.bcda7d85.js.map} (94%) create mode 100644 addon/web/client/package-lock.json rename addon/web/client/src/{App.test.js => App.test.tsx} (90%) rename addon/web/client/src/{App.js => App.tsx} (64%) rename addon/web/client/src/components/{BreakPoint.js => BreakPoint.tsx} (83%) rename addon/web/client/src/components/{EditFlow.js => EditFlow.tsx} (80%) rename addon/web/client/src/{flow.js => flow.ts} (68%) rename addon/web/client/src/{index.js => index.tsx} (100%) rename addon/web/client/src/{message.js => message.ts} (50%) create mode 100644 addon/web/client/src/react-app-env.d.ts rename addon/web/client/src/{reportWebVitals.js => reportWebVitals.ts} (75%) rename addon/web/client/src/{setupTests.js => setupTests.ts} (100%) rename addon/web/client/src/{utils.js => utils.ts} (80%) create mode 100644 addon/web/client/tsconfig.json diff --git a/addon/web/client/.eslintignore b/addon/web/client/.eslintignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/addon/web/client/.eslintignore @@ -0,0 +1 @@ +build diff --git a/addon/web/client/.eslintrc.yml b/addon/web/client/.eslintrc.yml new file mode 100644 index 0000000..a24e5e2 --- /dev/null +++ b/addon/web/client/.eslintrc.yml @@ -0,0 +1,33 @@ +env: + browser: true + es2021: true +extends: + - 'eslint:recommended' + - 'plugin:react/recommended' + - 'plugin:@typescript-eslint/recommended' +parser: '@typescript-eslint/parser' +parserOptions: + ecmaFeatures: + jsx: true + ecmaVersion: 12 + sourceType: module +plugins: + - react + - '@typescript-eslint' +rules: + indent: + - error + - 2 + linebreak-style: + - error + - unix + quotes: + - error + - single + semi: + - error + - never + '@typescript-eslint/explicit-module-boundary-types': + - 0 + '@typescript-eslint/no-explicit-any': + - 0 diff --git a/addon/web/client/README.md b/addon/web/client/README.md index 02aac3f..b58e0af 100644 --- a/addon/web/client/README.md +++ b/addon/web/client/README.md @@ -44,27 +44,3 @@ You don’t have to ever use `eject`. The curated feature set is suitable for sm You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) - -### Analyzing the Bundle Size - -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) - -### Making a Progressive Web App - -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) - -### Advanced Configuration - -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) - -### Deployment - -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) - -### `yarn build` fails to minify - -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) diff --git a/addon/web/client/build/asset-manifest.json b/addon/web/client/build/asset-manifest.json index 8fdc21b..a5dbde1 100644 --- a/addon/web/client/build/asset-manifest.json +++ b/addon/web/client/build/asset-manifest.json @@ -1,25 +1,25 @@ { "files": { - "main.css": "/static/css/main.cb45a0e0.chunk.css", - "main.js": "/static/js/main.6b681f56.chunk.js", - "main.js.map": "/static/js/main.6b681f56.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.48e80cd2.js", - "runtime-main.js.map": "/static/js/runtime-main.48e80cd2.js.map", + "main.css": "/static/css/main.451c1dcc.chunk.css", + "main.js": "/static/js/main.5904c112.chunk.js", + "main.js.map": "/static/js/main.5904c112.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.bcda7d85.js", + "runtime-main.js.map": "/static/js/runtime-main.bcda7d85.js.map", "static/css/2.150d169a.chunk.css": "/static/css/2.150d169a.chunk.css", - "static/js/2.68265363.chunk.js": "/static/js/2.68265363.chunk.js", - "static/js/2.68265363.chunk.js.map": "/static/js/2.68265363.chunk.js.map", - "static/js/3.f3a1fc42.chunk.js": "/static/js/3.f3a1fc42.chunk.js", - "static/js/3.f3a1fc42.chunk.js.map": "/static/js/3.f3a1fc42.chunk.js.map", + "static/js/2.88d332b9.chunk.js": "/static/js/2.88d332b9.chunk.js", + "static/js/2.88d332b9.chunk.js.map": "/static/js/2.88d332b9.chunk.js.map", + "static/js/3.a88e738d.chunk.js": "/static/js/3.a88e738d.chunk.js", + "static/js/3.a88e738d.chunk.js.map": "/static/js/3.a88e738d.chunk.js.map", "index.html": "/index.html", "static/css/2.150d169a.chunk.css.map": "/static/css/2.150d169a.chunk.css.map", - "static/css/main.cb45a0e0.chunk.css.map": "/static/css/main.cb45a0e0.chunk.css.map", - "static/js/2.68265363.chunk.js.LICENSE.txt": "/static/js/2.68265363.chunk.js.LICENSE.txt" + "static/css/main.451c1dcc.chunk.css.map": "/static/css/main.451c1dcc.chunk.css.map", + "static/js/2.88d332b9.chunk.js.LICENSE.txt": "/static/js/2.88d332b9.chunk.js.LICENSE.txt" }, "entrypoints": [ - "static/js/runtime-main.48e80cd2.js", + "static/js/runtime-main.bcda7d85.js", "static/css/2.150d169a.chunk.css", - "static/js/2.68265363.chunk.js", - "static/css/main.cb45a0e0.chunk.css", - "static/js/main.6b681f56.chunk.js" + "static/js/2.88d332b9.chunk.js", + "static/css/main.451c1dcc.chunk.css", + "static/js/main.5904c112.chunk.js" ] } \ No newline at end of file diff --git a/addon/web/client/build/index.html b/addon/web/client/build/index.html index 8eaffc8..5998f06 100644 --- a/addon/web/client/build/index.html +++ b/addon/web/client/build/index.html @@ -1 +1 @@ -go-mitmproxy
\ No newline at end of file +go-mitmproxy
\ No newline at end of file diff --git a/addon/web/client/build/static/css/main.cb45a0e0.chunk.css b/addon/web/client/build/static/css/main.451c1dcc.chunk.css similarity index 94% rename from addon/web/client/build/static/css/main.cb45a0e0.chunk.css rename to addon/web/client/build/static/css/main.451c1dcc.chunk.css index 2a0e1ab..a357c38 100644 --- a/addon/web/client/build/static/css/main.cb45a0e0.chunk.css +++ b/addon/web/client/build/static/css/main.451c1dcc.chunk.css @@ -1,2 +1,2 @@ .main-table-wrap{font-family:Menlo,Monaco;font-size:.8rem}.top-control{display:flex;align-items:center}.top-control>div{margin-right:20px}.main-table-wrap tbody tr.tr-selected{background-color:#2376e5;color:#fff}.main-table-wrap tbody tr.tr-wait-intercept{background-color:#d86e53;color:#fff}.flow-detail{position:fixed;top:0;right:0;height:100vh;background-color:#fff;min-width:500px;width:50%;overflow-y:auto;word-break:break-all}.flow-detail .header-tabs{display:flex}.flow-detail .header-tabs span{display:inline-block;line-height:1;padding:8px;cursor:pointer}.flow-detail .header-tabs .selected{border-bottom:2px solid #2376e5}.flow-detail .header-tabs .flow-wait-area button{margin-left:10px}.flow-detail .header-block{margin-bottom:20px}.flow-detail .header-block>p{font-weight:700}.flow-detail .header-block .header-block-content p{margin:5px 0}.flow-detail .header-block .header-block-content{margin-left:20px;line-height:1.5} -/*# sourceMappingURL=main.cb45a0e0.chunk.css.map */ \ No newline at end of file +/*# sourceMappingURL=main.451c1dcc.chunk.css.map */ \ No newline at end of file diff --git a/addon/web/client/build/static/css/main.451c1dcc.chunk.css.map b/addon/web/client/build/static/css/main.451c1dcc.chunk.css.map new file mode 100644 index 0000000..2bd311d --- /dev/null +++ b/addon/web/client/build/static/css/main.451c1dcc.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://src/App.css"],"names":[],"mappings":"AAAA,iBACE,wBAAyB,CACzB,eACF,CAEA,aACE,YAAa,CACb,kBACF,CAEA,iBACE,iBACF,CAGA,sCACE,wBAAmC,CACnC,UACF,CAEA,4CACE,wBAAmC,CACnC,UACF,CAEA,aACE,cAAe,CACf,KAAM,CACN,OAAQ,CAER,YAAa,CACb,qBAAsB,CACtB,eAAgB,CAChB,SAAU,CACV,eAAgB,CAEhB,oBACF,CAEA,0BACE,YACF,CAEA,+BACE,oBAAqB,CACrB,aAAc,CACd,WAAY,CACZ,cACF,CAEA,oCACE,+BACF,CAEA,iDACE,gBACF,CAEA,2BACE,kBACF,CAEA,6BACE,eACF,CAEA,mDACE,YACF,CAEA,iDACE,gBAAiB,CACjB,eACF","file":"main.451c1dcc.chunk.css","sourcesContent":[".main-table-wrap {\n font-family: Menlo,Monaco;\n font-size: 0.8rem;\n}\n\n.top-control {\n display: flex;\n align-items: center;\n}\n\n.top-control > div {\n margin-right: 20px;\n}\n\n\n.main-table-wrap tbody tr.tr-selected {\n background-color: rgb(35, 118, 229);\n color: white;\n}\n\n.main-table-wrap tbody tr.tr-wait-intercept {\n background-color: rgb(216, 110, 83);\n color: white;\n}\n\n.flow-detail {\n position: fixed;\n top: 0;\n right: 0;\n\n height: 100vh;\n background-color: #fff;\n min-width: 500px;\n width: 50%;\n overflow-y: auto;\n\n word-break: break-all;\n}\n\n.flow-detail .header-tabs {\n display: flex;\n}\n\n.flow-detail .header-tabs span {\n display: inline-block;\n line-height: 1;\n padding: 8px;\n cursor: pointer;\n}\n\n.flow-detail .header-tabs .selected {\n border-bottom: 2px rgb(35, 118, 229) solid;\n}\n\n.flow-detail .header-tabs .flow-wait-area button {\n margin-left: 10px;\n}\n\n.flow-detail .header-block {\n margin-bottom: 20px;\n}\n\n.flow-detail .header-block > p {\n font-weight: bold;\n}\n\n.flow-detail .header-block .header-block-content p {\n margin: 5px 0;\n}\n\n.flow-detail .header-block .header-block-content {\n margin-left: 20px;\n line-height: 1.5;\n}\n"]} \ No newline at end of file diff --git a/addon/web/client/build/static/css/main.cb45a0e0.chunk.css.map b/addon/web/client/build/static/css/main.cb45a0e0.chunk.css.map deleted file mode 100644 index 4974ef9..0000000 --- a/addon/web/client/build/static/css/main.cb45a0e0.chunk.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://src/App.css"],"names":[],"mappings":"AAAA,iBACI,wBAAyB,CACzB,eACJ,CAEA,aACI,YAAa,CACb,kBACJ,CAEA,iBACI,iBACJ,CAGA,sCACI,wBAAmC,CACnC,UACJ,CAEA,4CACI,wBAAmC,CACnC,UACJ,CAEA,aACI,cAAe,CACf,KAAM,CACN,OAAQ,CAER,YAAa,CACb,qBAAsB,CACtB,eAAgB,CAChB,SAAU,CACV,eAAgB,CAEhB,oBACJ,CAEA,0BACI,YACJ,CAEA,+BACI,oBAAqB,CACrB,aAAc,CACd,WAAY,CACZ,cACJ,CAEA,oCACI,+BACJ,CAEA,iDACI,gBACJ,CAEA,2BACI,kBACJ,CAEA,6BACI,eACJ,CAEA,mDACI,YACJ,CAEA,iDACI,gBAAiB,CACjB,eACJ","file":"main.cb45a0e0.chunk.css","sourcesContent":[".main-table-wrap {\n font-family: Menlo,Monaco;\n font-size: 0.8rem;\n}\n\n.top-control {\n display: flex;\n align-items: center;\n}\n\n.top-control > div {\n margin-right: 20px;\n}\n\n\n.main-table-wrap tbody tr.tr-selected {\n background-color: rgb(35, 118, 229);\n color: white;\n}\n\n.main-table-wrap tbody tr.tr-wait-intercept {\n background-color: rgb(216, 110, 83);\n color: white;\n}\n\n.flow-detail {\n position: fixed;\n top: 0;\n right: 0;\n\n height: 100vh;\n background-color: #fff;\n min-width: 500px;\n width: 50%;\n overflow-y: auto;\n\n word-break: break-all;\n}\n\n.flow-detail .header-tabs {\n display: flex;\n}\n\n.flow-detail .header-tabs span {\n display: inline-block;\n line-height: 1;\n padding: 8px;\n cursor: pointer;\n}\n\n.flow-detail .header-tabs .selected {\n border-bottom: 2px rgb(35, 118, 229) solid;\n}\n\n.flow-detail .header-tabs .flow-wait-area button {\n margin-left: 10px;\n}\n\n.flow-detail .header-block {\n margin-bottom: 20px;\n}\n\n.flow-detail .header-block > p {\n font-weight: bold;\n}\n\n.flow-detail .header-block .header-block-content p {\n margin: 5px 0;\n}\n\n.flow-detail .header-block .header-block-content {\n margin-left: 20px;\n line-height: 1.5;\n}"]} \ No newline at end of file diff --git a/addon/web/client/build/static/js/2.68265363.chunk.js b/addon/web/client/build/static/js/2.68265363.chunk.js deleted file mode 100644 index 9846e64..0000000 --- a/addon/web/client/build/static/js/2.68265363.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.68265363.chunk.js.LICENSE.txt */ -(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(43)},function(e,t,n){"use strict";e.exports=n(49)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;te.clientHeight}var T=["template","script","style"],R=function(e,t,n){[].forEach.call(e.children,(function(e){-1===t.indexOf(e)&&function(e){var t=e.nodeType,n=e.tagName;return 1===t&&-1===T.indexOf(n.toLowerCase())}(e)&&n(e)}))};function L(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}var z,F=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,a=t.handleContainerOverflow,o=void 0===a||a;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=d()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return function(e,t){var n=-1;return e.some((function(e,r){return!!t(e,r)&&(n=r,!0)})),n}(this.data,(function(t){return-1!==t.modals.indexOf(e)}))},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(Object(_.a)(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),Object(_.a)(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),a=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;R(e,[n,r],(function(e){return L(!0,e)}))}(t,e),-1!==a)return this.data[a].modals.push(e),r;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:j(t)};return this.handleContainerOverflow&&this.setContainerStyle(o,t),o.classes.forEach(O.bind(null,t)),this.containers.push(t),this.data.push(o),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],a=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(N.bind(null,a)),this.handleContainerOverflow&&this.removeContainerStyle(r,a),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;R(e,[n,r],(function(e){return L(!1,e)}))}(a,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var o=r.modals[r.modals.length-1],l=o.backdrop;L(!1,o.dialog),L(!1,l)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),I=function(e){var t;return"undefined"===typeof document?null:null==e?Object(c.a)().body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function D(e){var t=e||(z||(z=new F),z),n=Object(p.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:Object(p.useCallback)((function(e){n.current.dialog=e}),[]),setBackdropRef:Object(p.useCallback)((function(e){n.current.backdrop=e}),[])})}var M=Object(p.forwardRef)((function(e,t){var n=e.show,r=void 0!==n&&n,l=e.role,i=void 0===l?"dialog":l,u=e.className,c=e.style,f=e.children,d=e.backdrop,b=void 0===d||d,k=e.keyboard,E=void 0===k||k,x=e.onBackdropClick,O=e.onEscapeKeyDown,C=e.transition,N=e.backdropTransition,_=e.autoFocus,P=void 0===_||_,j=e.enforceFocus,T=void 0===j||j,R=e.restoreFocus,L=void 0===R||R,z=e.restoreFocusOptions,F=e.renderDialog,M=e.renderBackdrop,A=void 0===M?function(e){return m.a.createElement("div",e)}:M,U=e.manager,V=e.container,B=e.containerClassName,H=e.onShow,W=e.onHide,$=void 0===W?function(){}:W,Q=e.onExit,q=e.onExited,K=e.onExiting,Y=e.onEnter,X=e.onEntering,G=e.onEntered,Z=Object(o.a)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),J=function(e,t){var n=Object(p.useState)((function(){return I(e)})),r=n[0],a=n[1];if(!r){var o=I(e);o&&a(o)}return Object(p.useEffect)((function(){t&&r&&t(r)}),[t,r]),Object(p.useEffect)((function(){var t=I(e);t!==r&&a(t)}),[e,r]),r}(V),ee=D(U),te=function(){var e=Object(p.useRef)(!0),t=Object(p.useRef)((function(){return e.current}));return Object(p.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}(),ne=function(e){var t=Object(p.useRef)(null);return Object(p.useEffect)((function(){t.current=e})),t.current}(r),re=Object(p.useState)(!r),ae=re[0],oe=re[1],le=Object(p.useRef)(null);Object(p.useImperativeHandle)(t,(function(){return ee}),[ee]),s.a&&!ne&&r&&(le.current=y()),C||r||ae?r&&ae&&oe(!1):oe(!0);var ie=Object(h.a)((function(){if(ee.add(J,B),pe.current=Object(w.a)(document,"keydown",fe),de.current=Object(w.a)(document,"focus",(function(){return setTimeout(se)}),!0),H&&H(),P){var e=y(document);ee.dialog&&e&&!g(ee.dialog,e)&&(le.current=e,ee.dialog.focus())}})),ue=Object(h.a)((function(){var e;(ee.remove(),null==pe.current||pe.current(),null==de.current||de.current(),L)&&(null==(e=le.current)||null==e.focus||e.focus(z),le.current=null)}));Object(p.useEffect)((function(){r&&J&&ie()}),[r,J,ie]),Object(p.useEffect)((function(){ae&&ue()}),[ae,ue]),v((function(){ue()}));var se=Object(h.a)((function(){if(T&&te()&&ee.isTopModal()){var e=y();ee.dialog&&e&&!g(ee.dialog,e)&&ee.dialog.focus()}})),ce=Object(h.a)((function(e){e.target===e.currentTarget&&(null==x||x(e),!0===b&&$())})),fe=Object(h.a)((function(e){E&&27===e.keyCode&&ee.isTopModal()&&(null==O||O(e),e.defaultPrevented||$())})),de=Object(p.useRef)(),pe=Object(p.useRef)(),me=C;if(!J||!(r||me&&!ae))return null;var he=Object(a.a)({role:i,ref:ee.setDialogRef,"aria-modal":"dialog"===i||void 0},Z,{style:c,className:u,tabIndex:-1}),ve=F?F(he):m.a.createElement("div",he,m.a.cloneElement(f,{role:"document"}));me&&(ve=m.a.createElement(me,{appear:!0,unmountOnExit:!0,in:!!r,onExit:Q,onExiting:K,onExited:function(){oe(!0);for(var e=arguments.length,t=new Array(e),n=0;nObject(c.a)(e).documentElement.clientHeight;K({paddingRight:t&&!n?d():void 0,paddingLeft:!t&&n?d():void 0})}}var pe=Object(h.a)((function(){oe&&de(oe.dialog)}));v((function(){Object(f.a)(window,"resize",pe),ne.current&&ne.current()}));var me=function(){ee.current=!0},he=function(e){ee.current&&oe&&e.target===oe.dialog&&(te.current=!0),ee.current=!1},ve=function(){J(!0),ne.current=Object(b.a)(oe.dialog,(function(){J(!1)}))},be=function(e){"static"!==O?te.current||e.target!==e.currentTarget?te.current=!1:P():function(e){e.target===e.currentTarget&&ve()}(e)},ye=Object(p.useCallback)((function(e){return m.a.createElement("div",Object(a.a)({},e,{className:i()(n+"-backdrop",B,!S&&"show")}))}),[S,B,n]),ge=Object(a.a)({},l,Q);S||(ge.display="block");return m.a.createElement(G.Provider,{value:ue},m.a.createElement(U,{show:x,ref:le,backdrop:O,container:j,keyboard:!0,autoFocus:T,enforceFocus:R,restoreFocus:L,restoreFocusOptions:z,onEscapeKeyDown:function(e){C||"static"!==O?C&&N&&N(e):(e.preventDefault(),ve())},onShow:_,onHide:P,onEnter:function(e){e&&(e.style.display="block",de(e));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw l}}}}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),a=n(3),o=n(4),l=n.n(o),i=n(0),u=n.n(i),s=n(5),c=u.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.className,i=e.striped,c=e.bordered,f=e.borderless,d=e.hover,p=e.size,m=e.variant,h=e.responsive,v=Object(a.a)(e,["bsPrefix","className","striped","bordered","borderless","hover","size","variant","responsive"]),b=Object(s.a)(n,"table"),y=l()(o,b,m&&b+"-"+m,p&&b+"-"+p,i&&b+"-striped",c&&b+"-bordered",f&&b+"-borderless",d&&b+"-hover"),g=u.a.createElement("table",Object(r.a)({},v,{className:y,ref:t}));if(h){var w=b+"-responsive";return"string"===typeof h&&(w=w+"-"+h),u.a.createElement("div",{className:w},g)}return g}));t.a=c},function(e,t,n){"use strict";var r=n(2),a=n(3),o=n(4),l=n.n(o),i=n(0),u=n.n(i);n(38);function s(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function f(e,t){return Object.keys(t).reduce((function(n,o){var l,u=n,f=u[s(o)],d=u[o],p=Object(a.a)(u,[s(o),o].map(c)),m=t[o],h=function(e,t,n){var r=Object(i.useRef)(void 0!==e),a=Object(i.useState)(t),o=a[0],l=a[1],u=void 0!==e,s=r.current;return r.current=u,!u&&s&&o!==t&&l(t),[u?e:o,Object(i.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a