From 49ae02fd03f0bd64a0b4576b4e86be3cef5100f4 Mon Sep 17 00:00:00 2001 From: Andrzej Sala Date: Mon, 29 Jul 2019 13:53:06 +0200 Subject: [PATCH] feat(componentDisplayMode): Merge passed a prop object with a default (#71) * feat(componentDisplayMode): Merge passed a prop object with a default * chore(example): Clear example params --- .gitignore | 1 + {examples/demo => demo}/.env | 0 demo/build/asset-manifest.json | 13 + .../demo/public => demo/build}/favicon.ico | Bin demo/build/index.html | 1 + .../demo/public => demo/build}/manifest.json | 0 ...nifest.2a58595fb846f91804af221cc1a187bb.js | 22 + demo/build/service-worker.js | 34 + demo/build/static/css/main.218ded95.chunk.css | 2 + .../static/css/main.218ded95.chunk.css.map | 1 + demo/build/static/js/2.ab6124b9.chunk.js | 2 + demo/build/static/js/2.ab6124b9.chunk.js.map | 1 + demo/build/static/js/main.c330bb31.chunk.js | 2 + .../static/js/main.c330bb31.chunk.js.map | 1 + demo/build/static/js/runtime~main.42ac5946.js | 2 + .../static/js/runtime~main.42ac5946.js.map | 1 + {examples/demo => demo}/config/env.js | 0 .../demo => demo}/config/jest/cssTransform.js | 0 .../config/jest/fileTransform.js | 0 {examples/demo => demo}/config/paths.js | 0 .../demo => demo}/config/webpack.config.js | 0 .../config/webpackDevServer.config.js | 0 demo/package-lock.json | 12933 ++++++++++++++++ {examples/demo => demo}/package.json | 0 demo/public/favicon.ico | Bin 0 -> 3870 bytes {examples/demo => demo}/public/index.html | 0 demo/public/manifest.json | 15 + {examples/demo => demo}/scripts/build.js | 0 {examples/demo => demo}/scripts/start.js | 0 {examples/demo => demo}/scripts/test.js | 0 {examples/demo => demo}/src/App.css | 0 {examples/demo => demo}/src/App.js | 75 +- {examples/demo => demo}/src/App.test.js | 0 {examples/demo => demo}/src/index.css | 0 {examples/demo => demo}/src/index.js | 0 {examples/demo => demo}/src/logo.svg | 0 {examples/demo => demo}/src/serviceWorker.js | 0 dist/filestack-react.js | 2 - dist/filestack-react.js.map | 1 - package-lock.json | 49 +- src/ReactFilestack.jsx | 25 +- 41 files changed, 13108 insertions(+), 75 deletions(-) rename {examples/demo => demo}/.env (100%) create mode 100644 demo/build/asset-manifest.json rename {examples/demo/public => demo/build}/favicon.ico (100%) create mode 100644 demo/build/index.html rename {examples/demo/public => demo/build}/manifest.json (100%) create mode 100644 demo/build/precache-manifest.2a58595fb846f91804af221cc1a187bb.js create mode 100644 demo/build/service-worker.js create mode 100644 demo/build/static/css/main.218ded95.chunk.css create mode 100644 demo/build/static/css/main.218ded95.chunk.css.map create mode 100644 demo/build/static/js/2.ab6124b9.chunk.js create mode 100644 demo/build/static/js/2.ab6124b9.chunk.js.map create mode 100644 demo/build/static/js/main.c330bb31.chunk.js create mode 100644 demo/build/static/js/main.c330bb31.chunk.js.map create mode 100644 demo/build/static/js/runtime~main.42ac5946.js create mode 100644 demo/build/static/js/runtime~main.42ac5946.js.map rename {examples/demo => demo}/config/env.js (100%) rename {examples/demo => demo}/config/jest/cssTransform.js (100%) rename {examples/demo => demo}/config/jest/fileTransform.js (100%) rename {examples/demo => demo}/config/paths.js (100%) rename {examples/demo => demo}/config/webpack.config.js (100%) rename {examples/demo => demo}/config/webpackDevServer.config.js (100%) create mode 100644 demo/package-lock.json rename {examples/demo => demo}/package.json (100%) create mode 100755 demo/public/favicon.ico rename {examples/demo => demo}/public/index.html (100%) create mode 100755 demo/public/manifest.json rename {examples/demo => demo}/scripts/build.js (100%) rename {examples/demo => demo}/scripts/start.js (100%) rename {examples/demo => demo}/scripts/test.js (100%) rename {examples/demo => demo}/src/App.css (100%) rename {examples/demo => demo}/src/App.js (50%) rename {examples/demo => demo}/src/App.test.js (100%) rename {examples/demo => demo}/src/index.css (100%) rename {examples/demo => demo}/src/index.js (100%) rename {examples/demo => demo}/src/logo.svg (100%) rename {examples/demo => demo}/src/serviceWorker.js (100%) delete mode 100644 dist/filestack-react.js delete mode 100644 dist/filestack-react.js.map diff --git a/.gitignore b/.gitignore index 94a5a89..c1c7571 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,4 @@ fabric.properties /tests/__coverage__/ /examples/demo/build/ /examples/demo/package-lock.json +/dist diff --git a/examples/demo/.env b/demo/.env similarity index 100% rename from examples/demo/.env rename to demo/.env diff --git a/demo/build/asset-manifest.json b/demo/build/asset-manifest.json new file mode 100644 index 0000000..840c412 --- /dev/null +++ b/demo/build/asset-manifest.json @@ -0,0 +1,13 @@ +{ + "main.css": "/static/css/main.218ded95.chunk.css", + "main.js": "/static/js/main.c330bb31.chunk.js", + "main.js.map": "/static/js/main.c330bb31.chunk.js.map", + "runtime~main.js": "/static/js/runtime~main.42ac5946.js", + "runtime~main.js.map": "/static/js/runtime~main.42ac5946.js.map", + "static/js/2.ab6124b9.chunk.js": "/static/js/2.ab6124b9.chunk.js", + "static/js/2.ab6124b9.chunk.js.map": "/static/js/2.ab6124b9.chunk.js.map", + "index.html": "/index.html", + "precache-manifest.2a58595fb846f91804af221cc1a187bb.js": "/precache-manifest.2a58595fb846f91804af221cc1a187bb.js", + "service-worker.js": "/service-worker.js", + "static/css/main.218ded95.chunk.css.map": "/static/css/main.218ded95.chunk.css.map" +} \ No newline at end of file diff --git a/examples/demo/public/favicon.ico b/demo/build/favicon.ico similarity index 100% rename from examples/demo/public/favicon.ico rename to demo/build/favicon.ico diff --git a/demo/build/index.html b/demo/build/index.html new file mode 100644 index 0000000..b4c647c --- /dev/null +++ b/demo/build/index.html @@ -0,0 +1 @@ +React App
\ No newline at end of file diff --git a/examples/demo/public/manifest.json b/demo/build/manifest.json similarity index 100% rename from examples/demo/public/manifest.json rename to demo/build/manifest.json diff --git a/demo/build/precache-manifest.2a58595fb846f91804af221cc1a187bb.js b/demo/build/precache-manifest.2a58595fb846f91804af221cc1a187bb.js new file mode 100644 index 0000000..0ea6513 --- /dev/null +++ b/demo/build/precache-manifest.2a58595fb846f91804af221cc1a187bb.js @@ -0,0 +1,22 @@ +self.__precacheManifest = [ + { + "revision": "42ac5946195a7306e2a5", + "url": "/static/js/runtime~main.42ac5946.js" + }, + { + "revision": "c330bb31e3b57ffe6ce1", + "url": "/static/js/main.c330bb31.chunk.js" + }, + { + "revision": "ab6124b99d5e02a64220", + "url": "/static/js/2.ab6124b9.chunk.js" + }, + { + "revision": "c330bb31e3b57ffe6ce1", + "url": "/static/css/main.218ded95.chunk.css" + }, + { + "revision": "2d850e2b471b4180927a6bc1d8faec34", + "url": "/index.html" + } +]; \ No newline at end of file diff --git a/demo/build/service-worker.js b/demo/build/service-worker.js new file mode 100644 index 0000000..26cf9be --- /dev/null +++ b/demo/build/service-worker.js @@ -0,0 +1,34 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); + +importScripts( + "/precache-manifest.2a58595fb846f91804af221cc1a187bb.js" +); + +workbox.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.suppressWarnings(); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute("/index.html", { + + blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], +}); diff --git a/demo/build/static/css/main.218ded95.chunk.css b/demo/build/static/css/main.218ded95.chunk.css new file mode 100644 index 0000000..8f3c04e --- /dev/null +++ b/demo/build/static/css/main.218ded95.chunk.css @@ -0,0 +1,2 @@ +html{background:#e2e2e2}body,html{height:100%;width:100%;position:relative}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root,.App{height:100%;width:100%;position:relative}button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Open Sans,sans-serif;font-size:12px;font-weight:600;line-height:1.42857143;color:#fff;text-align:center;white-space:nowrap;background:#ef4925;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAVCAYAAABLy77vAAAABGdBTUEAALGPC/xhBQAAAJRJREFUOBHNUcEWgCAIy14fbl9egK5MRarHQS7ocANmOCgWh1gdNERig1CgwPlLxkZuE80ndHlU+4Lda1zz0m01dSKtcz0h7qpQb7WR+HyrqRPxahzwwMqqkEVs6qnv+86NQAbcJlK/X+vMeMe7XcBOYaRzcbItUR7/8QgcykmElQrQPErnmxNxl2yyiwcgEvQUocIJaE6yERwqXDIAAAAASUVORK5CYII=");background-repeat:no-repeat;background-position:15px 6px;border:1px solid transparent;border-radius:17px;display:inline-block;height:34px;padding:4px 30px 5px 40px;margin:10px}button:after{position:absolute;content:"";top:15px;right:14px;width:7px;height:4px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAABGdBTUEAALGPC/xhBQAAAGlJREFUCB1j/P//vw4DA4MiEKOD+0xAkatA/AJNBsS/ysTIyPgfyDgHxO+hCkD0Oag4RAhoPDsQm4NoqCIGBiBnAhBjAxNAkkxAvBZNFsQHuQesmxPIOQZVAKI54UZDFYgABbcBsQhMAgDIVGYSqZsn6wAAAABJRU5ErkJggg==")}.main{height:100%;position:relative;display:flex;padding-top:50px}.examples{width:350px;display:inline-block;margin-right:10px;border-right:2px solid #aaa;height:100%}.example{border-top:2px solid #aaa;padding:15px 0}#testContainer{height:500px;width:calc(100% - 360px);margin-left:10px}.App{text-align:center}.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite;height:40vmin;pointer-events:none}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@-webkit-keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes App-logo-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} +/*# sourceMappingURL=main.218ded95.chunk.css.map */ \ No newline at end of file diff --git a/demo/build/static/css/main.218ded95.chunk.css.map b/demo/build/static/css/main.218ded95.chunk.css.map new file mode 100644 index 0000000..ea09bb6 --- /dev/null +++ b/demo/build/static/css/main.218ded95.chunk.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["/Users/andrzej/workspace/filestack-react/demo/src/index.css","main.218ded95.chunk.css","/Users/andrzej/workspace/filestack-react/demo/src/App.css"],"names":[],"mappings":"AAAA,KAIE,kBCCF,CDEA,UANE,WAAA,CACA,UAAA,CACA,iBCeF,CDXA,KAIE,QAAA,CACA,SAAA,CACA,mICEY,CDCZ,kCAAA,CACA,iCCCF,CDEA,KACE,uECEF,CDEA,WACE,WAAA,CACA,UAAA,CACA,iBCCF,CDEA,OACE,wBAAA,CAAA,qBAAA,CAAA,oBAAA,CAAA,gBAAA,CACA,gCAAA,CACA,cAAA,CACA,eAAA,CACA,sBAAA,CACA,UAAA,CACA,iBAAA,CACA,kBAAA,CACA,kBAAA,CACA,sVAAA,CACA,2BAAA,CACA,4BAAA,CACA,4BAAA,CACA,kBAAA,CACA,oBAAA,CACA,WAAA,CACA,yBAAA,CACA,WCIF,CDDA,aACE,iBAAA,CACA,UAAA,CACA,QAAA,CACA,UAAA,CACA,SAAA,CACA,UAAA,CACA,wRCIF,CDDA,MACE,WAAA,CACA,iBAAA,CACA,YAAA,CACA,gBCIF,CDDA,UACE,WAAA,CACA,oBAAA,CACA,iBAAA,CACA,2BAAA,CACA,WCIF,CDDA,SACE,yBAAA,CACA,cCIF,CDDA,eACE,YAAA,CACA,wBAAA,CACA,gBCIF,CCzFA,KACE,iBD4FF,CCzFA,UACE,mDAAA,CAAA,2CAAA,CACA,aAAA,CACA,mBD6FF,CC1FA,YACE,wBAAA,CACA,gBAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,4BAAA,CACA,UD6FF,CC1FA,UACE,aD6FF,CC1FA,iCACE,GACE,8BAAA,CAAA,sBD8FF,CC5FA,GACE,+BAAA,CAAA,uBD+FF,CACF,CCrGA,yBACE,GACE,8BAAA,CAAA,sBDyGF,CCvGA,GACE,+BAAA,CAAA,uBD0GF,CACF","file":"main.218ded95.chunk.css","sourcesContent":["html {\n height: 100%;\n width: 100%;\n position: relative;\n background: #e2e2e2;\n}\n\nbody {\n height: 100%;\n width: 100%;\n position: relative;\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\n monospace;\n}\n\n#root, .App {\n height: 100%;\n width: 100%;\n position: relative;\n}\n\nbutton {\n user-select: none;\n font-family: \"Open Sans\", sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.42857143;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n background: #ef4925;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAVCAYAAABLy77vAAAABGdBTUEAALGPC/xhBQAAAJRJREFUOBHNUcEWgCAIy14fbl9egK5MRarHQS7ocANmOCgWh1gdNERig1CgwPlLxkZuE80ndHlU+4Lda1zz0m01dSKtcz0h7qpQb7WR+HyrqRPxahzwwMqqkEVs6qnv+86NQAbcJlK/X+vMeMe7XcBOYaRzcbItUR7/8QgcykmElQrQPErnmxNxl2yyiwcgEvQUocIJaE6yERwqXDIAAAAASUVORK5CYII=\");\n background-repeat: no-repeat;\n background-position: 15px 6px;\n border: 1px solid transparent;\n border-radius: 17px;\n display: inline-block;\n height: 34px;\n padding: 4px 30px 5px 40px;\n margin: 10px;\n}\n\nbutton::after {\n position: absolute;\n content: \"\";\n top: 15px;\n right: 14px;\n width: 7px;\n height: 4px;\n background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAABGdBTUEAALGPC/xhBQAAAGlJREFUCB1j/P//vw4DA4MiEKOD+0xAkatA/AJNBsS/ysTIyPgfyDgHxO+hCkD0Oag4RAhoPDsQm4NoqCIGBiBnAhBjAxNAkkxAvBZNFsQHuQesmxPIOQZVAKI54UZDFYgABbcBsQhMAgDIVGYSqZsn6wAAAABJRU5ErkJggg==\");\n}\n\n.main {\n height: 100%;\n position: relative;\n display: flex;\n padding-top: 50px;\n}\n\n.examples {\n width: 350px;\n display: inline-block;\n margin-right: 10px;\n border-right: 2px solid #aaa;\n height: 100%;\n}\n\n.example {\n border-top: 2px solid #aaa;\n padding: 15px 0;\n}\n\n#testContainer {\n height: 500px;\n width: calc(100% - 360px);\n margin-left: 10px;\n}\n","html {\n height: 100%;\n width: 100%;\n position: relative;\n background: #e2e2e2;\n}\n\nbody {\n height: 100%;\n width: 100%;\n position: relative;\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\n monospace;\n}\n\n#root, .App {\n height: 100%;\n width: 100%;\n position: relative;\n}\n\nbutton {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n font-family: \"Open Sans\", sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 1.42857143;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n background: #ef4925;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAVCAYAAABLy77vAAAABGdBTUEAALGPC/xhBQAAAJRJREFUOBHNUcEWgCAIy14fbl9egK5MRarHQS7ocANmOCgWh1gdNERig1CgwPlLxkZuE80ndHlU+4Lda1zz0m01dSKtcz0h7qpQb7WR+HyrqRPxahzwwMqqkEVs6qnv+86NQAbcJlK/X+vMeMe7XcBOYaRzcbItUR7/8QgcykmElQrQPErnmxNxl2yyiwcgEvQUocIJaE6yERwqXDIAAAAASUVORK5CYII=\");\n background-repeat: no-repeat;\n background-position: 15px 6px;\n border: 1px solid transparent;\n border-radius: 17px;\n display: inline-block;\n height: 34px;\n padding: 4px 30px 5px 40px;\n margin: 10px;\n}\n\nbutton::after {\n position: absolute;\n content: \"\";\n top: 15px;\n right: 14px;\n width: 7px;\n height: 4px;\n background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAABGdBTUEAALGPC/xhBQAAAGlJREFUCB1j/P//vw4DA4MiEKOD+0xAkatA/AJNBsS/ysTIyPgfyDgHxO+hCkD0Oag4RAhoPDsQm4NoqCIGBiBnAhBjAxNAkkxAvBZNFsQHuQesmxPIOQZVAKI54UZDFYgABbcBsQhMAgDIVGYSqZsn6wAAAABJRU5ErkJggg==\");\n}\n\n.main {\n height: 100%;\n position: relative;\n display: flex;\n padding-top: 50px;\n}\n\n.examples {\n width: 350px;\n display: inline-block;\n margin-right: 10px;\n border-right: 2px solid #aaa;\n height: 100%;\n}\n\n.example {\n border-top: 2px solid #aaa;\n padding: 15px 0;\n}\n\n#testContainer {\n height: 500px;\n width: calc(100% - 360px);\n margin-left: 10px;\n}\n\n.App {\n text-align: center;\n}\n\n.App-logo {\n -webkit-animation: App-logo-spin infinite 20s linear;\n animation: App-logo-spin infinite 20s linear;\n height: 40vmin;\n pointer-events: none;\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@-webkit-keyframes App-logo-spin {\n from {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes App-logo-spin {\n from {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n",".App {\n text-align: center;\n}\n\n.App-logo {\n animation: App-logo-spin infinite 20s linear;\n height: 40vmin;\n pointer-events: none;\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n"]} \ No newline at end of file diff --git a/demo/build/static/js/2.ab6124b9.chunk.js b/demo/build/static/js/2.ab6124b9.chunk.js new file mode 100644 index 0000000..3963ecb --- /dev/null +++ b/demo/build/static/js/2.ab6124b9.chunk.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(11)},,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;sF.length&&F.push(e)}function U(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return r(o,t,""===n?"."+z(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;lthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=le,e.release=ce}o(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(se);var pe=se.extend({data:null}),de=se.extend({data:null}),me=[9,13,27,32],he=W&&"CompositionEvent"in window,ye=null;W&&"documentMode"in document&&(ye=document.documentMode);var ge=W&&"TextEvent"in window&&!ye,ve=W&&(!he||ye&&8=ye),be=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function ke(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function xe(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Se=!1;var Te={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else Se?ke(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(ve&&"ko"!==n.locale&&(Se||o!==we.compositionStart?o===we.compositionEnd&&Se&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Se=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=xe(n))&&(o.data=i),V(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return xe(t);case"keypress":return 32!==t.which?null:(_e=!0,be);case"textInput":return(e=t.data)===be&&_e?null:e;default:return null}}(e,n):function(e,t){if(Se)return"compositionend"===e||!he&&ke(e,t)?(e=ie(),oe=re=ne=null,Se=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1