rapidfireai 0.0.1__py3-none-any.whl → 0.9.9__py3-none-any.whl
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.
Potentially problematic release.
This version of rapidfireai might be problematic. Click here for more details.
- rapidfireai/__init__.py +11 -5
- rapidfireai/automl/__init__.py +20 -0
- rapidfireai/automl/base.py +48 -0
- rapidfireai/automl/datatypes.py +42 -0
- rapidfireai/automl/grid_search.py +125 -0
- rapidfireai/automl/model_config.py +102 -0
- rapidfireai/automl/random_search.py +145 -0
- rapidfireai/backend/__init__.py +0 -0
- rapidfireai/backend/chunks.py +63 -0
- rapidfireai/backend/controller.py +637 -0
- rapidfireai/backend/scheduler.py +137 -0
- rapidfireai/backend/worker.py +272 -0
- rapidfireai/cli.py +380 -0
- rapidfireai/db/__init__.py +0 -0
- rapidfireai/db/db_interface.py +135 -0
- rapidfireai/db/rf_db.py +694 -0
- rapidfireai/db/tables.sql +64 -0
- rapidfireai/dispatcher/dispatcher.py +391 -0
- rapidfireai/dispatcher/gunicorn.conf.py +25 -0
- rapidfireai/experiment.py +168 -0
- rapidfireai/frontend/build/asset-manifest.json +276 -0
- rapidfireai/frontend/build/favicon.ico +0 -0
- rapidfireai/frontend/build/index.html +1 -0
- rapidfireai/frontend/build/manifest.json +15 -0
- rapidfireai/frontend/build/pdf.worker.js +1 -0
- rapidfireai/frontend/build/report.html +39 -0
- rapidfireai/frontend/build/static/css/1482.3b7bf531.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/2730.3f8937ff.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/318.0def90a7.css +7 -0
- rapidfireai/frontend/build/static/css/4762.9b7b71f7.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/4950.487ecc8b.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/5170.2574ce9d.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/6121.4d541986.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/6343.dd6979f2.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/6534.433c213f.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/6920.ffac4b2a.css +2 -0
- rapidfireai/frontend/build/static/css/7246.bf2f0c87.css +9 -0
- rapidfireai/frontend/build/static/css/7367.dd6979f2.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/8690.05d081e5.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/9531.d0910d3c.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/9780.363e4943.chunk.css +1 -0
- rapidfireai/frontend/build/static/css/main~d91a9049.c0be472c.css +1 -0
- rapidfireai/frontend/build/static/js/1000.e5ed264b.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1012.ac98ab59.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1079.6c13ac0d.js +1 -0
- rapidfireai/frontend/build/static/js/110.9059f3b8.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1142.872d0010.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1167.9a6da14c.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1248.60890b4f.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1262.83dc7673.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1273.56da3e13.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/1273.56da3e13.chunk.js.LICENSE.txt +9 -0
- rapidfireai/frontend/build/static/js/1303.7d19305c.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1351.45076ff3.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1355.b896a592.js +1 -0
- rapidfireai/frontend/build/static/js/1357.02c46a02.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1470.c51d60c6.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1482.23b74f50.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1500.19799d8d.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1648.d3b9edc7.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1860.7d96e3f9.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1909.5b1d9ff4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/1928.44245110.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/1928.44245110.chunk.js.LICENSE.txt +11 -0
- rapidfireai/frontend/build/static/js/1933.deba26ca.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/21.aac92802.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2103.0ca12071.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2258.b3b8fab4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2289.9ad51e87.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2323.7dd927d7.js +2 -0
- rapidfireai/frontend/build/static/js/2323.7dd927d7.js.LICENSE.txt +1 -0
- rapidfireai/frontend/build/static/js/2346.ed99ca72.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2386.0a660834.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2402.465048f9.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/243.5a83bbca.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2589.68571e16.js +1 -0
- rapidfireai/frontend/build/static/js/2647.65092bab.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2691.65d4a4e7.js +1 -0
- rapidfireai/frontend/build/static/js/2730.b38dd6f3.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2746.ef752da4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2779.580d4491.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2799.fe5993b2.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2844.9708db79.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/2844.9708db79.chunk.js.LICENSE.txt +21 -0
- rapidfireai/frontend/build/static/js/2901.ee0c606b.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2932.7cc0689b.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/2932.7cc0689b.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/2956.a393c8cc.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2972.679bed05.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/2985.7e51cdfa.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/2985.7e51cdfa.chunk.js.LICENSE.txt +51 -0
- rapidfireai/frontend/build/static/js/3093.488df653.js +1 -0
- rapidfireai/frontend/build/static/js/3145.66ee61b9.js +1 -0
- rapidfireai/frontend/build/static/js/3170.a22f966a.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/3170.a22f966a.chunk.js.LICENSE.txt +21 -0
- rapidfireai/frontend/build/static/js/3307.f6fb258c.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3325.d5b03d65.js +1 -0
- rapidfireai/frontend/build/static/js/3334.2d6704df.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/3334.2d6704df.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/3387.bb8edad3.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3448.438e6579.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3460.735eea87.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3505.7fd3921a.js +2 -0
- rapidfireai/frontend/build/static/js/3505.7fd3921a.js.LICENSE.txt +9 -0
- rapidfireai/frontend/build/static/js/3510.cd167a00.js +2 -0
- rapidfireai/frontend/build/static/js/3510.cd167a00.js.LICENSE.txt +18 -0
- rapidfireai/frontend/build/static/js/3563.cc828e19.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/359.08960b84.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/359.08960b84.chunk.js.LICENSE.txt +4 -0
- rapidfireai/frontend/build/static/js/3608.403b4b79.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3652.cb8add7f.js +1 -0
- rapidfireai/frontend/build/static/js/3775.5230b157.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3817.53555d18.js +2 -0
- rapidfireai/frontend/build/static/js/3817.53555d18.js.LICENSE.txt +18 -0
- rapidfireai/frontend/build/static/js/3835.d9946ff9.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3964.874f0297.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3968.275cbc3d.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/3999.765cbd82.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4020.4452c046.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4138.2f6f6d9f.js +1 -0
- rapidfireai/frontend/build/static/js/4160.f424554c.js +1 -0
- rapidfireai/frontend/build/static/js/4180.50cea095.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4221.b0bba3f5.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4250.5bb49278.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4297.15777d8f.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4349.c965f2de.js +2 -0
- rapidfireai/frontend/build/static/js/4349.c965f2de.js.LICENSE.txt +1 -0
- rapidfireai/frontend/build/static/js/4484.4cbe5e7f.js +2 -0
- rapidfireai/frontend/build/static/js/4484.4cbe5e7f.js.LICENSE.txt +10 -0
- rapidfireai/frontend/build/static/js/4578.a8124588.js +1 -0
- rapidfireai/frontend/build/static/js/4596.89a97480.js +1 -0
- rapidfireai/frontend/build/static/js/4748.566f435a.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4762.928e8a90.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4768.7945be63.js +2 -0
- rapidfireai/frontend/build/static/js/4768.7945be63.js.LICENSE.txt +1 -0
- rapidfireai/frontend/build/static/js/4804.26b50dd4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4850.62390a45.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4862.a0ccb221.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/491.5dc8ed40.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/492.9262f038.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/492.9262f038.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/4943.6d345fd3.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/4950.bc182e62.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5042.d4f0c65a.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/5042.d4f0c65a.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/5170.0065e96f.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5222.35c74a52.js +2 -0
- rapidfireai/frontend/build/static/js/5222.35c74a52.js.LICENSE.txt +10 -0
- rapidfireai/frontend/build/static/js/5223.3224f019.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/5223.3224f019.chunk.js.LICENSE.txt +3 -0
- rapidfireai/frontend/build/static/js/5229.7dd42316.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5286.4c1ad26b.js +1 -0
- rapidfireai/frontend/build/static/js/5486.21cff711.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5526.7b368956.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5605.1ee4d87b.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5682.40b42d8b.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5794.9433d867.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5826.38a56e8c.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/5826.38a56e8c.chunk.js.LICENSE.txt +1 -0
- rapidfireai/frontend/build/static/js/5862.50f42a0b.js +1 -0
- rapidfireai/frontend/build/static/js/5895.e26742f1.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/5919.edd4a5cf.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/598.a0e792ae.js +1 -0
- rapidfireai/frontend/build/static/js/6058.74162bf9.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/618.06051134.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/618.06051134.chunk.js.LICENSE.txt +21 -0
- rapidfireai/frontend/build/static/js/6335.9fca442d.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6336.e05e1154.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6343.2bcd28ff.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6363.a319b8f2.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6478.344abf25.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6504.1c004564.js +1 -0
- rapidfireai/frontend/build/static/js/6534.ec7e149b.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6715.55a5c19c.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6756.e6cb993c.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/6756.e6cb993c.chunk.js.LICENSE.txt +10 -0
- rapidfireai/frontend/build/static/js/6762.acfde9fd.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/6762.acfde9fd.chunk.js.LICENSE.txt +19 -0
- rapidfireai/frontend/build/static/js/6846.67103d0e.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6861.34cf0198.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/6899.0eaf36a8.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/6899.0eaf36a8.chunk.js.LICENSE.txt +5 -0
- rapidfireai/frontend/build/static/js/6933.8b564944.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/699.d0437920.js +1 -0
- rapidfireai/frontend/build/static/js/7076.4182f63a.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7186.42ad86d5.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7248.a46635fd.js +1 -0
- rapidfireai/frontend/build/static/js/725.6b15a14a.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7266.3575539d.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7270.0a1e84fc.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/7270.0a1e84fc.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/7367.7120474f.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7436.8e226055.js +1 -0
- rapidfireai/frontend/build/static/js/7504.ef223844.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7603.ee049fe3.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7670.2835b49a.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/7670.2835b49a.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/7721.7390b3cc.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7731.5796cced.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/775.660a5deb.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/775.660a5deb.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/7832.7976a3e4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7844.72cc2e81.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/7948.48eab032.js +1 -0
- rapidfireai/frontend/build/static/js/7972.085079d4.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/7972.085079d4.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/8017.a9e7dc5a.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8023.75f1f3df.js +2 -0
- rapidfireai/frontend/build/static/js/8023.75f1f3df.js.LICENSE.txt +41 -0
- rapidfireai/frontend/build/static/js/8123.b69db974.js +1 -0
- rapidfireai/frontend/build/static/js/813.065a87e5.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/819.2056f122.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/819.2056f122.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/8262.04bc17d1.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8300.75adcc4f.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8336.b1d3e764.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8365.26cf64ea.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8398.8bca8e0e.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/8398.8bca8e0e.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/847.33ceed50.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/847.33ceed50.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/8486.8ec852a7.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8497.19378265.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8541.4c55c9f4.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8690.e305a804.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/8690.e305a804.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/8712.a9445fe6.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8763.61761e08.js +1 -0
- rapidfireai/frontend/build/static/js/8823.baf9bffd.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/8823.baf9bffd.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/8867.767462b7.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8953.c0f88dea.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/8960.357cb1eb.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/8960.357cb1eb.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/9.f4492795.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/9.f4492795.chunk.js.LICENSE.txt +12 -0
- rapidfireai/frontend/build/static/js/9079.88a8d2a3.js +1 -0
- rapidfireai/frontend/build/static/js/9082.37c40520.chunk.js +10 -0
- rapidfireai/frontend/build/static/js/9133.90ae330d.js +2 -0
- rapidfireai/frontend/build/static/js/9133.90ae330d.js.LICENSE.txt +8 -0
- rapidfireai/frontend/build/static/js/9151.1ac359d5.js +2 -0
- rapidfireai/frontend/build/static/js/9151.1ac359d5.js.LICENSE.txt +8 -0
- rapidfireai/frontend/build/static/js/9168.027bf2fd.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9194.9c5cc548.chunk.js +10 -0
- rapidfireai/frontend/build/static/js/9244.026f4aee.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/936.2e02d037.js +2 -0
- rapidfireai/frontend/build/static/js/936.2e02d037.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/9369.7d1a0a1d.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9427.7c8442e7.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/944.55948859.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9499.c53a82da.js +2 -0
- rapidfireai/frontend/build/static/js/9499.c53a82da.js.LICENSE.txt +62 -0
- rapidfireai/frontend/build/static/js/9531.3ce05781.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9547.92fac952.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/9547.92fac952.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/9620.b6e973a7.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9645.6fddfa65.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9669.d38dda6d.js +1 -0
- rapidfireai/frontend/build/static/js/9682.41b6b807.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/9720.19d5ae76.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/9720.19d5ae76.chunk.js.LICENSE.txt +23 -0
- rapidfireai/frontend/build/static/js/9723.d3c7fe9e.js +1 -0
- rapidfireai/frontend/build/static/js/9780.02a27630.chunk.js +10 -0
- rapidfireai/frontend/build/static/js/9808.d0ca9674.chunk.js +2 -0
- rapidfireai/frontend/build/static/js/9808.d0ca9674.chunk.js.LICENSE.txt +6 -0
- rapidfireai/frontend/build/static/js/9815.b8db3c5d.js +1 -0
- rapidfireai/frontend/build/static/js/9886.2940b53a.chunk.js +1 -0
- rapidfireai/frontend/build/static/js/main~1f912138.fa9d03b1.js +1 -0
- rapidfireai/frontend/build/static/js/main~43dd7041.2e00860d.js +1 -0
- rapidfireai/frontend/build/static/js/main~84781932.68deffff.js +1 -0
- rapidfireai/frontend/build/static/media/404-overflow.fad9a31861b0afba6f921ebb8e769688.svg +32 -0
- rapidfireai/frontend/build/static/media/RapidFire_Square_Bug.27ceb48296314a4bc0d4.png +0 -0
- rapidfireai/frontend/build/static/media/chart-bar.0fd4a63680fba840a7b69fbf07969f79.svg +7 -0
- rapidfireai/frontend/build/static/media/chart-contour.0d4b306f2669f3ad25375568935e3ce3.svg +5 -0
- rapidfireai/frontend/build/static/media/chart-difference.16174216d6f3b7c24f40e3541fe0ca2c.svg +20 -0
- rapidfireai/frontend/build/static/media/chart-image.cc434c4dc50780966344e2385a15f8fe.svg +6 -0
- rapidfireai/frontend/build/static/media/chart-line.0adaa2036bb4eb5956db6d0c7e925a3d.svg +4 -0
- rapidfireai/frontend/build/static/media/chart-parallel.da7dedf539b2af4b654d377c679173e4.svg +7 -0
- rapidfireai/frontend/build/static/media/chart-scatter.69118d0023a6ff3973f7fa913834ac47.svg +9 -0
- rapidfireai/frontend/build/static/media/default-error.f246ddf367c6fbd67942e5a13382a7f1.svg +26 -0
- rapidfireai/frontend/build/static/media/fontawesome-webfont.1e59d2330b4c6deb84b3.ttf +0 -0
- rapidfireai/frontend/build/static/media/fontawesome-webfont.20fd1704ea223900efa9.woff2 +0 -0
- rapidfireai/frontend/build/static/media/fontawesome-webfont.8b43027f47b20503057d.eot +0 -0
- rapidfireai/frontend/build/static/media/fontawesome-webfont.c1e38fd9e0e74ba58f7a.svg +2671 -0
- rapidfireai/frontend/build/static/media/fontawesome-webfont.f691f37e57f04c152e23.woff +0 -0
- rapidfireai/frontend/build/static/media/icon-visible-fill.8d34cd35303828fdfc15154f5536e63b.svg +7 -0
- rapidfireai/frontend/build/static/media/no-experiments.0e4f4a114ef73e7d81c09474aba64b6c.svg +22 -0
- rapidfireai/frontend/build/static/media/parallel-chart-placeholder.234ef0c5b220ef2a5a6fa5bafff173f7.svg +16 -0
- rapidfireai/frontend/build/static/media/permission-denied-lock.16036747d57cd663d7df223781a447b2.svg +14 -0
- rapidfireai/frontend/build/static/media/promo-modal-content.e3b2c6c568ac192b9bec54b838b54850.svg +30 -0
- rapidfireai/frontend/build/static/media/registered-model-grey-ok.8274b58d39504c8d1b8c358aa1c9aa35.svg +23 -0
- rapidfireai/frontend/build/static/media/warning.290a3b14118933547965e91ea61c5a61.svg +3 -0
- rapidfireai/frontend/proxy_middleware.py +233 -0
- rapidfireai/frontend/server.py +25 -0
- rapidfireai/ml/__init__.py +0 -0
- rapidfireai/ml/callbacks.py +176 -0
- rapidfireai/ml/checkpoint_utils.py +540 -0
- rapidfireai/ml/trainer.py +309 -0
- rapidfireai/start.sh +634 -0
- rapidfireai/utils/__init__.py +0 -0
- rapidfireai/utils/automl_utils.py +51 -0
- rapidfireai/utils/constants.py +141 -0
- rapidfireai/utils/datapaths.py +69 -0
- rapidfireai/utils/exceptions.py +82 -0
- rapidfireai/utils/experiment_utils.py +370 -0
- rapidfireai/utils/logging.py +87 -0
- rapidfireai/utils/mlflow_manager.py +121 -0
- rapidfireai/utils/serialize.py +15 -0
- rapidfireai/utils/shm_manager.py +469 -0
- rapidfireai/utils/trainer_config.py +23 -0
- rapidfireai/utils/worker_manager.py +219 -0
- rapidfireai/version.py +6 -0
- rapidfireai-0.9.9.dist-info/METADATA +242 -0
- rapidfireai-0.9.9.dist-info/RECORD +318 -0
- rapidfireai-0.9.9.dist-info/entry_points.txt +2 -0
- rapidfireai-0.0.1.dist-info/METADATA +0 -37
- rapidfireai-0.0.1.dist-info/RECORD +0 -6
- {rapidfireai-0.0.1.dist-info → rapidfireai-0.9.9.dist-info}/WHEEL +0 -0
- {rapidfireai-0.0.1.dist-info → rapidfireai-0.9.9.dist-info}/licenses/LICENSE +0 -0
- {rapidfireai-0.0.1.dist-info → rapidfireai-0.9.9.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7186],{52416:function(e,t,a){var n=a(5738),o=a(47216),r=a(20184),i=r.axisHoverFormat,l=r.descriptionOnlyNumbers,s=a(97451),c=a(34418).T,p=a(5153),u=a(87241).extendFlat,h=a(166),d=h.COMPARISON_OPS2,f=h.INTERVAL_OPS,v=o.line;e.exports=u({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:o.xperiod0,yperiod0:o.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:u({},n.connectgaps,{description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the `z` data are filled in.","It is defaulted to true if `z` is a","one dimensional array","otherwise it is defaulted to false."].join(" ")}),fillcolor:{valType:"color",editType:"calc",description:["Sets the fill color if `contours.type` is *constraint*.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0},description:["Determines whether or not the contour level attributes are","picked by an algorithm.","If *true*, the number of contour levels can be set in `ncontours`.","If *false*, set the contour level attributes in `contours`."].join(" ")},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc",description:["Sets the maximum number of contour levels. The actual number","of contours will be chosen automatically to be less than or","equal to the value of `ncontours`.","Has an effect only if `autocontour` is *true* or if","`contours.size` is missing."].join(" ")},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc",description:["If `levels`, the data is represented as a contour plot with multiple","levels displayed. If `constraint`, the data is represented as constraints","with the invalid region shaded as specified by the `operation` and","`value` parameters."].join(" ")},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the starting contour level value.","Must be less than `contours.end`"].join(" ")},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the end contour level value.","Must be more than `contours.start`"].join(" ")},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1},description:["Sets the step between each contour level.","Must be positive."].join(" ")},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc",description:["Determines the coloring method showing the contour values.","If *fill*, coloring is done evenly between each contour level","If *heatmap*, a heatmap gradient coloring is applied","between each contour level.","If *lines*, coloring is done on the contour lines.","If *none*, no coloring is applied on this trace."].join(" ")},showlines:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines whether or not the contour lines are drawn.","Has an effect only if `contours.coloring` is set to *fill*."].join(" ")},showlabels:{valType:"boolean",dflt:!1,editType:"plot",description:["Determines whether to label the contour lines with their values."].join(" ")},labelfont:p({editType:"plot",colorEditType:"style",description:["Sets the font used for labeling the contour levels.","The default color comes from the lines, if shown.","The default family and size come from `layout.font`."].join(" ")}),labelformat:{valType:"string",dflt:"",editType:"plot",description:l("contour label")},operation:{valType:"enumerated",values:[].concat(d).concat(f),dflt:"=",editType:"calc",description:["Sets the constraint operation.","*=* keeps regions equal to `value`","*<* and *<=* keep regions less than `value`","*>* and *>=* keep regions greater than `value`","*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`","*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`","Open vs. closed intervals make no difference to constraint display, but","all versions are allowed for consistency with filter transforms."].join(" ")},value:{valType:"any",dflt:0,editType:"calc",description:["Sets the value or values of the constraint boundary.","When `operation` is set to one of the comparison values","("+d+")","*value* is expected to be a number.","When `operation` is set to one of the interval values","("+f+")","*value* is expected to be an array of two numbers where the first","is the lower bound and the second is the upper bound."].join(" ")},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:u({},v.color,{editType:"style+colorbars",description:["Sets the color of the contour level.","Has no effect if `contours.coloring` is set to *lines*."].join(" ")}),width:{valType:"number",min:0,editType:"style+colorbars",description:["Sets the contour line width in (in px)","Defaults to *0.5* when `contours.type` is *levels*.","Defaults to *2* when `contour.type` is *constraint*."].join(" ")},dash:c,smoothing:u({},v.smoothing,{description:["Sets the amount of smoothing for the contour lines,","where *0* corresponds to no smoothing."].join(" ")}),editType:"plot"}},s("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))},56240:function(e,t,a){var n=a(47624),o=a(63846),r=a(22632),i=a(23003);e.exports=function(e,t){var a=o(e,t),l=a[0].z;r(t,l);var s,c=t.contours,p=n.extractOpts(t);if("heatmap"===c.coloring&&p.auto&&!1===t.autocontour){var u=c.start,h=i(c),d=c.size||1,f=Math.floor((h-u)/d)+1;isFinite(d)||(d=1,f=1);var v=u-d/2;s=[v,v+f*d]}else s=l;return n.calc(e,t,{vals:s,cLetter:"z"}),a}},76142:function(e){e.exports=function(e,t){var a,n=e[0],o=n.z;switch(t.type){case"levels":var r=Math.min(o[0][0],o[0][1]);for(a=0;a<e.length;a++){var i=e[a];i.prefixBoundary=!i.edgepaths.length&&(r>i.level||i.starts.length&&r===i.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var l=n.x.length,s=n.y.length,c=-1/0,p=1/0;for(a=0;a<s;a++)p=Math.min(p,o[a][0]),p=Math.min(p,o[a][l-1]),c=Math.max(c,o[a][0]),c=Math.max(c,o[a][l-1]);for(a=1;a<l-1;a++)p=Math.min(p,o[0][a]),p=Math.min(p,o[s-1][a]),c=Math.max(c,o[0][a]),c=Math.max(c,o[s-1][a]);var u,h,d=t.value;switch(t._operation){case">":d>c&&(n.prefixBoundary=!0);break;case"<":(d<p||n.starts.length&&d===p)&&(n.prefixBoundary=!0);break;case"[]":u=Math.min(d[0],d[1]),((h=Math.max(d[0],d[1]))<p||u>c||n.starts.length&&h===p)&&(n.prefixBoundary=!0);break;case"][":u=Math.min(d[0],d[1]),h=Math.max(d[0],d[1]),u<p&&h>c&&(n.prefixBoundary=!0)}}}},68201:function(e,t,a){var n=a(47624),o=a(71686),r=a(23003);e.exports={min:"zmin",max:"zmax",calc:function(e,t,a){var i=t.contours,l=t.line,s=i.size||1,c=i.coloring,p=o(t,{isColorbar:!0});if("heatmap"===c){var u=n.extractOpts(t);a._fillgradient=u.reversescale?n.flipScale(u.colorscale):u.colorscale,a._zrange=[u.min,u.max]}else"fill"===c&&(a._fillcolor=p);a._line={color:"lines"===c?p:l.color,width:!1!==i.showlines?l.width:0,dash:l.dash},a._levels={start:i.start,end:r(i),size:s}}}},14612:function(e){e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},99727:function(e,t,a){var n=a(83491),o=a(19952),r=a(31454),i=r.addOpacity,l=r.opacity,s=a(166),c=s.CONSTRAINT_REDUCTION,p=s.COMPARISON_OPS2;e.exports=function(e,t,a,r,s,u){var h,d,f,v=t.contours,g=a("contours.operation");(v._operation=c[g],function(e,t){var a;-1===p.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(a=parseFloat(t.value[0]),t.value=[a,a+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(a=parseFloat(t.value),t.value=[a,a+1])):(e("contours.value",0),n(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(a,v),"="===g?h=v.showlines=!0:(h=a("contours.showlines"),f=a("fillcolor",i((e.line||{}).color||s,.5))),h)&&(d=a("line.color",f&&l(f)?i(t.fillcolor,1):s),a("line.width",2),a("line.dash"));a("line.smoothing"),o(a,r,d,u)}},48847:function(e,t,a){var n=a(166),o=a(83491);function r(e,t){var a,r=Array.isArray(t);function i(e){return o(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?a=i(r?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?a=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:-1!==n.SET_OPS.indexOf(e)&&(a=r?t.map(i):[i(t)]),a}function i(e){return function(t){t=r(e,t);var a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:a,end:n,size:n-a}}}function l(e){return function(t){return{start:t=r(e,t),end:1/0,size:1/0}}}e.exports={"[]":i("[]"),"][":i("]["),">":l(">"),"<":l("<"),"=":l("=")}},20567:function(e){e.exports=function(e,t,a,n){var o=n("contours.start"),r=n("contours.end"),i=!1===o||!1===r,l=a("contours.size");!(i?t.autocontour=!0:a("autocontour",!1))&&l||a("ncontours")}},77599:function(e,t,a){var n=a(47401);function o(e){return n.extendFlat({},e,{edgepaths:n.extendDeep([],e.edgepaths),paths:n.extendDeep([],e.paths),starts:n.extendDeep([],e.starts)})}e.exports=function(e,t){var a,r,i,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),r=e[0],a=0;a<r.edgepaths.length;a++)r.edgepaths[a]=l(r.edgepaths[a]);for(a=0;a<r.paths.length;a++)r.paths[a]=l(r.paths[a]);for(a=0;a<r.starts.length;a++)r.starts[a]=l(r.starts[a]);return e;case"][":var c=l;l=s,s=c;case"[]":for(2!==e.length&&n.warn("Contour data invalid for the specified inequality range operation."),r=o(e[0]),i=o(e[1]),a=0;a<r.edgepaths.length;a++)r.edgepaths[a]=l(r.edgepaths[a]);for(a=0;a<r.paths.length;a++)r.paths[a]=l(r.paths[a]);for(a=0;a<r.starts.length;a++)r.starts[a]=l(r.starts[a]);for(;i.edgepaths.length;)r.edgepaths.push(s(i.edgepaths.shift()));for(;i.paths.length;)r.paths.push(s(i.paths.shift()));for(;i.starts.length;)r.starts.push(s(i.starts.shift()));return[r]}}},52855:function(e,t,a){var n=a(47401),o=a(7497),r=a(75781),i=a(99727),l=a(20567),s=a(67137),c=a(52416);e.exports=function(e,t,a,p){function u(a,o){return n.coerce(e,t,c,a,o)}if(o(e,t,u,p)){r(e,t,p,u),u("xhoverformat"),u("yhoverformat"),u("text"),u("hovertext"),u("hovertemplate"),u("hoverongaps");var h="constraint"===u("contours.type");u("connectgaps",n.isArray1D(t.z)),h?i(e,t,u,p,a):(l(e,t,u,(function(a){return n.coerce2(e,t,c,a)})),s(e,t,u,p))}else t.visible=!1}},54460:function(e,t,a){var n=a(47401),o=a(48847),r=a(23003);e.exports=function(e,t,a){for(var i="constraint"===e.type?o[e._operation](e.value):e,l=i.size,s=[],c=r(i),p=a.trace._carpetTrace,u=p?{xaxis:p.aaxis,yaxis:p.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},h=i.start;h<c;h+=l)if(s.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:a.z,smoothing:a.trace.line.smoothing},u)),s.length>1e3){n.warn("Too many contours, clipping at 1000",e);break}return s}},23003:function(e){e.exports=function(e){return e.end+e.size/1e6}},26809:function(e,t,a){var n=a(47401),o=a(14612);function r(e,t,a,n){return Math.abs(e[0]-t[0])<a&&Math.abs(e[1]-t[1])<n}function i(e,t){var a=e[2]-t[2],n=e[3]-t[3];return Math.sqrt(a*a+n*n)}function l(e,t,a,l,c){var p,u=t.join(","),h=e.crossings[u],d=function(e,t,a){var n=0,r=0;e>20&&t?208===e||1114===e?n=0===a[0]?1:-1:r=0===a[1]?1:-1:-1!==o.BOTTOMSTART.indexOf(e)?r=1:-1!==o.LEFTSTART.indexOf(e)?n=1:-1!==o.TOPSTART.indexOf(e)?r=-1:n=-1;return[n,r]}(h,a,t),f=[s(e,t,[-d[0],-d[1]])],v=e.z.length,g=e.z[0].length,x=t.slice(),m=d.slice();for(p=0;p<1e4;p++){if(h>20?(h=o.CHOOSESADDLE[h][(d[0]||d[1])<0?0:1],e.crossings[u]=o.SADDLEREMAINDER[h]):delete e.crossings[u],!(d=o.NEWDELTA[h])){n.log("Found bad marching index:",h,t,e.level);break}f.push(s(e,t,d)),t[0]+=d[0],t[1]+=d[1],u=t.join(","),r(f[f.length-1],f[f.length-2],l,c)&&f.pop();var y=d[0]&&(t[0]<0||t[0]>g-2)||d[1]&&(t[1]<0||t[1]>v-2);if(t[0]===x[0]&&t[1]===x[1]&&d[0]===m[0]&&d[1]===m[1]||a&&y)break;h=e.crossings[u]}1e4===p&&n.log("Infinite loop in contour?");var b,T,w,L,M,A,S,z,k,_,O,I=r(f[0],f[f.length-1],l,c),E=0,D=.2*e.smoothing,C=[],R=0;for(p=1;p<f.length;p++)E+=S=i(f[p],f[p-1]),C.push(S);var B=E/C.length*D;function j(e){return f[e%f.length]}for(p=f.length-2;p>=R;p--)if((b=C[p])<B){for(w=0,T=p-1;T>=R&&b+C[T]<B;T--)b+=C[T];if(I&&p===f.length-2)for(w=0;w<T&&b+C[w]<B;w++)b+=C[w];M=p-T+w+1,A=Math.floor((p+T+w+2)/2),L=I||p!==f.length-2?I||-1!==T?M%2?j(A):[(j(A)[0]+j(A+1)[0])/2,(j(A)[1]+j(A+1)[1])/2]:f[0]:f[f.length-1],f.splice(T+1,p-T+1,L),p=T+1,w&&(R=w),I&&(p===f.length-2?f[w]=f[f.length-1]:0===p&&(f[f.length-1]=f[0]))}for(f.splice(0,R),p=0;p<f.length;p++)f[p].length=2;if(!(f.length<2))if(I)f.pop(),e.paths.push(f);else{a||n.log("Unclosed interior contour?",e.level,x.join(","),f.join("L"));var N=!1;for(z=0;z<e.edgepaths.length;z++)if(_=e.edgepaths[z],!N&&r(_[0],f[f.length-1],l,c)){f.pop(),N=!0;var P=!1;for(k=0;k<e.edgepaths.length;k++)if(r((O=e.edgepaths[k])[O.length-1],f[0],l,c)){P=!0,f.shift(),e.edgepaths.splice(z,1),k===z?e.paths.push(f.concat(O)):(k>z&&k--,e.edgepaths[k]=O.concat(f,_));break}P||(e.edgepaths[z]=f.concat(_))}for(z=0;z<e.edgepaths.length&&!N;z++)r((_=e.edgepaths[z])[_.length-1],f[0],l,c)&&(f.shift(),e.edgepaths[z]=_.concat(f),N=!0);N||e.edgepaths.push(f)}}function s(e,t,a){var n=t[0]+Math.max(a[0],0),o=t[1]+Math.max(a[1],0),r=e.z[o][n],i=e.xaxis,l=e.yaxis;if(a[1]){var s=(e.level-r)/(e.z[o][n+1]-r);return[i.c2p((1-s)*e.x[n]+s*e.x[n+1],!0),l.c2p(e.y[o],!0),n+s,o]}var c=(e.level-r)/(e.z[o+1][n]-r);return[i.c2p(e.x[n],!0),l.c2p((1-c)*e.y[o]+c*e.y[o+1],!0),n,o+c]}e.exports=function(e,t,a){var o,r,i,s;for(t=t||.01,a=a||.01,r=0;r<e.length;r++){for(i=e[r],s=0;s<i.starts.length;s++)l(i,i.starts[s],"edge",t,a);for(o=0;Object.keys(i.crossings).length&&o<1e4;)o++,l(i,Object.keys(i.crossings)[0].split(",").map(Number),void 0,t,a);1e4===o&&n.log("Infinite loop in contour?")}}},51303:function(e,t,a){var n=a(31454),o=a(77301);e.exports=function(e,t,a,r,i){i||(i={}),i.isContour=!0;var l=o(e,t,a,r,i);return l&&l.forEach((function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&n.opacity(t.fillcolor)?e.color=n.addOpacity(t.fillcolor,1):t.contours.showlines&&n.opacity(t.line.color)&&(e.color=n.addOpacity(t.line.color,1)))})),l}},37085:function(e,t,a){e.exports={attributes:a(52416),supplyDefaults:a(52855),calc:a(56240),plot:a(22818).plot,style:a(72960),colorbar:a(68201),hoverPoints:a(51303),moduleType:"trace",name:"contour",basePlotModule:a(66807),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{description:["The data from which contour lines are computed is set in `z`.","Data in `z` must be a {2D array} of numbers.","Say that `z` has N rows and M columns, then by default,","these N rows correspond to N y coordinates","(set in `y` or auto-generated) and the M columns","correspond to M x coordinates (set in `x` or auto-generated).","By setting `transpose` to *true*, the above behavior is flipped."].join(" ")}}},19952:function(e,t,a){var n=a(47401);e.exports=function(e,t,a,o){if(o||(o={}),e("contours.showlabels")){var r=t.font;n.coerceFont(e,"contours.labelfont",{family:r.family,size:r.size,color:a}),e("contours.labelformat")}!1!==o.hasHover&&e("zhoverformat")}},71686:function(e,t,a){var n=a(62258),o=a(47624),r=a(23003);e.exports=function(e){var t=e.contours,a=t.start,i=r(t),l=t.size||1,s=Math.floor((i-a)/l)+1,c="lines"===t.coloring?0:1,p=o.extractOpts(e);isFinite(l)||(l=1,s=1);var u,h,d=p.reversescale?o.flipScale(p.colorscale):p.colorscale,f=d.length,v=new Array(f),g=new Array(f);if("heatmap"===t.coloring){var x=p.min,m=p.max;for(h=0;h<f;h++)u=d[h],v[h]=u[0]*(m-x)+x,g[h]=u[1];var y=n.extent([x,m,t.start,t.start+l*(s-1)]),b=y[x<m?0:1],T=y[x<m?1:0];b!==x&&(v.splice(0,0,b),g.splice(0,0,g[0])),T!==m&&(v.push(T),g.push(g[g.length-1]))}else for(h=0;h<f;h++)u=d[h],v[h]=(u[0]*(s+c-1)-c/2)*l+a,g[h]=u[1];return o.makeColorScaleFunc({domain:v,range:g},{noNumericCheck:!0})}},4361:function(e,t,a){var n=a(14612);function o(e,t){var a=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===a||10===a?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===a?713:1114:5===a?104:208:15===a?0:a}e.exports=function(e){var t,a,r,i,l,s,c,p,u,h=e[0].z,d=h.length,f=h[0].length,v=2===d||2===f;for(a=0;a<d-1;a++)for(i=[],0===a&&(i=i.concat(n.BOTTOMSTART)),a===d-2&&(i=i.concat(n.TOPSTART)),t=0;t<f-1;t++)for(r=i.slice(),0===t&&(r=r.concat(n.LEFTSTART)),t===f-2&&(r=r.concat(n.RIGHTSTART)),l=t+","+a,s=[[h[a][t],h[a][t+1]],[h[a+1][t],h[a+1][t+1]]],u=0;u<e.length;u++)(c=o((p=e[u]).level,s))&&(p.crossings[l]=c,-1!==r.indexOf(c)&&(p.starts.push([t,a]),v&&-1!==r.indexOf(c,r.indexOf(c)+1)&&p.starts.push([t,a])))}},22818:function(e,t,a){var n=a(62258),o=a(47401),r=a(41707),i=a(47624),l=a(43995),s=a(37762),c=a(58947),p=a(45396),u=a(4361),h=a(26809),d=a(54460),f=a(77599),v=a(76142),g=a(14612),x=g.LABELOPTIMIZER;function m(e,t){var a,n,i,l,s,c,p,u="",h=0,d=e.edgepaths.map((function(e,t){return t})),f=!0;function v(e){return Math.abs(e[1]-t[2][1])<.01}function g(e){return Math.abs(e[0]-t[0][0])<.01}function x(e){return Math.abs(e[0]-t[2][0])<.01}for(;d.length;){for(c=r.smoothopen(e.edgepaths[h],e.smoothing),u+=f?c:c.replace(/^M/,"L"),d.splice(d.indexOf(h),1),a=e.edgepaths[h][e.edgepaths[h].length-1],l=-1,i=0;i<4;i++){if(!a){o.log("Missing end?",h,e);break}for(p=a,Math.abs(p[1]-t[0][1])<.01&&!x(a)?n=t[1]:g(a)?n=t[0]:v(a)?n=t[3]:x(a)&&(n=t[2]),s=0;s<e.edgepaths.length;s++){var m=e.edgepaths[s][0];Math.abs(a[0]-n[0])<.01?Math.abs(a[0]-m[0])<.01&&(m[1]-a[1])*(n[1]-m[1])>=0&&(n=m,l=s):Math.abs(a[1]-n[1])<.01?Math.abs(a[1]-m[1])<.01&&(m[0]-a[0])*(n[0]-m[0])>=0&&(n=m,l=s):o.log("endpt to newendpt is not vert. or horz.",a,n,m)}if(a=n,l>=0)break;u+="L"+n}if(l===e.edgepaths.length){o.log("unclosed perimeter path");break}h=l,(f=-1===d.indexOf(h))&&(h=d[0],u+="Z")}for(h=0;h<e.paths.length;h++)u+=r.smoothclosed(e.paths[h],e.smoothing);return u}function y(e,t,a,n){var r=t.width/2,i=t.height/2,l=e.x,s=e.y,c=e.theta,p=Math.cos(c)*r,u=Math.sin(c)*r,h=(l>n.center?n.right-l:l-n.left)/(p+Math.abs(Math.sin(c)*i)),d=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(u)+Math.cos(c)*i);if(h<1||d<1)return 1/0;var f=x.EDGECOST*(1/(h-1)+1/(d-1));f+=x.ANGLECOST*c*c;for(var v=l-p,g=s-u,m=l+p,y=s+u,b=0;b<a.length;b++){var T=a[b],w=Math.cos(T.theta)*T.width/2,L=Math.sin(T.theta)*T.width/2,M=2*o.segmentDistance(v,g,m,y,T.x-w,T.y-L,T.x+w,T.y+L)/(t.height+T.height),A=T.level===t.level,S=A?x.SAMELEVELDISTANCE:1;if(M<=S)return 1/0;f+=x.NEIGHBORCOST*(A?x.SAMELEVELFACTOR:1)/(M-S)}return f}function b(e){var t,a,n=e.trace._emptypoints,o=[],r=e.z.length,i=e.z[0].length,l=[];for(t=0;t<i;t++)l.push(1);for(t=0;t<r;t++)o.push(l.slice());for(t=0;t<n.length;t++)o[(a=n[t])[0]][a[1]]=0;return e.zmask=o,o}t.plot=function(e,a,i,l){var s=a.xaxis,c=a.yaxis;o.makeTraceGroups(l,i,"contour").each((function(i){var l=n.select(this),x=i[0],y=x.trace,T=x.x,w=x.y,L=y.contours,M=d(L,a,x),A=o.ensureSingle(l,"g","heatmapcoloring"),S=[];"heatmap"===L.coloring&&(S=[i]),p(e,a,S,A),u(M),h(M);var z=s.c2p(T[0],!0),k=s.c2p(T[T.length-1],!0),_=c.c2p(w[0],!0),O=c.c2p(w[w.length-1],!0),I=[[z,O],[k,O],[k,_],[z,_]],E=M;"constraint"===L.type&&(E=f(M,L._operation)),function(e,t,a){var n=o.ensureSingle(e,"g","contourbg").selectAll("path").data("fill"===a.coloring?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}(l,I,L),function(e,t,a,r){var i="fill"===r.coloring||"constraint"===r.type&&"="!==r._operation,l="M"+a.join("L")+"Z";i&&v(t,r);var s=o.ensureSingle(e,"g","contourfill").selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each((function(e){var t=(e.prefixBoundary?l:"")+m(e,a);t?n.select(this).attr("d",t).style("stroke","none"):n.select(this).remove()}))}(l,E,I,L),function(e,a,i,l,s){var c=o.ensureSingle(e,"g","contourlines"),p=!1!==s.showlines,u=s.showlabels,h=p&&u,d=t.createLines(c,p||u,a),f=t.createLineClip(c,h,i,l.trace.uid),v=e.selectAll("g.contourlabels").data(u?[0]:[]);if(v.exit().remove(),v.enter().append("g").classed("contourlabels",!0),u){var x=[],m=[];o.clearLocationCache();var y=t.labelFormatter(i,l),b=r.tester.append("text").attr("data-notex",1).call(r.font,s.labelfont),T=a[0].xaxis,w=a[0].yaxis,L=T._length,M=w._length,A=T.range,S=w.range,z=o.aggNums(Math.min,null,l.x),k=o.aggNums(Math.max,null,l.x),_=o.aggNums(Math.min,null,l.y),O=o.aggNums(Math.max,null,l.y),I=Math.max(T.c2p(z,!0),0),E=Math.min(T.c2p(k,!0),L),D=Math.max(w.c2p(O,!0),0),C=Math.min(w.c2p(_,!0),M),R={};A[0]<A[1]?(R.left=I,R.right=E):(R.left=E,R.right=I),S[0]<S[1]?(R.top=D,R.bottom=C):(R.top=C,R.bottom=D),R.middle=(R.top+R.bottom)/2,R.center=(R.left+R.right)/2,x.push([[R.left,R.top],[R.right,R.top],[R.right,R.bottom],[R.left,R.bottom]]);var B=Math.sqrt(L*L+M*M),j=g.LABELDISTANCE*B/Math.max(1,a.length/g.LABELINCREASE);d.each((function(e){var a=t.calcTextOpts(e.level,y,b,i);n.select(this).selectAll("path").each((function(){var e=this,n=o.getVisibleSegment(e,R,a.height/2);if(n&&!(n.len<(a.width+a.height)*g.LABELMIN))for(var r=Math.min(Math.ceil(n.len/j),g.LABELMAX),i=0;i<r;i++){var l=t.findBestTextLocation(e,n,a,m,R);if(!l)break;t.addLabelData(l,a,m,x)}}))})),b.remove(),t.drawLabels(v,m,i,f,h?x:null)}u&&!p&&d.remove()}(l,M,e,x,L),function(e,t,a,n,i){var l=n.trace,s=a._fullLayout._clips,c="clip"+l.uid,p=s.selectAll("#"+c).data(l.connectgaps?[]:[0]);if(p.enter().append("clipPath").classed("contourclip",!0).attr("id",c),p.exit().remove(),!1===l.connectgaps){var d={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};u([d]),h([d]),v([d],{type:"levels"}),o.ensureSingle(p,"path","").attr("d",(d.prefixBoundary?"M"+i.join("L")+"Z":"")+m(d,i))}else c=null;r.setClipUrl(e,c,a)}(l,a,e,x,I)}))},t.createLines=function(e,t,a){var n=a[0].smoothing,o=e.selectAll("g.contourlevel").data(t?a:[]);if(o.exit().remove(),o.enter().append("g").classed("contourlevel",!0),t){var i=o.selectAll("path.openline").data((function(e){return e.pedgepaths||e.edgepaths}));i.exit().remove(),i.enter().append("path").classed("openline",!0),i.attr("d",(function(e){return r.smoothopen(e,n)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke");var l=o.selectAll("path.closedline").data((function(e){return e.ppaths||e.paths}));l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",(function(e){return r.smoothclosed(e,n)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke")}return o},t.createLineClip=function(e,t,a,n){var o=t?"clipline"+n:null,i=a._fullLayout._clips.selectAll("#"+o).data(t?[0]:[]);return i.exit().remove(),i.enter().append("clipPath").classed("contourlineclip",!0).attr("id",o),r.setClipUrl(e,o,a),i},t.labelFormatter=function(e,t){var a=e._fullLayout,n=t.trace,o=n.contours,r={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(o.labelformat)r.tickformat=o.labelformat,c(r,a);else{var l=i.extractOpts(n);if(l&&l.colorbar&&l.colorbar._axis)r=l.colorbar._axis;else{if("constraint"===o.type){var p=o.value;Array.isArray(p)?r.range=[p[0],p[p.length-1]]:r.range=[p,p]}else r.range=[o.start,o.end],r.nticks=(o.end-o.start)/o.size;r.range[0]===r.range[1]&&(r.range[1]+=r.range[0]||1),r.nticks||(r.nticks=1e3),c(r,a),s.prepTicks(r),r._tmin=null,r._tmax=null}}return function(e){return s.tickText(r,e).text}},t.calcTextOpts=function(e,t,a,n){var o=t(e);a.text(o).call(l.convertToTspans,n);var i=a.node(),s=r.bBox(i,!0);return{text:o,width:s.width,height:s.height,fontSize:+i.style["font-size"].replace("px",""),level:e,dy:(s.top+s.bottom)/2}},t.findBestTextLocation=function(e,t,a,n,r){var i,l,s,c,p,u=a.width;t.isClosed?(l=t.len/x.INITIALSEARCHPOINTS,i=t.min+l/2,s=t.max):(l=(t.len-u)/(x.INITIALSEARCHPOINTS+1),i=t.min+l+u/2,s=t.max-(l+u)/2);for(var h=1/0,d=0;d<x.ITERATIONS;d++){for(var f=i;f<s;f+=l){var v=o.getTextLocation(e,t.total,f,u),g=y(v,a,n,r);g<h&&(h=g,p=v,c=f)}if(h>2*x.MAXCOST)break;d&&(l/=2),s=(i=c-l/2)+1.5*l}if(h<=x.MAXCOST)return p},t.addLabelData=function(e,t,a,n){var o=t.fontSize,r=t.width+o/3,i=Math.max(0,t.height-o/3),l=e.x,s=e.y,c=e.theta,p=Math.sin(c),u=Math.cos(c),h=function(e,t){return[l+e*u-t*p,s+e*p+t*u]},d=[h(-r/2,-i/2),h(-r/2,i/2),h(r/2,i/2),h(r/2,-i/2)];a.push({text:t.text,x:l,y:s,dy:t.dy,theta:c,level:t.level,width:r,height:i}),n.push(d)},t.drawLabels=function(e,t,a,r,i){var s=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,o=e.y-Math.cos(e.theta)*e.dy;n.select(this).text(e.text).attr({x:t,y:o,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+o+")"}).call(l.convertToTspans,a)})),i){for(var c="",p=0;p<i.length;p++)c+="M"+i[p].join("L")+"Z";o.ensureSingle(r,"path","").attr("d",c)}}},22632:function(e,t,a){var n=a(37762),o=a(47401);function r(e,t,a){var o={type:"linear",range:[e,t]};return n.autoTicks(o,(t-e)/(a||15)),o}e.exports=function(e,t){var a=e.contours;if(e.autocontour){var i=e.zmin,l=e.zmax;(e.zauto||void 0===i)&&(i=o.aggNums(Math.min,null,t)),(e.zauto||void 0===l)&&(l=o.aggNums(Math.max,null,t));var s=r(i,l,e.ncontours);a.size=s.dtick,a.start=n.tickFirst(s),s.range.reverse(),a.end=n.tickFirst(s),a.start===i&&(a.start+=a.size),a.end===l&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),e._input.contours||(e._input.contours={}),o.extendFlat(e._input.contours,{start:a.start,end:a.end,size:a.size}),e._input.autocontour=!0}else if("constraint"!==a.type){var c,p=a.start,u=a.end,h=e._input.contours;if(p>u&&(a.start=h.start=u,u=a.end=h.end=p,p=a.start),!(a.size>0))c=p===u?1:r(p,u,e.ncontours).dtick,h.size=a.size=c}}},72960:function(e,t,a){var n=a(62258),o=a(41707),r=a(24246),i=a(71686);e.exports=function(e){var t=n.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=n.select(this),a=e[0].trace,r=a.contours,l=a.line,s=r.size||1,c=r.start,p="constraint"===r.type,u=!p&&"lines"===r.coloring,h=!p&&"fill"===r.coloring,d=u||h?i(a):null;t.selectAll("g.contourlevel").each((function(e){n.select(this).selectAll("path").call(o.lineGroupStyle,l.width,u?d(e.level):l.color,l.dash)}));var f=r.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){o.font(n.select(this),{family:f.family,size:f.size,color:f.color||(u?d(e.level):l.color)})})),p)t.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var v;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===v&&(v=e.level),d(e.level+.5*s)})),void 0===v&&(v=c),t.selectAll("g.contourbg path").style("fill",d(v-.5*s))}})),r(e)}},67137:function(e,t,a){var n=a(94060),o=a(19952);e.exports=function(e,t,a,r,i){var l,s=a("contours.coloring"),c="";"fill"===s&&(l=a("contours.showlines")),!1!==l&&("lines"!==s&&(c=a("line.color","#000")),a("line.width",.5),a("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,n(e,t,r,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),o(a,r,c,i)}},83949:function(e,t,a){var n=a(5738),o=a(52416),r=a(97451),i=a(87241).extendFlat,l=o.contours;e.exports=i({carpet:{valType:"string",editType:"calc",description:["The `carpet` of the carpet axes on which this contour trace lies"].join(" ")},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:o.fillcolor,autocontour:o.autocontour,ncontours:o.ncontours,contours:{type:l.type,start:l.start,end:l.end,size:l.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc",description:["Determines the coloring method showing the contour values.","If *fill*, coloring is done evenly between each contour level","If *lines*, coloring is done on the contour lines.","If *none*, no coloring is applied on this trace."].join(" ")},showlines:l.showlines,showlabels:l.showlabels,labelfont:l.labelfont,labelformat:l.labelformat,operation:l.operation,value:l.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:o.line.color,width:o.line.width,dash:o.line.dash,smoothing:o.line.smoothing,editType:"plot"},transforms:void 0},r("",{cLetter:"z",autoColorDflt:!1}))},95681:function(e,t,a){var n=a(92171),o=a(47401),r=a(48877),i=a(21605),l=a(82335),s=a(93290),c=a(59756),p=a(25658),u=a(26683),h=a(22632);e.exports=function(e,t){var a=t._carpetTrace=u(e,t);if(a&&a.visible&&"legendonly"!==a.visible){if(!t.a||!t.b){var d=e.data[a.index],f=e.data[t.index];f.a||(f.a=d.a),f.b||(f.b=d.b),p(f,t,t._defaultColor,e._fullLayout)}var v=function(e,t){var a,p,u,h,d,f,v,g=t._carpetTrace,x=g.aaxis,m=g.baxis;x._minDtick=0,m._minDtick=0,o.isArray1D(t.z)&&r(t,x,m,"a","b",["z"]);a=t._a=t._a||t.a,h=t._b=t._b||t.b,a=a?x.makeCalcdata(t,"_a"):[],h=h?m.makeCalcdata(t,"_b"):[],p=t.a0||0,u=t.da||1,d=t.b0||0,f=t.db||1,v=t._z=i(t._z||t.z,t.transpose),t._emptypoints=s(v),l(v,t._emptypoints);var y=o.maxRowLength(v),b="scaled"===t.xtype?"":a,T=c(t,b,p,u,y,x),w="scaled"===t.ytype?"":h,L=c(t,w,d,f,v.length,m),M={a:T,b:L,z:v};"levels"===t.contours.type&&"none"!==t.contours.coloring&&n(e,t,{vals:v,containerStr:"",cLetter:"z"});return[M]}(e,t);return h(t,t._z),v}}},25658:function(e,t,a){var n=a(47401),o=a(7497),r=a(83949),i=a(99727),l=a(20567),s=a(67137);e.exports=function(e,t,a,c){function p(a,o){return n.coerce(e,t,r,a,o)}if(p("carpet"),e.a&&e.b){if(!o(e,t,p,c,"a","b"))return void(t.visible=!1);p("text"),"constraint"===p("contours.type")?i(e,t,p,c,a,{hasHover:!1}):(l(e,t,p,(function(a){return n.coerce2(e,t,r,a)})),s(e,t,p,c,{hasHover:!1}))}else t._defaultColor=a,t._length=null}},23798:function(e,t,a){e.exports={attributes:a(83949),supplyDefaults:a(25658),colorbar:a(68201),calc:a(95681),plot:a(52567),style:a(72960),moduleType:"trace",name:"contourcarpet",basePlotModule:a(66807),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{hrName:"contour_carpet",description:["Plots contours on either the first carpet axis or the","carpet axis with a matching `carpet` attribute. Data `z`","is interpreted as matching that of the corresponding carpet","axis."].join(" ")}}},52567:function(e,t,a){var n=a(62258),o=a(49040),r=a(17333),i=a(41707),l=a(47401),s=a(4361),c=a(26809),p=a(22818),u=a(14612),h=a(77599),d=a(54460),f=a(76142),v=a(26683),g=a(19623);function x(e,t,a){var n=e.getPointAtLength(t),o=e.getPointAtLength(a),r=o.x-n.x,i=o.y-n.y,l=Math.sqrt(r*r+i*i);return[r/l,i/l]}function m(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function y(e,t){var a=Math.abs(e[0]*t[0]+e[1]*t[1]);return Math.sqrt(1-a*a)/a}e.exports=function(e,t,a,b){var T=t.xaxis,w=t.yaxis;l.makeTraceGroups(b,a,"contour").each((function(a){var b=n.select(this),L=a[0],M=L.trace,A=M._carpetTrace=v(e,M),S=e.calcdata[A.index][0];if(A.visible&&"legendonly"!==A.visible){var z=L.a,k=L.b,_=M.contours,O=d(_,t,L),I="constraint"===_.type,E=_._operation,D=I?"="===E?"lines":"fill":_.coloring,C=[[z[0],k[k.length-1]],[z[z.length-1],k[k.length-1]],[z[z.length-1],k[0]],[z[0],k[0]]];s(O);var R=1e-8*(z[z.length-1]-z[0]),B=1e-8*(k[k.length-1]-k[0]);c(O,R,B);var j,N,P,F,H=O;"constraint"===_.type&&(H=h(O,E)),function(e,t){var a,n,o,r,i,l,s,c,p;for(a=0;a<e.length;a++){for(i=(r=e[a]).pedgepaths=[],l=r.ppaths=[],n=0;n<r.edgepaths.length;n++){for(p=r.edgepaths[n],s=[],o=0;o<p.length;o++)s[o]=t(p[o]);i.push(s)}for(n=0;n<r.paths.length;n++){for(p=r.paths[n],c=[],o=0;o<p.length;o++)c[o]=t(p[o]);l.push(c)}}}(O,Z);var V=[];for(F=S.clipsegments.length-1;F>=0;F--)j=S.clipsegments[F],N=o([],j.x,T.c2p),P=o([],j.y,w.c2p),N.reverse(),P.reverse(),V.push(r(N,P,j.bicubic));var G="M"+V.join("L")+"Z";!function(e,t,a,n,i,s){var c,p,u,h,d=l.ensureSingle(e,"g","contourbg").selectAll("path").data("fill"!==s||i?[]:[0]);d.enter().append("path"),d.exit().remove();var f=[];for(h=0;h<t.length;h++)c=t[h],p=o([],c.x,a.c2p),u=o([],c.y,n.c2p),f.push(r(p,u,c.bicubic));d.attr("d","M"+f.join("L")+"Z").style("stroke","none")}(b,S.clipsegments,T,w,I,D),function(e,t,a,o,r,s,c,p,u,h,d){var v="fill"===h;v&&f(r,e.contours);var x=l.ensureSingle(t,"g","contourfill").selectAll("path").data(v?r:[]);x.enter().append("path"),x.exit().remove(),x.each((function(e){var t=(e.prefixBoundary?d:"")+function(e,t,a,n,o,r,s,c){var p,u,h,d,f,v,x,m="",y=t.edgepaths.map((function(e,t){return t})),b=!0,T=1e-4*Math.abs(a[0][0]-a[2][0]),w=1e-4*Math.abs(a[0][1]-a[2][1]);function L(e){return Math.abs(e[1]-a[0][1])<w}function M(e){return Math.abs(e[1]-a[2][1])<w}function A(e){return Math.abs(e[0]-a[0][0])<T}function S(e){return Math.abs(e[0]-a[2][0])<T}function z(e,t){var a,n,i,l,p="";for(L(e)&&!S(e)||M(e)&&!A(e)?(l=o.aaxis,i=g(o,r,[e[0],t[0]],.5*(e[1]+t[1]))):(l=o.baxis,i=g(o,r,.5*(e[0]+t[0]),[e[1],t[1]])),a=1;a<i.length;a++)for(p+=l.smoothing?"C":"L",n=0;n<i[a].length;n++){var u=i[a][n];p+=[s.c2p(u[0]),c.c2p(u[1])]+" "}return p}p=0,u=null;for(;y.length;){var k=t.edgepaths[p][0];for(u&&(m+=z(u,k)),x=i.smoothopen(t.edgepaths[p].map(n),t.smoothing),m+=b?x:x.replace(/^M/,"L"),y.splice(y.indexOf(p),1),u=t.edgepaths[p][t.edgepaths[p].length-1],f=-1,d=0;d<4;d++){if(!u){l.log("Missing end?",p,t);break}for(L(u)&&!S(u)?h=a[1]:A(u)?h=a[0]:M(u)?h=a[3]:S(u)&&(h=a[2]),v=0;v<t.edgepaths.length;v++){var _=t.edgepaths[v][0];Math.abs(u[0]-h[0])<T?Math.abs(u[0]-_[0])<T&&(_[1]-u[1])*(h[1]-_[1])>=0&&(h=_,f=v):Math.abs(u[1]-h[1])<w?Math.abs(u[1]-_[1])<w&&(_[0]-u[0])*(h[0]-_[0])>=0&&(h=_,f=v):l.log("endpt to newendpt is not vert. or horz.",u,h,_)}if(f>=0)break;m+=z(u,h),u=h}if(f===t.edgepaths.length){l.log("unclosed perimeter path");break}p=f,(b=-1===y.indexOf(p))&&(p=y[0],m+=z(u,h)+"Z",u=null)}for(p=0;p<t.paths.length;p++)m+=i.smoothclosed(t.paths[p].map(n),t.smoothing);return m}(0,e,s,c,p,u,a,o);t?n.select(this).attr("d",t).style("stroke","none"):n.select(this).remove()}))}(M,b,T,w,H,C,Z,A,S,D,G),function(e,t,a,o,r,s,c){var h=l.ensureSingle(e,"g","contourlines"),d=!1!==r.showlines,f=r.showlabels,v=d&&f,g=p.createLines(h,d||f,t),b=p.createLineClip(h,v,a,o.trace.uid),T=e.selectAll("g.contourlabels").data(f?[0]:[]);if(T.exit().remove(),T.enter().append("g").classed("contourlabels",!0),f){var w=s.xaxis,L=s.yaxis,M=w._length,A=L._length,S=[[[0,0],[M,0],[M,A],[0,A]]],z=[];l.clearLocationCache();var k=p.labelFormatter(a,o),_=i.tester.append("text").attr("data-notex",1).call(i.font,r.labelfont),O={left:0,right:M,center:M/2,top:0,bottom:A,middle:A/2},I=Math.sqrt(M*M+A*A),E=u.LABELDISTANCE*I/Math.max(1,t.length/u.LABELINCREASE);g.each((function(e){var t=p.calcTextOpts(e.level,k,_,a);n.select(this).selectAll("path").each((function(a){var n=this,o=l.getVisibleSegment(n,O,t.height/2);if(o&&(function(e,t,a,n,o,r){for(var i,l=0;l<a.pedgepaths.length;l++)t===a.pedgepaths[l]&&(i=a.edgepaths[l]);if(!i)return;var s=o.a[0],c=o.a[o.a.length-1],p=o.b[0],u=o.b[o.b.length-1];function h(e,t){var a,n=0,i=.1;return(Math.abs(e[0]-s)<i||Math.abs(e[0]-c)<i)&&(a=m(o.dxydb_rough(e[0],e[1],i)),n=Math.max(n,r*y(t,a)/2)),(Math.abs(e[1]-p)<i||Math.abs(e[1]-u)<i)&&(a=m(o.dxyda_rough(e[0],e[1],i)),n=Math.max(n,r*y(t,a)/2)),n}var d=x(e,0,1),f=x(e,n.total,n.total-1),v=h(i[0],d),g=n.total-h(i[i.length-1],f);n.min<v&&(n.min=v);n.max>g&&(n.max=g);n.len=n.max-n.min}(n,a,e,o,c,t.height),!(o.len<(t.width+t.height)*u.LABELMIN)))for(var r=Math.min(Math.ceil(o.len/E),u.LABELMAX),i=0;i<r;i++){var s=p.findBestTextLocation(n,o,t,z,O);if(!s)break;p.addLabelData(s,t,z,S)}}))})),_.remove(),p.drawLabels(T,z,a,b,v?S:null)}f&&!d&&g.remove()}(b,O,e,L,_,t,A),i.setClipUrl(b,A._clipPathId,e)}function Z(e){var t=A.ab2xy(e[0],e[1],!0);return[T.c2p(t[0]),w.c2p(t[1])]}}))}},77843:function(e,t,a){var n=a(97451),o=a(4216).r,r=a(42837),i=a(88297),l=a(87241).extendFlat;e.exports=l({lon:i.lon,lat:i.lat,z:{valType:"data_array",editType:"calc",description:["Sets the points' weight.","For example, a value of 10 would be equivalent to having 10 points of weight 1","in the same spot"].join(" ")},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30,description:["Sets the radius of influence of one `lon` / `lat` point in pixels.","Increasing the value makes the densitymapbox trace smoother, but less detailed."].join(" ")},below:{valType:"string",editType:"plot",description:["Determines if the densitymapbox trace will be inserted","before the layer with the specified ID.","By default, densitymapbox traces are placed below the first","layer of type symbol","If set to '',","the layer will be inserted above every existing layer."].join(" ")},text:i.text,hovertext:i.hovertext,hoverinfo:l({},r.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:o(),showlegend:l({},r.showlegend,{dflt:!1})},n("",{cLetter:"z",editTypeOverride:"calc"}))},11251:function(e,t,a){var n=a(83491),o=a(47401).isArrayOrTypedArray,r=a(9405).BADNUM,i=a(92171),l=a(47401)._;e.exports=function(e,t){for(var a=t._length,s=new Array(a),c=t.z,p=o(c)&&c.length,u=0;u<a;u++){var h=s[u]={},d=t.lon[u],f=t.lat[u];if(h.lonlat=n(d)&&n(f)?[+d,+f]:[r,r],p){var v=c[u];h.z=n(v)?v:r}}return i(e,t,{vals:p?c:[0,1],containerStr:"",cLetter:"z"}),a&&(s[0].t={labels:{lat:l(e,"lat:")+" ",lon:l(e,"lon:")+" "}}),s}},11559:function(e,t,a){var n=a(83491),o=a(47401),r=a(31454),i=a(47624),l=a(9405).BADNUM,s=a(92380).makeBlank;e.exports=function(e){var t=e[0].trace,a=!0===t.visible&&0!==t._length,c=t._opts={heatmap:{layout:{visibility:"none"},paint:{}},geojson:s()};if(!a)return c;var p,u=[],h=t.z,d=t.radius,f=o.isArrayOrTypedArray(h)&&h.length,v=o.isArrayOrTypedArray(d);for(p=0;p<e.length;p++){var g=e[p],x=g.lonlat;if(x[0]!==l){var m={};if(f){var y=g.z;m.z=y!==l?y:0}v&&(m.r=n(d[p])&&d[p]>0?+d[p]:0),u.push({type:"Feature",geometry:{type:"Point",coordinates:x},properties:m})}}var b=i.extractOpts(t),T=b.reversescale?i.flipScale(b.colorscale):b.colorscale,w=T[0][1],L=["interpolate",["linear"],["heatmap-density"],0,r.opacity(w)<1?w:r.addOpacity(w,0)];for(p=1;p<T.length;p++)L.push(T[p][0],T[p][1]);var M=["interpolate",["linear"],["get","z"],b.min,0,b.max,1];return o.extendFlat(c.heatmap.paint,{"heatmap-weight":f?M:1/(b.max-b.min),"heatmap-color":L,"heatmap-radius":v?{type:"identity",property:"r"}:t.radius,"heatmap-opacity":t.opacity}),c.geojson={type:"FeatureCollection",features:u},c.heatmap.layout.visibility="visible",c}},13876:function(e,t,a){var n=a(47401),o=a(94060),r=a(77843);e.exports=function(e,t,a,i){function l(a,o){return n.coerce(e,t,r,a,o)}var s=l("lon")||[],c=l("lat")||[],p=Math.min(s.length,c.length);p?(t._length=p,l("z"),l("radius"),l("below"),l("text"),l("hovertext"),l("hovertemplate"),o(e,t,i,l,{prefix:"",cLetter:"z"})):t.visible=!1}},95943:function(e){e.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e.z=t.z,e}},56062:function(e,t,a){var n=a(37762),o=a(93712).hoverPoints,r=a(93712).getExtraText;e.exports=function(e,t,a){var i=o(e,t,a);if(i){var l=i[0],s=l.cd,c=s[0].trace,p=s[l.index];if(delete l.color,"z"in p){var u=l.subplot.mockAxis;l.z=p.z,l.zLabel=n.tickText(u,u.c2l(p.z),"hover").text}return l.extraText=r(c,p,s[0].t.labels),[l]}}},62656:function(e,t,a){e.exports={attributes:a(77843),supplyDefaults:a(13876),colorbar:a(17439),formatLabels:a(55265),calc:a(11251),plot:a(14877),hoverPoints:a(56062),eventData:a(95943),getBelow:function(e,t){for(var a=t.getMapLayers(),n=0;n<a.length;n++){var o=a[n],r=o.id;if("symbol"===o.type&&"string"===typeof r&&-1===r.indexOf("plotly-"))return r}},moduleType:"trace",name:"densitymapbox",basePlotModule:a(25456),categories:["mapbox","gl","showLegend"],meta:{hr_name:"density_mapbox",description:["Draws a bivariate kernel density estimation with a Gaussian kernel","from `lon` and `lat` coordinates and optional `z` values using a colorscale."].join(" ")}}},14877:function(e,t,a){var n=a(11559),o=a(82949).traceLayerPrefix;function r(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",o+t+"-heatmap"]],this.below=null}var i=r.prototype;i.update=function(e){var t=this.subplot,a=this.layerList,o=n(e),r=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(o.geojson),r!==this.below&&(this._removeLayers(),this._addLayers(o,r),this.below=r);for(var i=0;i<a.length;i++){var l=a[i],s=l[0],c=l[1],p=o[s];t.setOptions(c,"setLayoutProperty",p.layout),"visible"===p.layout.visibility&&t.setOptions(c,"setPaintProperty",p.paint)}},i._addLayers=function(e,t){for(var a=this.subplot,n=this.layerList,o=this.sourceId,r=0;r<n.length;r++){var i=n[r],l=i[0],s=e[l];a.addLayer({type:l,id:i[1],source:o,layout:s.layout,paint:s.paint},t)}},i._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,a=t.length-1;a>=0;a--)e.removeLayer(t[a][1])},i.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},e.exports=function(e,t){var a=t[0].trace,o=new r(e,a.uid),i=o.sourceId,l=n(t),s=o.below=e.belowLookup["trace-"+a.uid];return e.map.addSource(i,{type:"geojson",data:l.geojson}),o._addLayers(l,s),o}},27867:function(e,t,a){var n=a(47401);e.exports=function(e,t){for(var a=0;a<e.length;a++)e[a].i=a;n.mergeArray(t.text,e,"tx"),n.mergeArray(t.hovertext,e,"htx");var o=t.marker;if(o){n.mergeArray(o.opacity,e,"mo"),n.mergeArray(o.color,e,"mc");var r=o.line;r&&(n.mergeArray(r.color,e,"mlc"),n.mergeArrayCastPositive(r.width,e,"mlw"))}}},80216:function(e,t,a){var n=a(66905),o=a(47216).line,r=a(42837),i=a(20184).axisHoverFormat,l=a(4216).r,s=a(4216).a,c=a(23484),p=a(87241).extendFlat,u=a(31454);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:i("x"),yhoverformat:i("y"),hovertext:n.hovertext,hovertemplate:l({},{keys:c.eventDataKeys}),hoverinfo:p({},r.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple funnels, percentages & totals","are computed separately (per trace)."].join(" ")},texttemplate:s({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),text:n.text,textposition:n.textposition,insidetextanchor:p({},n.insidetextanchor,{dflt:"middle"}),textangle:p({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:p({},n.orientation,{description:["Sets the orientation of the funnels.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal).","By default funnels are tend to be oriented horizontally;","unless only *y* array is presented or orientation is set to *v*.","Also regarding graphs including only 'horizontal' funnels,","*autorange* on the *y-axis* are set to *reversed*."].join(" ")}),offset:p({},n.offset,{arrayOk:!1}),width:p({},n.width,{arrayOk:!1}),marker:function(){var e=p({},n.marker);return delete e.pattern,e}(),connector:{fillcolor:{valType:"color",editType:"style",description:["Sets the fill color."].join(" ")},line:{color:p({},o.color,{dflt:u.defaultLine}),width:p({},o.width,{dflt:0,editType:"plot"}),dash:o.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot",description:["Determines if connector regions and lines are drawn."].join(" ")},editType:"plot"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},24072:function(e,t,a){var n=a(37762),o=a(48128),r=a(27867),i=a(35533),l=a(9405).BADNUM;function s(e){return e===l?0:e}e.exports=function(e,t){var a,c,p,u,h,d,f,v,g=n.getFromId(e,t.xaxis||"x"),x=n.getFromId(e,t.yaxis||"y");"h"===t.orientation?(a=g.makeCalcdata(t,"x"),p=x.makeCalcdata(t,"y"),u=o(t,x,"y",p),h=!!t.yperiodalignment,d="y"):(a=x.makeCalcdata(t,"y"),p=g.makeCalcdata(t,"x"),u=o(t,g,"x",p),h=!!t.xperiodalignment,d="x"),c=u.vals;var m,y=Math.min(c.length,a.length),b=new Array(y);for(t._base=[],f=0;f<y;f++){a[f]<0&&(a[f]=l);var T=!1;a[f]!==l&&f+1<y&&a[f+1]!==l&&(T=!0),v=b[f]={p:c[f],s:a[f],cNext:T},t._base[f]=-.5*v.s,h&&(b[f].orig_p=p[f],b[f][d+"End"]=u.ends[f],b[f][d+"Start"]=u.starts[f]),t.ids&&(v.id=String(t.ids[f])),0===f&&(b[0].vTotal=0),b[0].vTotal+=s(v.s),v.begR=s(v.s)/s(b[0].s)}for(f=0;f<y;f++)(v=b[f]).s!==l&&(v.sumR=v.s/b[0].vTotal,v.difR=void 0!==m?v.s/m:1,m=v.s);return r(b,t),i(b,t),b}},23484:function(e){e.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}},71611:function(e,t,a){var n=a(11262).setGroupPositions;e.exports=function(e,t){var a,o,r=e._fullLayout,i=e._fullData,l=e.calcdata,s=t.xaxis,c=t.yaxis,p=[],u=[],h=[];for(o=0;o<i.length;o++){var d=i[o],f="h"===d.orientation;!0===d.visible&&d.xaxis===s._id&&d.yaxis===c._id&&"funnel"===d.type&&(a=l[o],f?h.push(a):u.push(a),p.push(a))}var v={mode:r.funnelmode,norm:r.funnelnorm,gap:r.funnelgap,groupgap:r.funnelgroupgap};for(n(e,s,c,u,v),n(e,c,s,h,v),o=0;o<p.length;o++){a=p[o];for(var g=0;g<a.length;g++)g+1<a.length&&(a[g].nextP0=a[g+1].p0,a[g].nextS0=a[g+1].s0,a[g].nextP1=a[g+1].p1,a[g].nextS1=a[g+1].s1)}}},21231:function(e,t,a){var n=a(47401),o=a(18878).handleGroupingDefaults,r=a(18878).handleText,i=a(87243),l=a(75781),s=a(80216),c=a(31454);e.exports={supplyDefaults:function(e,t,a,o){function p(a,o){return n.coerce(e,t,s,a,o)}if(i(e,t,o,p)){l(e,t,o,p),p("xhoverformat"),p("yhoverformat"),p("orientation",t.y&&!t.x?"v":"h"),p("offset"),p("width");var u=p("text");p("hovertext"),p("hovertemplate");var h=p("textposition");r(e,t,o,p,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===t.textposition||t.texttemplate||p("textinfo",Array.isArray(u)?"text+value":"value");var d=p("marker.color",a);if(p("marker.line.color",c.defaultLine),p("marker.line.width"),p("connector.visible"))p("connector.fillcolor",function(e){var t=n.isArrayOrTypedArray(e)?"#000":e;return c.addOpacity(t,.5*c.opacity(t))}(d)),p("connector.line.width")&&(p("connector.line.color"),p("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var a,r;function i(e){return n.coerce(r._input,r,s,e)}if("group"===t.funnelmode)for(var l=0;l<e.length;l++)a=(r=e[l])._input,o(a,r,t,i)}}},37236:function(e){e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},9983:function(e,t,a){var n=a(31454).opacity,o=a(16032).hoverOnBars,r=a(47401).formatPercent;e.exports=function(e,t,a,i,l){var s=o(e,t,a,i,l);if(s){var c=s.cd,p=c[0].trace,u="h"===p.orientation,h=c[s.index];s[(u?"x":"y")+"LabelVal"]=h.s,s.percentInitial=h.begR,s.percentInitialLabel=r(h.begR,1),s.percentPrevious=h.difR,s.percentPreviousLabel=r(h.difR,1),s.percentTotal=h.sumR,s.percentTotalLabel=r(h.sumR,1);var d=h.hi||p.hoverinfo,f=[];if(d&&"none"!==d&&"skip"!==d){var v="all"===d,g=d.split("+"),x=function(e){return v||-1!==g.indexOf(e)};x("percent initial")&&f.push(s.percentInitialLabel+" of initial"),x("percent previous")&&f.push(s.percentPreviousLabel+" of previous"),x("percent total")&&f.push(s.percentTotalLabel+" of total")}return s.extraText=f.join("<br>"),s.color=function(e,t){var a=e.marker,o=t.mc||a.color,r=t.mlc||a.line.color,i=t.mlw||a.line.width;if(n(o))return o;if(n(r)&&i)return r}(p,h),[s]}}},83333:function(e,t,a){e.exports={attributes:a(80216),layoutAttributes:a(88499),supplyDefaults:a(21231).supplyDefaults,crossTraceDefaults:a(21231).crossTraceDefaults,supplyLayoutDefaults:a(60244),calc:a(24072),crossTraceCalc:a(71611),plot:a(99946),style:a(76184).style,hoverPoints:a(9983),eventData:a(37236),selectPoints:a(76304),moduleType:"trace",name:"funnel",basePlotModule:a(66807),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Visualize stages in a process using length-encoded bars. This trace can be used","to show data in either a part-to-whole representation wherein each item appears",'in a single stage, or in a "drop-off" representation wherein each item appears in','each stage it traversed. See also the "funnelarea" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},88499:function(e){e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},funnelgap:{valType:"number",min:0,max:1,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},60244:function(e,t,a){var n=a(47401),o=a(88499);e.exports=function(e,t,a){var r=!1;function i(a,r){return n.coerce(e,t,o,a,r)}for(var l=0;l<a.length;l++){var s=a[l];if(s.visible&&"funnel"===s.type){r=!0;break}}r&&(i("funnelmode"),i("funnelgap",.2),i("funnelgroupgap"))}},99946:function(e,t,a){var n=a(62258),o=a(47401),r=a(41707),i=a(9405).BADNUM,l=a(74835),s=a(77846).clearMinTextSize;function c(e,t,a,n){var o=[],r=[],i=n?t:a,l=n?a:t;return o[0]=i.c2p(e.s0,!0),r[0]=l.c2p(e.p0,!0),o[1]=i.c2p(e.s1,!0),r[1]=l.c2p(e.p1,!0),o[2]=i.c2p(e.nextS0,!0),r[2]=l.c2p(e.nextP0,!0),o[3]=i.c2p(e.nextS1,!0),r[3]=l.c2p(e.nextP1,!0),n?[o,r]:[r,o]}e.exports=function(e,t,a,p){var u=e._fullLayout;s("funnel",u),function(e,t,a,l){var s=t.xaxis,p=t.yaxis;o.makeTraceGroups(l,a,"trace bars").each((function(a){var l=n.select(this),u=a[0].trace,h=o.ensureSingle(l,"g","regions");if(u.connector&&u.connector.visible){var d="h"===u.orientation,f=h.selectAll("g.region").data(o.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var v=f.size();f.each((function(a,l){if(l===v-1||a.cNext){var u=c(a,s,p,d),h=u[0],f=u[1],g="";h[0]!==i&&f[0]!==i&&h[1]!==i&&f[1]!==i&&h[2]!==i&&f[2]!==i&&h[3]!==i&&f[3]!==i&&(g+=d?"M"+h[0]+","+f[1]+"L"+h[2]+","+f[2]+"H"+h[3]+"L"+h[1]+","+f[1]+"Z":"M"+h[1]+","+f[1]+"L"+h[2]+","+f[3]+"V"+f[2]+"L"+h[1]+","+f[0]+"Z"),""===g&&(g="M0,0Z"),o.ensureSingle(n.select(this),"path").attr("d",g).call(r.setClipUrl,t.layerClipId,e)}}))}else h.remove()}))}(e,t,a,p),function(e,t,a,i){var l=t.xaxis,s=t.yaxis;o.makeTraceGroups(i,a,"trace bars").each((function(a){var i=n.select(this),p=a[0].trace,u=o.ensureSingle(i,"g","lines");if(p.connector&&p.connector.visible&&p.connector.line.width){var h="h"===p.orientation,d=u.selectAll("g.line").data(o.identity);d.enter().append("g").classed("line",!0),d.exit().remove();var f=d.size();d.each((function(a,i){if(i===f-1||a.cNext){var p=c(a,l,s,h),u=p[0],d=p[1],v="";void 0!==u[3]&&void 0!==d[3]&&(h?(v+="M"+u[0]+","+d[1]+"L"+u[2]+","+d[2],v+="M"+u[1]+","+d[1]+"L"+u[3]+","+d[2]):(v+="M"+u[1]+","+d[1]+"L"+u[2]+","+d[3],v+="M"+u[1]+","+d[0]+"L"+u[2]+","+d[2])),""===v&&(v="M0,0Z"),o.ensureSingle(n.select(this),"path").attr("d",v).call(r.setClipUrl,t.layerClipId,e)}}))}else u.remove()}))}(e,t,a,p),l.plot(e,t,a,p,{mode:u.funnelmode,norm:u.funnelmode,gap:u.funnelgap,groupgap:u.funnelgroupgap})}},76184:function(e,t,a){var n=a(62258),o=a(41707),r=a(31454),i=a(49158).DESELECTDIM,l=a(49651),s=a(77846).resizeText,c=l.styleTextPoints;e.exports={style:function(e,t,a){var l=a||n.select(e).selectAll("g.funnellayer").selectAll("g.trace");s(e,l,"funnel"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var a=n.select(this),l=t[0].trace;a.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l.marker;n.select(this).call(r.fill,e.mc||t.color).call(r.stroke,e.mlc||t.line.color).call(o.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",l.selectedpoints&&!e.selected?i:1)}})),c(a,l,e),a.selectAll(".regions").each((function(){n.select(this).selectAll("path").style("stroke-width",0).call(r.fill,l.connector.fillcolor)})),a.selectAll(".lines").each((function(){var e=l.connector.line;o.lineGroupStyle(n.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},94631:function(e,t,a){var n=a(86692),o=a(42837),r=a(16688).u,i=a(4216).r,l=a(4216).a,s=a(87241).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:s({},n.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:s({},n.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:n.text,hovertext:n.hovertext,scalegroup:s({},n.scalegroup,{description:["If there are multiple funnelareas that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")}),textinfo:s({},n.textinfo,{flags:["label","text","value","percent"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:s({},o.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:i({},{keys:["label","color","value","text","percent"]}),textposition:s({},n.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:s({},n.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:r({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot",description:["Sets the ratio between height and width"].join(" ")},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot",description:["Sets the ratio between bottom length and maximum top length."].join(" ")}}},71057:function(e,t,a){var n=a(35722);t.name="funnelarea",t.plot=function(e,a,o,r){n.plotBasePlot(t.name,e,a,o,r)},t.clean=function(e,a,o,r){n.cleanBasePlot(t.name,e,a,o,r)}},76455:function(e,t,a){var n=a(93444);e.exports={calc:function(e,t){return n.calc(e,t)},crossTraceCalc:function(e){n.crossTraceCalc(e,{type:"funnelarea"})}}},41664:function(e,t,a){var n=a(47401),o=a(94631),r=a(16688).N,i=a(18878).handleText,l=a(53459).handleLabelsAndValues;e.exports=function(e,t,a,s){function c(a,r){return n.coerce(e,t,o,a,r)}var p=c("labels"),u=c("values"),h=l(p,u),d=h.len;if(t._hasLabels=h.hasLabels,t._hasValues=h.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),d){t._length=d,c("marker.line.width")&&c("marker.line.color",s.paper_bgcolor),c("marker.colors"),c("scalegroup");var f,v=c("text"),g=c("texttemplate");if(g||(f=c("textinfo",Array.isArray(v)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),g||f&&"none"!==f){var x=c("textposition");i(e,t,s,c,x,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}r(t,s,c),c("title.text")&&(c("title.position"),n.coerceFont(c,"title.font",s.font)),c("aspectratio"),c("baseratio")}else t.visible=!1}},80012:function(e,t,a){e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:a(71057),categories:["pie-like","funnelarea","showLegend"],attributes:a(94631),layoutAttributes:a(70414),supplyDefaults:a(41664),supplyLayoutDefaults:a(22553),calc:a(76455).calc,crossTraceCalc:a(76455).crossTraceCalc,plot:a(77777),style:a(62285),styleOne:a(59371),meta:{description:["Visualize stages in a process using area-encoded trapezoids. This trace can be used",'to show data in a part-to-whole representation similar to a "pie" trace, wherein','each item appears in a single stage. See also the "funnel" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},70414:function(e,t,a){var n=a(59055).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:"colorlist",editType:"calc",description:["Sets the default funnelarea slice colors. Defaults to the main","`colorway` used for trace colors. If you specify a new","list here it can still be extended with lighter and darker","colors, see `extendfunnelareacolors`."].join(" ")},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc",description:["If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` or","inherited from `colorway`) will be extended to three times its","original length by first repeating every color 20% lighter then","each color 20% darker. This is intended to reduce the likelihood","of reusing the same color when you have many slices, but you can","set `false` to disable.","Colors provided in the trace, using `marker.colors`, are never","extended."].join(" ")}}},22553:function(e,t,a){var n=a(47401),o=a(70414);e.exports=function(e,t){function a(a,r){return n.coerce(e,t,o,a,r)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}},77777:function(e,t,a){var n=a(62258),o=a(41707),r=a(47401),i=r.strScale,l=r.strTranslate,s=a(43995),c=a(74835).toMoveInsideBar,p=a(77846),u=p.recordMinTextSize,h=p.clearMinTextSize,d=a(80084),f=a(59718),v=f.attachFxHandlers,g=f.determineInsideTextFont,x=f.layoutAreas,m=f.prerenderTitles,y=f.positionTitleOutside,b=f.formatSliceLabel;function T(e,t){return"l"+(t[0]-e[0])+","+(t[1]-e[1])}function w(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}e.exports=function(e,t){var a=e._fullLayout;h("funnelarea",a),m(t,e),x(t,a._size),r.makeTraceGroups(a._funnelarealayer,t,"trace").each((function(t){var p=n.select(this),h=t[0],f=h.trace;!function(e){if(!e.length)return;var t=e[0],a=t.trace,n=a.aspectratio,o=a.baseratio;o>.999&&(o=.999);var r,i=Math.pow(o,2),l=t.vTotal,s=l,c=l*i/(1-i)/l;function p(){var e=Math.sqrt(c);return{x:e,y:-e}}function u(){var e=p();return[e.x,e.y]}var h,d,f=[];for(f.push(u()),h=e.length-1;h>-1;h--)if(!(d=e[h]).hidden){var v=d.v/s;c+=v,f.push(u())}var g=1/0,x=-1/0;for(h=0;h<f.length;h++)r=f[h],g=Math.min(g,r[1]),x=Math.max(x,r[1]);for(h=0;h<f.length;h++)f[h][1]-=(x+g)/2;var m=f[f.length-1][0],y=t.r,b=(x-g)/2,T=y/m,L=y/b*n;for(t.r=L*b,h=0;h<f.length;h++)f[h][0]*=T,f[h][1]*=L;var M=[-(r=f[0])[0],r[1]],A=[r[0],r[1]],S=0;for(h=e.length-1;h>-1;h--)if(!(d=e[h]).hidden){var z=f[S+=1][0],k=f[S][1];d.TL=[-z,k],d.TR=[z,k],d.BL=M,d.BR=A,d.pxmid=w(d.TR,d.BR),M=d.TL,A=d.TR}}(t),p.each((function(){var p=n.select(this).selectAll("g.slice").data(t);p.enter().append("g").classed("slice",!0),p.exit().remove(),p.each((function(i,l){if(i.hidden)n.select(this).selectAll("path,g").remove();else{i.pointNumber=i.i,i.curveNumber=f.index;var p=h.cx,x=h.cy,m=n.select(this),y=m.selectAll("path.surface").data([i]);y.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),m.call(v,e,t);var w="M"+(p+i.TR[0])+","+(x+i.TR[1])+T(i.TR,i.BR)+T(i.BR,i.BL)+T(i.BL,i.TL)+"Z";y.attr("d",w),b(e,i,h);var L=d.castOption(f.textposition,i.pts),M=m.selectAll("g.slicetext").data(i.text&&"none"!==L?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each((function(){var h=r.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=r.ensureUniformFontSize(e,g(f,i,a.font));h.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(o.font,d).call(s.convertToTspans,e);var v,m,y,b=o.bBox(h.node()),T=Math.min(i.BL[1],i.BR[1])+x,w=Math.max(i.TL[1],i.TR[1])+x;m=Math.max(i.TL[0],i.BL[0])+p,y=Math.min(i.TR[0],i.BR[0])+p,(v=c(m,y,T,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=d.size,u(f.type,v,a),t[l].transform=v,h.attr("transform",r.getTextTransform(v))}))}}));var x=n.select(this).selectAll("g.titletext").data(f.title.text?[0]:[]);x.enter().append("g").classed("titletext",!0),x.exit().remove(),x.each((function(){var t=r.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),c=f.title.text;f._meta&&(c=r.templateString(c,f._meta)),t.text(c).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(o.font,f.title.font).call(s.convertToTspans,e);var p=y(h,a._size);t.attr("transform",l(p.x,p.y)+i(Math.min(1,p.scale))+l(p.tx,p.ty))}))}))}))}},62285:function(e,t,a){var n=a(62258),o=a(59371),r=a(77846).resizeText;e.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");r(e,t,"funnelarea"),t.each((function(e){var t=e[0].trace,a=n.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each((function(e){n.select(this).call(o,e,t)}))}))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7248],{23500:function(e,t,n){n.d(t,{Mz:function(){return Ze},i3:function(){return it},H_:function(){return tt},UC:function(){return je},YJ:function(){return Je},q7:function(){return et},VF:function(){return ot},JU:function(){return Qe},ZL:function(){return qe},z6:function(){return nt},hN:function(){return rt},bL:function(){return Ye},wv:function(){return at},Pb:function(){return ct},G5:function(){return st},ZP:function(){return ut},UE:function(){return j}});var r=n(58168),o=n(31014),a=n(27781),i=n(52630),c=n(34271),u=n(14613),s=n(82627),l=n(5354),d=n(65367),f=n(94851),p=n(29379),m=n(78728),v=n(7416),w=n(88227),h=n(39683),g=n(88631),E=n(58119);const y="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[A,P,T]=(0,i.N)(C),[_,R]=(0,u.A)(C,[T]),[x,M]=_(C),D=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(A.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(A.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(k,(0,r.A)({},e,{ref:t})))))),k=(0,o.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:u=!1,dir:l,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,...v}=e,w=(0,o.useRef)(null),C=(0,c.s)(t,w),A=(0,s.jH)(l),[T=null,_]=(0,E.i)({prop:d,defaultProp:f,onChange:p}),[R,M]=(0,o.useState)(!1),D=(0,g.c)(m),k=P(n),O=(0,o.useRef)(!1),[S,F]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const e=w.current;if(e)return e.addEventListener(y,D),()=>e.removeEventListener(y,D)}),[D]),(0,o.createElement)(x,{scope:n,orientation:i,dir:A,loop:u,currentTabStopId:T,onItemFocus:(0,o.useCallback)((e=>_(e)),[_]),onItemShiftTab:(0,o.useCallback)((()=>M(!0)),[]),onFocusableItemAdd:(0,o.useCallback)((()=>F((e=>e+1))),[]),onFocusableItemRemove:(0,o.useCallback)((()=>F((e=>e-1))),[])},(0,o.createElement)(h.sG.div,(0,r.A)({tabIndex:R||0===S?-1:0,"data-orientation":i},v,{ref:C,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,(()=>{O.current=!0})),onFocus:(0,a.m)(e.onFocus,(e=>{const t=!O.current;if(e.target===e.currentTarget&&t&&!R){const t=new CustomEvent(y,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));I([e.find((e=>e.active)),e.find((e=>e.id===T)),...e].filter(Boolean).map((e=>e.ref.current)))}}O.current=!1})),onBlur:(0,a.m)(e.onBlur,(()=>M(!1)))})))})),O="RovingFocusGroupItem",S=(0,o.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:c=!1,tabStopId:u,...s}=e,l=(0,p.B)(),d=u||l,f=M(O,n),m=f.currentTabStopId===d,v=P(n),{onFocusableItemAdd:w,onFocusableItemRemove:g}=f;return(0,o.useEffect)((()=>{if(i)return w(),()=>g()}),[i,w,g]),(0,o.createElement)(A.ItemSlot,{scope:n,id:d,focusable:i,active:c},(0,o.createElement)(h.sG.span,(0,r.A)({tabIndex:m?0:-1,"data-orientation":f.orientation},s,{ref:t,onMouseDown:(0,a.m)(e.onMouseDown,(e=>{i?f.onItemFocus(d):e.preventDefault()})),onFocus:(0,a.m)(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:(0,a.m)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:F[r]}(e,f.orientation,f.dir);if(void 0!==t){e.preventDefault();let o=v().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>I(o)))}var n,r}))})))})),F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const L=D,N=S;var K=n(58066),G=n(16487),U=n(91753);const B=["Enter"," "],V=["ArrowUp","PageDown","End"],$=["ArrowDown","PageUp","Home",...V],z={ltr:[...B,"ArrowRight"],rtl:[...B,"ArrowLeft"]},H={ltr:["ArrowLeft"],rtl:["ArrowRight"]},X="Menu",[W,Y,Z]=(0,i.N)(X),[q,j]=(0,u.A)(X,[Z,m.Bk,R]),J=(0,m.Bk)(),Q=R(),[ee,te]=q(X),[ne,re]=q(X),oe=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:c=!0}=e,u=J(t),[l,d]=(0,o.useState)(null),f=(0,o.useRef)(!1),p=(0,g.c)(i),v=(0,s.jH)(a);return(0,o.useEffect)((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,o.createElement)(m.bL,u,(0,o.createElement)(ee,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d},(0,o.createElement)(ne,{scope:t,onClose:(0,o.useCallback)((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:v,modal:c},r)))},ae=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,...a}=e,i=J(n);return(0,o.createElement)(m.Mz,(0,r.A)({},i,a,{ref:t}))})),ie="MenuPortal",[ce,ue]=q(ie,{forceMount:void 0}),se=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,i=te(ie,t);return(0,o.createElement)(ce,{scope:t,forceMount:n},(0,o.createElement)(w.C,{present:n||i.open},(0,o.createElement)(v.Z,{asChild:!0,container:a},r)))},le="MenuContent",[de,fe]=q(le),pe=(0,o.forwardRef)(((e,t)=>{const n=ue(le,e.__scopeMenu),{forceMount:a=n.forceMount,...i}=e,c=te(le,e.__scopeMenu),u=re(le,e.__scopeMenu);return(0,o.createElement)(W.Provider,{scope:e.__scopeMenu},(0,o.createElement)(w.C,{present:a||c.open},(0,o.createElement)(W.Slot,{scope:e.__scopeMenu},u.modal?(0,o.createElement)(me,(0,r.A)({},i,{ref:t})):(0,o.createElement)(ve,(0,r.A)({},i,{ref:t})))))})),me=(0,o.forwardRef)(((e,t)=>{const n=te(le,e.__scopeMenu),i=(0,o.useRef)(null),u=(0,c.s)(t,i);return(0,o.useEffect)((()=>{const e=i.current;if(e)return(0,G.Eq)(e)}),[]),(0,o.createElement)(we,(0,r.A)({},e,{ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),ve=(0,o.forwardRef)(((e,t)=>{const n=te(le,e.__scopeMenu);return(0,o.createElement)(we,(0,r.A)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),we=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:p,disableOutsidePointerEvents:v,onEntryFocus:w,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:E,onInteractOutside:y,onDismiss:b,disableOutsideScroll:C,...A}=e,P=te(le,n),T=re(le,n),_=J(n),R=Q(n),x=Y(n),[M,D]=(0,o.useState)(null),k=(0,o.useRef)(null),O=(0,c.s)(t,k,P.onContentChange),S=(0,o.useRef)(0),F=(0,o.useRef)(""),I=(0,o.useRef)(0),N=(0,o.useRef)(null),G=(0,o.useRef)("right"),B=(0,o.useRef)(0),z=C?U.A:o.Fragment,H=C?{as:K.DX,allowPinchZoom:!0}:void 0,X=e=>{var t,n;const r=F.current+e,o=x().filter((e=>!e.disabled)),a=document.activeElement,i=null===(t=o.find((e=>e.ref.current===a)))||void 0===t?void 0:t.textValue,c=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(c=e,u=Math.max(a,0),c.map(((e,t)=>c[(u+t)%c.length])));var c,u;1===o.length&&(i=i.filter((e=>e!==n)));const s=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return s!==n?s:void 0}(o.map((e=>e.textValue)),r,i),u=null===(n=o.find((e=>e.textValue===c)))||void 0===n?void 0:n.ref.current;!function e(t){F.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout((()=>e("")),1e3))}(r),u&&setTimeout((()=>u.focus()))};(0,o.useEffect)((()=>()=>window.clearTimeout(S.current)),[]),(0,d.Oh)();const W=(0,o.useCallback)((e=>{var t,n;return G.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const e=t[a].x,c=t[a].y,u=t[i].x,s=t[i].y;c>r!==s>r&&n<(u-e)*(r-c)/(s-c)+e&&(o=!o)}return o}(n,t)}(e,null===(n=N.current)||void 0===n?void 0:n.area)}),[]);return(0,o.createElement)(de,{scope:n,searchRef:F,onItemEnter:(0,o.useCallback)((e=>{W(e)&&e.preventDefault()}),[W]),onItemLeave:(0,o.useCallback)((e=>{var t;W(e)||(null===(t=k.current)||void 0===t||t.focus(),D(null))}),[W]),onTriggerLeave:(0,o.useCallback)((e=>{W(e)&&e.preventDefault()}),[W]),pointerGraceTimerRef:I,onPointerGraceIntentChange:(0,o.useCallback)((e=>{N.current=e}),[])},(0,o.createElement)(z,H,(0,o.createElement)(f.n,{asChild:!0,trapped:u,onMountAutoFocus:(0,a.m)(s,(e=>{var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus()})),onUnmountAutoFocus:p},(0,o.createElement)(l.qW,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:E,onInteractOutside:y,onDismiss:b},(0,o.createElement)(L,(0,r.A)({asChild:!0},R,{dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:M,onCurrentTabStopIdChange:D,onEntryFocus:(0,a.m)(w,(e=>{T.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,o.createElement)(m.UC,(0,r.A)({role:"menu","aria-orientation":"vertical","data-state":ze(P.open),"data-radix-menu-content":"",dir:T.dir},_,A,{ref:O,style:{outline:"none",...A.style},onKeyDown:(0,a.m)(A.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&X(e.key));const o=k.current;if(e.target!==o)return;if(!$.includes(e.key))return;e.preventDefault();const a=x().filter((e=>!e.disabled)).map((e=>e.ref.current));V.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:(0,a.m)(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),F.current="")})),onPointerMove:(0,a.m)(e.onPointerMove,We((e=>{const t=e.target,n=B.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>B.current?"right":"left";G.current=t,B.current=e.clientX}})))})))))))})),he=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,...a}=e;return(0,o.createElement)(h.sG.div,(0,r.A)({role:"group"},a,{ref:t}))})),ge=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,...a}=e;return(0,o.createElement)(h.sG.div,(0,r.A)({},a,{ref:t}))})),Ee="MenuItem",ye="menu.itemSelect",be=(0,o.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:i,...u}=e,s=(0,o.useRef)(null),l=re(Ee,e.__scopeMenu),d=fe(Ee,e.__scopeMenu),f=(0,c.s)(t,s),p=(0,o.useRef)(!1);return(0,o.createElement)(Ce,(0,r.A)({},u,{ref:f,disabled:n,onClick:(0,a.m)(e.onClick,(()=>{const e=s.current;if(!n&&e){const t=new CustomEvent(ye,{bubbles:!0,cancelable:!0});e.addEventListener(ye,(e=>null===i||void 0===i?void 0:i(e)),{once:!0}),(0,h.hO)(e,t),t.defaultPrevented?p.current=!1:l.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,(e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:(0,a.m)(e.onKeyDown,(e=>{const t=""!==d.searchRef.current;n||t&&" "===e.key||B.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Ce=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:u,...s}=e,l=fe(Ee,n),d=Q(n),f=(0,o.useRef)(null),p=(0,c.s)(t,f),[m,v]=(0,o.useState)(!1),[w,g]=(0,o.useState)("");return(0,o.useEffect)((()=>{const e=f.current;var t;e&&g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[s.children]),(0,o.createElement)(W.ItemSlot,{scope:n,disabled:i,textValue:null!==u&&void 0!==u?u:w},(0,o.createElement)(N,(0,r.A)({asChild:!0},d,{focusable:!i}),(0,o.createElement)(h.sG.div,(0,r.A)({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0},s,{ref:p,onPointerMove:(0,a.m)(e.onPointerMove,We((e=>{if(i)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:(0,a.m)(e.onPointerLeave,We((e=>l.onItemLeave(e)))),onFocus:(0,a.m)(e.onFocus,(()=>v(!0))),onBlur:(0,a.m)(e.onBlur,(()=>v(!1)))}))))})),Ae=(0,o.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:i,...c}=e;return(0,o.createElement)(ke,{scope:e.__scopeMenu,checked:n},(0,o.createElement)(be,(0,r.A)({role:"menuitemcheckbox","aria-checked":He(n)?"mixed":n},c,{ref:t,"data-state":Xe(n),onSelect:(0,a.m)(c.onSelect,(()=>null===i||void 0===i?void 0:i(!!He(n)||!n)),{checkForDefaultPrevented:!1})})))})),Pe="MenuRadioGroup",[Te,_e]=q(Pe,{value:void 0,onValueChange:()=>{}}),Re=(0,o.forwardRef)(((e,t)=>{const{value:n,onValueChange:a,...i}=e,c=(0,g.c)(a);return(0,o.createElement)(Te,{scope:e.__scopeMenu,value:n,onValueChange:c},(0,o.createElement)(he,(0,r.A)({},i,{ref:t})))})),xe="MenuRadioItem",Me=(0,o.forwardRef)(((e,t)=>{const{value:n,...i}=e,c=_e(xe,e.__scopeMenu),u=n===c.value;return(0,o.createElement)(ke,{scope:e.__scopeMenu,checked:u},(0,o.createElement)(be,(0,r.A)({role:"menuitemradio","aria-checked":u},i,{ref:t,"data-state":Xe(u),onSelect:(0,a.m)(i.onSelect,(()=>{var e;return null===(e=c.onValueChange)||void 0===e?void 0:e.call(c,n)}),{checkForDefaultPrevented:!1})})))})),De="MenuItemIndicator",[ke,Oe]=q(De,{checked:!1}),Se=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:a,...i}=e,c=Oe(De,n);return(0,o.createElement)(w.C,{present:a||He(c.checked)||!0===c.checked},(0,o.createElement)(h.sG.span,(0,r.A)({},i,{ref:t,"data-state":Xe(c.checked)})))})),Fe=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,...a}=e;return(0,o.createElement)(h.sG.div,(0,r.A)({role:"separator","aria-orientation":"horizontal"},a,{ref:t}))})),Ie=(0,o.forwardRef)(((e,t)=>{const{__scopeMenu:n,...a}=e,i=J(n);return(0,o.createElement)(m.i3,(0,r.A)({},i,a,{ref:t}))})),Le="MenuSub",[Ne,Ke]=q(Le),Ge=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,i=te(Le,t),c=J(t),[u,s]=(0,o.useState)(null),[l,d]=(0,o.useState)(null),f=(0,g.c)(a);return(0,o.useEffect)((()=>(!1===i.open&&f(!1),()=>f(!1))),[i.open,f]),(0,o.createElement)(m.bL,c,(0,o.createElement)(ee,{scope:t,open:r,onOpenChange:f,content:l,onContentChange:d},(0,o.createElement)(Ne,{scope:t,contentId:(0,p.B)(),triggerId:(0,p.B)(),trigger:u,onTriggerChange:s},n)))},Ue="MenuSubTrigger",Be=(0,o.forwardRef)(((e,t)=>{const n=te(Ue,e.__scopeMenu),i=re(Ue,e.__scopeMenu),u=Ke(Ue,e.__scopeMenu),s=fe(Ue,e.__scopeMenu),l=(0,o.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=s,p={__scopeMenu:e.__scopeMenu},m=(0,o.useCallback)((()=>{l.current&&window.clearTimeout(l.current),l.current=null}),[]);return(0,o.useEffect)((()=>m),[m]),(0,o.useEffect)((()=>{const e=d.current;return()=>{window.clearTimeout(e),f(null)}}),[d,f]),(0,o.createElement)(ae,(0,r.A)({asChild:!0},p),(0,o.createElement)(Ce,(0,r.A)({id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":ze(n.open)},e,{ref:(0,c.t)(t,u.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,We((t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||l.current||(s.onPointerGraceIntentChange(null),l.current=window.setTimeout((()=>{n.onOpenChange(!0),m()}),100))}))),onPointerLeave:(0,a.m)(e.onPointerLeave,We((e=>{var t;m();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,i=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>s.onPointerGraceIntentChange(null)),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}}))),onKeyDown:(0,a.m)(e.onKeyDown,(t=>{const r=""!==s.searchRef.current;var o;e.disabled||r&&" "===t.key||z[i.dir].includes(t.key)&&(n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault())}))})))})),Ve="MenuSubContent",$e=(0,o.forwardRef)(((e,t)=>{const n=ue(le,e.__scopeMenu),{forceMount:i=n.forceMount,...u}=e,s=te(le,e.__scopeMenu),l=re(le,e.__scopeMenu),d=Ke(Ve,e.__scopeMenu),f=(0,o.useRef)(null),p=(0,c.s)(t,f);return(0,o.createElement)(W.Provider,{scope:e.__scopeMenu},(0,o.createElement)(w.C,{present:i||s.open},(0,o.createElement)(W.Slot,{scope:e.__scopeMenu},(0,o.createElement)(we,(0,r.A)({id:d.contentId,"aria-labelledby":d.triggerId},u,{ref:p,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,(e=>{e.target!==d.trigger&&s.onOpenChange(!1)})),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,(e=>{l.onClose(),e.preventDefault()})),onKeyDown:(0,a.m)(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=H[l.dir].includes(e.key);var r;t&&n&&(s.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function ze(e){return e?"open":"closed"}function He(e){return"indeterminate"===e}function Xe(e){return He(e)?"indeterminate":e?"checked":"unchecked"}function We(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Ye=oe,Ze=ae,qe=se,je=pe,Je=he,Qe=ge,et=be,tt=Ae,nt=Re,rt=Me,ot=Se,at=Fe,it=Ie,ct=Ge,ut=Be,st=$e},37055:function(e,t,n){n.d(t,{Mz:function(){return H},UC:function(){return Y},ZL:function(){return W},bL:function(){return z},bm:function(){return Z},i3:function(){return q},l9:function(){return X}});var r=n(58168),o=n(31014),a=n(27781),i=n(34271),c=n(14613),u=n(5354),s=n(65367),l=n(94851),d=n(29379),f=n(78728),p=n(7416),m=n(88227),v=n(39683),w=n(58066),h=n(58119),g=n(16487),E=n(91753);const y="Popover",[b,C]=(0,c.A)(y,[f.Bk]),A=(0,f.Bk)(),[P,T]=b(y),_=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:c=!1}=e,u=A(t),s=(0,o.useRef)(null),[l,p]=(0,o.useState)(!1),[m=!1,v]=(0,h.i)({prop:r,defaultProp:a,onChange:i});return(0,o.createElement)(f.bL,u,(0,o.createElement)(P,{scope:t,contentId:(0,d.B)(),triggerRef:s,open:m,onOpenChange:v,onOpenToggle:(0,o.useCallback)((()=>v((e=>!e))),[v]),hasCustomAnchor:l,onCustomAnchorAdd:(0,o.useCallback)((()=>p(!0)),[]),onCustomAnchorRemove:(0,o.useCallback)((()=>p(!1)),[]),modal:c},n))},R="PopoverAnchor",x=(0,o.forwardRef)(((e,t)=>{const{__scopePopover:n,...a}=e,i=T(R,n),c=A(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:s}=i;return(0,o.useEffect)((()=>(u(),()=>s())),[u,s]),(0,o.createElement)(f.Mz,(0,r.A)({},c,a,{ref:t}))})),M="PopoverTrigger",D=(0,o.forwardRef)(((e,t)=>{const{__scopePopover:n,...c}=e,u=T(M,n),s=A(n),l=(0,i.s)(t,u.triggerRef),d=(0,o.createElement)(v.sG.button,(0,r.A)({type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":$(u.open)},c,{ref:l,onClick:(0,a.m)(e.onClick,u.onOpenToggle)}));return u.hasCustomAnchor?d:(0,o.createElement)(f.Mz,(0,r.A)({asChild:!0},s),d)})),k="PopoverPortal",[O,S]=b(k,{forceMount:void 0}),F=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=T(k,t);return(0,o.createElement)(O,{scope:t,forceMount:n},(0,o.createElement)(m.C,{present:n||i.open},(0,o.createElement)(p.Z,{asChild:!0,container:a},r)))},I="PopoverContent",L=(0,o.forwardRef)(((e,t)=>{const n=S(I,e.__scopePopover),{forceMount:a=n.forceMount,...i}=e,c=T(I,e.__scopePopover);return(0,o.createElement)(m.C,{present:a||c.open},c.modal?(0,o.createElement)(N,(0,r.A)({},i,{ref:t})):(0,o.createElement)(K,(0,r.A)({},i,{ref:t})))})),N=(0,o.forwardRef)(((e,t)=>{const n=T(I,e.__scopePopover),c=(0,o.useRef)(null),u=(0,i.s)(t,c),s=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=c.current;if(e)return(0,g.Eq)(e)}),[]),(0,o.createElement)(E.A,{as:w.DX,allowPinchZoom:!0},(0,o.createElement)(G,(0,r.A)({},e,{ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),s.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.m)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})))})),K=(0,o.forwardRef)(((e,t)=>{const n=T(I,e.__scopePopover),a=(0,o.useRef)(!1),i=(0,o.useRef)(!1);return(0,o.createElement)(G,(0,r.A)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;(null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented)||(a.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault());a.current=!1,i.current=!1},onInteractOutside:t=>{var r,o;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const c=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(c))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))})),G=(0,o.forwardRef)(((e,t)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:w,...h}=e,g=T(I,n),E=A(n);return(0,s.Oh)(),(0,o.createElement)(l.n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:c},(0,o.createElement)(u.qW,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:w,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onDismiss:()=>g.onOpenChange(!1)},(0,o.createElement)(f.UC,(0,r.A)({"data-state":$(g.open),role:"dialog",id:g.contentId},E,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))})),U="PopoverClose",B=(0,o.forwardRef)(((e,t)=>{const{__scopePopover:n,...i}=e,c=T(U,n);return(0,o.createElement)(v.sG.button,(0,r.A)({type:"button"},i,{ref:t,onClick:(0,a.m)(e.onClick,(()=>c.onOpenChange(!1)))}))})),V=(0,o.forwardRef)(((e,t)=>{const{__scopePopover:n,...a}=e,i=A(n);return(0,o.createElement)(f.i3,(0,r.A)({},i,a,{ref:t}))}));function $(e){return e?"open":"closed"}const z=_,H=x,X=D,W=F,Y=L,Z=B,q=V},78728:function(e,t,n){n.d(t,{Mz:function(){return S},i3:function(){return I},UC:function(){return F},bL:function(){return O},Bk:function(){return w}});var r=n(58168),o=n(31014),a=n(59831),i=n(15145),c=n(28161),u=n(68867),s=n(34271),l=n(14613),d=n(39683),f=n(88631),p=n(72424);const m="Popper",[v,w]=(0,l.A)(m),[h,g]=v(m),E=e=>{const{__scopePopper:t,children:n}=e,[r,a]=(0,o.useState)(null);return(0,o.createElement)(h,{scope:t,anchor:r,onAnchorChange:a},n)},y="PopperAnchor",b=(0,o.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:a,...i}=e,c=g(y,n),u=(0,o.useRef)(null),l=(0,s.s)(t,u);return(0,o.useEffect)((()=>{c.onAnchorChange((null===a||void 0===a?void 0:a.current)||u.current)})),a?null:(0,o.createElement)(d.sG.div,(0,r.A)({},i,{ref:l}))})),C="PopperContent",[A,P]=v(C),T=(0,o.forwardRef)(((e,t)=>{var n,u,l,m,v,w,h,E;const{__scopePopper:y,side:b="bottom",sideOffset:P=0,align:T="center",alignOffset:_=0,arrowPadding:R=0,avoidCollisions:x=!0,collisionBoundary:O=[],collisionPadding:S=0,sticky:F="partial",hideWhenDetached:I=!1,updatePositionStrategy:L="optimized",onPlaced:N,...K}=e,G=g(C,y),[U,B]=(0,o.useState)(null),V=(0,s.s)(t,(e=>B(e))),[$,z]=(0,o.useState)(null),H=function(e){const[t,n]=(0,o.useState)(void 0);return(0,p.N)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}($),X=null!==(n=null===H||void 0===H?void 0:H.width)&&void 0!==n?n:0,W=null!==(u=null===H||void 0===H?void 0:H.height)&&void 0!==u?u:0,Y=b+("center"!==T?"-"+T:""),Z="number"===typeof S?S:{top:0,right:0,bottom:0,left:0,...S},q=Array.isArray(O)?O:[O],j=q.length>0,J={padding:Z,boundary:q.filter(M),altBoundary:j},{refs:Q,floatingStyles:ee,placement:te,isPositioned:ne,middlewareData:re}=(0,a.we)({strategy:"fixed",placement:Y,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.ll)(...t,{animationFrame:"always"===L})},elements:{reference:G.anchor},middleware:[(0,c.cY)({mainAxis:P+W,alignmentAxis:_}),x&&(0,c.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===F?(0,c.ER)():void 0,...J}),x&&(0,c.UU)({...J}),(0,c.Ej)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e;const{width:a,height:i}=n.reference,c=t.floating.style;c.setProperty("--radix-popper-available-width",`${r}px`),c.setProperty("--radix-popper-available-height",`${o}px`),c.setProperty("--radix-popper-anchor-width",`${a}px`),c.setProperty("--radix-popper-anchor-height",`${i}px`)}}),$&&(0,a.UE)({element:$,padding:R}),D({arrowWidth:X,arrowHeight:W}),I&&(0,c.jD)({strategy:"referenceHidden",...J})]}),[oe,ae]=k(te),ie=(0,f.c)(N);(0,p.N)((()=>{ne&&(null===ie||void 0===ie||ie())}),[ne,ie]);const ce=null===(l=re.arrow)||void 0===l?void 0:l.x,ue=null===(m=re.arrow)||void 0===m?void 0:m.y,se=0!==(null===(v=re.arrow)||void 0===v?void 0:v.centerOffset),[le,de]=(0,o.useState)();return(0,p.N)((()=>{U&&de(window.getComputedStyle(U).zIndex)}),[U]),(0,o.createElement)("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:ne?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[null===(w=re.transformOrigin)||void 0===w?void 0:w.x,null===(h=re.transformOrigin)||void 0===h?void 0:h.y].join(" ")},dir:e.dir},(0,o.createElement)(A,{scope:y,placedSide:oe,onArrowChange:z,arrowX:ce,arrowY:ue,shouldHideArrow:se},(0,o.createElement)(d.sG.div,(0,r.A)({"data-side":oe,"data-align":ae},K,{ref:V,style:{...K.style,animation:ne?void 0:"none",opacity:null!==(E=re.hide)&&void 0!==E&&E.referenceHidden?0:void 0}}))))})),_="PopperArrow",R={top:"bottom",right:"left",bottom:"top",left:"right"},x=(0,o.forwardRef)((function(e,t){const{__scopePopper:n,...a}=e,i=P(_,n),c=R[i.placedSide];return(0,o.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(u.b,(0,r.A)({},a,{ref:t,style:{...a.style,display:"block"}})))}));function M(e){return null!==e}const D=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:c,rects:u,middlewareData:s}=t,l=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[p,m]=k(c),v={start:"0%",center:"50%",end:"100%"}[m],w=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,h=(null!==(a=null===(i=s.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let g="",E="";return"bottom"===p?(g=l?v:`${w}px`,E=-f+"px"):"top"===p?(g=l?v:`${w}px`,E=`${u.floating.height+f}px`):"right"===p?(g=-f+"px",E=l?v:`${h}px`):"left"===p&&(g=`${u.floating.width+f}px`,E=l?v:`${h}px`),{data:{x:g,y:E}}}});function k(e){const[t,n="center"]=e.split("-");return[t,n]}const O=E,S=b,F=T,I=x},7416:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(58168),o=n(31014),a=n(21751),i=n(39683);const c=(0,o.forwardRef)(((e,t)=>{var n;const{container:c=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...u}=e;return c?a.createPortal((0,o.createElement)(i.sG.div,(0,r.A)({},u,{ref:t})),c):null}))},88227:function(e,t,n){n.d(t,{C:function(){return c}});var r=n(31014),o=n(21751),a=n(34271),i=n(72424);const c=e=>{const{present:t,children:n}=e,c=function(e){const[t,n]=(0,r.useState)(),a=(0,r.useRef)({}),c=(0,r.useRef)(e),s=(0,r.useRef)("none"),l=e?"mounted":"unmounted",[d,f]=function(e,t){return(0,r.useReducer)(((e,n)=>{const r=t[e][n];return null!==r&&void 0!==r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=u(a.current);s.current="mounted"===d?e:"none"}),[d]),(0,i.N)((()=>{const t=a.current,n=c.current;if(n!==e){const r=s.current,o=u(t);if(e)f("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))f("UNMOUNT");else{f(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}c.current=e}}),[e,f]),(0,i.N)((()=>{if(t){const e=e=>{const n=u(a.current).includes(e.animationName);e.target===t&&n&&(0,o.flushSync)((()=>f("ANIMATION_END")))},n=e=>{e.target===t&&(s.current=u(a.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)((e=>{e&&(a.current=getComputedStyle(e)),n(e)}),[])}}(t),s="function"===typeof n?n({present:c.isPresent}):r.Children.only(n),l=(0,a.s)(c.ref,s.ref);return"function"===typeof n||c.isPresent?(0,r.cloneElement)(s,{ref:l}):null};function u(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}c.displayName="Presence"},39683:function(e,t,n){n.d(t,{hO:function(){return u},sG:function(){return c}});var r=n(58168),o=n(31014),a=n(21751),i=n(58066);const c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,o.forwardRef)(((e,n)=>{const{asChild:a,...c}=e,u=a?i.DX:t;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(u,(0,r.A)({},c,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function u(e,t){e&&(0,a.flushSync)((()=>e.dispatchEvent(t)))}},58066:function(e,t,n){n.d(t,{DX:function(){return i}});var r=n(58168),o=n(31014),a=n(34271);const i=(0,o.forwardRef)(((e,t)=>{const{children:n,...a}=e,i=o.Children.toArray(n),u=i.find(s);if(u){const e=u.props.children,n=i.map((t=>t===u?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:t));return(0,o.createElement)(c,(0,r.A)({},a,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(c,(0,r.A)({},a,{ref:t}),n)}));i.displayName="Slot";const c=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...l(r,n.props),ref:t?(0,a.t)(t,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null}));c.displayName="SlotClone";const u=e=>{let{children:t}=e;return(0,o.createElement)(o.Fragment,null,t)};function s(e){return(0,o.isValidElement)(e)&&e.type===u}function l(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=function(){a(...arguments),o(...arguments)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}},30352:function(e,t,n){n.d(t,{bm:function(){return re},VY:function(){return ne},Kq:function(){return J},bL:function(){return ee},hE:function(){return te},LM:function(){return Q}});var r=n(58168),o=n(31014),a=n(21751),i=n(27781),c=n(34271),u=n(52630),s=n(14613),l=n(5354),d=n(7416),f=n(88227),p=n(39683),m=n(88631),v=n(58119),w=n(72424);const h=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(p.sG.span,(0,r.A)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),g="ToastProvider",[E,y,b]=(0,u.N)("Toast"),[C,A]=(0,s.A)("Toast",[b]),[P,T]=C(g),_=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:c}=e,[u,s]=(0,o.useState)(null),[l,d]=(0,o.useState)(0),f=(0,o.useRef)(!1),p=(0,o.useRef)(!1);return(0,o.createElement)(E.Provider,{scope:t},(0,o.createElement)(P,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:i,toastCount:l,viewport:u,onViewportChange:s,onToastAdd:(0,o.useCallback)((()=>d((e=>e+1))),[]),onToastRemove:(0,o.useCallback)((()=>d((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p},c))};_.propTypes={label(e){if(e.label&&"string"===typeof e.label&&!e.label.trim()){return new Error(`Invalid prop \`label\` supplied to \`${g}\`. Expected non-empty \`string\`.`)}return null}};const R="ToastViewport",x=["F8"],M="toast.viewportPause",D="toast.viewportResume",k=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,hotkey:a=x,label:i="Notifications ({hotkey})",...u}=e,s=T(R,n),d=y(n),f=(0,o.useRef)(null),m=(0,o.useRef)(null),v=(0,o.useRef)(null),w=(0,o.useRef)(null),h=(0,c.s)(t,w,s.onViewportChange),g=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=s.toastCount>0;(0,o.useEffect)((()=>{const e=e=>{var t;a.every((t=>e[t]||e.code===t))&&(null===(t=w.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[a]),(0,o.useEffect)((()=>{const e=f.current,t=w.current;if(b&&e&&t){const n=()=>{if(!s.isClosePausedRef.current){const e=new CustomEvent(M);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){const e=new CustomEvent(D);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[b,s.isClosePausedRef]);const C=(0,o.useCallback)((e=>{let{tabbingDirection:t}=e;const n=d().map((e=>{const n=e.ref.current,r=[n,...q(n)];return"forwards"===t?r:r.reverse()}));return("forwards"===t?n.reverse():n).flat()}),[d]);return(0,o.useEffect)((()=>{const e=w.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,i=t.shiftKey;var r;if(t.target===e&&i)return void(null===(r=m.current)||void 0===r||r.focus());const c=C({tabbingDirection:i?"backwards":"forwards"}),u=c.findIndex((e=>e===n));var o,a;if(j(c.slice(u+1)))t.preventDefault();else i?null===(o=m.current)||void 0===o||o.focus():null===(a=v.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[d,C]),(0,o.createElement)(l.lg,{ref:f,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"}},b&&(0,o.createElement)(S,{ref:m,onFocusFromOutsideViewport:()=>{j(C({tabbingDirection:"forwards"}))}}),(0,o.createElement)(E.Slot,{scope:n},(0,o.createElement)(p.sG.ol,(0,r.A)({tabIndex:-1},u,{ref:h}))),b&&(0,o.createElement)(S,{ref:v,onFocusFromOutsideViewport:()=>{j(C({tabbingDirection:"backwards"}))}}))})),O="ToastFocusProxy",S=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...i}=e,c=T(O,n);return(0,o.createElement)(h,(0,r.A)({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=c.viewport)&&void 0!==t&&t.contains(n))&&a()}}))})),F="Toast",I=(0,o.forwardRef)(((e,t)=>{const{forceMount:n,open:a,defaultOpen:c,onOpenChange:u,...s}=e,[l=!0,d]=(0,v.i)({prop:a,defaultProp:c,onChange:u});return(0,o.createElement)(f.C,{present:n||l},(0,o.createElement)(K,(0,r.A)({open:l},s,{ref:t,onClose:()=>d(!1),onPause:(0,m.c)(e.onPause),onResume:(0,m.c)(e.onResume),onSwipeStart:(0,i.m)(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:(0,i.m)(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:(0,i.m)(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:(0,i.m)(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),d(!1)}))})))})),[L,N]=C(F,{onClose(){}}),K=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,type:u="foreground",duration:s,open:d,onClose:f,onEscapeKeyDown:v,onPause:w,onResume:h,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:C,...A}=e,P=T(F,n),[_,R]=(0,o.useState)(null),x=(0,c.s)(t,(e=>R(e))),k=(0,o.useRef)(null),O=(0,o.useRef)(null),S=s||P.duration,I=(0,o.useRef)(0),N=(0,o.useRef)(S),K=(0,o.useRef)(0),{onToastAdd:U,onToastRemove:B}=P,V=(0,m.c)((()=>{var e;(null===_||void 0===_?void 0:_.contains(document.activeElement))&&(null===(e=P.viewport)||void 0===e||e.focus()),f()})),$=(0,o.useCallback)((e=>{e&&e!==1/0&&(window.clearTimeout(K.current),I.current=(new Date).getTime(),K.current=window.setTimeout(V,e))}),[V]);(0,o.useEffect)((()=>{const e=P.viewport;if(e){const t=()=>{$(N.current),null===h||void 0===h||h()},n=()=>{const e=(new Date).getTime()-I.current;N.current=N.current-e,window.clearTimeout(K.current),null===w||void 0===w||w()};return e.addEventListener(M,n),e.addEventListener(D,t),()=>{e.removeEventListener(M,n),e.removeEventListener(D,t)}}}),[P.viewport,S,w,h,$]),(0,o.useEffect)((()=>{d&&!P.isClosePausedRef.current&&$(S)}),[d,S,P.isClosePausedRef,$]),(0,o.useEffect)((()=>(U(),()=>B())),[U,B]);const z=(0,o.useMemo)((()=>_?W(_):null),[_]);return P.viewport?(0,o.createElement)(o.Fragment,null,z&&(0,o.createElement)(G,{__scopeToast:n,role:"status","aria-live":"foreground"===u?"assertive":"polite","aria-atomic":!0},z),(0,o.createElement)(L,{scope:n,onClose:V},(0,a.createPortal)((0,o.createElement)(E.ItemSlot,{scope:n},(0,o.createElement)(l.bL,{asChild:!0,onEscapeKeyDown:(0,i.m)(v,(()=>{P.isFocusedToastEscapeKeyDownRef.current||V(),P.isFocusedToastEscapeKeyDownRef.current=!1}))},(0,o.createElement)(p.sG.li,(0,r.A)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":P.swipeDirection},A,{ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.m)(e.onKeyDown,(e=>{"Escape"===e.key&&(null===v||void 0===v||v(e.nativeEvent),e.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,V()))})),onPointerDown:(0,i.m)(e.onPointerDown,(e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:(0,i.m)(e.onPointerMove,(e=>{if(!k.current)return;const t=e.clientX-k.current.x,n=e.clientY-k.current.y,r=Boolean(O.current),o=["left","right"].includes(P.swipeDirection),a=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,c=o?0:a(0,n),u="touch"===e.pointerType?10:2,s={x:i,y:c},l={originalEvent:e,delta:s};r?(O.current=s,Y("toast.swipeMove",y,l,{discrete:!1})):Z(s,P.swipeDirection,u)?(O.current=s,Y("toast.swipeStart",g,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(k.current=null)})),onPointerUp:(0,i.m)(e.onPointerUp,(e=>{const t=O.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),O.current=null,k.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Z(t,P.swipeDirection,P.swipeThreshold)?Y("toast.swipeEnd",C,r,{discrete:!0}):Y("toast.swipeCancel",b,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})))),P.viewport))):null}));K.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){return new Error(`Invalid prop \`type\` supplied to \`${F}\`. Expected \`foreground | background\`.`)}return null}};const G=e=>{const{__scopeToast:t,children:n,...r}=e,a=T(F,t),[i,c]=(0,o.useState)(!1),[u,s]=(0,o.useState)(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const t=(0,m.c)(e);(0,w.N)((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>c(!0))),(0,o.useEffect)((()=>{const e=window.setTimeout((()=>s(!0)),1e3);return()=>window.clearTimeout(e)}),[]),u?null:(0,o.createElement)(d.Z,{asChild:!0},(0,o.createElement)(h,r,i&&(0,o.createElement)(o.Fragment,null,a.label," ",n)))},U=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,...a}=e;return(0,o.createElement)(p.sG.div,(0,r.A)({},a,{ref:t}))})),B=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,...a}=e;return(0,o.createElement)(p.sG.div,(0,r.A)({},a,{ref:t}))})),V="ToastAction",$=(0,o.forwardRef)(((e,t)=>{const{altText:n,...a}=e;return n?(0,o.createElement)(X,{altText:n,asChild:!0},(0,o.createElement)(H,(0,r.A)({},a,{ref:t}))):null}));$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${V}\``)}};const z="ToastClose",H=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,...a}=e,c=N(z,n);return(0,o.createElement)(X,{asChild:!0},(0,o.createElement)(p.sG.button,(0,r.A)({type:"button"},a,{ref:t,onClick:(0,i.m)(e.onClick,c.onClose)})))})),X=(0,o.forwardRef)(((e,t)=>{const{__scopeToast:n,altText:a,...i}=e;return(0,o.createElement)(p.sG.div,(0,r.A)({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0},i,{ref:t}))}));function W(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...W(e))}})),t}function Y(e,t,n,r){let{discrete:o}=r;const a=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,p.hO)(a,i):a.dispatchEvent(i)}const Z=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function q(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}const J=_,Q=k,ee=I,te=U,ne=B,re=H},96422:function(e,t,n){n.d(t,{b:function(){return s}});var r=n(58168),o=n(31014),a=n(27781),i=n(58119),c=n(39683);const u=(0,o.forwardRef)(((e,t)=>{const{pressed:n,defaultPressed:u=!1,onPressedChange:s,...l}=e,[d=!1,f]=(0,i.i)({prop:n,onChange:s,defaultProp:u});return(0,o.createElement)(c.sG.button,(0,r.A)({type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0},l,{ref:t,onClick:(0,a.m)(e.onClick,(()=>{e.disabled||f(!d)}))}))})),s=u},88631:function(e,t,n){n.d(t,{c:function(){return o}});var r=n(31014);function o(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),(0,r.useMemo)((()=>function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[])}},58119:function(e,t,n){n.d(t,{i:function(){return a}});var r=n(31014),o=n(88631);function a(e){let{prop:t,defaultProp:n,onChange:a=(()=>{})}=e;const[i,c]=function(e){let{defaultProp:t,onChange:n}=e;const a=(0,r.useState)(t),[i]=a,c=(0,r.useRef)(i),u=(0,o.c)(n);return(0,r.useEffect)((()=>{c.current!==i&&(u(i),c.current=i)}),[i,c,u]),a}({defaultProp:n,onChange:a}),u=void 0!==t,s=u?t:i,l=(0,o.c)(a);return[s,(0,r.useCallback)((e=>{if(u){const n="function"===typeof e?e(t):e;n!==t&&l(n)}else c(e)}),[u,t,c,l])]}},24257:function(e,t,n){n.d(t,{U:function(){return a}});var r=n(31014),o=n(88631);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=(0,o.c)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}},72424:function(e,t,n){n.d(t,{N:function(){return o}});var r=n(31014);const o=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[725],{90725:function(e,t,r){"use strict";e.exports=r(82109)},98874:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=p(r(88249)),a=p(r(93508)),l=p(r(42906)),i=p(r(98337)),u=p(r(39532)),d=p(r(31014)),f=p(r(15662)),s=p(r(71351)),c=r(19886);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){var t=e.style;return d.default.createElement("div",{style:t},"loading...")};y.propTypes={style:f.default.object};var g=function(e){var t=e.style,r=t.height,n=t.width,o="0,0 0,"+r+" "+n+","+.5*r;return d.default.createElement("div",{style:t.base},d.default.createElement("div",{style:t.wrapper},d.default.createElement("svg",{height:r,width:n},d.default.createElement("polygon",{points:o,style:t.arrow}))))};g.propTypes={style:f.default.object};var v=function(e){var t=e.node,r=e.style;return d.default.createElement("div",{style:r.base},d.default.createElement("div",{style:r.title},t.name))};v.propTypes={style:f.default.object,node:f.default.object.isRequired};var h=(0,s.default)(n=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.style,n=t.decorators,o=t.terminal,a=t.onClick,l=t.node;return d.default.createElement("div",{onClick:a,ref:function(t){return e.clickableRef=t},style:r.container},o?null:this.renderToggle(),d.default.createElement(n.Header,{node:l,style:r.header}))}},{key:"renderToggle",value:function(){var e=this,t=this.props.animations;return t?d.default.createElement(c.VelocityComponent,{animation:t.toggle.animation,duration:t.toggle.duration,ref:function(t){return e.velocityRef=t}},this.renderToggleDecorator()):this.renderToggleDecorator()}},{key:"renderToggleDecorator",value:function(){var e=this.props,t=e.style,r=e.decorators;return d.default.createElement(r.Toggle,{style:t.toggle})}}]),t}(d.default.Component))||n;h.propTypes={style:f.default.object.isRequired,decorators:f.default.object.isRequired,terminal:f.default.bool.isRequired,onClick:f.default.func.isRequired,animations:f.default.oneOfType([f.default.object,f.default.bool]).isRequired,node:f.default.object.isRequired},t.default={Loading:y,Toggle:g,Header:v,Container:h}},30073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(53739)),o=y(r(48446)),a=y(r(88249)),l=y(r(93508)),i=y(r(42906)),u=y(r(98337)),d=y(r(39532)),f=y(r(31014)),s=y(r(15662)),c=y(r(83587)),p=y(r(37238));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,i.default)(t,[{key:"shouldComponentUpdate",value:function(e){for(var t=this.props,r=(0,o.default)(e),n=0;n<r.length;n++){var a=r[n];if("animations"!==a)if(!(0,c.default)(t[a],e[a]))return!0}return!(0,p.default)(t.animations,e.animations,{strict:!0})}},{key:"render",value:function(){var e=this.props,t=e.animations,r=e.decorators,o=e.node,a=e.onClick,l=e.style,i=o.active,u=!o.children,d=[l.link,i?l.activeLink:null],s=(0,n.default)({container:d},l);return f.default.createElement(r.Container,{animations:t,decorators:r,node:o,onClick:a,style:s,terminal:u})}}]),t}(f.default.Component);g.propTypes={style:s.default.object.isRequired,decorators:s.default.object.isRequired,animations:s.default.oneOfType([s.default.object,s.default.bool]).isRequired,node:s.default.object.isRequired,onClick:s.default.func},t.default=g},30332:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(7243)),o=g(r(87270)),a=g(r(53739)),l=g(r(88249)),i=g(r(93508)),u=g(r(42906)),d=g(r(98337)),f=g(r(39532)),s=g(r(31014)),c=g(r(15662)),p=r(19886),y=g(r(30073));function g(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){(0,i.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,l.default)(t)).call(this));return e.onClick=e.onClick.bind(e),e}return(0,f.default)(t,e),(0,u.default)(t,[{key:"onClick",value:function(){var e=this.props,t=e.node,r=e.onToggle,n=t.toggled;r&&r(t,!n)}},{key:"animations",value:function(){var e=this.props,t=e.animations,r=e.node;if(!1===t)return!1;var n=(0,a.default)({},t,r.animations);return{toggle:n.toggle(this.props),drawer:n.drawer(this.props)}}},{key:"decorators",value:function(){var e=this.props,t=e.decorators,r=e.node.decorators||{};return(0,a.default)({},t,r)}},{key:"render",value:function(){var e=this,t=this.props.style,r=this.decorators(),n=this.animations();return s.default.createElement("li",{ref:function(t){return e.topLevelRef=t},style:t.base},this.renderHeader(r,n),this.renderDrawer(r,n))}},{key:"renderDrawer",value:function(e,t){var r=this,a=this.props.node.toggled;if(!t&&!a)return null;if(!t&&a)return this.renderChildren(e,t);var l=t.drawer,i=(l.animation,l.duration,(0,o.default)(l,["animation","duration"]));return s.default.createElement(p.VelocityTransitionGroup,(0,n.default)({},i,{ref:function(e){return r.velocityRef=e}}),a?this.renderChildren(e,t):null)}},{key:"renderHeader",value:function(e,t){var r=this.props,n=r.node,o=r.style;return s.default.createElement(y.default,{animations:t,decorators:e,node:(0,a.default)({},n),onClick:this.onClick,style:o})}},{key:"renderChildren",value:function(e){var r=this,o=this.props,a=o.animations,l=o.decorators,i=o.node,u=o.style;if(i.loading)return this.renderLoading(e);var d=i.children;return Array.isArray(d)||(d=d?[d]:[]),s.default.createElement("ul",{style:u.subtree,ref:function(e){return r.subtreeRef=e}},d.map((function(e,o){return s.default.createElement(t,(0,n.default)({},r._eventBubbles(),{animations:a,decorators:l,key:e.id||o,node:e,style:u}))})))}},{key:"renderLoading",value:function(e){var t=this.props.style;return s.default.createElement("ul",{style:t.subtree},s.default.createElement("li",null,s.default.createElement(e.Loading,{style:t.loading})))}},{key:"_eventBubbles",value:function(){return{onToggle:this.props.onToggle}}}]),t}(s.default.Component);v.propTypes={style:c.default.object.isRequired,node:c.default.object.isRequired,decorators:c.default.object.isRequired,animations:c.default.oneOfType([c.default.object,c.default.bool]).isRequired,onToggle:c.default.func},t.default=v},70140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(88249)),o=y(r(93508)),a=y(r(42906)),l=y(r(98337)),i=y(r(39532)),u=y(r(31014)),d=y(r(15662)),f=y(r(30332)),s=y(r(98874)),c=y(r(1821)),p=y(r(77377));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,o.default)(this,t),(0,l.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,i.default)(t,e),(0,a.default)(t,[{key:"render",value:function(){var e=this,t=this.props,r=t.animations,n=t.decorators,o=t.data,a=t.onToggle,l=t.style,i=o;return Array.isArray(i)||(i=[i]),u.default.createElement("ul",{style:l.tree.base,ref:function(t){return e.treeBaseRef=t}},i.map((function(e,t){return u.default.createElement(f.default,{animations:r,decorators:n,key:e.id||t,node:e,onToggle:a,style:l.tree.node})})))}}]),t}(u.default.Component);g.propTypes={style:d.default.object,data:d.default.oneOfType([d.default.object,d.default.array]).isRequired,animations:d.default.oneOfType([d.default.object,d.default.bool]),onToggle:d.default.func,decorators:d.default.object},g.defaultProps={style:c.default,animations:p.default,decorators:s.default},t.default=g},82109:function(e,t,r){"use strict";t.decorators=t.Treebeard=void 0;var n=i(r(70140)),o=i(r(98874)),a=i(r(77377)),l=i(r(1821));function i(e){return e&&e.__esModule?e:{default:e}}t.Treebeard=n.default,t.decorators=o.default,a.default,l.default},77377:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={toggle:function(e){return{animation:{rotateZ:e.node.toggled?90:0},duration:300}},drawer:function(){return{enter:{animation:"slideDown",duration:300},leave:{animation:"slideUp",duration:300}}}}},1821:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tree:{base:{listStyle:"none",backgroundColor:"#21252B",margin:0,padding:0,color:"#9DA5AB",fontFamily:"lucida grande ,tahoma,verdana,arial,sans-serif",fontSize:"14px"},node:{base:{position:"relative"},link:{cursor:"pointer",position:"relative",padding:"0px 5px",display:"block"},activeLink:{background:"#31363F"},toggle:{base:{position:"relative",display:"inline-block",verticalAlign:"top",marginLeft:"-5px",height:"24px",width:"24px"},wrapper:{position:"absolute",top:"50%",left:"50%",margin:"-7px 0 0 -7px",height:"14px"},height:14,width:14,arrow:{fill:"#9DA5AB",strokeWidth:0}},header:{base:{display:"inline-block",verticalAlign:"top",color:"#9DA5AB"},connector:{width:"2px",height:"12px",borderLeft:"solid 2px black",borderBottom:"solid 2px black",position:"absolute",top:"0px",left:"-21px"},title:{lineHeight:"24px",verticalAlign:"middle"}},subtree:{listStyle:"none",paddingLeft:"19px"},loading:{color:"#E2C089"}}}}},37238:function(e,t,r){var n=Array.prototype.slice,o=r(75440),a=r(8627),l=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var d,f;if(i(e)||i(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=n.call(e),t=n.call(t),l(e,t,r));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(d=0;d<e.length;d++)if(e[d]!==t[d])return!1;return!0}try{var s=o(e),c=o(t)}catch(p){return!1}if(s.length!=c.length)return!1;for(s.sort(),c.sort(),d=s.length-1;d>=0;d--)if(s[d]!=c[d])return!1;for(d=s.length-1;d>=0;d--)if(f=s[d],!l(e[f],t[f],r))return!1;return typeof e===typeof t}(e,t,r))};function i(e){return null===e||void 0===e}function u(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}},8627:function(e,t){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=r?n:o).supported=n,t.unsupported=o},75440:function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}(e.exports="function"===typeof Object.keys?Object.keys:r).shim=r},83587:function(e,t,r){"use strict";var n=r(71704);e.exports=function(e,t,r,o){var a=r?r.call(o,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var l=n(e),i=n(t),u=l.length;if(u!==i.length)return!1;o=o||null;for(var d=Object.prototype.hasOwnProperty.bind(t),f=0;f<u;f++){var s=l[f];if(!d(s))return!1;var c=e[s],p=t[s],y=r?r.call(o,c,p,s):void 0;if(!1===y||void 0===y&&c!==p)return!1}return!0}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7266],{92173:function(t){"use strict";var e,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!==t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}p(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"===typeof t.on&&p(t,"error",e,r)}(t,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function l(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,s,f;if(l(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"===typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=h(t))>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,f=a,console&&console.warn&&console.warn(f)}return t}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=a.bind(n);return i.listener=r,n.wrapFn=i,i}function u(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):v(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function p(t,e,r,n){if("function"===typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return h(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var h=o[t];if(void 0===h)return!1;if("function"===typeof h)n(h,this,e);else{var f=h.length,a=v(h,f);for(r=0;r<f;++r)n(a[r],this,e)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){return l(e),this.on(t,c(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,c(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(l(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return u(this,t,!0)},o.prototype.rawListeners=function(t){return u(this,t,!1)},o.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},97142:function(t){"use strict";t.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},1315:function(t){"use strict";t.exports=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(i=n;0!==i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!==i--;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}},83491:function(t,e,r){"use strict";var n=r(24968);t.exports=function(t){var e=typeof t;if("string"===e){var r=t;if(0===(t=+t)&&n(r))return!1}else if("number"!==e)return!1;return t-t<1}},87646:function(t,e,r){"use strict";t.exports=function(t,e,r){switch(arguments.length){case 0:return new s([0],[0],0);case 1:return"number"===typeof t?new s(n=h(t),n,0):new s(t,h(t.length),0);case 2:var n;if("number"===typeof e)return new s(t,n=h(t.length),+e);r=0;case 3:if(t.length!==e.length)throw new Error("state and velocity lengths must match");return new s(t,e,r)}};var n=r(37234),i=r(37656);function o(t,e,r){return Math.min(e,Math.max(t,r))}function s(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n<this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var l=s.prototype;function h(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=0;return e}l.flush=function(t){var e=i.gt(this._time,t)-1;e<=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},l.curve=function(t){var e=this._time,r=e.length,s=i.le(e,t),l=this._scratch[0],h=this._state,f=this._velocity,a=this.dimension,c=this.bounds;if(s<0)for(var u=a-1,g=0;g<a;++g,--u)l[g]=h[u];else if(s>=r-1){u=h.length-1;var v=t-e[r-1];for(g=0;g<a;++g,--u)l[g]=h[u]+v*f[u]}else{u=a*(s+1)-1;var p=e[s],_=e[s+1]-p||1,y=this._scratch[1],d=this._scratch[2],m=this._scratch[3],w=this._scratch[4],b=!0;for(g=0;g<a;++g,--u)y[g]=h[u],m[g]=f[u]*_,d[g]=h[u+a],w[g]=f[u+a]*_,b=b&&y[g]===d[g]&&m[g]===w[g]&&0===m[g];if(b)for(g=0;g<a;++g)l[g]=y[g];else n(y,m,d,w,(t-p)/_,l)}var x=c[0],k=c[1];for(g=0;g<a;++g)l[g]=o(x[g],k[g],l[g]);return l},l.dcurve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,h=this._velocity,f=this.dimension;if(o>=r-1)for(var a=l.length-1,c=(e[r-1],0);c<f;++c,--a)s[c]=h[a];else{a=f*(o+1)-1;var u=e[o],g=e[o+1]-u||1,v=this._scratch[1],p=this._scratch[2],_=this._scratch[3],y=this._scratch[4],d=!0;for(c=0;c<f;++c,--a)v[c]=l[a],_[c]=h[a]*g,p[c]=l[a+f],y[c]=h[a+f]*g,d=d&&v[c]===p[c]&&_[c]===y[c]&&0===_[c];if(d)for(c=0;c<f;++c)s[c]=0;else{n.derivative(v,_,p,y,(t-u)/g,s);for(c=0;c<f;++c)s[c]/=g}}return s},l.lastT=function(){var t=this._time;return t[t.length-1]},l.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r>=0;--r)if(t[--e])return!1;return!0},l.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,s=n.length-this.dimension,l=this.bounds,h=l[0],f=l[1];this._time.push(e,t);for(var a=0;a<2;++a)for(var c=0;c<r;++c)n.push(n[s++]),i.push(0);this._time.push(t);for(c=r;c>0;--c)n.push(o(h[c-1],f[c-1],arguments[c])),i.push(0)}},l.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t<e||arguments.length!==r+1)){var n=this._state,i=this._velocity,s=n.length-this.dimension,l=t-e,h=this.bounds,f=h[0],a=h[1],c=l>1e-6?1/l:0;this._time.push(t);for(var u=r;u>0;--u){var g=o(f[u-1],a[u-1],arguments[u]);n.push(g),i.push((g-n[s++])*c)}}},l.set=function(t){var e=this.dimension;if(!(t<this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,s=i[0],l=i[1];this._time.push(t);for(var h=e;h>0;--h)r.push(o(s[h-1],l[h-1],arguments[h])),n.push(0)}},l.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t<=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,s=n.length-this.dimension,l=this.bounds,h=l[0],f=l[1],a=t-e,c=a>1e-6?1/a:0;this._time.push(t);for(var u=r;u>0;--u){var g=arguments[u];n.push(o(h[u-1],f[u-1],n[s++]+g)),i.push(g*c)}}},l.idle=function(t){var e=this.lastT();if(!(t<e)){var r=this.dimension,n=this._state,i=this._velocity,s=n.length-r,l=this.bounds,h=l[0],f=l[1],a=t-e;this._time.push(t);for(var c=r-1;c>=0;--c)n.push(o(h[c],f[c],n[s]+a*i[s])),i.push(0),s+=1}}},37656:function(t){"use strict";function e(t,e,r,n,i,o){var s=["function ",t,"(a,l,h,",n.join(","),"){",o?"":"var i=",r?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",i?".get(m)":"[m]"];return o?e.indexOf("c")<0?s.push(";if(x===y){return m}else if(x<=y){"):s.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):s.push(";if(",e,"){i=m;"),r?s.push("l=m+1}else{h=m-1}"):s.push("h=m-1}else{l=m+1}"),s.push("}"),o?s.push("return -1};"):s.push("return i};"),s.join("")}function r(t,r,n,i){return new Function([e("A","x"+t+"y",r,["y"],!1,i),e("B","x"+t+"y",r,["y"],!0,i),e("P","c(x,y)"+t+"0",r,["y","c"],!1,i),e("Q","c(x,y)"+t+"0",r,["y","c"],!0,i),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}t.exports={ge:r(">=",!1,"GE"),gt:r(">",!1,"GT"),lt:r("<",!0,"LT"),le:r("<=",!0,"LE"),eq:r("-",!0,"EQ",!0)}},88927:function(t,e,r){var n=r(76081);t.exports=function(t,e,r){if(!t)throw new TypeError("must specify data as first parameter");if(r=0|+(r||0),Array.isArray(t)&&t[0]&&"number"===typeof t[0][0]){var i,o,s,l,h=t[0].length,f=t.length*h;e&&"string"!==typeof e||(e=new(n(e||"float32"))(f+r));var a=e.length-r;if(f!==a)throw new Error("source length "+f+" ("+h+"x"+t.length+") does not match destination length "+a);for(i=0,s=r;i<t.length;i++)for(o=0;o<h;o++)e[s++]=null===t[i][o]?NaN:t[i][o]}else if(e&&"string"!==typeof e)e.set(t,r);else{var c=n(e||"float32");if(Array.isArray(t)||"array"===e)for(i=0,s=r,l=(e=new c(t.length+r)).length;s<l;s++,i++)e[s]=null===t[i]?NaN:t[i];else 0===r?e=new c(t):(e=new c(t.length+r)).set(t,r)}return e}},78352:function(t,e,r){"use strict";var n=r(6293),i=[32,126];t.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement("canvas"),o=t.font,s="number"===typeof t.step?[t.step,t.step]:t.step||[32,32],l=t.chars||i;o&&"string"!==typeof o&&(o=n(o));if(Array.isArray(l)){if(2===l.length&&"number"===typeof l[0]&&"number"===typeof l[1]){for(var h=[],f=l[0],a=0;f<=l[1];f++)h[a++]=String.fromCharCode(f);l=h}}else l=String(l).split("");e=e.slice(),r.width=e[0],r.height=e[1];var c=r.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,r.width,r.height),c.font=o,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";var u=s[0]/2,g=s[1]/2;for(f=0;f<l.length;f++)c.fillText(l[f],u,g),(u+=s[0])>e[0]-s[0]/2&&(u=s[0]/2,g+=s[1]);return r}},62903:function(t){"use strict";function e(t,o){o||(o={}),("string"===typeof t||Array.isArray(t))&&(o.family=t);var s=Array.isArray(o.family)?o.family.join(", "):o.family;if(!s)throw Error("`family` must be defined");var l=o.size||o.fontSize||o.em||48,h=o.weight||o.fontWeight||"",f=(t=[o.style||o.fontStyle||"",h,l].join(" ")+"px "+s,o.origin||"top");if(e.cache[s]&&l<=e.cache[s].em)return r(e.cache[s],f);var a=o.canvas||e.canvas,c=a.getContext("2d"),u={upper:void 0!==o.upper?o.upper:"H",lower:void 0!==o.lower?o.lower:"x",descent:void 0!==o.descent?o.descent:"p",ascent:void 0!==o.ascent?o.ascent:"h",tittle:void 0!==o.tittle?o.tittle:"i",overshoot:void 0!==o.overshoot?o.overshoot:"O"},g=Math.ceil(1.5*l);a.height=g,a.width=.5*g,c.font=t;var v="H",p={top:0};c.clearRect(0,0,g,g),c.textBaseline="top",c.fillStyle="black",c.fillText(v,0,0);var _=n(c.getImageData(0,0,g,g));c.clearRect(0,0,g,g),c.textBaseline="bottom",c.fillText(v,0,g);var y=n(c.getImageData(0,0,g,g));p.lineHeight=p.bottom=g-y+_,c.clearRect(0,0,g,g),c.textBaseline="alphabetic",c.fillText(v,0,g);var d=g-n(c.getImageData(0,0,g,g))-1+_;p.baseline=p.alphabetic=d,c.clearRect(0,0,g,g),c.textBaseline="middle",c.fillText(v,0,.5*g);var m=n(c.getImageData(0,0,g,g));p.median=p.middle=g-m-1+_-.5*g,c.clearRect(0,0,g,g),c.textBaseline="hanging",c.fillText(v,0,.5*g);var w=n(c.getImageData(0,0,g,g));p.hanging=g-w-1+_-.5*g,c.clearRect(0,0,g,g),c.textBaseline="ideographic",c.fillText(v,0,g);var b=n(c.getImageData(0,0,g,g));if(p.ideographic=g-b-1+_,u.upper&&(c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.upper,0,0),p.upper=n(c.getImageData(0,0,g,g)),p.capHeight=p.baseline-p.upper),u.lower&&(c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.lower,0,0),p.lower=n(c.getImageData(0,0,g,g)),p.xHeight=p.baseline-p.lower),u.tittle&&(c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.tittle,0,0),p.tittle=n(c.getImageData(0,0,g,g))),u.ascent&&(c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.ascent,0,0),p.ascent=n(c.getImageData(0,0,g,g))),u.descent&&(c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.descent,0,0),p.descent=i(c.getImageData(0,0,g,g))),u.overshoot){c.clearRect(0,0,g,g),c.textBaseline="top",c.fillText(u.overshoot,0,0);var x=i(c.getImageData(0,0,g,g));p.overshoot=x-d}for(var k in p)p[k]/=l;return p.em=l,e.cache[s]=p,r(p,f)}function r(t,e){var r={};for(var n in"string"===typeof e&&(e=t[e]),t)"em"!==n&&(r[n]=t[n]-e);return r}function n(t){for(var e=t.height,r=t.data,n=3;n<r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function i(t){for(var e=t.height,r=t.data,n=r.length-1;n>0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}t.exports=e,e.canvas=document.createElement("canvas"),e.cache={}},81905:function(t){"use strict";t.exports=function(t){return new o(t||g,null)};function e(t,e,r,n,i,o){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=o}function r(t){return new e(t._color,t.key,t.value,t.left,t.right,t._count)}function n(t,r){return new e(t,r.key,r.value,r.left,r.right,r._count)}function i(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function o(t,e){this._compare=t,this.root=e}var s=o.prototype;function l(t,e){var r;if(e.left&&(r=l(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?l(t,e.right):void 0)}function h(t,e,r,n){if(e(t,n.key)<=0){var i;if(n.left)if(i=h(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return h(t,e,r,n.right)}function f(t,e,r,n,i){var o,s=r(t,i.key),l=r(e,i.key);if(s<=0){if(i.left&&(o=f(t,e,r,n,i.left)))return o;if(l>0&&(o=n(i.key,i.value)))return o}if(l>0&&i.right)return f(t,e,r,n,i.right)}function a(t,e){this.tree=t,this._stack=e}Object.defineProperty(s,"keys",{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(s,"values",{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(s,"length",{get:function(){return this.root?this.root._count:0}}),s.insert=function(t,r){for(var s=this._compare,l=this.root,h=[],f=[];l;){var a=s(t,l.key);h.push(l),f.push(a),l=a<=0?l.left:l.right}h.push(new e(0,t,r,null,null,1));for(var c=h.length-2;c>=0;--c){l=h[c];f[c]<=0?h[c]=new e(l._color,l.key,l.value,h[c+1],l.right,l._count+1):h[c]=new e(l._color,l.key,l.value,l.left,h[c+1],l._count+1)}for(c=h.length-1;c>1;--c){var u=h[c-1];l=h[c];if(1===u._color||1===l._color)break;var g=h[c-2];if(g.left===u)if(u.left===l){if(!(v=g.right)||0!==v._color){if(g._color=0,g.left=u.right,u._color=1,u.right=g,h[c-2]=u,h[c-1]=l,i(g),i(u),c>=3)(p=h[c-3]).left===g?p.left=u:p.right=u;break}u._color=1,g.right=n(1,v),g._color=0,c-=1}else{if(!(v=g.right)||0!==v._color){if(u.right=l.left,g._color=0,g.left=l.right,l._color=1,l.left=u,l.right=g,h[c-2]=l,h[c-1]=u,i(g),i(u),i(l),c>=3)(p=h[c-3]).left===g?p.left=l:p.right=l;break}u._color=1,g.right=n(1,v),g._color=0,c-=1}else if(u.right===l){if(!(v=g.left)||0!==v._color){if(g._color=0,g.right=u.left,u._color=1,u.left=g,h[c-2]=u,h[c-1]=l,i(g),i(u),c>=3)(p=h[c-3]).right===g?p.right=u:p.left=u;break}u._color=1,g.left=n(1,v),g._color=0,c-=1}else{var v;if(!(v=g.left)||0!==v._color){var p;if(u.left=l.right,g._color=0,g.right=l.left,l._color=1,l.right=u,l.left=g,h[c-2]=l,h[c-1]=u,i(g),i(u),i(l),c>=3)(p=h[c-3]).right===g?p.right=l:p.left=l;break}u._color=1,g.left=n(1,v),g._color=0,c-=1}}return h[0]._color=1,new o(s,h[0])},s.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return l(t,this.root);case 2:return h(e,this._compare,t,this.root);case 3:if(this._compare(e,r)>=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(s,"begin",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new a(this,t)}}),Object.defineProperty(s,"end",{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new a(this,t)}}),s.at=function(t){if(t<0)return new a(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t<e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new a(this,r);if(t-=1,!e.right)break;if(t>=e.right._count)break;e=e.right}return new a(this,[])},s.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o<=0&&(i=n.length),r=o<=0?r.left:r.right}return n.length=i,new a(this,n)},s.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o<0&&(i=n.length),r=o<0?r.left:r.right}return n.length=i,new a(this,n)},s.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o>0&&(i=n.length),r=o<=0?r.left:r.right}return n.length=i,new a(this,n)},s.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var o=e(t,r.key);n.push(r),o>=0&&(i=n.length),r=o<0?r.left:r.right}return n.length=i,new a(this,n)},s.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new a(this,n);r=i<=0?r.left:r.right}return new a(this,[])},s.remove=function(t){var e=this.find(t);return e?e.remove():this},s.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var c=a.prototype;function u(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t<e?-1:t>e?1:0}Object.defineProperty(c,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(c,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),c.clone=function(){return new a(this.tree,this._stack.slice())},c.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var s=new Array(t.length),l=t[t.length-1];s[s.length-1]=new e(l._color,l.key,l.value,l.left,l.right,l._count);for(var h=t.length-2;h>=0;--h){(l=t[h]).left===t[h+1]?s[h]=new e(l._color,l.key,l.value,s[h+1],l.right,l._count):s[h]=new e(l._color,l.key,l.value,l.left,s[h+1],l._count)}if((l=s[s.length-1]).left&&l.right){var f=s.length;for(l=l.left;l.right;)s.push(l),l=l.right;var a=s[f-1];s.push(new e(l._color,a.key,a.value,l.left,l.right,l._count)),s[f-1].key=l.key,s[f-1].value=l.value;for(h=s.length-2;h>=f;--h)l=s[h],s[h]=new e(l._color,l.key,l.value,l.left,s[h+1],l._count);s[f-1].left=s[f]}if(0===(l=s[s.length-1])._color){var c=s[s.length-2];c.left===l?c.left=null:c.right===l&&(c.right=null),s.pop();for(h=0;h<s.length;++h)s[h]._count--;return new o(this.tree._compare,s[0])}if(l.left||l.right){l.left?u(l,l.left):l.right&&u(l,l.right),l._color=1;for(h=0;h<s.length-1;++h)s[h]._count--;return new o(this.tree._compare,s[0])}if(1===s.length)return new o(this.tree._compare,null);for(h=0;h<s.length;++h)s[h]._count--;var g=s[s.length-2];return function(t){for(var e,o,s,l,h=t.length-1;h>=0;--h){if(e=t[h],0===h)return void(e._color=1);if((o=t[h-1]).left===e){if((s=o.right).right&&0===s.right._color)return l=(s=o.right=r(s)).right=r(s.right),o.right=s.left,s.left=o,s.right=l,s._color=o._color,e._color=1,o._color=1,l._color=1,i(o),i(s),h>1&&((f=t[h-2]).left===o?f.left=s:f.right=s),void(t[h-1]=s);if(s.left&&0===s.left._color)return l=(s=o.right=r(s)).left=r(s.left),o.right=l.left,s.left=l.right,l.left=o,l.right=s,l._color=o._color,o._color=1,s._color=1,e._color=1,i(o),i(s),i(l),h>1&&((f=t[h-2]).left===o?f.left=l:f.right=l),void(t[h-1]=l);if(1===s._color){if(0===o._color)return o._color=1,void(o.right=n(0,s));o.right=n(0,s);continue}s=r(s),o.right=s.left,s.left=o,s._color=o._color,o._color=0,i(o),i(s),h>1&&((f=t[h-2]).left===o?f.left=s:f.right=s),t[h-1]=s,t[h]=o,h+1<t.length?t[h+1]=e:t.push(e),h+=2}else{if((s=o.left).left&&0===s.left._color)return l=(s=o.left=r(s)).left=r(s.left),o.left=s.right,s.right=o,s.left=l,s._color=o._color,e._color=1,o._color=1,l._color=1,i(o),i(s),h>1&&((f=t[h-2]).right===o?f.right=s:f.left=s),void(t[h-1]=s);if(s.right&&0===s.right._color)return l=(s=o.left=r(s)).right=r(s.right),o.left=l.right,s.right=l.left,l.right=o,l.left=s,l._color=o._color,o._color=1,s._color=1,e._color=1,i(o),i(s),i(l),h>1&&((f=t[h-2]).right===o?f.right=l:f.left=l),void(t[h-1]=l);if(1===s._color){if(0===o._color)return o._color=1,void(o.left=n(0,s));o.left=n(0,s);continue}var f;s=r(s),o.left=s.right,s.right=o,s._color=o._color,o._color=0,i(o),i(s),h>1&&((f=t[h-2]).right===o?f.right=s:f.left=s),t[h-1]=s,t[h]=o,h+1<t.length?t[h+1]=e:t.push(e),h+=2}}}(s),g.left===l?g.left=null:g.right=null,new o(this.tree._compare,s[0])},Object.defineProperty(c,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(c,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(c,"index",{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&&(t=e[e.length-1].left._count);for(var n=e.length-2;n>=0;--n)e[n+1]===e[n].right&&(++t,e[n].left&&(t+=e[n].left._count));return t},enumerable:!0}),c.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length>0&&t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(c,"hasNext",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].left===t[e])return!0;return!1}}),c.update=function(t){var r=this._stack;if(0===r.length)throw new Error("Can't update empty node!");var n=new Array(r.length),i=r[r.length-1];n[n.length-1]=new e(i._color,i.key,t,i.left,i.right,i._count);for(var s=r.length-2;s>=0;--s)(i=r[s]).left===r[s+1]?n[s]=new e(i._color,i.key,i.value,n[s+1],i.right,i._count):n[s]=new e(i._color,i.key,i.value,i.left,n[s+1],i._count);return new o(this.tree._compare,n[0])},c.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length>0&&t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(c,"hasPrev",{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e>0;--e)if(t[e-1].right===t[e])return!0;return!1}})}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 7270.0a1e84fc.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7270],{44734:function(t,e,o){o.d(e,{h:function(){return a}});var i=o(6788),n=o(72925),r=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),s=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return r(e,t),e.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.isOn=function(){return this.useAnimationFrame},e.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},e.prototype.createTask=function(t,e,o){this.verifyAnimationFrameOn(o);var i={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],i),this.schedule()},e.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},e.prototype.addTaskToList=function(t,e){t.list.push(e),t.sorted=!1},e.prototype.sortTaskList=function(t){if(!t.sorted){var e=this.scrollGoingDown?1:-1;t.list.sort((function(t,o){return t.index!==o.index?e*(o.index-t.index):o.createOrder-t.createOrder})),t.sorted=!0}},e.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},e.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var e=this.createTasksP1,o=e.list,i=this.createTasksP2,n=i.list,r=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,p=t<=0,u=this.ctrlsService.getGridBodyCtrl();p||a<t;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var l=void 0;if(o.length)this.sortTaskList(e),l=o.pop().task;else if(n.length)this.sortTaskList(i),l=n.pop().task;else{if(!r.length){this.cancelledTasks.clear();break}l=r.pop()}this.cancelledTasks.has(l)||l()}a=(new Date).getTime()-s}o.length||n.length||r.length?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),e=this.gridOptionsWrapper.getDocument().defaultView||window;e.requestAnimationFrame?e.requestAnimationFrame(t):e.webkitRequestAnimationFrame?e.webkitRequestAnimationFrame(t):e.setTimeout(t,0)},e.prototype.isQueueEmpty=function(){return!this.ticking},e.prototype.debounce=function(t){var e=this,o=!1;return function(){e.isOn()?o||(o=!0,e.addDestroyTask((function(){o=!1,t()}))):e.getFrameworkOverrides().setTimeout(t,0)}},s([(0,i.ds)("ctrlsService")],e.prototype,"ctrlsService",void 0),s([i.o7],e.prototype,"init",null),e=s([(0,i.dR)("animationFrameService")],e)}(n.X)},9321:function(t,e,o){o.d(e,{k:function(){return u}});var i=o(6788),n=o(72925),r=o(19837),s=o(79045),a=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),p=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return a(e,t),e.prototype.observeResize=function(t,e){var o=this,i=this.gridOptionsWrapper.getDocument().defaultView||window,n=(0,r.debounce)(e,50),a=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!i.ResizeObserver&&!a?function(){var e=new i.ResizeObserver(n);return e.observe(t),function(){return e.disconnect()}}():function(){var i=(0,s.offsetWidth)(t),n=(0,s.offsetHeight)(t),r=!0,a=function(){if(r){var p=(0,s.offsetWidth)(t),u=(0,s.offsetHeight)(t);(p!==i||u!==n)&&(i=p,n=u,e()),o.doNextPolyfillTurn(a)}};return a(),function(){return r=!1}}()},e.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},e.prototype.schedulePolyfill=function(){var t=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var e=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],e.forEach((function(t){return t()}))}),50)}},e=p([(0,i.dR)("resizeObserverService")],e)}(n.X)},5463:function(t,e,o){o.d(e,{C:function(){return n}});var i=o(46599);function n(t){return new i.oY((function(e){var o=new XMLHttpRequest;o.open("GET",t.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&e(JSON.parse(o.responseText))}}))}},94189:function(t,e,o){var i;o.d(e,{z:function(){return i}}),function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(i||(i={}))},42614:function(t,e,o){o.d(e,{s:function(){return r}});var i=o(19837),n=o(25644),r=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.modulesMap[e.moduleName]=e,void 0===t.moduleBased?t.moduleBased=o:t.moduleBased!==o&&(0,i.doOnce)((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},t.registerModules=function(e,o){void 0===o&&(o=!0),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(e,o){if(this.isRegistered(e))return!0;var n,r=o+e;return n=t.moduleBased?"AG Grid: unable to use "+o+" as module "+e+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",(0,i.doOnce)((function(){console.warn(n)}),r),!1},t.isRegistered=function(e){return!!t.modulesMap[e]},t.getRegisteredModules=function(){return(0,n.values)(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}()},41088:function(t,e,o){o.d(e,{$:function(){return p}});var i=o(72925),n=o(88114),r=o(6788),s=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),a=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,n.s.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,n.s.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},e.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},e.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},e.prototype.onBodyHeightChanged=function(){this.checkPageSize()},e.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsWrapper.getRowHeightAsNumber(),e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){var o=Math.floor(e/t);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},a([(0,r.ds)("ctrlsService")],e.prototype,"ctrlsService",void 0),a([r.o7],e.prototype,"postConstruct",null),e=a([(0,r.dR)("paginationAutoPageSizeService")],e)}(i.X)},68617:function(t,e,o){o.d(e,{U:function(){return g}});var i=o(19158),n=o(6788),r=o(52442),s=o(88114),a=o(72968),p=o(200),u=o(68316),l=o(40691),d=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),c=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},g=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return d(e,t),e.prototype.postConstruct=function(){var t=this,e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",(0,a.createIconNoSpan)(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",(0,a.createIconNoSpan)(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",(0,a.createIconNoSpan)(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",(0,a.createIconNoSpan)(e?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,s.s.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(e){var o=e.el,i=e.fn;t.addManagedListener(o,"click",i),t.addManagedListener(o,"keydown",(function(t){t.key!==l.D.ENTER&&t.key!==l.D.SPACE||(t.preventDefault(),i())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},e.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(e)return e({value:t});var o=this.gridOptionsWrapper.getLocaleTextFunc(),i=o("thousandSeparator",","),n=o("decimalSeparator",".");return(0,p.formatNumberCommas)(t,i,n)},e.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),i=t("of","of"),n=t("firstPage","First Page"),r=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),a=t("lastPage","Last Page"),p=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+p+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+p+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+p+'-to">'+o+'</span>\n <span id="ag-'+p+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+p+'-of">'+i+'</span>\n <span id="ag-'+p+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+n+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+p+'-start-page">'+e+'</span>\n <span id="ag-'+p+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+p+'-of-page">'+i+'</span>\n <span id="ag-'+p+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var i=this.isZeroPagesToDisplay(),n=e&&t===o-1;this.nextButtonDisabled=n||i,this.lastButtonDisabled=!e||i||t===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},e.prototype.toggleButtonDisabled=function(t,e){(0,u.setAriaDisabled)(t,e),t.classList.toggle("ag-disabled",e),e?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=e=0:(e=(t=i*o+1)+i-1,n&&e>r&&(e=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?this.paginationProxy.getMasterRowCount():null;if(1===o){var i=this.paginationProxy.getRow(0);if(i&&i.group&&!(i.groupData||i.aggData))return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},e.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},c([(0,n.ds)("paginationProxy")],e.prototype,"paginationProxy",void 0),c([(0,n.ds)("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),c([(0,r.P)("btFirst")],e.prototype,"btFirst",void 0),c([(0,r.P)("btPrevious")],e.prototype,"btPrevious",void 0),c([(0,r.P)("btNext")],e.prototype,"btNext",void 0),c([(0,r.P)("btLast")],e.prototype,"btLast",void 0),c([(0,r.P)("lbRecordCount")],e.prototype,"lbRecordCount",void 0),c([(0,r.P)("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),c([(0,r.P)("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),c([(0,r.P)("lbCurrent")],e.prototype,"lbCurrent",void 0),c([(0,r.P)("lbTotal")],e.prototype,"lbTotal",void 0),c([n.o7],e.prototype,"postConstruct",null),e}(i.u)},66252:function(t,e,o){o.d(e,{T:function(){return l}});var i=o(72925),n=o(88114),r=o(6788),s=o(25644),a=o(200),p=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),u=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return p(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,n.s.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,e,o,i){var n=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},e.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:n.s.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var t={type:n.s.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t){this.currentPage=t;var e={type:n.s.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(e)}},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return(0,s.missing)(this.topRowBounds)||(0,s.missing)(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},e.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,e){return this.rowModel.getNodesInRangeForSelection(t,e)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},e.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},e.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset((0,s.exists)(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:n.s.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!(0,a.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var i=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=i-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!(0,a.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},u([(0,r.ds)("rowModel")],e.prototype,"rowModel",void 0),u([(0,r.ds)("columnApi")],e.prototype,"columnApi",void 0),u([(0,r.ds)("gridApi")],e.prototype,"gridApi",void 0),u([r.o7],e.prototype,"postConstruct",null),e=u([(0,r.dR)("paginationProxy")],e)}(i.X)},52700:function(t,e,o){o.d(e,{a:function(){return c}});var i=o(79659),n=o(6788),r=o(88114),s=o(16892),a=o(72925),p=o(25644),u=o(24436),l=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},t(e,o)};return function(e,o){function i(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),d=function(t,e,o,i){var n,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,o,s):n(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(t){var e=t===s.Y.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return(0,p.missingOrEmpty)(e)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o=e===s.Y.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if((0,p.missingOrEmpty)(o))return 0;for(var i=0;i<o.length;i++){var n=o[i];if(n.rowTop+n.rowHeight-1>=t)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:r.s.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:r.s.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,n=[];if(t){var r=0;t.forEach((function(t,a){var p=new i.T(o.beans);p.data=t;var u=e?i.T.ID_PREFIX_TOP_PINNED:i.T.ID_PREFIX_BOTTOM_PINNED;p.id=u+a,p.rowPinned=e?s.Y.PINNED_TOP:s.Y.PINNED_BOTTOM,p.setRowTop(r),p.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(p).height),p.setRowIndex(a),r+=p.rowHeight,n.push(p)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){(0,p.missingOrEmpty)(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){(0,p.missingOrEmpty)(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=(0,u.last)(t);return e.rowTop+e.rowHeight},d([(0,n.ds)("columnApi")],e.prototype,"columnApi",void 0),d([(0,n.ds)("gridApi")],e.prototype,"gridApi",void 0),d([(0,n.ds)("beans")],e.prototype,"beans",void 0),d([n.o7],e.prototype,"init",null),e=d([(0,n.dR)("pinnedRowModel")],e)}(a.X)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7367],{10405:function(e,t,s){s.d(t,{i:function(){return h}});var r=s(89555),a=(s(31014),s(92509)),i=s(88464),n=s(27705),l=s(68254),o=s(50111);var d={name:"1k6747e",styles:"font-size:20px!important"};function h(e){const{title:t,forceOpen:s,showServerError:h,defaultCollapsed:u,onChange:c}=e,m=s&&{activeKey:["1"]},f=u?null:["1"],{formatMessage:g}=(0,i.A)(),{theme:x}=(0,l.u)();return(0,o.Y)(a.A,{className:"collapsible-section",css:p.wrapper,bordered:!1,...m,defaultActiveKey:f,expandIcon:e=>{let{isActive:s}=e;return(0,o.Y)(l.b,{"aria-label":g(s?{id:"iaomsd",defaultMessage:"collapse {title}"}:{id:"dTLq6E",defaultMessage:"expand {title}"},{title:t}),css:d,rotate:s?90:0})},onChange:c,children:(0,o.Y)(a.A.Panel,{className:"collapsible-panel",header:t,css:(0,r.AH)({"&, .ant-collapse-header, .ant-collapse-content":(0,l.i)({color:x.colors.textPrimary})},""),children:(0,o.Y)(n.g,{showServerError:h,children:e.children})},"1")})}const p={wrapper:{".collapsible-panel":{position:"relative"},'& > .collapsible-panel > [role="button"]:focus':{outline:"revert"}}};h.defaultProps={forceOpen:!1}},80993:function(e,t,s){s.r(t),s.d(t,{default:function(){return O}});var r=s(31014),a=s(51079),i=s.n(a),n=s(10811),l=s(44240),o=s(3769),d=s(88443),h=s(64912),p=s(82589),u=s(9101),c=(s(61602),s(51882)),m=s(7871),f=s(87234),g=s(58481),x=s(48624),b=s(85017),y=s(24406),Y=s(76010),E=s(55406),R=s(77481),M=s(10405),v=s(91144),w=s(50111);const{TabPane:N}=p.tUM;var D={name:"m4bh15",styles:"max-height:500px"},S={name:"1o6wc9k",styles:"padding-left:6px"},T={name:"1f6izsi",styles:"max-height:300px"},A={name:"m4bh15",styles:"max-height:500px"};class I extends r.Component{constructor(e){super(e),this.compareRunViewRef=void 0,this.runDetailsTableRef=void 0,this.state={tableWidth:null,onlyShowParamDiff:!1,onlyShowTagDiff:!1,onlyShowMetricDiff:!1},this.onResizeHandler=this.onResizeHandler.bind(this),this.onCompareRunTableScrollHandler=this.onCompareRunTableScrollHandler.bind(this),this.runDetailsTableRef=r.createRef(),this.compareRunViewRef=r.createRef()}onResizeHandler(e){const t=this.runDetailsTableRef.current;if(null!==t){const e=t.clientWidth;this.setState({tableWidth:e})}}onCompareRunTableScrollHandler(e){const t=this.compareRunViewRef.current.querySelectorAll(".compare-run-table");t.forEach(((s,r)=>{const a=t[r];a!==e.target&&(a.scrollLeft=e.target.scrollLeft)}))}componentDidMount(){const e=this.props.intl.formatMessage({id:"ufamzi",defaultMessage:"Comparing {runs} MLflow Runs"},{runs:this.props.runInfos.length});Y.A.updatePageTitle(e),window.addEventListener("resize",this.onResizeHandler,!0),window.dispatchEvent(new Event("resize"))}componentWillUnmount(){window.removeEventListener("resize",this.onResizeHandler,!0)}getTableColumnWidth(){let e=200;return null!==this.state.tableWidth&&(e=Math.round(this.state.tableWidth/(this.props.runInfos.length+1)),e<200&&(e=200)),e}renderExperimentNameRowItems(){const{experiments:e}=this.props,t=Y.A.getExperimentNameMap(Y.A.sortExperimentsById(e));return this.props.runInfos.map((e=>{let{experimentId:s,runUuid:r}=e;const{name:a,basename:i}=t[s];return(0,w.Y)("td",{className:"meta-info",children:(0,w.Y)(x.N_,{to:g.h.getExperimentPageRoute(s),title:a,children:i})},r)}))}hasMultipleExperiments(){return this.props.experimentIds.length>1}shouldShowExperimentNameRow(){return this.props.hasComparedExperimentsBefore||this.hasMultipleExperiments()}getExperimentPageLink(e,t){return(0,w.Y)(x.N_,{to:g.h.getExperimentPageRoute(e),children:t})}getCompareExperimentsPageLinkText(e){return(0,w.Y)(d.A,{id:"YkcoeV",defaultMessage:"Displaying Runs from {numExperiments} Experiments",values:{numExperiments:e}})}getCompareExperimentsPageLink(e){return(0,w.Y)(x.N_,{to:g.h.getCompareExperimentsPageRoute(e),children:this.getCompareExperimentsPageLinkText(e.length)})}getExperimentLink(){const{comparedExperimentIds:e,hasComparedExperimentsBefore:t,experimentIds:s,experiments:r}=this.props;return t?this.getCompareExperimentsPageLink(e):this.hasMultipleExperiments()?this.getCompareExperimentsPageLink(s):this.getExperimentPageLink(s[0],r[0].name)}getTitle(){return this.hasMultipleExperiments()?(0,w.Y)(d.A,{id:"IEORCP",defaultMessage:"Comparing {numRuns} Runs from {numExperiments} Experiments",values:{numRuns:this.props.runInfos.length,numExperiments:this.props.experimentIds.length}}):(0,w.Y)(d.A,{id:"NN0ScV",defaultMessage:"Comparing {numRuns} Runs from 1 Experiment",values:{numRuns:this.props.runInfos.length}})}renderParamTable(e){const t=this.renderDataRows(this.props.paramLists,e,this.state.onlyShowParamDiff,!0);return 0===t.length?(0,w.Y)("h2",{children:(0,w.Y)(d.A,{id:"lNO3kK",defaultMessage:"No parameters to display."})}):(0,w.Y)("table",{className:"table compare-table compare-run-table",css:D,onScroll:this.onCompareRunTableScrollHandler,children:(0,w.Y)("tbody",{children:t})})}renderMetricTable(e,t){const s=this.renderDataRows(this.props.metricLists,e,this.state.onlyShowMetricDiff,!1,((e,s)=>(0,w.FD)(x.N_,{to:g.h.getMetricPageRoute(this.props.runInfos.map((e=>e.runUuid)).filter(((e,t)=>void 0!==s[t])),e,t),title:"Plot chart",children:[e,(0,w.Y)("i",{className:"fas fa-chart-line",css:S})]})),Y.A.formatMetric);return 0===s.length?(0,w.Y)("h2",{children:(0,w.Y)(d.A,{id:"eBGO2d",defaultMessage:"No metrics to display."})}):(0,w.Y)("table",{className:"table compare-table compare-run-table",css:T,onScroll:this.onCompareRunTableScrollHandler,children:(0,w.Y)("tbody",{children:s})})}renderTagTable(e){const t=this.renderDataRows(this.props.tagLists,e,this.state.onlyShowTagDiff,!0);return 0===t.length?(0,w.Y)("h2",{children:(0,w.Y)(d.A,{id:"m9e01X",defaultMessage:"No tags to display."})}):(0,w.Y)("table",{className:"table compare-table compare-run-table",css:A,onScroll:this.onCompareRunTableScrollHandler,children:(0,w.Y)("tbody",{children:t})})}renderTimeRows(e){const t=(0,w.Y)(d.A,{id:"Zc48NC",defaultMessage:"(unknown)"}),s=this.props.runInfos.map((e=>{const s=e.startTime,r=e.endTime;return{runUuid:e.runUuid,startTime:s?Y.A.formatTimestamp(s):t,endTime:r?Y.A.formatTimestamp(r):t,duration:s&&r?Y.A.getDuration(s,r):t}}));return[{key:"startTime",title:(0,w.Y)(d.A,{id:"O9r1RR",defaultMessage:"Start Time:"}),data:s.map((e=>{let{runUuid:t,startTime:s}=e;return[t,s]}))},{key:"endTime",title:(0,w.Y)(d.A,{id:"G0gYkS",defaultMessage:"End Time:"}),data:s.map((e=>{let{runUuid:t,endTime:s}=e;return[t,s]}))},{key:"duration",title:(0,w.Y)(d.A,{id:"7kUi8J",defaultMessage:"Duration:"}),data:s.map((e=>{let{runUuid:t,duration:s}=e;return[t,s]}))}].map((t=>{let{key:s,title:r,data:a}=t;return(0,w.FD)("tr",{children:[(0,w.Y)("th",{scope:"row",className:"head-value sticky-header",css:e,children:r}),a.map((t=>{let[s,r]=t;return(0,w.Y)("td",{className:"data-value",css:e,children:(0,w.Y)(p.m_M,{title:r,color:"gray",placement:"topLeft",overlayStyle:{maxWidth:"400px"},dangerouslySetAntdProps:{mouseEnterDelay:1},children:r})},s)}))]},s)}))}render(){const{experimentIds:e}=this.props,{runInfos:t,runNames:s,paramLists:r,metricLists:a,runUuids:i}=this.props,n=this.getTableColumnWidth(),l=this.genWidthStyle(n),o=this.getTitle();let h=[this.getExperimentLink()];const u=this.props.intl.formatMessage({id:"eOxs/C",defaultMessage:"Parameters"}),b=this.props.intl.formatMessage({id:"frPtD/",defaultMessage:"Metrics"}),y=this.props.intl.formatMessage({id:"9KXBFn",defaultMessage:"Tags"}),Y=this.props.intl.formatMessage({id:"VP+qFF",defaultMessage:"Show diff only"}),D=!(0,v.g$)();return(0,w.FD)("div",{className:"CompareRunView",ref:this.compareRunViewRef,children:[(0,w.Y)(R.z,{title:o,breadcrumbs:h}),D&&(0,w.Y)(M.i,{title:this.props.intl.formatMessage({id:"S7ESYH",defaultMessage:"Visualizations"}),children:(0,w.FD)(p.tUM,{children:[(0,w.Y)(N,{tab:(0,w.Y)(d.A,{id:"sTp/V3",defaultMessage:"Parallel Coordinates Plot"}),children:(0,w.Y)(E.Ay,{runUuids:this.props.runUuids})},"parallel-coordinates-plot"),(0,w.Y)(N,{tab:(0,w.Y)(d.A,{id:"OimAJb",defaultMessage:"Scatter Plot"}),children:(0,w.Y)(c.J,{runUuids:this.props.runUuids,runDisplayNames:this.props.runDisplayNames})},"scatter-plot"),(0,w.Y)(N,{tab:(0,w.Y)(d.A,{id:"iXb99e",defaultMessage:"Box Plot"}),children:(0,w.Y)(m.e,{runUuids:i,runInfos:t,paramLists:r,metricLists:a})},"box-plot"),(0,w.Y)(N,{tab:(0,w.Y)(d.A,{id:"B80MC6",defaultMessage:"Contour Plot"}),children:(0,w.Y)(f.A,{runUuids:this.props.runUuids,runDisplayNames:this.props.runDisplayNames})},"contour-plot")]})}),(0,w.Y)(M.i,{title:this.props.intl.formatMessage({id:"lISqyJ",defaultMessage:"Run details"}),children:(0,w.FD)("table",{className:"table compare-table compare-run-table",ref:this.runDetailsTableRef,onScroll:this.onCompareRunTableScrollHandler,children:[(0,w.Y)("thead",{children:(0,w.FD)("tr",{children:[(0,w.Y)("th",{scope:"row",className:"head-value sticky-header",css:l,children:(0,w.Y)(d.A,{id:"/2MZix",defaultMessage:"Run ID:"})}),this.props.runInfos.map((e=>{var t,s;return(0,w.Y)("th",{scope:"row",className:"data-value",css:l,children:(0,w.Y)(p.m_M,{title:e.runUuid,color:"gray",placement:"topLeft",overlayStyle:{maxWidth:"400px"},mouseEnterDelay:1,children:(0,w.Y)(x.N_,{to:g.h.getRunPageRoute(null!==(t=e.experimentId)&&void 0!==t?t:"0",null!==(s=e.runUuid)&&void 0!==s?s:""),children:e.runUuid})})},e.runUuid)}))]})}),(0,w.FD)("tbody",{children:[(0,w.FD)("tr",{children:[(0,w.Y)("th",{scope:"row",className:"head-value sticky-header",css:l,children:(0,w.Y)(d.A,{id:"DUnrWL",defaultMessage:"Run Name:"})}),s.map(((e,s)=>(0,w.Y)("td",{className:"data-value",css:l,children:(0,w.Y)("div",{className:"truncate-text single-line",children:(0,w.Y)(p.m_M,{title:e,color:"gray",placement:"topLeft",overlayStyle:{maxWidth:"400px"},mouseEnterDelay:1,children:e})})},t[s].runUuid)))]}),this.renderTimeRows(l),this.shouldShowExperimentNameRow()&&(0,w.FD)("tr",{children:[(0,w.Y)("th",{scope:"row",className:"data-value",children:(0,w.Y)(d.A,{id:"Qsgg+9",defaultMessage:"Experiment Name:"})}),this.renderExperimentNameRowItems()]})]})]})}),(0,w.FD)(M.i,{title:u,children:[(0,w.Y)(p.dOG,{label:Y,"aria-label":[u,Y].join(" - "),checked:this.state.onlyShowParamDiff,onChange:(e,t)=>this.setState({onlyShowParamDiff:e})}),(0,w.Y)(p.hKd,{size:"lg"}),this.renderParamTable(n)]}),(0,w.FD)(M.i,{title:b,children:[(0,w.Y)(p.dOG,{label:Y,"aria-label":[b,Y].join(" - "),checked:this.state.onlyShowMetricDiff,onChange:(e,t)=>this.setState({onlyShowMetricDiff:e})}),(0,w.Y)(p.hKd,{size:"lg"}),this.renderMetricTable(n,e)]}),(0,w.FD)(M.i,{title:y,children:[(0,w.Y)(p.dOG,{label:Y,"aria-label":[y,Y].join(" - "),checked:this.state.onlyShowTagDiff,onChange:(e,t)=>this.setState({onlyShowTagDiff:e})}),(0,w.Y)(p.hKd,{size:"lg"}),this.renderTagTable(n)]})]})}genWidthStyle(e){return{width:`${e}px`,minWidth:`${e}px`,maxWidth:`${e}px`}}renderDataRows(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(e,t)=>e,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e=>e;const n=y.A.getKeys(e),l={};n.forEach((t=>l[t]={values:Array(e.length).fill(void 0)})),e.forEach(((e,t)=>{e.forEach((e=>l[e.key].values[t]=e.value))})),n.forEach((e=>{return l[e].hasDiff=(t=l[e].values).some((e=>e!==t[0]));var t}));const o=this.genWidthStyle(t);return n.filter((e=>!s||l[e].hasDiff)).map((e=>{const{values:t,hasDiff:s}=l[e],n=r&&s?"diff-row":void 0;return(0,w.FD)("tr",{className:n,children:[(0,w.Y)("th",{scope:"row",className:"head-value sticky-header",css:o,children:a(e,t)}),t.map(((e,t)=>{const s=void 0===e?"":i(e);return(0,w.Y)("td",{className:"data-value",css:o,children:(0,w.Y)(p.m_M,{title:s,color:"gray",placement:"topLeft",overlayStyle:{maxWidth:"400px"},mouseEnterDelay:1,children:(0,w.Y)("span",{className:"truncate-text single-line",children:s})})},this.props.runInfos[t].runUuid)}))]},e)}))}}var C=(0,n.Ng)(((e,t)=>{const{comparedExperimentIds:s,hasComparedExperimentsBefore:r}=e.compareExperiments,a=[],i=[],n=[],l=[],o=[],d=[],{experimentIds:h,runUuids:p}=t,c=h.map((t=>(0,u._m)(t,e)));return p.forEach((t=>{const s=(0,u.K4)(t,e);a.push(s),i.push(Object.values((0,b.d0)(t,e))),n.push(Object.values((0,u.tI)(t,e)));const r=(0,u.X3)(t,e),h=Y.A.getVisibleTagValues(r).map((e=>{let[t,s]=e;return{key:t,value:s}}));l.push(h),d.push(Y.A.getRunDisplayName(s,t)),o.push(Y.A.getRunName(s))})),{experiments:c,runInfos:a,metricLists:i,paramLists:n,tagLists:l,runNames:o,runDisplayNames:d,comparedExperimentIds:s,hasComparedExperimentsBefore:r}}))((0,h.Ay)(I)),k=s(7204),P=s(48588),U=s(25869),L=s(26645),W=s(62448);class z extends r.Component{constructor(e){super(e),this.requestIds=void 0,this.requestIds=[]}fetchExperiments(){return this.props.experimentIds.map((e=>{const t=(0,k.yk)();return this.props.dispatch((0,l.yc)(e,t)),t}))}componentDidMount(){this.requestIds.push(...this.fetchExperiments()),this.props.runUuids.forEach((e=>{const t=(0,k.yk)();this.requestIds.push(t),this.props.dispatch((0,l.aO)(e,t))}))}render(){return(0,w.Y)(P.L,{children:(0,w.Y)(o.Ay,{requestIds:this.requestIds,children:(0,w.Y)(C,{runUuids:this.props.runUuids,experimentIds:this.props.experimentIds})})})}}const F=(0,U.h)((0,n.Ng)(((e,t)=>{const{location:s}=t,r=i().parse(s.search),a=JSON.parse(r["?runs"]);return{experimentIds:JSON.parse(r.experiments),runUuids:a}}))(z));var O=(0,L.X)(W.A.mlflowServices.RUN_TRACKING,F)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[7436],{17436:function(e,t,r){r.d(t,{A:function(){return ee}});var n=r(31014),o=r(45959),i=r.n(o),u=r(89379),c=r(23029),l=r(92901),a=r(15361),s=r(88293),f=r(83434),v=r(20052),h=r(98680),p=r(1649),d=r(74573),y=function(e){(0,a.A)(r,e);var t=(0,s.A)(r);function r(){var e;return(0,c.A)(this,r),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var r=e.props.onResize,n=t[0].target,o=n.getBoundingClientRect(),i=o.width,c=o.height,l=n.offsetWidth,a=n.offsetHeight,s=Math.floor(i),f=Math.floor(c);if(e.state.width!==s||e.state.height!==f||e.state.offsetWidth!==l||e.state.offsetHeight!==a){var v={width:s,height:f,offsetWidth:l,offsetHeight:a};e.setState(v),r&&Promise.resolve().then((function(){r((0,u.A)((0,u.A)({},v),{},{offsetWidth:l,offsetHeight:a}))}))}},e.setChildNode=function(t){e.childNode=t},e}return(0,l.A)(r,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=(0,f.A)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new d.A(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=(0,v.A)(e);if(t.length>1)(0,h.Ay)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return(0,h.Ay)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var r=t[0];if(n.isValidElement(r)&&(0,p.f3)(r)){var o=r.ref;t[0]=n.cloneElement(r,{ref:(0,p.K4)(o,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!n.isValidElement(e)||"key"in e&&null!==e.key?e:n.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),r}(n.Component);y.displayName="ResizeObserver";var b=y;function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=n.forwardRef((function(e,t){var r=e.height,o=e.offset,u=e.children,c=e.prefixCls,l=e.onInnerResize,a={},s={display:"flex",flexDirection:"column"};return void 0!==o&&(a={height:r,position:"relative",overflow:"hidden"},s=g(g({},s),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),n.createElement("div",{style:a},n.createElement(b,{onResize:function(e){e.offsetHeight&&l&&l()}},n.createElement("div",{style:s,className:i()(O({},"".concat(c,"-holder-inner"),c)),ref:t},u)))}));w.displayName="Filler";var S=w,E=r(70117);function R(e){return R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e,t){return j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},j(e,t)}function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var o=T(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function P(e){return"touches"in e?e.touches[0].pageY:e.pageY}var k=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(c,e);var t,r,o,u=A(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=u.apply(this,arguments)).moveRaf=null,e.scrollbarRef=n.createRef(),e.thumbRef=n.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),E.A.cancel(e.moveRaf)},e.onMouseDown=function(t){var r=e.props.onStartMove;e.setState({dragging:!0,pageY:P(t),startTop:e.getTop()}),r(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var r=e.state,n=r.dragging,o=r.pageY,i=r.startTop,u=e.props.onScroll;if(E.A.cancel(e.moveRaf),n){var c=i+(P(t)-o),l=e.getEnableScrollRange(),a=c/e.getEnableHeightRange(),s=Math.ceil(a*l);e.moveRaf=(0,E.A)((function(){u(s)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,r=t.height,n=r/t.count*10;return n=Math.max(n,20),n=Math.min(n,r/2),Math.floor(n)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()},e.getTop=function(){return e.props.scrollTop/e.getEnableScrollRange()*e.getEnableHeightRange()},e.getVisible=function(){var t=e.state.visible,r=e.props;return!(r.height>r.scrollHeight)&&t},e}return t=c,(r=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e,t,r,o=this.state.dragging,u=this.props.prefixCls,c=this.getSpinHeight(),l=this.getTop(),a=this.getVisible();return n.createElement("div",{ref:this.scrollbarRef,className:"".concat(u,"-scrollbar"),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:a?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},n.createElement("div",{ref:this.thumbRef,className:i()("".concat(u,"-scrollbar-thumb"),(e={},t="".concat(u,"-scrollbar-thumb-moving"),r=o,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e)),style:{width:"100%",height:c,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&M(t.prototype,r),o&&M(t,o),c}(n.Component);function H(e){var t=e.children,r=e.setRef,o=n.useCallback((function(e){r(e)}),[]);return n.cloneElement(t,{ref:o})}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps={},this.maps.prototype=null}var t,r,n;return t=e,(r=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&D(t.prototype,r),n&&D(t,n),e}();function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e){return I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t,r){var o=N(n.useState(e),2),i=o[0],u=o[1],c=N(n.useState(null),2),l=c[0],a=c[1];return n.useEffect((function(){var n=function(e,t,r){var n,o,i=e.length,u=t.length;if(0===i&&0===u)return null;i<u?(n=e,o=t):(n=t,o=e);var c={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?r(e):c}for(var a=null,s=1!==Math.abs(i-u),f=0;f<o.length;f+=1){var v=l(n[f]);if(v!==l(o[f])){a=f,s=s||v!==l(o[f+1]);break}}return null===a?null:{index:a,multiple:s}}(i||[],e||[],t);void 0!==(null===n||void 0===n?void 0:n.index)&&(null===r||void 0===r||r(n.index),a(e[n.index])),u(e)}),[e]),[l]}function U(e){return U="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}var Y="object"===("undefined"===typeof navigator?"undefined":U(navigator))&&/Firefox/i.test(navigator.userAgent),W=function(e,t){var r=(0,n.useRef)(!1),o=(0,n.useRef)(null);var i=(0,n.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0&&i.current.top||e>0&&i.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};var K=14/15;function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var J=[],Q={overflowY:"auto",overflowAnchor:"none"};function X(e,t){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,u=e.className,c=e.height,l=e.itemHeight,a=e.fullHeight,s=void 0===a||a,v=e.style,h=e.data,p=e.children,d=e.itemKey,y=e.virtual,b=e.component,m=void 0===b?"div":b,g=e.onScroll,O=G(e,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"]),w=!(!1===y||!c||!l),R=w&&h&&l*h.length>c,M=B((0,n.useState)(0),2),j=M[0],A=M[1],T=B((0,n.useState)(!1),2),P=T[0],D=T[1],C=i()(o,u),N=h||J,z=(0,n.useRef)(),U=(0,n.useRef)(),V=(0,n.useRef)(),q=n.useCallback((function(e){return"function"===typeof d?d(e):e[d]}),[d]),X={getKey:q};function Z(e){A((function(t){var r=function(e){var t=Math.max(e,0);Number.isNaN(de.current)||(t=Math.min(t,de.current));return t}("function"===typeof e?e(t):e);return z.current.scrollTop=r,r}))}var ee=(0,n.useRef)({start:0,end:N.length}),te=(0,n.useRef)(),re=B(_(N,q),1)[0];te.current=re;var ne=function(e,t,r){var o=L(n.useState(0),2),i=o[0],u=o[1],c=(0,n.useRef)(new Map),l=(0,n.useRef)(new x),a=(0,n.useRef)(0);function s(){a.current+=1;var e=a.current;Promise.resolve().then((function(){e===a.current&&(c.current.forEach((function(e,t){if(e&&e.offsetParent){var r=(0,f.A)(e),n=r.offsetHeight;l.current.get(t)!==n&&l.current.set(t,r.offsetHeight)}})),u((function(e){return e+1})))}))}return[function(n,o){var i=e(n),u=c.current.get(i);o?(c.current.set(i,o),s()):c.current.delete(i),!u!==!o&&(o?null===t||void 0===t||t(n):null===r||void 0===r||r(n))},s,l.current,i]}(q,null,null),oe=B(ne,4),ie=oe[0],ue=oe[1],ce=oe[2],le=oe[3],ae=n.useMemo((function(){if(!w)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};var e;if(!R)return{scrollHeight:(null===(e=U.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:N.length-1,offset:void 0};for(var t,r,n,o=0,i=N.length,u=0;u<i;u+=1){var a=N[u],s=q(a),f=ce.get(s),v=o+(void 0===f?l:f);v>=j&&void 0===t&&(t=u,r=o),v>j+c&&void 0===n&&(n=u),o=v}return void 0===t&&(t=0,r=0),void 0===n&&(n=N.length-1),{scrollHeight:o,start:t,end:n=Math.min(n+1,N.length),offset:r}}),[R,w,j,N,le,c]),se=ae.scrollHeight,fe=ae.start,ve=ae.end,he=ae.offset;ee.current.start=fe,ee.current.end=ve;var pe=se-c,de=(0,n.useRef)(pe);de.current=pe;var ye=j<=0,be=j>=pe,me=W(ye,be);var ge=function(e,t,r,o){var i=(0,n.useRef)(0),u=(0,n.useRef)(null),c=(0,n.useRef)(null),l=(0,n.useRef)(!1),a=W(t,r);return[function(t){if(e){E.A.cancel(u.current);var r=t.deltaY;i.current+=r,c.current=r,a(r)||(Y||t.preventDefault(),u.current=(0,E.A)((function(){var e=l.current?10:1;o(i.current*e),i.current=0})))}},function(t){e&&(l.current=t.detail===c.current)}]}(w,ye,be,(function(e){Z((function(t){return t+e}))})),Oe=B(ge,2),we=Oe[0],Se=Oe[1];!function(e,t,r){var o,i=(0,n.useRef)(!1),u=(0,n.useRef)(0),c=(0,n.useRef)(null),l=(0,n.useRef)(null),a=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),n=u.current-t;u.current=t,r(n)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!r(n*=K,!0)||Math.abs(n)<=.1)&&clearInterval(l.current)}),16)}},s=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,u.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",a),c.current.addEventListener("touchend",s))};o=function(){c.current&&(c.current.removeEventListener("touchmove",a),c.current.removeEventListener("touchend",s))},n.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",f),function(){t.current.removeEventListener("touchstart",f),o(),clearInterval(l.current)}}),[e])}(w,z,(function(e,t){return!me(e,t)&&(we({preventDefault:function(){},deltaY:e}),!0)})),n.useLayoutEffect((function(){function e(e){w&&e.preventDefault()}return z.current.addEventListener("wheel",we),z.current.addEventListener("DOMMouseScroll",Se),z.current.addEventListener("MozMousePixelScroll",e),function(){z.current.removeEventListener("wheel",we),z.current.removeEventListener("DOMMouseScroll",Se),z.current.removeEventListener("MozMousePixelScroll",e)}}),[w]);var Ee=function(e,t,r,o,i,u,c,l){var a=n.useRef();return function(n){if(null!==n&&void 0!==n){if(E.A.cancel(a.current),"number"===typeof n)c(n);else if(n&&"object"===I(n)){var s,f=n.align;s="index"in n?Math.min(n.index,t.length-1):t.findIndex((function(e){return i(e)===n.key}));var v=n.offset,h=void 0===v?0:v;!function n(l,v){if(!(l<0)&&e.current){var p=e.current.clientHeight,d=!1,y=v;if(p){for(var b=v||f,m=0,g=0,O=0,w=0;w<=s;w+=1){var S=t[w];if(void 0!==S){var R=i(S);g=m;var M=r.get(R);m=O=g+(void 0===M?o:M),w===s&&void 0===M&&(d=!0)}}var j=null;switch(b){case"top":j=g-h;break;case"bottom":j=O-p+h;break;default:var A=e.current.scrollTop;g<A?y="top":O>A+p&&(y="bottom")}null!==j&&j!==e.current.scrollTop&&c(j)}a.current=(0,E.A)((function(){d&&u(),n(l-1,y)}))}}(3)}}else l()}}(z,N,ce,l,q,ue,Z,(function(){var e;null===(e=V.current)||void 0===e||e.delayHidden()}));n.useImperativeHandle(t,(function(){return{scrollTo:Ee}}));var Re=function(e,t,r,o,i,u){var c=u.getKey;return e.slice(t,r+1).map((function(e,r){var u=i(e,t+r,{}),l=c(e);return n.createElement(H,{key:l,setRef:function(t){return o(e,t)}},u)}))}(N,fe,ve,ie,p,X),Me=null;return c&&(Me=F($({},s?"height":"maxHeight",c),Q),w&&(Me.overflowY="hidden",P&&(Me.pointerEvents="none"))),n.createElement("div",Object.assign({style:F(F({},v),{},{position:"relative"}),className:C},O),n.createElement(m,{className:"".concat(o,"-holder"),style:Me,ref:z,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==j&&Z(t),null===g||void 0===g||g(e)}},n.createElement(S,{prefixCls:o,height:se,offset:he,onInnerResize:ue,ref:U},Re)),w&&n.createElement(k,{ref:V,prefixCls:o,scrollTop:j,height:c,scrollHeight:se,count:N.length,onScroll:function(e){Z(e)},onStartMove:function(){D(!0)},onStopMove:function(){D(!1)}}))}var Z=n.forwardRef(X);Z.displayName="List";var ee=Z}}]);
|