streamlit-nightly 1.38.1.dev20240918__py2.py3-none-any.whl → 1.38.1.dev20240919__py2.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.
- streamlit/elements/deck_gl_json_chart.py +26 -2
- streamlit/elements/map.py +27 -1
- streamlit/navigation/page.py +10 -6
- streamlit/proto/DeckGlJsonChart_pb2.py +3 -3
- streamlit/proto/DeckGlJsonChart_pb2.pyi +9 -1
- streamlit/static/asset-manifest.json +8 -7
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/2055.bca43613.chunk.js +1 -0
- streamlit/static/static/js/{7077.e21833ae.chunk.js → 6789.f8dde736.chunk.js} +2 -2
- streamlit/static/static/js/8485.81bdf474.chunk.js +1 -0
- streamlit/static/static/js/9943.d18fdff1.chunk.js +1 -0
- streamlit/static/static/js/{main.e8447cae.js → main.61ca8755.js} +2 -2
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240919.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240919.dist-info}/RECORD +22 -21
- streamlit/static/static/js/3156.002c6ee0.chunk.js +0 -1
- streamlit/static/static/js/7493.95e79b96.chunk.js +0 -1
- /streamlit/static/static/css/{7077.81b3d18f.chunk.css → 6789.81b3d18f.chunk.css} +0 -0
- /streamlit/static/static/css/{3156.93909c7e.chunk.css → 9943.93909c7e.chunk.css} +0 -0
- /streamlit/static/static/js/{7077.e21833ae.chunk.js.LICENSE.txt → 6789.f8dde736.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{main.e8447cae.js.LICENSE.txt → main.61ca8755.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.38.1.dev20240918.data → streamlit_nightly-1.38.1.dev20240919.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240919.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240919.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240919.dist-info}/top_level.txt +0 -0
@@ -61,7 +61,7 @@ streamlit/elements/arrow.py,sha256=0vhjTxjAOrpl-p1zmm0henT91jE8LM1gzxQh6DtoBj4,3
|
|
61
61
|
streamlit/elements/balloons.py,sha256=QnORgG96Opga1SVg8tUBOm-l3nMpKWmjvy1crcS2XaU,1482
|
62
62
|
streamlit/elements/bokeh_chart.py,sha256=OdeJgmyiWH08QninHYQerxSOCyS1TcEwAqfgTuR0xzo,4196
|
63
63
|
streamlit/elements/code.py,sha256=ZthfR1NdVnBg-L7iWEqN3WxKLiiq9jqt_-E6CRsZo8g,2696
|
64
|
-
streamlit/elements/deck_gl_json_chart.py,sha256=
|
64
|
+
streamlit/elements/deck_gl_json_chart.py,sha256=xitJB9hjPm-hHpCXZtGQbTQ7QBaUj5QtrCgyPKh8dBs,7927
|
65
65
|
streamlit/elements/dialog_decorator.py,sha256=12lIbNyinnfk_VvSWB8xauAMCT8PPfdn157aIMtudbg,10052
|
66
66
|
streamlit/elements/doc_string.py,sha256=IuCqpXX0GqKIjCMcaOOHr-fmOixFlCdvCT8d8EIYEAE,16024
|
67
67
|
streamlit/elements/empty.py,sha256=SN94_NJJxW0nMZ-w0XDbpN5h0urdAZi8pQFTslgmSAA,3853
|
@@ -74,7 +74,7 @@ streamlit/elements/iframe.py,sha256=Qfw6VN7dKyr4MLq5T4UbsBpoCaWkzPVZQ_-12Ruul9Y,
|
|
74
74
|
streamlit/elements/image.py,sha256=N0dq2FwHVEoWF_2Z-21wExm1t1BLeLsAvOjaLWm8GlE,20307
|
75
75
|
streamlit/elements/json.py,sha256=md4nazmLeRbPxe6lV0ZDacMUw-bsVLxmjaL5bWKOkBM,4526
|
76
76
|
streamlit/elements/layouts.py,sha256=24f4uqWREDOXvAZ9J8sFk3EQAAA7nF1KU66PsQZ7GbM,30863
|
77
|
-
streamlit/elements/map.py,sha256=
|
77
|
+
streamlit/elements/map.py,sha256=sytnuSEUu8YLSY4glc-vGjkOpudaFXX3bUHPxmCj4gQ,17249
|
78
78
|
streamlit/elements/markdown.py,sha256=iWxq9Ssj7o_hnKhf3-W3IKj3HM7XM-eA8aXVwtab8so,10249
|
79
79
|
streamlit/elements/media.py,sha256=-_wpM3O3Mt69vm2OoPu4zxxS5wAzU9DUD5IP1l0QWHM,30289
|
80
80
|
streamlit/elements/metric.py,sha256=9zAyS3vmHEl55fxrT-XROC_1-1V7e9HoQldZCWHSzI0,9549
|
@@ -133,7 +133,7 @@ streamlit/hello/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,6
|
|
133
133
|
streamlit/hello/streamlit_app.py,sha256=3dsfcIZrYOSSMOtk7aA3tEBife7Jf8DJtlVIkwLRWTo,1214
|
134
134
|
streamlit/hello/utils.py,sha256=IZMM6MZ4tcrLuSN9RWmMEYlzTbbzA3trpq6Pa82NeRw,992
|
135
135
|
streamlit/navigation/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
136
|
-
streamlit/navigation/page.py,sha256=
|
136
|
+
streamlit/navigation/page.py,sha256=z142UDfM5tPxtHbPT6gNE_fLGWlL4XSaiKB99ptUcwU,11638
|
137
137
|
streamlit/proto/Alert_pb2.py,sha256=rGlkoiE7c-gmZbYpuhRdFmRkYLcR3AmdHH3lHw8q1-E,1565
|
138
138
|
streamlit/proto/Alert_pb2.pyi,sha256=sf1JHN92JSQs2_15clCjEfBGPByTTG-FSSZ-qGjWLXk,3106
|
139
139
|
streamlit/proto/AppPage_pb2.py,sha256=zc06HvAElRirQavLwn0TzwJFhB3kvYRxSRdCS1P9ozE,1443
|
@@ -180,8 +180,8 @@ streamlit/proto/DataFrame_pb2.py,sha256=NcwejTZdJe1ZQpuAf9BSg7CaxoSGwWysTwm9KOWs
|
|
180
180
|
streamlit/proto/DataFrame_pb2.pyi,sha256=Syo9NCa8973x_ob-MqyV-lnApLM2VS8Ct0hAixDl8qU,14859
|
181
181
|
streamlit/proto/DateInput_pb2.py,sha256=B6u2R3SclO7GzpEQqO_5CkJvfNYFRtkTEZv9-pVyTVM,1892
|
182
182
|
streamlit/proto/DateInput_pb2.pyi,sha256=VSBDJQSM0Uu9amjTZ3rp1sOY6KP33gLnL8h-HMwLIXE,3328
|
183
|
-
streamlit/proto/DeckGlJsonChart_pb2.py,sha256=
|
184
|
-
streamlit/proto/DeckGlJsonChart_pb2.pyi,sha256=
|
183
|
+
streamlit/proto/DeckGlJsonChart_pb2.py,sha256=p9mqe7ooXxnA8_VdwdIf3p7zAEmhYMC1_NM650XG1d4,1536
|
184
|
+
streamlit/proto/DeckGlJsonChart_pb2.pyi,sha256=WLDuqYxXCoUGEF_NCA3XEp1e0FsaNzSYP5TKAgdN1h4,2380
|
185
185
|
streamlit/proto/Delta_pb2.py,sha256=ukKwSkss3tIX96I5j2FT_BiyZW2BRye2izmVCiNjU4c,2012
|
186
186
|
streamlit/proto/Delta_pb2.pyi,sha256=Z09HbPjot0dCVfR8g3eKEcQ_Ck5VaMoH7RjPuEF6iTg,3184
|
187
187
|
streamlit/proto/DocString_pb2.py,sha256=8fEx1J2VxqPTdcio8IXt9wIPIie8O5c7EZ9urt4KD3c,1735
|
@@ -344,21 +344,21 @@ streamlit/runtime/state/safe_session_state.py,sha256=WLFFyMtP4F19TWWBarKtSP942Ie
|
|
344
344
|
streamlit/runtime/state/session_state.py,sha256=SMBWsSZY29jAgL3QfX4xvJr9aLCNrHHUz9AmosX7FlQ,28850
|
345
345
|
streamlit/runtime/state/session_state_proxy.py,sha256=IWF43f6UWL4KyxNWF3aTv1sbykNI2hI5UsPF2UIfpdE,5524
|
346
346
|
streamlit/runtime/state/widgets.py,sha256=BS7Xq0kFbu7N2tFEm5zlcDPCpDYhM09grH7Nf7DNvfg,6620
|
347
|
-
streamlit/static/asset-manifest.json,sha256=
|
347
|
+
streamlit/static/asset-manifest.json,sha256=IDx3ckHcFEtFz9G5aVs1qUcfd_Ssq3iadhr7KDGeh30,14575
|
348
348
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
349
|
-
streamlit/static/index.html,sha256=
|
350
|
-
streamlit/static/static/css/3156.93909c7e.chunk.css,sha256=6dVarHz_P5ACNrmcAZkXoNnjV5Z6CfnAXpxLBx-i1aw,12093
|
349
|
+
streamlit/static/index.html,sha256=J-qxKHa-veTrYKapV80wxCtYLFqh1LkzbIE-D4mhQR4,891
|
351
350
|
streamlit/static/static/css/5711.c24b25fa.chunk.css,sha256=oOQFf_CH_DqXNsgcLiXOIk4uuluqNRMkobp8p6uc3y4,2666
|
352
|
-
streamlit/static/static/css/
|
351
|
+
streamlit/static/static/css/6789.81b3d18f.chunk.css,sha256=7WxsSsC_REs_rrfQTODJt34QZfNePqEv_fc-KFLcOz4,33375
|
352
|
+
streamlit/static/static/css/9943.93909c7e.chunk.css,sha256=6dVarHz_P5ACNrmcAZkXoNnjV5Z6CfnAXpxLBx-i1aw,12093
|
353
353
|
streamlit/static/static/css/main.5513bd04.css,sha256=9vuriEsFvHDyAwsI3vtBY9PNL8UOjqGwWZ4lZHsdFzw,29356
|
354
354
|
streamlit/static/static/js/1086.464de8f9.chunk.js,sha256=YGXXmlHNCH-_6ifMR72A4eduZZ8_UaQNwGPmeujOHlU,11520
|
355
355
|
streamlit/static/static/js/1101.13462bff.chunk.js,sha256=Iu-ECFDUDJJ14X1UQR4KIqtBHDhW60i15dbuEzx9HT4,3259
|
356
356
|
streamlit/static/static/js/1260.e6289cc2.chunk.js,sha256=j5DN-SmrW5jdh3RpB0Gs43dW03kdN3_gDUVH5jAKyoU,10865
|
357
357
|
streamlit/static/static/js/1674.86aea8e0.chunk.js,sha256=g2RyDOrwFlJImiNgHT8Yo_LVDjfqRV5DHDhXK_IYdQE,9236
|
358
358
|
streamlit/static/static/js/1674.86aea8e0.chunk.js.LICENSE.txt,sha256=426lVBKMW2FKu5BqnSDpZnhms1QqJZ-nDvqwC62w-Z8,479
|
359
|
+
streamlit/static/static/js/2055.bca43613.chunk.js,sha256=M54urlTT1s5hhM6KafZpMDcj1NzAP324c4ZZjqopgsg,5636
|
359
360
|
streamlit/static/static/js/245.68a062da.chunk.js,sha256=XGCu0HClBgZFU6cM2_My_W2pTpp-2dc8LiQKk2oh6pw,15672
|
360
361
|
streamlit/static/static/js/2627.2462a014.chunk.js,sha256=PdOFzDOJSqybqqZpNdX3C-QzWLq7SuVcMjhY--a7mJA,21253
|
361
|
-
streamlit/static/static/js/3156.002c6ee0.chunk.js,sha256=bI50HQVW5dt6DZRbFZgJzBJ9cf1ds3ZfP1PlIQFc2GE,51174
|
362
362
|
streamlit/static/static/js/3389.71902a75.chunk.js,sha256=rmAaytiYyUUn62JwB0cWuq8XlufugjELi3FkHfwri0Y,2263290
|
363
363
|
streamlit/static/static/js/3391.663b9d47.chunk.js,sha256=wnik-Gm3vJGqiTZzA9-EuwH8duSYvtqYdIgqbBIQUF4,2169
|
364
364
|
streamlit/static/static/js/3471.de4b25a2.chunk.js,sha256=v46A9eVjvhxYsBZ6SFG6wRg94XAccGQn6xA3q7sIluE,2698
|
@@ -386,11 +386,10 @@ streamlit/static/static/js/6198.956025ac.chunk.js,sha256=M8auCVk5IHkZg39jS43Ix7Q
|
|
386
386
|
streamlit/static/static/js/6198.956025ac.chunk.js.LICENSE.txt,sha256=aKN36g4SjyJ9CsqUUElZzz2T54Y9-y_Dz53dBlV7Q1o,2011
|
387
387
|
streamlit/static/static/js/6360.6d7cfa35.chunk.js,sha256=UJ5--uYuEu-ag0UHhlO32R2igz6W0aWAz-A4Nu_299E,5273
|
388
388
|
streamlit/static/static/js/6679.265ca09c.chunk.js,sha256=WmwYRnLnqPjmlAXo6meukmcKzMalOQeUCU2spQpWrHw,13574
|
389
|
+
streamlit/static/static/js/6789.f8dde736.chunk.js,sha256=6LVknHCH5k9b_dQhba08wyohrGyfRDdqWdrWhLc1z0Y,3083028
|
390
|
+
streamlit/static/static/js/6789.f8dde736.chunk.js.LICENSE.txt,sha256=eedmllw4KHDop7oVWRkxEA-ZkkV_8zKkzzNxLjPGmXM,1379
|
389
391
|
streamlit/static/static/js/6817.6adfea98.chunk.js,sha256=a899OLftoHmnEOJ4LgrzJaPzCe-rwE0wKUNrF7xKpuM,13038
|
390
|
-
streamlit/static/static/js/7077.e21833ae.chunk.js,sha256=w1vy4ArzlfbPdvLtkhauCaLk1r7YVd55tfnigUEV3Ok,3082069
|
391
|
-
streamlit/static/static/js/7077.e21833ae.chunk.js.LICENSE.txt,sha256=eedmllw4KHDop7oVWRkxEA-ZkkV_8zKkzzNxLjPGmXM,1379
|
392
392
|
streamlit/static/static/js/7193.2594a18c.chunk.js,sha256=w1wKaTT6fNkXcLs9w672lt4HaBA2DYWA64IALWGD_b0,2395
|
393
|
-
streamlit/static/static/js/7493.95e79b96.chunk.js,sha256=oT192_LR7p73BoMUVvm2SxxJI9tR1hOkcuXM-63nnSQ,9659
|
394
393
|
streamlit/static/static/js/7591.b3928443.chunk.js,sha256=BIil7acYkoN0zKvMnK8JbuQr8yRGZfMVt1LJPHcDVrQ,21261
|
395
394
|
streamlit/static/static/js/7591.b3928443.chunk.js.LICENSE.txt,sha256=u9LVDbKjZkI5agN4AH5SidNkG6wf-oCZfLzdGp8DDl4,188
|
396
395
|
streamlit/static/static/js/7612.39e7938b.chunk.js,sha256=0W2BvLlso8-80kNOY35UO_DuD8ZAC4zNl6Zr1VWpKO4,804885
|
@@ -405,6 +404,7 @@ streamlit/static/static/js/8161.9b75f98a.chunk.js,sha256=vWAh7Nhi5kkx3Z330eIRlgh
|
|
405
404
|
streamlit/static/static/js/8166.11abccb8.chunk.js,sha256=qgPTbAWlMocETOUCTB8hiOaaDMcO4gTZgt1YnQ8K0bU,2627
|
406
405
|
streamlit/static/static/js/8237.210a5ac4.chunk.js,sha256=BDB13f01-l4kINqI7fxd47wraFvxC-9nxiXI32kciq0,15394
|
407
406
|
streamlit/static/static/js/84.414fa87b.chunk.js,sha256=sF7-dsOEXmnl7d-z2d0Fb7F8vyEWlUY2vEK7TQ5RK8k,622
|
407
|
+
streamlit/static/static/js/8485.81bdf474.chunk.js,sha256=q8edaj2uoaGoWGy5-thLeKV642Bg0wXPw3hvqG86ZzA,6645
|
408
408
|
streamlit/static/static/js/8642.dfef7dcb.chunk.js,sha256=HYAYIyHmM4rBmIRPJaYKm2ci38tplci4e1sTAC6Jopk,3384696
|
409
409
|
streamlit/static/static/js/8642.dfef7dcb.chunk.js.LICENSE.txt,sha256=eaJYPeiNKQAvVx6lv1DR9gIPG1pFwki2pcDLddtfQHw,5061
|
410
410
|
streamlit/static/static/js/8648.92079acf.chunk.js,sha256=WpZpzt0hkqhjZ5CotTAZcQYz_C61hQD84_KcrDdXCBQ,22115
|
@@ -417,8 +417,9 @@ streamlit/static/static/js/9464.7e9a3c0a.chunk.js,sha256=63Fg1-eQ1Sx7Hb6rqtQaTOJ
|
|
417
417
|
streamlit/static/static/js/9528.746f7a0e.chunk.js,sha256=KL6FfepG5LOH0P5pH4ieh5-rvx5o4YD77PKVAZIGlPg,1887
|
418
418
|
streamlit/static/static/js/954.1da91b19.chunk.js,sha256=3X0Gwgv4Films8FLekUOEm_uEOrNxLCRiXrTXTFSnt4,8660
|
419
419
|
streamlit/static/static/js/9923.7061d124.chunk.js,sha256=WeDEW7AM0VDnIJzQv9UykMvjG0nbYX6BTRyKV-zBlyE,5951
|
420
|
-
streamlit/static/static/js/
|
421
|
-
streamlit/static/static/js/main.
|
420
|
+
streamlit/static/static/js/9943.d18fdff1.chunk.js,sha256=I3wmQqoMIfm6HTVFlmx6Rwtcab4e68yFC1C07K3Grec,45721
|
421
|
+
streamlit/static/static/js/main.61ca8755.js,sha256=oVDHieyp0RGGzND0kgpnNehnij-xnoXQuLZhm3Xi-TU,4515890
|
422
|
+
streamlit/static/static/js/main.61ca8755.js.LICENSE.txt,sha256=zBIKKHKi84ZOA6IoZ3tlc9xb3yukNP-rM98cZVvzteg,4398
|
422
423
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
423
424
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
424
425
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -538,9 +539,9 @@ streamlit/web/server/server_util.py,sha256=C3M971XFoEXTMufQLwHbZdtZOE30nWx-2WiXm
|
|
538
539
|
streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
|
539
540
|
streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
|
540
541
|
streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
|
541
|
-
streamlit_nightly-1.38.1.
|
542
|
-
streamlit_nightly-1.38.1.
|
543
|
-
streamlit_nightly-1.38.1.
|
544
|
-
streamlit_nightly-1.38.1.
|
545
|
-
streamlit_nightly-1.38.1.
|
546
|
-
streamlit_nightly-1.38.1.
|
542
|
+
streamlit_nightly-1.38.1.dev20240919.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
|
543
|
+
streamlit_nightly-1.38.1.dev20240919.dist-info/METADATA,sha256=VEGVcpl6cDvrw7U8uv1Myklc8oxxP512DRz0mGwKLR0,8512
|
544
|
+
streamlit_nightly-1.38.1.dev20240919.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
545
|
+
streamlit_nightly-1.38.1.dev20240919.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
546
|
+
streamlit_nightly-1.38.1.dev20240919.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
547
|
+
streamlit_nightly-1.38.1.dev20240919.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3156],{22044:(e,t,n)=>{n.d(t,{A:()=>v});var i=n(58878),o=n(53124),r=n.n(o),l=n(8151),a=n(41514),s=n(67214),d=n(64611),c=n(84152),u=n(89653);const m=(0,u.A)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:t,theme:n}=e;const i=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:n.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:n.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:n.colors.fadedText60,borderRadius:"50%",...i,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:n.colors.bodyText,transition:"none"}}}),""),h=(0,u.A)("div",{target:"e1vs0wn30"})((e=>{let{theme:t,isExpanded:n}=e;return{"&:hover":{[m]:{opacity:1,transform:"scale(1)",transition:"none"}},...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var g=n(90782);class p extends i.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:i,width:o,height:r,disableFullscreenMode:l}=this.props;let c=a.u,u=this.zoomIn,p="View fullscreen";return e&&(c=s.Q,u=this.zoomOut,p="Exit fullscreen"),(0,g.jsxs)(h,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!l&&(0,g.jsx)(m,{"data-testid":"StyledFullScreenButton",onClick:u,title:p,isExpanded:e,children:(0,g.jsx)(d.A,{content:c})}),i(e?{width:t,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:o,height:r,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}p.contextType=c.n;const f=(0,l.b)(p);const v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class n extends i.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:n,height:i,disableFullscreenMode:o}=this.props;return(0,g.jsx)(f,{width:n,height:i,disableFullscreenMode:t||o,children:t=>{let{width:n,height:i,expanded:o,expand:r,collapse:l}=t;return(0,g.jsx)(e,{...this.props,width:n,height:i,isFullScreen:o,expand:r,collapse:l})}})}}}return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,r()(n,e)}},39886:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Lt});var i=n(58878),o=n(35753),r=n(79104),l=n(52583),a=n(68994),s=n(95241),d=n(61730),c=n(18364),u=n(2128),m=n(34752),h=n(22044),g=n(29669),p=n(25571),f=n(8151),v=n(12274),y=n(63186),b=n(34914),w=n(997),x=n(36459),C=n(84720),S=n(64611),M=n(89653),E=n(58144);const k="-2.4rem",T=(0,M.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:i}=e;return{padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:n?k:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:k},...i&&{[`${i}:hover &, ${i}:active &, ${i}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:k}}}}}),""),R=(0,M.A)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,E.iq)(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.default,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var I=n(90782);function N(e){let{label:t,show_label:n,icon:i,onClick:o}=e;const r=(0,f.u)(),l=n?t:"";return(0,I.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,I.jsx)(w.A,{content:(0,I.jsx)(b.Ay,{source:t,allowHTML:!1,style:{fontSize:r.fontSizes.sm}}),placement:w.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,I.jsxs)(x.Ay,{onClick:e=>{o&&o(),e.stopPropagation()},kind:C.KX.ELEMENT_TOOLBAR,children:[i&&(0,I.jsx)(S.A,{content:i,size:"md",testid:"stElementToolbarButtonIcon"}),l&&(0,I.jsx)("span",{children:l})]})})})}const _=e=>{let{onExpand:t,onCollapse:n,isFullScreen:i,locked:o,children:r,target:l,disableFullscreenMode:a}=e;return(0,I.jsx)(T,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:o||i,target:l,children:(0,I.jsxs)(R,{children:[r,t&&!a&&!i&&(0,I.jsx)(N,{label:"Fullscreen",icon:v.g,onClick:()=>t()}),n&&!a&&i&&(0,I.jsx)(N,{label:"Close fullscreen",icon:y.Q,onClick:()=>n()})]})})};var O=n(84152),D=n(30136),A=n.n(D),F=n(37638),z=n.n(F),$=n(37904),L=n.n($),H=n(34694),V=n(90491),W=n.n(V),X=(n(20641),n(48517)),j=n.n(X),B=n(85729);const P=["true","t","yes","y","on","1"],Y=["false","f","no","n","off","0"];function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=`\u26a0\ufe0f ${e}`,{kind:o.dd.Text,readonly:!0,allowOverlay:!0,data:e+(t?`\n\n${t}\n`:""),displayData:e,isError:!0}}function q(e){return e.hasOwnProperty("isError")&&e.isError}function J(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function G(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{kind:o.dd.Loading,allowOverlay:!1,isMissingValue:!0}:{kind:o.dd.Loading,allowOverlay:!1}}function K(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function Z(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function Q(e,t){return(0,p.hX)(e)?t||{}:(0,p.hX)(t)?e||{}:z()(e,t)}function ee(e){if((0,p.hX)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(t){return[e]}}try{const t=JSON.parse(JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)));return Array.isArray(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:te(e))):[te(t)]}catch(t){return[te(e)]}}function te(e){try{try{return A()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function ne(e){if((0,p.hX)(e))return null;if("boolean"===typeof e)return e;const t=te(e).toLowerCase().trim();return""===t?null:!!P.includes(t)||!Y.includes(t)&&void 0}function ie(e){if((0,p.hX)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=L().unformat(e.trim());if((0,p.se)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function oe(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,p.hX)(t)||""===t?(0===n&&(e=Math.round(e)),L()(e).format((0,p.se)(n)?`0,0.${"0".repeat(n)}`:"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):"duration[ns]"===t?W().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?B.D0.formatPeriodType(BigInt(e),t):(0,H.sprintf)(t,e)}function re(e,t){return"locale"===t?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate()):"distance"===t?e.fromNow():"relative"===t?e.calendar():e.format(t)}function le(e){if((0,p.hX)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{const t=Number(e);if(!isNaN(t)){let e=t;t>=10**18?e=t/1e3**3:t>=10**15?e=t/1e6:t>=10**12&&(e=t/1e3);const n=W().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=W().utc(e);if(t.isValid())return t.toDate();const n=W().utc(e,[W().HTML5_FMT.TIME_MS,W().HTML5_FMT.TIME_SECONDS,W().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function ae(e){if(e%1===0)return 0;let t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}const se=new RegExp(/(\r\n|\n|\r)/gm);function de(e){return-1!==e.indexOf("\n")?e.replace(se," "):e}var ce=n(84996);function ue(e){const t={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return{...e,kind:"object",sortMode:"default",isEditable:!1,getCell(e){try{const n=(0,p.se)(e)?te(e):null,i=(0,p.se)(n)?de(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,p.hX)(e)}}catch(n){return U(te(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}ue.isEditableType=!1;const me=ue;function he(e){const t=e.columnTypeOptions||{};let n;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(l){n=`Invalid validate regex: ${t.validate}.\nError: ${l}`}const i={kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},r=i=>{if((0,p.hX)(i))return!e.isRequired;let o=te(i),r=!1;return t.max_chars&&o.length>t.max_chars&&(o=o.slice(0,t.max_chars),r=!0),!(n instanceof RegExp&&!1===n.test(o))&&(!r||o)};return{...e,kind:"text",sortMode:"default",validateInput:r,getCell(e,t){if("string"===typeof n)return U(te(e),n);if(t){const t=r(e);if(!1===t)return U(te(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,p.se)(e)?te(e):null,n=(0,p.se)(t)?de(t):"";return{...i,isMissingValue:(0,p.hX)(t),data:t,displayData:n}}catch(l){return U("Incompatible value",`The value cannot be interpreted as string. Error: ${l}`)}},getCellValue:e=>void 0===e.data?null:e.data}}he.isEditableType=!0;const ge=he;function pe(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function fe(e,t,n,i,r,l,a){var s;const d=Q({format:n,step:i,timezone:a},t.columnTypeOptions);let c,u,m;if((0,p.se)(d.timezone))try{var h;c=(null===(h=pe(j()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(v){}(0,p.se)(d.min_value)&&(u=le(d.min_value)||void 0),(0,p.se)(d.max_value)&&(m=le(d.max_value)||void 0);const g={kind:o.dd.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-picker-cell",date:void 0,displayDate:"",step:(null===(s=d.step)||void 0===s?void 0:s.toString())||"1",format:r,min:u,max:m}},f=e=>{const n=le(e);return null===n?!t.isRequired:void 0!==n&&(!((0,p.se)(u)&&l(n)<l(u))&&!((0,p.se)(m)&&l(n)>l(m)))};return{...t,kind:e,sortMode:"default",validateInput:f,getCell(e,t){if(!0===t){const t=f(e);if(!1===t)return U(te(e),"Invalid input.");t instanceof Date&&(e=t)}const i=le(e);let o="",r="",l=c;if(void 0===i)return U(te(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=j().utc(i);if(!e.isValid())return U(te(i),`This should never happen. Please report this bug. \nError: ${e.toString()}`);if(d.timezone){try{e=pe(e,d.timezone)}catch(v){return U(e.toISOString(),`Failed to adjust to the provided timezone: ${d.timezone}. \nError: ${v}`)}l=e.utcOffset()}try{r=re(e,d.format||n)}catch(v){return U(e.toISOString(),`Failed to format the date for rendering with: ${d.format}. \nError: ${v}`)}o=re(e,n)}return{...g,copyData:o,isMissingValue:(0,p.hX)(i),data:{...g.data,date:i,displayDate:r,timezoneOffset:l}}},getCellValue(e){var t;return(0,p.hX)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}}}function ve(e){var t,n,i,o,r;let l="YYYY-MM-DD HH:mm:ss";(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?l="YYYY-MM-DD HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(l="YYYY-MM-DD HH:mm:ss.SSS");const a=null===(i=e.arrowType)||void 0===i||null===(o=i.meta)||void 0===o?void 0:o.timezone,s=(0,p.se)(a)||(0,p.se)(null===e||void 0===e||null===(r=e.columnTypeOptions)||void 0===r?void 0:r.timezone);return fe("datetime",e,s?l+"Z":l,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function ye(e){var t,n;let i="HH:mm:ss";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)<1&&(i="HH:mm:ss.SSS"),fe("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function be(e){return fe("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function we(e){const t={kind:o.dd.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"checkbox",sortMode:"default",getCell(e){let n=null;return n=ne(e),void 0===n?U(te(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,p.hX)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ve.isEditableType=!0,ye.isEditableType=!0,be.isEditableType=!0,we.isEditableType=!0;const xe=we;function Ce(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function Se(e){const t=B.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=Q({step:Ce(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),r=(0,p.hX)(i.min_value)||i.min_value<0,l=(0,p.se)(i.step)&&!Number.isNaN(i.step)?ae(i.step):void 0,a={kind:o.dd.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:r,fixedDecimals:l,thousandSeparator:""},s=t=>{let n=ie(t);if((0,p.hX)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,p.se)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,p.se)(i.min_value)&&n<i.min_value)&&(!o||n)};return{...e,kind:"number",sortMode:"smart",validateInput:s,getCell(e,t){if(!0===t){const t=s(e);if(!1===t)return U(te(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=ie(e),o="";if((0,p.se)(n)){if(Number.isNaN(n))return U(te(e),"The value cannot be interpreted as a number.");if((0,p.se)(l)&&(r=n,n=0===(d=l)?Math.trunc(r):Math.trunc(r*10**d)/10**d),Number.isInteger(n)&&!Number.isSafeInteger(n))return U(te(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=oe(n,i.format,l)}catch(c){return U(te(n),(0,p.se)(i.format)?`Failed to format the number based on the provided format configuration: (${i.format}). Error: ${c}`:`Failed to format the number. Error: ${c}`)}}var r,d;return{...a,data:n,displayData:o,isMissingValue:(0,p.hX)(n),copyData:(0,p.hX)(n)?"":te(n)}},getCellValue:e=>void 0===e.data?null:e.data}}Se.isEditableType=!0;const Me=Se;function Ee(e){let t="string";const n=Q({options:"bool"===B.D0.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),i=new Set(n.options.map((e=>typeof e)));1===i.size&&(i.has("number")||i.has("bigint")?t="number":i.has("boolean")&&(t="boolean"));const r={kind:o.dd.Custom,allowOverlay:!0,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal",data:{kind:"dropdown-cell",allowedValues:[...!0!==e.isRequired?[null]:[],...n.options.filter((e=>null!==e&&""!==e)).map((e=>te(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,p.se)(e)&&""!==e&&(n=te(e)),t&&!r.data.allowedValues.includes(n)?U(te(n),"The value is not part of the allowed options."):{...r,isMissingValue:null===n,copyData:n||"",data:{...r.data,value:n}}},getCellValue(e){var n,i,o,r,l,a,s;return(0,p.hX)(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(r=ie(null===(l=e.data)||void 0===l?void 0:l.value))&&void 0!==r?r:null:"boolean"===t?null!==(a=ne(null===(s=e.data)||void 0===s?void 0:s.value))&&void 0!==a?a:null:null===(o=e.data)||void 0===o?void 0:o.value}}}Ee.isEditableType=!0;const ke=Ee;function Te(e){const t={kind:o.dd.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return{...e,kind:"list",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.hX)(e)?[]:ee(e);return{...t,data:n,isMissingValue:(0,p.hX)(e),copyData:(0,p.hX)(e)?"":te(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,p.hX)(e.data)||J(e)?null:e.data}}Te.isEditableType=!1;const Re=Te;function Ie(e,t,n){const i=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function Ne(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===B.D0.getTypeName(n)&&(o=!1),{id:`index-${t}`,name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function _e(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,p.hX)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===B.D0.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,p.se)(n)&&(i={options:n})}return{id:`column-${n}-${t}`,name:n,title:n,isEditable:!0,arrowType:o,columnTypeOptions:i,isIndex:!1,isHidden:!1}}function Oe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?B.D0.getTypeName(e.arrowType):null;let r;if("object"===e.kind)r=e.getCell((0,p.se)(t.content)?de(B.D0.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,p.se)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,a;let n;var s,d,c;if("time"===i&&(0,p.se)(null===(l=t.field)||void 0===l||null===(a=l.type)||void 0===a?void 0:a.unit))n=W().unix(B.D0.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(c=d.type)||void 0===c?void 0:c.unit)&&void 0!==s?s:0)).utc().toDate();else n=W().utc(Number(t.content)).toDate();r=e.getCell(n)}else if("decimal"===i){const n=(0,p.hX)(t.content)?null:B.D0.format(t.content,t.contentType,t.field);r=e.getCell(n)}else r=e.getCell(t.content);if(q(r))return r;if(!e.isEditable){if((0,p.se)(t.displayContent)){var u;const e=de(t.displayContent);r.kind===o.dd.Text||r.kind===o.dd.Number||r.kind===o.dd.Uri?r={...r,displayData:e}:r.kind===o.dd.Custom&&"date-picker-cell"===(null===(u=r.data)||void 0===u?void 0:u.kind)&&(r={...r,data:{...r.data,displayDate:e}})}n&&t.cssId&&(r=function(e,t,n){const i={},o=Ie(t,"color",n);o&&(i.textDark=o);const r=Ie(t,"background-color",n);return r&&(i.bgCell=r),"yellow"===r&&void 0===o&&(i.textDark="#31333F"),i?{...e,themeOverride:i}:e}(r,t.cssId,n))}return r}function De(e){const t=e.columnTypeOptions||{};let n,i;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(a){n=`Invalid validate regex: ${t.validate}.\nError: ${a}`}if(!(0,p.hX)(t.display_text)&&t.display_text.includes("(")&&t.display_text.includes(")"))try{i=new RegExp(t.display_text,"us")}catch(a){i=void 0}const r={kind:o.dd.Uri,readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal",hoverEffect:!0,data:"",displayData:"",copyData:""},l=i=>{if((0,p.hX)(i))return!e.isRequired;const o=te(i);return!(t.max_chars&&o.length>t.max_chars)&&!(n instanceof RegExp&&!1===n.test(o))};return{...e,kind:"link",sortMode:"default",validateInput:l,getCell(e,o){if((0,p.hX)(e))return{...r,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return U(te(s),n);if(o){if(!1===l(s))return U(te(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,p.hX)(t))return"";try{const n=t.match(e);return n&&void 0!==n[1]?decodeURI(n[1]):t}catch(a){return t}}(i,s):t.display_text||s),{...r,data:s,displayData:d,isMissingValue:(0,p.hX)(s),onClickUri:e=>{window.open(s.startsWith("www.")?`https://${s}`:s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,p.hX)(e.data)?null:e.data}}De.isEditableType=!0;const Ae=De;function Fe(e){const t={kind:o.dd.Image,data:[],displayData:[],readonly:!0,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return{...e,kind:"image",sortMode:"default",isEditable:!1,getCell(e){const n=(0,p.se)(e)?[te(e)]:[];return{...t,data:n,isMissingValue:!(0,p.se)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}Fe.isEditableType=!1;const ze=Fe;function $e(e){const t=Ce(B.D0.getTypeName(e.arrowType)),n=Q({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=oe(n.max_value,n.format)}catch(a){i=te(n.max_value)}const r=(0,p.hX)(n.step)||Number.isNaN(n.step)?void 0:ae(n.step),l={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:n.min_value,max:n.max_value,step:n.step,value:n.min_value,label:String(n.min_value),measureLabel:i,readonly:!0}};return{...e,kind:"progress",sortMode:"smart",isEditable:!1,getCell(e){if((0,p.hX)(e))return G();if((0,p.hX)(n.min_value)||(0,p.hX)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return U("Invalid min/max parameters",`The min_value (${n.min_value}) and max_value (${n.max_value}) parameters must be valid numbers.`);if((0,p.hX)(n.step)||Number.isNaN(n.step))return U("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=ie(e);if(Number.isNaN(t)||(0,p.hX)(t))return U(te(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return U(te(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=oe(t,n.format,r)}catch(a){return U(te(t),(0,p.se)(n.format)?`Failed to format the number based on the provided format configuration: (${n.format}). Error: ${a}`:`Failed to format the number. Error: ${a}`)}const o=Math.min(n.max_value,Math.max(n.min_value,t));return{...l,isMissingValue:(0,p.hX)(e),copyData:String(t),data:{...l.data,value:o,label:i}}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}}}$e.isEditableType=!1;const Le=$e;function He(e,t,n){const i=Q({y_min:0,y_max:1},t.columnTypeOptions),r={kind:o.dd.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[i.y_min,i.y_max]}};return{...t,kind:e,sortMode:"default",isEditable:!1,getCell(e){if((0,p.hX)(i.y_min)||(0,p.hX)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return U("Invalid min/max y-axis configuration",`The y_min (${i.y_min}) and y_max (${i.y_max}) configuration options must be valid numbers.`);if((0,p.hX)(e))return G();const t=ee(e),n=[];let o=[];if(0===t.length)return G();let l=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=ie(t[i]);if(Number.isNaN(e)||(0,p.hX)(e))return U(te(t),`The value cannot be interpreted as a numeric array. ${te(e)} is not a number.`);e>l&&(l=e),e<a&&(a=e),n.push(e)}return o=n.length>0&&(l>i.y_max||a<i.y_min)?n.map((e=>l-a===0?l>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-a)/(l-a))+(i.y_min||0))):n,{...r,copyData:n.join(","),data:{...r.data,values:o,displayValues:n.map((e=>oe(e)))},isMissingValue:(0,p.hX)(e)}},getCellValue(e){var t,n;return e.kind===o.dd.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}}}function Ve(e){return He("line_chart",e,"line")}function We(e){return He("bar_chart",e,"bar")}function Xe(e){return He("area_chart",e,"area")}Ve.isEditableType=!1,We.isEditableType=!1,Xe.isEditableType=!1;const je=new Map(Object.entries({object:me,text:ge,checkbox:xe,selectbox:ke,list:Re,number:Me,link:Ae,datetime:ve,date:be,time:ye,line_chart:Ve,bar_chart:We,area_chart:Xe,image:ze,progress:Le})),Be=[],Pe="_index",Ye="_pos:",Ue={small:75,medium:200,large:400};function qe(e){if(!(0,p.hX)(e))return"number"===typeof e?e:e in Ue?Ue[e]:void 0}function Je(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==Pe?n=t.get(e.name):t.has(`${Ye}${e.indexNumber}`)?n=t.get(`${Ye}${e.indexNumber}`):e.isIndex&&t.has(Pe)&&(n=t.get(Pe)),n?z()({...e},{title:n.label,width:qe(n.width),isEditable:(0,p.se)(n.disabled)?!n.disabled:void 0,isHidden:n.hidden,isRequired:n.required,columnTypeOptions:n.type_config,contentAlignment:n.alignment,defaultValue:n.default,help:n.help}):e}function Ge(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,p.se)(n)&&(je.has(n)?i=je.get(n):(0,ce.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,p.hX)(i)&&(i=function(e){let t=e?B.D0.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty","large_string[pyarrow]"].includes(t)?ge:["datetime","datetimetz"].includes(t)?ve:"time"===t?ye:"date"===t?be:["object","bytes"].includes(t)?me:["bool"].includes(t)?xe:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?Me:"categorical"===t?ke:t.startsWith("list")?Re:me):me}(e.arrowType)),i}const Ke=function(e,t,n){const o=(0,f.u)(),r=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,ce.vV)(t),new Map}}(e.columns)),[e.columns]),l=e.useContainerWidth||(0,p.se)(e.width)&&e.width>0;return{columns:i.useMemo((()=>{let i=function(e){const t=[],{dimensions:n}=e,i=n.headerColumns,o=n.dataColumns;if(0===i&&0===o)return t.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),t;for(let r=0;r<i;r++){const n={...Ne(e,r),indexNumber:r};t.push(n)}for(let r=0;r<o;r++){const n={..._e(e,r),indexNumber:r+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Je(t,r),isStretched:l};const a=Ge(i);return(e.editingMode===g.i3.EditingMode.READ_ONLY||n||!1===a.isEditableType)&&(i={...i,isEditable:!1}),e.editingMode!==g.i3.EditingMode.READ_ONLY&&1==i.isEditable&&(i={...i,icon:"editable"},i.isRequired&&e.editingMode===g.i3.EditingMode.DYNAMIC&&(i={...i,isHidden:!1})),a(i,o)})).filter((e=>!e.isHidden));if(e.columnOrder&&e.columnOrder.length>0){const t=[];i.forEach((e=>{e.isIndex&&t.push(e)})),e.columnOrder.forEach((e=>{const n=i.find((t=>t.name===e));n&&!n.isIndex&&t.push(n)})),i=t}return i.length>0?i:[me({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,r,l,n,e.editingMode,e.columnOrder,o])}};function Ze(e){return e.isIndex?Pe:(0,p.hX)(e.name)?"":e.name}const Qe=class{constructor(e){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=e}toJson(e){const t=new Map;e.forEach((e=>{t.set(e.indexNumber,e)}));const n={edited_rows:{},added_rows:[],deleted_rows:[]};this.editedCells.forEach(((e,i,o)=>{const r={};e.forEach(((e,n,i)=>{const o=t.get(n);o&&(r[Ze(o)]=o.getCellValue(e))})),n.edited_rows[i]=r})),this.addedRows.forEach((e=>{const i={};let o=!1;e.forEach(((e,n,r)=>{const l=t.get(n);if(l){const t=l.getCellValue(e);l.isRequired&&l.isEditable&&J(e)&&(o=!0),(0,p.se)(t)&&(i[Ze(l)]=t)}})),o||n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}fromJson(e,t){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[];const n=JSON.parse(e),i=new Map;t.forEach((e=>{i.set(e.indexNumber,e)}));const o=new Map;t.forEach((e=>{o.set(Ze(e),e)})),Object.keys(n.edited_rows).forEach((e=>{const t=Number(e),i=n.edited_rows[e];Object.keys(i).forEach((e=>{const n=i[e],r=o.get(e);if(r){const e=r.getCell(n);var l;if(e)this.editedCells.has(t)||this.editedCells.set(t,new Map),null===(l=this.editedCells.get(t))||void 0===l||l.set(r.indexNumber,e)}}))})),n.added_rows.forEach((e=>{const n=new Map;t.forEach((e=>{n.set(e.indexNumber,e.getCell(null))})),Object.keys(e).forEach((t=>{const i=e[t],r=o.get(t);if(r){const e=r.getCell(i);e&&n.set(r.indexNumber,e)}})),this.addedRows.push(n)})),this.deletedRows=n.deleted_rows}isAddedRow(e){return e>=this.numRows}getCell(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);const n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}setCell(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map);this.editedCells.get(t).set(e,n)}}addRow(e){this.addedRows.push(e)}deleteRows(e){e.sort(((e,t)=>t-e)).forEach((e=>{this.deleteRow(e)}))}deleteRow(e){(0,p.hX)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort(((e,t)=>e-t))),this.editedCells.delete(e)))}getOriginalRowIndex(e){let t=e;for(let n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}getNumRows(){return this.numRows+this.addedRows.length-this.deletedRows.length}};var et=n(32735);const tt=function(){const e=(0,f.u)(),t=i.useMemo((()=>({editable:e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="${e.bgColor}"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>`})),[]);return{theme:i.useMemo((()=>({accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,et.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,et.No)(e.colors.primary,.9),resizeIndicatorColor:e.colors.primary,bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.secondaryBg,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,et.No)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25})),[e]),tableBorderRadius:e.radii.default,headerIcons:t}};const nt=function(e,t,n,o){return{getCellContent:i.useCallback((i=>{let[r,l]=i;if(r>t.length-1)return U("Column index out of bounds.","This should never happen. Please report this bug.");if(l>n-1)return U("Row index out of bounds.","This should never happen. Please report this bug.");const a=t[r],s=a.indexNumber,d=o.current.getOriginalRowIndex(l),c=o.current.isAddedRow(d);if(a.isEditable||c){const e=o.current.getCell(s,d);if((0,p.se)(e))return e;if(c)return U("Error during cell creation.",`This should never happen. Please report this bug. No cell found for an added row: col=${s}; row=${d}`)}try{return Oe(a,e.getCell(d+1,s),e.cssStyles)}catch(u){return U("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${u}`)}}),[t,n,e,o])}};var it=n(53221);const ot=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,it.uf)({columns:t.map((e=>Z(e))),getCellContent:n,rows:e,sort:o}),s=i.useMemo((()=>function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(t,o)),[t,o]),d=i.useCallback((e=>{let t="asc";const n=s[e];if(o&&o.column.id===n.id){if("asc"!==o.direction)return void r(void 0);t="desc"}r({column:Z(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};var rt=n(71034),lt=n.n(rt);const at=function(e,t,n,r,l){const[a,s]=i.useState({columns:o.I1.empty(),rows:o.I1.empty(),current:void 0}),d=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW)||e.selectionMode.includes(g.i3.SelectionMode.SINGLE_ROW)),c=d&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW),u=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.SINGLE_COLUMN)||e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN)),m=u&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN),h=a.rows.length>0,p=a.columns.length>0,f=void 0!==a.current,v=i.useCallback((e=>{const t=!lt()(e.rows.toArray(),a.rows.toArray()),n=!lt()(e.columns.toArray(),a.columns.toArray()),i=!lt()(e.current,a.current);let o=d&&t||u&&n,c=e;if((d||u)&&void 0!==e.current&&i&&(c={...e,rows:a.rows,columns:a.columns},o=!1),t&&e.rows.length>0&&n&&0===e.columns.length&&(c={...c,columns:a.columns},o=!0),n&&e.columns.length>0&&t&&0===e.rows.length&&(c={...c,rows:a.rows},o=!0),n&&c.columns.length>=0){let e=c.columns;r.forEach(((t,n)=>{t.isIndex&&(e=e.remove(n))})),e.length<c.columns.length&&(c={...c,columns:e})}s(c),o&&l(c)}),[a,d,u,l,r]),y=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={columns:t?a.columns:o.I1.empty(),rows:e?a.rows:o.I1.empty(),current:void 0};s(n),(!e&&d||!t&&u)&&l(n)}),[a,d,u,l]);return{gridSelection:a,isRowSelectionActivated:d,isMultiRowSelectionActivated:c,isColumnSelectionActivated:u,isMultiColumnSelectionActivated:m,isRowSelected:h,isColumnSelected:p,isCellSelected:f,clearSelection:y,processSelectionChange:v}},st=",",dt='"',ct='"',ut="\n",mt="\ufeff",ht=new RegExp(`[${[st,dt,ut].join("")}]`);function gt(e){return e.map((e=>function(e){if((0,p.hX)(e))return"";const t=te(e);if(ht.test(t))return`${dt}${t.replace(new RegExp(dt,"g"),ct+dt)}${dt}`;return t}(e))).join(st)+ut}async function pt(e,t,n,i){const o=new TextEncoder;await e.write(o.encode(mt));const r=n.map((e=>e.name));await e.write(o.encode(gt(r)));for(let l=0;l<i;l++){const i=[];n.forEach(((e,n,o)=>{i.push(e.getCellValue(t([n,l])))})),await e.write(o.encode(gt(i)))}await e.close()}const ft=function(e,t,o,r){return{exportToCsv:i.useCallback((async()=>{const i=`${(new Date).toISOString().slice(0,16).replace(":","-")}_export.csv`;try{const r=await n.e(3966).then(n.bind(n,93966)),l=await r.showSaveFilePicker({suggestedName:i,types:[{accept:{"text/csv":[".csv"]}}],excludeAcceptAllOption:!1}),a=await l.createWritable();await pt(a,e,t,o)}catch(l){if(l instanceof Error&&"AbortError"===l.name)return;try{(0,ce.FF)("Failed to export data as CSV with FileSystem API, trying fallback method",l);let n="";const a=new WritableStream({write:async e=>{n+=new TextDecoder("utf-8").decode(e)},close:async()=>{}});await pt(a.getWriter(),e,t,o);const s=new Blob([n],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(s),c=document.createElement("a");r?c.setAttribute("target","_blank"):c.setAttribute("target","_self"),c.style.display="none",c.href=d,c.download=i,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(d)}catch(l){(0,ce.vV)("Failed to export data as CSV",l)}}}),[t,o,e,r])}};const vt=function(e,t,n,o,r,l,a,s,d){const c=i.useCallback(((t,i)=>{let[l,a]=t;const d=e[l];if(!d.isEditable)return;const c=d.indexNumber,u=n.current.getOriginalRowIndex(r(a)),m=o([l,a]),h=d.getCellValue(m),g=d.getCellValue(i);if(!q(m)&&g===h)return;const p=d.getCell(g,!0);q(p)?(0,ce.FF)(`Not applying the cell edit since it causes this error:\n ${p.data}`):(n.current.setCell(c,u,{...p,lastUpdated:performance.now()}),s())}),[e,n,r,o,s]),u=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i),a()}),[e,n,t,a]),m=i.useCallback((()=>{t||(u(),s())}),[u,s,t]),h=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(r(e))));return n.current.deleteRows(e),a(),d(),s(),!1}if(null!==(o=i.current)&&void 0!==o&&o.range){const t=[],n=i.current.range;for(let i=n.y;i<n.y+n.height;i++)for(let o=n.x;o<n.x+n.width;o++){const n=e[o];n.isEditable&&!n.isRequired&&(t.push({cell:[o,i]}),c([o,i],n.getCell(null)))}return t.length>0&&(s(),l(t)),!1}return!0}),[e,n,t,l,r,s,c,d,a]),g=i.useCallback(((i,a)=>{const[d,c]=i,m=[];for(let h=0;h<a.length;h++){const i=a[h];if(h+c>=n.current.getNumRows()){if(t)break;u()}for(let t=0;t<i.length;t++){const l=i[t],a=h+c,s=t+d;if(s>=e.length)break;const u=e[s];if(u.isEditable){const e=u.getCell(l,!0);if((0,p.se)(e)&&!q(e)){const t=u.indexNumber,i=n.current.getOriginalRowIndex(r(a)),l=u.getCellValue(o([s,a]));u.getCellValue(e)!==l&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),m.push({cell:[s,a]}))}}}m.length>0&&(s(),l(m))}return!1}),[e,n,t,r,o,u,s,l]),f=i.useCallback(((t,n)=>{const i=t[0];if(i>=e.length)return!0;const o=e[i];if(o.validateInput){const e=o.validateInput(o.getCellValue(n));return!0===e||!1===e?e:o.getCell(e)}return!0}),[e]);return{onCellEdited:c,onPaste:g,onRowAppended:m,onDelete:h,validateCell:f}};const yt=function(e,t){const[n,o]=i.useState(),r=i.useRef(null),l=i.useCallback((n=>{if(clearTimeout(r.current),r.current=0,o(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){const i=n.location[0],l=n.location[1];let a;if(i<0||i>=e.length)return;const s=e[i];if("header"===n.kind&&(0,p.se)(s))a=s.help;else if("cell"===n.kind){const e=t([i,l]);s.isRequired&&s.isEditable&&J(e)?a="\u26a0\ufe0f Please fill out this cell.":function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip}(e)&&(a=e.tooltip)}a&&(r.current=setTimeout((()=>{a&&o({content:a,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,o,r]);return{tooltip:n,clearTooltip:i.useCallback((()=>{o(void 0)}),[o]),onItemHovered:l}};var bt=n(28873),wt=n(70128),xt=n(13914),Ct=n(43301),St=n(67338);const Mt=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:r,rect:l}=t,a=t.col;if(J(i)&&a<e.length){const i=e[a];return["checkbox","line_chart","bar_chart","progress"].includes(i.kind)?n():(e=>{const{cell:t,theme:n,ctx:i}=e;(0,bt.lR)({...e,theme:{...n,textDark:n.textLight,headerFontFull:`${n.headerFontStyle} ${n.fontFamily}`,baseFontFull:`${n.baseFontStyle} ${n.fontFamily}`,markerFontFull:`${n.markerFontStyle} ${n.fontFamily}`},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign),i.fillStyle=n.textDark})(t),void(i.isRequired&&i.isEditable&&function(e,t,n){e.save(),e.beginPath(),e.moveTo(t.x+t.width-8,t.y+1),e.lineTo(t.x+t.width,t.y+1),e.lineTo(t.x+t.width,t.y+1+8),e.fillStyle=n.accentColor,e.fill(),e.restore()}(r,l,o))}n()}),[e]),customRenderers:i.useMemo((()=>[wt.A,xt.A,Ct.A,St.Ay,...Be]),[])}};const Et=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,r)=>{e.id&&n(new Map(t).set(e.id,r))}),[t]);return{columns:i.useMemo((()=>e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e))),[e,t]),onColumnResize:o}},kt=2,Tt=35,Rt=50+kt,It=2*Tt+kt;const Nt=function(e,t,n,o,r){let l,a=function(e){return Math.max(e*Tt+kt,It)}(t+1+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),s=Math.min(a,400);e.height&&(s=Math.max(e.height,It),a=Math.max(e.height,a)),o&&(s=Math.min(s,o),a=Math.min(a,o),e.height||(s=a));let d=n;e.useContainerWidth?l=n:e.width&&(l=Math.min(Math.max(e.width,Rt),n),d=Math.min(Math.max(e.width,d),n));const[c,u]=i.useState({width:l||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===c.width&&u({width:n,height:c.height})}),[n]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[t]),i.useLayoutEffect((()=>{u({width:l||"100%",height:c.height})}),[l]),i.useLayoutEffect((()=>{u({width:c.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(r){const t=e.useContainerWidth||(0,p.se)(e.width)&&e.width>0;u({width:t?d:"100%",height:a})}else u({width:l||"100%",height:s})}),[r]),{minHeight:It,maxHeight:a,minWidth:Rt,maxWidth:d,resizableSize:c,setResizableSize:u}},_t=(0,M.A)("img",{target:"e24uaba0"})((()=>({maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"})),""),Ot=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,I.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,I.jsx)(_t,{src:n})}):(0,I.jsx)(_t,{src:n})};var Dt=n(3074),At=n(41639),Ft=n(88044);const zt=function(e){let{top:t,left:n,content:o,clearTooltip:r}=e;const[l,a]=i.useState(!0),s=(0,f.u)(),{colors:d,fontSizes:c,radii:u}=s,m=i.useCallback((()=>{a(!1),r()}),[r,a]);return(0,I.jsx)(Dt.A,{content:(0,I.jsx)(Ft.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,I.jsx)(b.Ay,{style:{fontSize:c.sm},source:o,allowHTML:!1})}),placement:At.El.top,accessibilityType:At.IP.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:m,onEsc:m,overrides:{Body:{style:{borderTopLeftRadius:u.default,borderTopRightRadius:u.default,borderBottomLeftRadius:u.default,borderBottomRightRadius:u.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,E.iq)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:c.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:l,children:(0,I.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},$t=(0,M.A)("div",{target:"e1w7nams0"})((e=>{let{hasCustomizedScrollbars:t,theme:n}=e;return{position:"relative",display:"inline-block","& .stDataFrameGlideDataEditor":{height:"100%",minWidth:"100%",borderRadius:n.radii.default},"& .dvn-scroller":{...!t&&{scrollbarWidth:"thin"},overflowX:"auto !important",overflowY:"auto !important"}}}),"");n(32595),n(1627);const Lt=(0,h.A)((function(e){let{element:t,data:n,width:h,height:f,disabled:v,widgetMgr:y,isFullScreen:b,disableFullscreenMode:w,expand:x,collapse:C,fragmentId:S}=e;const M=i.useRef(null),E=i.useRef(null),k=i.useRef(null),{theme:T,headerIcons:R,tableBorderRadius:D}=tt(),{libConfig:{enforceDownloadInNewTab:A=!1}}=i.useContext(O.n),[F,z]=i.useState(!0),[$,L]=i.useState(!1),[H,V]=i.useState(!1),[W,X]=i.useState(!1),j=i.useMemo((()=>window.matchMedia&&window.matchMedia("(pointer: coarse)").matches),[]),B=i.useMemo((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")||window.navigator.userAgent.includes("Chrome")),[]);(0,p.hX)(t.editingMode)&&(t.editingMode=g.i3.EditingMode.READ_ONLY);const{READ_ONLY:P,DYNAMIC:Y}=g.i3.EditingMode,U=n.dimensions,q=Math.max(0,U.rows-1),J=0===q&&!(t.editingMode===Y&&U.dataColumns>0),G=q>15e4,Q=i.useRef(new Qe(q)),[ee,te]=i.useState(Q.current.getNumRows());i.useEffect((()=>{Q.current=new Qe(q),te(Q.current.getNumRows())}),[q]);const ne=i.useCallback((()=>{Q.current=new Qe(q),te(Q.current.getNumRows())}),[q]),{columns:ie}=Ke(t,n,v);i.useEffect((()=>{if(t.editingMode===P)return;const e=y.getStringValue({id:t.id,formId:t.formId});e&&(Q.current.fromJson(e,ie),te(Q.current.getNumRows()))}),[]);const{getCellContent:oe}=nt(n,ie,ee,Q),{columns:re,sortColumn:le,getOriginalIndex:ae,getCellContent:se}=ot(q,ie,oe),de=i.useCallback((0,p.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>ae(e))),n.selection.columns=e.columns.toArray().map((e=>Ze(re[e])));const i=JSON.stringify(n),o=y.getStringValue({id:t.id,formId:t.formId});void 0!==o&&o===i||y.setStringValue({id:t.id,formId:t.formId},i,{fromUi:!0},S)})),[t.id,t.formId,y,S,ae,Ze]),{gridSelection:ce,isRowSelectionActivated:ue,isMultiRowSelectionActivated:me,isColumnSelectionActivated:he,isMultiColumnSelectionActivated:ge,isRowSelected:pe,isColumnSelected:fe,isCellSelected:ve,clearSelection:ye,processSelectionChange:be}=at(t,J,v,re,de);i.useEffect((()=>{ye(!0,!0)}),[b]);const we=i.useCallback((e=>{var t;null===(t=E.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!ue&&!he)return;const e=y.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,r,l;const t=re.map((e=>Ze(e))),a=JSON.parse(e);let s=o.I1.empty(),d=o.I1.empty();if(null===(n=a.selection)||void 0===n||null===(i=n.rows)||void 0===i||i.forEach((e=>{s=s.add(e)})),null===(r=a.selection)||void 0===r||null===(l=r.columns)||void 0===l||l.forEach((e=>{d=d.add(t.indexOf(e))})),s.length>0||d.length>0){be({rows:s,columns:d,current:void 0})}}}),[]);const xe=i.useCallback((()=>{ee!==Q.current.getNumRows()&&te(Q.current.getNumRows())}),[ee]),Ce=i.useCallback((0,p.sg)(150,(()=>{const e=Q.current.toJson(re);let n=y.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new Qe(0).toJson([])),e!==n&&y.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},S)})),[t.id,t.formId,y,S,re,Q.current]),{exportToCsv:Se}=ft(se,re,ee,A),{onCellEdited:Me,onPaste:Ee,onRowAppended:ke,onDelete:Te,validateCell:Re}=vt(re,t.editingMode!==Y,Q,se,ae,we,xe,Ce,ye),{tooltip:Ie,clearTooltip:Ne,onItemHovered:_e}=yt(re,se),{drawCell:Oe,customRenderers:De}=Mt(re),Ae=i.useMemo((()=>re.map((e=>Z(e)))),[re]),{columns:Fe,onColumnResize:ze}=Et(Ae),{minHeight:$e,maxHeight:Le,minWidth:He,maxWidth:Ve,resizableSize:We,setResizableSize:Xe}=Nt(t,ee,h,f,b),je=i.useCallback((e=>{let[t,n]=e;return{...K(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:T.textLight},span:[0,Math.max(re.length-1,0)]}}),[re,T.textLight]);i.useEffect((()=>{if(!t.formId)return;const e=new m.o;return e.manageFormClearListener(y,t.formId,(()=>{ne(),ye()})),()=>{e.disconnect()}}),[t.formId,ne,ye,y]);const Be=!J&&t.editingMode===Y&&!v,Pe=J?0:re.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(k.current&&E.current){var e,t;const n=null===(e=k.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(V(n.height>k.current.clientHeight),X(n.width>k.current.clientWidth))}}),1)}),[We,ee,Fe]),(0,I.jsxs)($t,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:B,ref:k,onMouseDown:e=>{if(k.current&&B){const t=k.current.getBoundingClientRect();W&&t.height-7<e.clientY-t.top&&e.stopPropagation(),H&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{F||j||e.currentTarget.contains(e.relatedTarget)||ye(!0,!0)},children:[(0,I.jsxs)(_,{isFullScreen:b,disableFullscreenMode:w,locked:pe&&!ue||ve||j&&F,onExpand:x,onCollapse:C,target:$t,children:[(ue&&pe||he&&fe)&&(0,I.jsx)(N,{label:"Clear selection",icon:a.b,onClick:()=>{ye(),Ne()}}),Be&&pe&&(0,I.jsx)(N,{label:"Delete row(s)",icon:s.e,onClick:()=>{Te&&(Te(ce),Ne())}}),Be&&!pe&&(0,I.jsx)(N,{label:"Add row",icon:d.O,onClick:()=>{ke&&(z(!0),ke(),Ne())}}),!G&&!J&&(0,I.jsx)(N,{label:"Download as CSV",icon:c.n,onClick:()=>Se()}),!J&&(0,I.jsx)(N,{label:"Search",icon:u.v,onClick:()=>{$?L(!1):(z(!0),L(!0)),Ne()}})]}),(0,I.jsx)(l.c,{"data-testid":"stDataFrameResizable",ref:M,defaultSize:We,style:{border:`1px solid ${T.borderColor}`,borderRadius:`${D}`},minHeight:$e,maxHeight:Le,minWidth:He,maxWidth:Ve,size:We,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,Tt],snapGap:Tt/3,onResizeStop:(e,t,n,i)=>{M.current&&Xe({width:M.current.size.width,height:Le-M.current.size.height===kt?M.current.size.height+kt:M.current.size.height})},children:(0,I.jsx)(r.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:E,columns:Fe,rows:J?1:ee,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:Tt,headerHeight:Tt,getCellContent:J?je:se,onColumnResize:j?void 0:ze,resizeIndicator:"header",freezeColumns:Pe,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:j?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:_e,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(L((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:$,onSearchClose:()=>{L(!1),Ne()},onHeaderClicked:(e,t)=>{J||G||he||(ue&&pe&&ye(),le(e))},gridSelection:ce,onGridSelectionChange:e=>{(F||j)&&(be(e),void 0!==Ie&&Ne())},theme:T,onMouseMove:e=>{"out-of-bounds"===e.kind&&F?z(!1):"out-of-bounds"===e.kind||F||z(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...B&&{paddingBottom:W?-6:void 0,paddingRight:H?-6:void 0}},drawCell:Oe,customRenderers:De,imageEditorOverride:Ot,headerIcons:R,validateCell:Re,onPaste:!1,...ue&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:T.bgHeader,bgCellMedium:T.bgHeader}},rowSelectionMode:me?"multi":"auto",rowSelect:v?"none":me?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...he&&{columnSelect:v?"none":ge?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!J&&t.editingMode!==P&&!v&&{fillHandle:!j,onCellEdited:Me,onPaste:Ee,onDelete:Te},...!J&&t.editingMode===Y&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:T.bgHeader,bgCellMedium:T.bgHeader}},rowSelectionMode:"multi",rowSelect:v?"none":"multi",onRowAppended:v?void 0:ke,onHeaderClicked:void 0}})}),Ie&&Ie.content&&(0,I.jsx)(zt,{top:Ie.top,left:Ie.left,content:Ie.content,clearTooltip:Ne})]})}),!0)},34752:(e,t,n)=>{n.d(t,{X:()=>l,o:()=>r});var i=n(58878),o=n(25571);class r{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function l(e){let{element:t,widgetMgr:n,onFormCleared:r}=e;(0,i.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=n.addFormClearedListener(t.formId,r);return()=>{e.disconnect()}}),[t,n,r])}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[7493],{85173:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>G});var i=o(58878),n=o(6334),s=o(72192),r=o(59353),a=o(78025),l=o(43338),h=o(8151),c=o(58144),d=o(22044),p=o(53124),m=o.n(p),u=o(32782),g=o(67253),x=o(29669),w=o(1780),b=o(84152),f=o(6240),S=o(90782);const y=e=>{let{error:t,width:o,deltaType:i}=e;return t instanceof v?(0,S.jsx)(f.A,{width:o,name:"No Mapbox token provided",message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("p",{children:["To use ",(0,S.jsxs)("code",{children:["st.",i]})," or ",(0,S.jsx)("code",{children:"st.map"})," you need to set up a Mapbox access token."]}),(0,S.jsxs)("p",{children:["To get a token, create an account at"," ",(0,S.jsx)("a",{href:"https://mapbox.com",children:"https://mapbox.com"}),". It's free for moderate usage levels!"]}),(0,S.jsxs)("p",{children:["Once you have a token, just set it using the Streamlit config option ",(0,S.jsx)("code",{children:"mapbox.token"})," and don't forget to restart your Streamlit server at this point if it's still running, then reload this tab."]}),(0,S.jsxs)("p",{children:["See"," ",(0,S.jsx)("a",{href:"https://docs.streamlit.io/develop/api-reference/configuration/config.toml",children:"our documentation"})," ","for more info on how to set config options."]})]})}):t instanceof k?(0,S.jsx)(f.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("p",{children:"This app requires an internet connection."}),(0,S.jsx)("p",{children:"Please check your connection and try again."}),(0,S.jsxs)("p",{children:["If you think this is a bug, please file bug report"," ",(0,S.jsx)("a",{href:"https://github.com/streamlit/streamlit/issues/new/choose",children:"here"}),"."]})]})}):(0,S.jsx)(f.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:t.message})};class v extends Error{}class k extends Error{}const j="https://data.streamlit.io/tokens.json",T="mapbox",C=e=>t=>{class o extends i.PureComponent{constructor(o){super(o),this.context=void 0,this.initMapboxToken=async()=>{try{const e=await u.A.get(j),{[T]:t}=e.data;if(!t)throw new Error(`Missing token ${T}`);this.setState({mapboxToken:t,isFetching:!1})}catch(e){const t=(0,g.$)(e);throw this.setState({mapboxTokenError:t,isFetching:!1}),new k(`${t.message} (${j})`)}},this.render=()=>{const{mapboxToken:o,mapboxTokenError:i,isFetching:n}=this.state,{width:s}=this.props;return i?(0,S.jsx)(y,{width:s,error:i,deltaType:e}):n?(0,S.jsx)(w.E,{element:x.EA.create({style:x.EA.SkeletonStyle.ELEMENT})}):(0,S.jsx)(t,{...this.props,mapboxToken:o,width:s})},this.state={isFetching:!0,mapboxToken:void 0,mapboxTokenError:void 0}}componentDidMount(){const e=this.props.element.mapboxToken||this.context.libConfig.mapboxToken;e?this.setState({mapboxToken:e,isFetching:!1}):this.initMapboxToken()}}return o.displayName=`withMapboxToken(${t.displayName||t.name})`,o.contextType=b.n,m()(o,t)};var E=o(89653);const z=(0,E.A)("div",{target:"e1az0zs51"})((e=>{let{width:t,height:o,theme:i}=e;return{marginTop:i.spacing.sm,position:"relative",height:o,width:t}}),""),A=(0,E.A)("div",{target:"e1az0zs50"})((e=>{let{theme:t}=e;return{position:"absolute",right:"2.625rem",top:t.spacing.md,zIndex:1,"button:not(:disabled)":{background:t.colors.bgColor,"& + button":{borderTopColor:t.colors.secondaryBg},"& span":{filter:(0,c.iq)(t)?"":"invert(100%)"}}}}),"");var F=o(21640),V=o(14251),M=o(86202),I=o(26592),W=o(64639),O=o(73417),P=o(27126),D=o(92502),L=o(19720),H=o(14249),N=o(71034),$=o.n(N);const B={classes:{...O,...L,...D,...H,CartoLayer:V.A},functions:{colorBins:M.A,colorCategories:I.A,colorContinuous:W.A}},_=new P.A({configuration:B}),R=(e,t)=>{const o=t.match(/{(.*?)}/g);return o&&o.forEach((o=>{const i=o.substring(1,o.length-1);e.object.hasOwnProperty(i)?t=t.replace(o,e.object[i]):e.object.hasOwnProperty("properties")&&e.object.properties.hasOwnProperty(i)&&(t=t.replace(o,e.object.properties[i]))})),t};o(93298);(0,l.mk)([r.y,a.B]);const q=[],G=C("st.pydeck_chart")((0,d.A)((e=>{const{element:t,height:o,isFullScreen:r,width:a}=e,l=(0,h.u)(),{createTooltip:d,deck:p,onViewStateChange:m,viewState:u}=(e=>{var t;const{element:o,height:n,isLightTheme:s,width:r}=e,{tooltip:a,useContainerWidth:l}=o,[h,c]=(0,i.useState)({bearing:0,pitch:0,zoom:11}),[d,p]=(0,i.useState)({}),m=null!==(t=e.isFullScreen)&&void 0!==t&&t,u=(0,i.useMemo)((()=>Object.freeze(F.A.parse(o.json))),[m,s,o.json]),g=(0,i.useMemo)((()=>{const e={...u};return e.mapStyle||(e.mapStyle=`mapbox://styles/mapbox/${s?"light":"dark"}-v9`),m?Object.assign(e.initialViewState,{width:r,height:n}):(e.initialViewState.height||(e.initialViewState.height=500),l&&(e.initialViewState.width=r)),null===e||void 0===e||delete e.views,_.convert(e)}),[n,m,s,u,l,r]);(0,i.useEffect)((()=>{if(!$()(g.initialViewState,d)){const e=Object.keys(g.initialViewState).reduce(((e,t)=>g.initialViewState[t]===d[t]?e:{...e,[t]:g.initialViewState[t]}),{});c({...h,...e}),p(g.initialViewState)}}),[g.initialViewState,d,h]);const x=(0,i.useCallback)((e=>{if(!e||!e.object||!a)return null;const t=F.A.parse(a);return t.html?t.html=R(e,t.html):t.text=R(e,t.text),t}),[a]),w=(0,i.useCallback)((e=>{let{viewState:t}=e;c(t)}),[c]);return{createTooltip:x,deck:g,onViewStateChange:w,viewState:h}})({element:t,isLightTheme:(0,c.iq)(l),width:a,height:o,isFullScreen:r}),[g,x]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{x(!0)}),[]),(0,S.jsx)(z,{className:"stDeckGlJsonChart","data-testid":"stDeckGlJsonChart",width:a,height:p.initialViewState.height,children:(0,S.jsxs)(n.A,{viewState:u,onViewStateChange:m,height:p.initialViewState.height,width:a,layers:g?p.layers:q,getTooltip:d,ContextProvider:s.wZ.Provider,controller:!0,children:[(0,S.jsx)(s.b,{height:p.initialViewState.height,width:a,mapStyle:p.mapStyle&&("string"===typeof p.mapStyle?p.mapStyle:p.mapStyle[0]),mapboxApiAccessToken:e.element.mapboxToken||e.mapboxToken}),(0,S.jsx)(A,{children:(0,S.jsx)(s.ov,{"data-testid":"stDeckGlJsonChartZoomButton",showCompass:!1})})]})})})))},22044:(e,t,o)=>{"use strict";o.d(t,{A:()=>w});var i=o(58878),n=o(53124),s=o.n(n),r=o(8151),a=o(41514),l=o(67214),h=o(64611),c=o(84152),d=o(89653);const p=(0,d.A)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:t,theme:o}=e;const i=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:o.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:o.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:o.colors.fadedText60,borderRadius:"50%",...i,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:o.colors.bodyText,transition:"none"}}}),""),m=(0,d.A)("div",{target:"e1vs0wn30"})((e=>{let{theme:t,isExpanded:o}=e;return{"&:hover":{[p]:{opacity:1,transform:"scale(1)",transition:"none"}},...o?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var u=o(90782);class g extends i.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:o}=this.state,{children:i,width:n,height:s,disableFullscreenMode:r}=this.props;let c=a.u,d=this.zoomIn,g="View fullscreen";return e&&(c=l.Q,d=this.zoomOut,g="Exit fullscreen"),(0,u.jsxs)(m,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,u.jsx)(p,{"data-testid":"StyledFullScreenButton",onClick:d,title:g,isExpanded:e,children:(0,u.jsx)(h.A,{content:c})}),i(e?{width:t,height:o,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:n,height:s,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}g.contextType=c.n;const x=(0,r.b)(g);const w=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class o extends i.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:o,height:i,disableFullscreenMode:n}=this.props;return(0,u.jsx)(x,{width:o,height:i,disableFullscreenMode:t||n,children:t=>{let{width:o,height:i,expanded:n,expand:s,collapse:r}=t;return(0,u.jsx)(e,{...this.props,width:o,height:i,isFullScreen:n,expand:s,collapse:r})}})}}}return o.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,s()(o,e)}},63872:()=>{},35111:()=>{}}]);
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|