streamlit-nightly 1.38.1.dev20240924__py2.py3-none-any.whl → 1.38.1.dev20240925__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/__init__.py +1 -0
- streamlit/config_option.py +2 -0
- streamlit/delta_generator.py +2 -0
- streamlit/elements/widgets/audio_input.py +248 -0
- streamlit/proto/AudioInput_pb2.py +28 -0
- streamlit/proto/AudioInput_pb2.pyi +58 -0
- streamlit/proto/Element_pb2.py +4 -3
- streamlit/proto/Element_pb2.pyi +9 -4
- streamlit/runtime/state/common.py +2 -0
- streamlit/runtime/state/widgets.py +1 -0
- streamlit/static/asset-manifest.json +8 -6
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/{238.f9bc20d9.chunk.js → 238.8d3a7d25.chunk.js} +1 -1
- streamlit/static/static/js/266.e595f506.chunk.js +1 -0
- streamlit/static/static/js/3710.d73e609f.chunk.js +1 -0
- streamlit/static/static/js/5281.02b3ddc4.chunk.js +1 -0
- streamlit/static/static/js/708.a5252e2f.chunk.js +1 -0
- streamlit/static/static/js/9943.6af344bb.chunk.js +1 -0
- streamlit/static/static/js/main.e9d8ce9e.js +28 -0
- streamlit/web/cli.py +2 -0
- {streamlit_nightly-1.38.1.dev20240924.dist-info → streamlit_nightly-1.38.1.dev20240925.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.38.1.dev20240924.dist-info → streamlit_nightly-1.38.1.dev20240925.dist-info}/RECORD +27 -22
- streamlit/static/static/js/3710.a5101ccc.chunk.js +0 -1
- streamlit/static/static/js/5180.e826dd46.chunk.js +0 -1
- streamlit/static/static/js/9943.2d62e2c4.chunk.js +0 -1
- streamlit/static/static/js/main.133ce9b9.js +0 -28
- /streamlit/static/static/js/{main.133ce9b9.js.LICENSE.txt → main.e9d8ce9e.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.38.1.dev20240924.data → streamlit_nightly-1.38.1.dev20240925.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.38.1.dev20240924.dist-info → streamlit_nightly-1.38.1.dev20240925.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.38.1.dev20240924.dist-info → streamlit_nightly-1.38.1.dev20240925.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.38.1.dev20240924.dist-info → streamlit_nightly-1.38.1.dev20240925.dist-info}/top_level.txt +0 -0
streamlit/web/cli.py
CHANGED
@@ -59,6 +59,7 @@ def _convert_config_option_to_click_option(
|
|
59
59
|
"type": config_option.type,
|
60
60
|
"option": option,
|
61
61
|
"envvar": config_option.env_var,
|
62
|
+
"multiple": config_option.multiple,
|
62
63
|
}
|
63
64
|
|
64
65
|
|
@@ -101,6 +102,7 @@ def configurator_options(func: F) -> F:
|
|
101
102
|
parsed_parameter["param"],
|
102
103
|
help=parsed_parameter["description"],
|
103
104
|
type=parsed_parameter["type"],
|
105
|
+
multiple=parsed_parameter["multiple"],
|
104
106
|
**click_option_kwargs,
|
105
107
|
)
|
106
108
|
func = config_option(func)
|
@@ -1,13 +1,13 @@
|
|
1
|
-
streamlit/__init__.py,sha256=
|
1
|
+
streamlit/__init__.py,sha256=IreKSB4rXfUQ8hNKsBIWCZ1gcWJyxZfz1Fqz71Sgn1o,9566
|
2
2
|
streamlit/__main__.py,sha256=8vHowjccJfFMwrA22IEe3ynE9F670mkspbo9rYdM0ks,868
|
3
3
|
streamlit/cli_util.py,sha256=Lz5th7VSp4KILRLEkjfOK_7AVhNnv2JROl_8UF1MDQg,3383
|
4
4
|
streamlit/column_config.py,sha256=6RYqAsPV838B0DSb7nYPFedKfTxNCzVrc_4BmwMa_c4,1414
|
5
5
|
streamlit/config.py,sha256=ULdWEDSyDotBKo1byVYR1pgfGGyhxhTupQBt-yb6k6I,40546
|
6
|
-
streamlit/config_option.py,sha256=
|
6
|
+
streamlit/config_option.py,sha256=t15ma68Hx71cR_Rd1Ox29nTK2PhV4M8w3rN3nX4OwQY,11601
|
7
7
|
streamlit/config_util.py,sha256=-MGb5eBrsZvNmqywmiBmo27ll1F9OmCDX4toGWglv2c,6015
|
8
8
|
streamlit/cursor.py,sha256=SXJcot8mc1htkXx1jnIWmvYRaFPlPpTOhPoYH-LPmos,6026
|
9
9
|
streamlit/dataframe_util.py,sha256=0wxxXYNnLibiq_LDYXN3031bBFqDXZJJxhc9DIL0f7k,47836
|
10
|
-
streamlit/delta_generator.py,sha256=
|
10
|
+
streamlit/delta_generator.py,sha256=XIZK7v2ePBtqlDVxvZmjCuU4BolA7NG4i0K4ArtG20w,21883
|
11
11
|
streamlit/delta_generator_singletons.py,sha256=auM2-dFoY0oBk74OfMEcgX6EBLi4cuGmVxcEM-N37Q0,7555
|
12
12
|
streamlit/deprecation_util.py,sha256=3JxWWS424v1kQ-qOq-9sQNYPQ8_UERH3QpYtkWxLP74,6516
|
13
13
|
streamlit/development.py,sha256=iO-KQc62Do9uSwoa5vV2tfImqz3QPhJ1Md6DETcnHkc,813
|
@@ -105,6 +105,7 @@ streamlit/elements/lib/streamlit_plotly_theme.py,sha256=DgMP_PWTfFO5J__q8bGxoT3e
|
|
105
105
|
streamlit/elements/lib/subtitle_utils.py,sha256=ciPgQ6Yi3NS7OdFgDH6lGFwDZpv022flEyQKY5lHNiE,6245
|
106
106
|
streamlit/elements/lib/utils.py,sha256=8VVty4Jd99ynSxjKKqVnEaVsFydBX2m2s24fIdkGgZI,7670
|
107
107
|
streamlit/elements/widgets/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
108
|
+
streamlit/elements/widgets/audio_input.py,sha256=oB56Z2j1UpAkg5kDOwVK13iSMIo6xeZx86bqHfOkcQo,8458
|
108
109
|
streamlit/elements/widgets/button.py,sha256=gdqCf4nyBV-bupIu9wfGI7YGHCbeyZzwuCtR77QlyF4,35238
|
109
110
|
streamlit/elements/widgets/button_group.py,sha256=lo2VI76wwIi1celtDQehcoRHQ_OAqrqdTy49L63lXVw,23736
|
110
111
|
streamlit/elements/widgets/camera_input.py,sha256=ZlN3x6PeXn91UF1kz04bXVz0TVg22za3N8z2aHSRLFs,8430
|
@@ -144,6 +145,8 @@ streamlit/proto/ArrowVegaLiteChart_pb2.py,sha256=3sta7qqtH2F5YsVOXIO3UqB8H7DItP8
|
|
144
145
|
streamlit/proto/ArrowVegaLiteChart_pb2.pyi,sha256=vhNBVqp-S8TuClLUZYZeEIqlPjtzinkfUTiW-e6Xot8,3585
|
145
146
|
streamlit/proto/Arrow_pb2.py,sha256=GRvs4LJ9bxhYsLRENXoaBUKBIUTHTj35Mnj4-dGH84U,2473
|
146
147
|
streamlit/proto/Arrow_pb2.pyi,sha256=aub9Vhp-2Wi3MmD6jhrNEybLZkzzo3jdYzXE25jtFHI,7614
|
148
|
+
streamlit/proto/AudioInput_pb2.py,sha256=wnsKVGT5fZ8B11hRHXwtcRNVbGQec_-yTFSGJBsu6oE,1634
|
149
|
+
streamlit/proto/AudioInput_pb2.pyi,sha256=AbsXUfryXCvc7-rae4yxNNL9Lt2B_UN6nNOtzwU09f0,2166
|
147
150
|
streamlit/proto/Audio_pb2.py,sha256=aXKrNYzdypBZByAF8c4IEJCAmXbX8MxUtwTmnDcQwdI,1492
|
148
151
|
streamlit/proto/Audio_pb2.pyi,sha256=EIH7JT5WIGtdVopk1nmrUvaclBTzzEMjvADDaxKaX7Y,2073
|
149
152
|
streamlit/proto/AutoRerun_pb2.py,sha256=6yfVi1ELwyubHsn9NN8jVjp8kGPPFGC5jA60Y8Wb1n8,1287
|
@@ -188,8 +191,8 @@ streamlit/proto/DocString_pb2.py,sha256=8fEx1J2VxqPTdcio8IXt9wIPIie8O5c7EZ9urt4K
|
|
188
191
|
streamlit/proto/DocString_pb2.pyi,sha256=DRFkduH1siTMV03j4qu9QqHu39pKgWMErD60nF_0tLo,3386
|
189
192
|
streamlit/proto/DownloadButton_pb2.py,sha256=_a4tYG2LSKJxqbAn59iiA-faRUOGTigao1xj8IKApEM,1632
|
190
193
|
streamlit/proto/DownloadButton_pb2.pyi,sha256=B5LmPtZraSfDuwOy_F2pFC_lXJ8m1-CPcLbq3NYmm-c,2339
|
191
|
-
streamlit/proto/Element_pb2.py,sha256=
|
192
|
-
streamlit/proto/Element_pb2.pyi,sha256=
|
194
|
+
streamlit/proto/Element_pb2.py,sha256=a1b2uxwNbK9iQTn2nUfLzyQp5D0ClV7Zq1HQ_kvABPc,10634
|
195
|
+
streamlit/proto/Element_pb2.pyi,sha256=BQ4-9PhfqUvrKWpSVnVYTNg_hJyZiSEl-IiOwMPuBds,17507
|
193
196
|
streamlit/proto/Empty_pb2.py,sha256=oDn0uIKO3tkG5QBuMfCeycUM8D8wES-sW_NsT7EyY60,1172
|
194
197
|
streamlit/proto/Empty_pb2.pyi,sha256=rJedytkoIXbdmCusBuUTgQAgcZSPzkr2OOcO2njMu7Y,1025
|
195
198
|
streamlit/proto/Exception_pb2.py,sha256=CDrrWNqRYueU2d9nSZHuluPlIdharnvtH-Jvtmbpj4U,1410
|
@@ -337,16 +340,16 @@ streamlit/runtime/scriptrunner_utils/exceptions.py,sha256=FM09ZMEkAGqdNUPSp3SyFx
|
|
337
340
|
streamlit/runtime/scriptrunner_utils/script_requests.py,sha256=_CeahHuCUJL8CL2oEWkKLOPDAw5HssYgTzg9tdtdUWE,12078
|
338
341
|
streamlit/runtime/scriptrunner_utils/script_run_context.py,sha256=uldS9qpOwOhSVTCIZfuVSW5Qcqc54-73loh5fq-mlU0,10295
|
339
342
|
streamlit/runtime/state/__init__.py,sha256=rPkmN09FxLMWUDDBbs7Ig2d5MwAKu0GlXQwZSgBHbrY,1433
|
340
|
-
streamlit/runtime/state/common.py,sha256=
|
343
|
+
streamlit/runtime/state/common.py,sha256=MB-qemIXda6ff6MjYaMQtKslKo6Nrbm8-ewSGjj3eV0,8105
|
341
344
|
streamlit/runtime/state/query_params.py,sha256=kCNQI99ctEGY7B2q49D9RM1vGGlZn9b4IqTxtMM9BJs,7507
|
342
345
|
streamlit/runtime/state/query_params_proxy.py,sha256=_DJnRsoZmIUpeNXP_9Ixa4GrU4xZ9E1t5ixDyDKJ0fM,7155
|
343
346
|
streamlit/runtime/state/safe_session_state.py,sha256=WLFFyMtP4F19TWWBarKtSP942IepI2eeSBhifwbuFgY,5222
|
344
347
|
streamlit/runtime/state/session_state.py,sha256=SMBWsSZY29jAgL3QfX4xvJr9aLCNrHHUz9AmosX7FlQ,28850
|
345
348
|
streamlit/runtime/state/session_state_proxy.py,sha256=IWF43f6UWL4KyxNWF3aTv1sbykNI2hI5UsPF2UIfpdE,5524
|
346
|
-
streamlit/runtime/state/widgets.py,sha256=
|
347
|
-
streamlit/static/asset-manifest.json,sha256=
|
349
|
+
streamlit/runtime/state/widgets.py,sha256=XmXbLVHC84AytAocfFCDgP8W7I-UwZ_WkK7Lj0p4fn0,6726
|
350
|
+
streamlit/static/asset-manifest.json,sha256=60Zi2eCo4S1pivZE_Uk85XZti-JA8-3YAqt2puZyA88,14721
|
348
351
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
349
|
-
streamlit/static/index.html,sha256=
|
352
|
+
streamlit/static/index.html,sha256=BA0PcbXwJJo9fPb3JVl_sYMnjJnBFNPzcD3kh_rmeag,891
|
350
353
|
streamlit/static/static/css/195.81b3d18f.chunk.css,sha256=7WxsSsC_REs_rrfQTODJt34QZfNePqEv_fc-KFLcOz4,33375
|
351
354
|
streamlit/static/static/css/5711.c24b25fa.chunk.css,sha256=oOQFf_CH_DqXNsgcLiXOIk4uuluqNRMkobp8p6uc3y4,2666
|
352
355
|
streamlit/static/static/css/9943.93909c7e.chunk.css,sha256=6dVarHz_P5ACNrmcAZkXoNnjV5Z6CfnAXpxLBx-i1aw,12093
|
@@ -358,14 +361,15 @@ streamlit/static/static/js/1674.86aea8e0.chunk.js,sha256=g2RyDOrwFlJImiNgHT8Yo_L
|
|
358
361
|
streamlit/static/static/js/1674.86aea8e0.chunk.js.LICENSE.txt,sha256=426lVBKMW2FKu5BqnSDpZnhms1QqJZ-nDvqwC62w-Z8,479
|
359
362
|
streamlit/static/static/js/195.8e0d331c.chunk.js,sha256=T9-0Vb72wInZWoAeHWBRIryhklPB1Sh2gh8GvGYvAd8,3083873
|
360
363
|
streamlit/static/static/js/195.8e0d331c.chunk.js.LICENSE.txt,sha256=eedmllw4KHDop7oVWRkxEA-ZkkV_8zKkzzNxLjPGmXM,1379
|
361
|
-
streamlit/static/static/js/238.
|
364
|
+
streamlit/static/static/js/238.8d3a7d25.chunk.js,sha256=mIjngquAA2ebbQ9tuUw7oF9p8E5bRaP99iGnfWuSz_o,6412
|
362
365
|
streamlit/static/static/js/245.f99079b1.chunk.js,sha256=rK3au_P9Yr4DwsTWVTfR_wRASiis-S3jpRDzNV3Ok8o,15977
|
363
366
|
streamlit/static/static/js/2627.2462a014.chunk.js,sha256=PdOFzDOJSqybqqZpNdX3C-QzWLq7SuVcMjhY--a7mJA,21253
|
367
|
+
streamlit/static/static/js/266.e595f506.chunk.js,sha256=vsV0nfsK0VeYFvYx94fnZ1eHZjont7MKIzRAKimj428,11802
|
364
368
|
streamlit/static/static/js/3389.71902a75.chunk.js,sha256=rmAaytiYyUUn62JwB0cWuq8XlufugjELi3FkHfwri0Y,2263290
|
365
369
|
streamlit/static/static/js/3391.663b9d47.chunk.js,sha256=wnik-Gm3vJGqiTZzA9-EuwH8duSYvtqYdIgqbBIQUF4,2169
|
366
370
|
streamlit/static/static/js/3471.de4b25a2.chunk.js,sha256=v46A9eVjvhxYsBZ6SFG6wRg94XAccGQn6xA3q7sIluE,2698
|
367
371
|
streamlit/static/static/js/3560.ce031236.chunk.js,sha256=3KxR6gNZHQGsFYwELNibNWqsC8ceE4_XE3yNxTPyJi4,24850
|
368
|
-
streamlit/static/static/js/3710.
|
372
|
+
streamlit/static/static/js/3710.d73e609f.chunk.js,sha256=swqhrYYBBmXTXZNamt229NSP59N94wGBVGdKuxlZCa8,12712
|
369
373
|
streamlit/static/static/js/3861.0dedcd19.chunk.js,sha256=ir-cpKX6o7asBfLF9ynaZMO3EB7Gv0gTQjamKieBVN8,3111
|
370
374
|
streamlit/static/static/js/3966.e0686958.chunk.js,sha256=zf2wvStW2Hl8p1n7K6ZCZ28xFzRklujcMF1UCLaSbRA,14199
|
371
375
|
streamlit/static/static/js/4103.d863052a.chunk.js,sha256=352urf7O8P7oIbl8XzMyqi2jTTkooTlApCKbFUkRqfs,13447
|
@@ -375,7 +379,7 @@ streamlit/static/static/js/4827.f9cb5fa3.chunk.js,sha256=blr_9tALrSaQq1oNJjcmfQN
|
|
375
379
|
streamlit/static/static/js/491.c1a2c0b2.chunk.js,sha256=cKEu2fvsW9XU_7euH2HL5Du19xEdCbsi7YVmFvjC8yY,61383
|
376
380
|
streamlit/static/static/js/491.c1a2c0b2.chunk.js.LICENSE.txt,sha256=pyz0N_wsBwaFHPPOlNbn6ryKSY-9op62Mxg5w2rsK6g,14
|
377
381
|
streamlit/static/static/js/4942.e4db7877.chunk.js,sha256=3ccntc6WQ6_-pCJFp4NZHE3QbPQ1TEaifagA-pMYnC4,107578
|
378
|
-
streamlit/static/static/js/
|
382
|
+
streamlit/static/static/js/5281.02b3ddc4.chunk.js,sha256=6iylWzPKZ4AVv5DXZHHZZmuoZ0nF2iswmoU-mygfW3I,15142
|
379
383
|
streamlit/static/static/js/5544.2769497c.chunk.js,sha256=i3hJL-txrBM9F9IbWF42kHQHINgh9aa1NcAVtoxRSI0,32764
|
380
384
|
streamlit/static/static/js/5618.0a42d599.chunk.js,sha256=Sqdv2o8nzGT68KNREhCtKU7KczvUhe84ngvpXtEvWps,11233
|
381
385
|
streamlit/static/static/js/5625.d9509933.chunk.js,sha256=1j2ECAWN0HKvAy3N1KRKrWdY-8dA8e5D9hydOnzNVLM,10742
|
@@ -390,6 +394,7 @@ streamlit/static/static/js/6198.956025ac.chunk.js.LICENSE.txt,sha256=aKN36g4SjyJ
|
|
390
394
|
streamlit/static/static/js/6360.6d7cfa35.chunk.js,sha256=UJ5--uYuEu-ag0UHhlO32R2igz6W0aWAz-A4Nu_299E,5273
|
391
395
|
streamlit/static/static/js/6679.265ca09c.chunk.js,sha256=WmwYRnLnqPjmlAXo6meukmcKzMalOQeUCU2spQpWrHw,13574
|
392
396
|
streamlit/static/static/js/6817.6adfea98.chunk.js,sha256=a899OLftoHmnEOJ4LgrzJaPzCe-rwE0wKUNrF7xKpuM,13038
|
397
|
+
streamlit/static/static/js/708.a5252e2f.chunk.js,sha256=cNHBKGwGu08FQ4IllOunohB0lFYCYehPD-1J1nNlDgs,39147
|
393
398
|
streamlit/static/static/js/7193.2594a18c.chunk.js,sha256=w1wKaTT6fNkXcLs9w672lt4HaBA2DYWA64IALWGD_b0,2395
|
394
399
|
streamlit/static/static/js/7591.b3928443.chunk.js,sha256=BIil7acYkoN0zKvMnK8JbuQr8yRGZfMVt1LJPHcDVrQ,21261
|
395
400
|
streamlit/static/static/js/7591.b3928443.chunk.js.LICENSE.txt,sha256=u9LVDbKjZkI5agN4AH5SidNkG6wf-oCZfLzdGp8DDl4,188
|
@@ -417,9 +422,9 @@ streamlit/static/static/js/9464.7e9a3c0a.chunk.js,sha256=63Fg1-eQ1Sx7Hb6rqtQaTOJ
|
|
417
422
|
streamlit/static/static/js/9528.746f7a0e.chunk.js,sha256=KL6FfepG5LOH0P5pH4ieh5-rvx5o4YD77PKVAZIGlPg,1887
|
418
423
|
streamlit/static/static/js/954.1da91b19.chunk.js,sha256=3X0Gwgv4Films8FLekUOEm_uEOrNxLCRiXrTXTFSnt4,8660
|
419
424
|
streamlit/static/static/js/9923.7061d124.chunk.js,sha256=WeDEW7AM0VDnIJzQv9UykMvjG0nbYX6BTRyKV-zBlyE,5951
|
420
|
-
streamlit/static/static/js/9943.
|
421
|
-
streamlit/static/static/js/main.
|
422
|
-
streamlit/static/static/js/main.
|
425
|
+
streamlit/static/static/js/9943.6af344bb.chunk.js,sha256=BeyyiIkkq5BhkL5fJVqXvjCxQCviixuvtX925tnZp4U,45364
|
426
|
+
streamlit/static/static/js/main.e9d8ce9e.js,sha256=iN7WxQNsy2vCYSQh5Q6XCbh9yCWCDWdNan3W_Q0c9IM,4546522
|
427
|
+
streamlit/static/static/js/main.e9d8ce9e.js.LICENSE.txt,sha256=zBIKKHKi84ZOA6IoZ3tlc9xb3yukNP-rM98cZVvzteg,4398
|
423
428
|
streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
424
429
|
streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
425
430
|
streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
@@ -527,7 +532,7 @@ streamlit/watcher/util.py,sha256=uDsWPxQ8WLNQ4U_MCqWm38H7BEjSrBpPsIZj1ySK8KM,520
|
|
527
532
|
streamlit/web/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
528
533
|
streamlit/web/bootstrap.py,sha256=H4Yei-wiFQzb7B31GfApMz1fKDQJ9hypbZmBi0gfQ4Q,11853
|
529
534
|
streamlit/web/cache_storage_manager_config.py,sha256=3bBXzQOPfMhBKCtrywwZQi7LuGf9b4Lm-RbhInd5o5k,1215
|
530
|
-
streamlit/web/cli.py,sha256=
|
535
|
+
streamlit/web/cli.py,sha256=a5d_KIyFsOI2bzE8pPcyVhIvbt5jlxT850RKfquyYuU,11268
|
531
536
|
streamlit/web/server/__init__.py,sha256=w4TFcV0OjM5zx8ej7oThRIyB6gq3kqdt45XBk1zkRWo,1080
|
532
537
|
streamlit/web/server/app_static_file_handler.py,sha256=9-rD-TKbUmJD_PLXJ18SW8EBudHpOa__XimFrm6b6xU,3111
|
533
538
|
streamlit/web/server/browser_websocket_handler.py,sha256=rcOCOfzs1cgkipT-8drKBVdxMsJDwihRccaOea3KYqU,7950
|
@@ -539,9 +544,9 @@ streamlit/web/server/server_util.py,sha256=ioIHkXNlA_ujj2Q3isziM8r5glKxgK2JZRoCD
|
|
539
544
|
streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
|
540
545
|
streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
|
541
546
|
streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
|
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.
|
547
|
-
streamlit_nightly-1.38.1.
|
547
|
+
streamlit_nightly-1.38.1.dev20240925.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
|
548
|
+
streamlit_nightly-1.38.1.dev20240925.dist-info/METADATA,sha256=nADax_bV7Z1FZ4O7Le4Yu9ZCvAKIsuPPv53h-uWPsic,8512
|
549
|
+
streamlit_nightly-1.38.1.dev20240925.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
550
|
+
streamlit_nightly-1.38.1.dev20240925.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
551
|
+
streamlit_nightly-1.38.1.dev20240925.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
552
|
+
streamlit_nightly-1.38.1.dev20240925.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3710],{40223:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>xe});var i=o(58878),n=o(6334),r=o(72192),l=o(59353),a=o(78025),s=o(43338),c=o(8151),d=o(68994),h=o(58144),u=o(85850),g=o(22044),m=o(29669);var p=o(53124),b=o.n(p),f=o(32782),y=o(67253),v=o(1780),w=o(84152),S=o(6240),x=o(90782);const j=e=>{let{error:t,width:o,deltaType:i}=e;return t instanceof C?(0,x.jsx)(S.A,{width:o,name:"No Mapbox token provided",message:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:["To use ",(0,x.jsxs)("code",{children:["st.",i]})," or ",(0,x.jsx)("code",{children:"st.map"})," you need to set up a Mapbox access token."]}),(0,x.jsxs)("p",{children:["To get a token, create an account at"," ",(0,x.jsx)("a",{href:"https://mapbox.com",children:"https://mapbox.com"}),". It's free for moderate usage levels!"]}),(0,x.jsxs)("p",{children:["Once you have a token, just set it using the Streamlit config option ",(0,x.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,x.jsxs)("p",{children:["See"," ",(0,x.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,x.jsx)(S.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:"This app requires an internet connection."}),(0,x.jsx)("p",{children:"Please check your connection and try again."}),(0,x.jsxs)("p",{children:["If you think this is a bug, please file bug report"," ",(0,x.jsx)("a",{href:"https://github.com/streamlit/streamlit/issues/new/choose",children:"here"}),"."]})]})}):(0,x.jsx)(S.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:t.message})};class C extends Error{}class k extends Error{}const A="https://data.streamlit.io/tokens.json",F="mapbox",M=e=>t=>{class o extends i.PureComponent{constructor(o){super(o),this.context=void 0,this.initMapboxToken=async()=>{try{const e=await f.A.get(A),{[F]:t}=e.data;if(!t)throw new Error(`Missing token ${F}`);this.setState({mapboxToken:t,isFetching:!1})}catch(e){const t=(0,y.$)(e);throw this.setState({mapboxTokenError:t,isFetching:!1}),new k(`${t.message} (${A})`)}},this.render=()=>{const{mapboxToken:o,mapboxTokenError:i,isFetching:n}=this.state,{width:r}=this.props;return i?(0,x.jsx)(j,{width:r,error:i,deltaType:e}):n?(0,x.jsx)(v.E,{element:m.EA.create({style:m.EA.SkeletonStyle.ELEMENT})}):(0,x.jsx)(t,{...this.props,mapboxToken:o,width:r})},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=w.n,b()(o,t)};var T=o(89653);const N=(0,T.A)("div",{target:"e1az0zs51"})((e=>{let{width:t,height:o}=e;return{position:"relative",height:o,width:t}}),""),E=(0,T.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,h.iq)(t)?"":"invert(100%)"}}}}),"");var I=o(21640),O=o(71034),V=o.n(O),$=o(32735);var W=o(3101),D=o(14251),U=o(86202),P=o(26592),_=o(64639),z=o(73417),J=o(27126),B=o(38287);const L={classes:{...z,...o(19720),...B,...o(14249),CartoLayer:D.A},functions:{colorBins:U.A,colorCategories:P.A,colorContinuous:_.A}},G=new J.A({configuration:L});var X=o(44605),q=o(24983),Z=o(68212),K=o(20302),R=o(52265),H=o(60152),Q=o(70023),Y=o(6934),ee=o(34676),te=o(36217),oe=o(79579),ie=o(5830),ne=o(74839),re=o(16554),le=o(10762),ae=o(71749),se=o(45310),ce=o(26642),de=o(38610),he=o(41881);const ue={[ie.A.layerName]:["getFillColor"],[ne.A.layerName]:["getFillColor"],[re.Ay.layerName]:["getFillColor"],[le.A.layerName]:["getFillColor"],[ae.A.layerName]:["getFillColor"],[se.A.layerName]:["getFillColor"],[ce.A.layerName]:["getColor"],[X.A.layerName]:["getTargetColor","getSourceColor"],[q.A.layerName]:["getFillColor"],[Z.A.layerName]:["getFillColor"],[K.A.layerName]:["getColor"],[R.A.layerName]:["getColor"],[H.A.layerName]:["getColor"],[Q.A.layerName]:["getColor"],[Y.A.layerName]:["getFillColor"],[ee.A.layerName]:["getFillColor"],[te.A.layerName]:["getFillColor"],[oe.A.layerName]:["getColor"],[de.A.layerName]:["getColor"],[he.A.layerName]:["getColor"]},ge=e=>{let{isSelected:t,object:o,objectInfo:i,opacity:n,originalFillFunction:r}=e;const l=(e=>{let{object:t,objectInfo:o,originalFillFunction:i}=e;const n="function"===typeof i?i(t,o):i;if(Array.isArray(n))return[n[0]||0,n[1]||0,n[2]||0,n[3]||255];if("string"===typeof n&&n.startsWith("@@=")){const e=G.convert({originalColor:n}).originalColor(t);return[e[0]||0,e[1]||0,e[2]||0,e[3]||255]}return null})({object:o,objectInfo:i,originalFillFunction:r});if(!l)return null;let a=0;return a=t?Math.max("number"===typeof l[3]?l[3]:n,n):Math.min("number"===typeof l[3]?l[3]:n,n),[l[0]||0,l[1]||0,l[2]||0,a]},me={selection:{indices:{},objects:{}}},pe=(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};function be(e,t){if(!t.id)return me;const o=e.getElementState(t.id,"selection");return null!==o&&void 0!==o?o:me}function fe(e,t){if(!t.id)return me;const o=e.getStringValue(t),i=o?I.A.parse(o):null;return null!==i&&void 0!==i?i:me}function ye(e,t,o,i){e.id&&t.setStringValue(e,JSON.stringify(o.value),{fromUi:o.fromUi},i)}const ve=e=>{var t;const{element:o,fragmentId:n,height:r,isFullScreen:l,isLightTheme:a,theme:s,widgetMgr:c,width:d}=e,{selectionMode:h,tooltip:u,useContainerWidth:g}=o,m=null!==l&&void 0!==l&&l,[p,b]=(0,W._)({element:o,getDefaultState:be,getStateFromWidgetMgr:fe,updateWidgetMgrState:ye,widgetMgr:c,fragmentId:n}),[f,y]=(0,i.useState)({bearing:0,pitch:0,zoom:11}),{height:v,width:w}=(e=>{let{container:t,element:o,heightFallback:n="auto",isFullScreen:r,shouldUseContainerWidth:l,widthFallback:a="auto"}=e;return{width:(0,i.useMemo)((()=>l||r?"100%":o.width||t.width||a),[t.width,o.width,r,l,a]),height:(0,i.useMemo)((()=>r&&t.height?t.height:o.height||t.height||n),[r,o.height,t.height,n])}})({element:o,isFullScreen:m,shouldUseContainerWidth:g,container:{height:r,width:d},heightFallback:(null===(t=f.initialViewState)||void 0===t?void 0:t.height)||500}),[S,x]=(0,i.useState)({}),j=h[0],C=void 0!==j,k=C&&Object.keys(p.selection.indices).length>0,A=(0,i.useMemo)((()=>Object.freeze(I.A.parse(o.json))),[m,a,o.json]),F=(0,i.useMemo)((()=>{const e={...A};if(e.mapStyle||(e.mapStyle=`mapbox://styles/mapbox/${a?"light":"dark"}-v9`),m?Object.assign(e.initialViewState,{width:w,height:v}):(e.initialViewState.height||(e.initialViewState.height=500),g&&(e.initialViewState.width=w)),e.layers){const t=Object.values(p.selection.indices).some((e=>null===e||void 0===e?void 0:e.length)),o=e.layers.some((e=>Object.hasOwn(e,"pickable")));e.layers=e.layers.map((e=>{var i,n;if(!e||Array.isArray(e)||!C)return e;o||(e.pickable=!0);const r=`${e.id||null}`,l=(null===p||void 0===p||null===(i=p.selection)||void 0===i||null===(n=i.indices)||void 0===n?void 0:n[r])||[],a=ue[e["@@type"]];if(!a)return e;const c={...e};return a.forEach((o=>{var i;c.updateTriggers={[o]:[...(null===(i=c.updateTriggers)||void 0===i?void 0:i[o])||[],l,t]};if(!t)return c;const n=e[o],r=(0,$.Du)(s.colors.primary),a=(0,$.Du)(s.colors.gray20);c[o]=(e,t)=>(e=>{let{isSelected:t,object:o,objectInfo:i,originalFillFunction:n,selectedColor:r,selectedOpacity:l=255,unselectedColor:a,unselectedOpacity:s=Math.floor(102)}=e;return t?ge({opacity:l,isSelected:!0,object:o,objectInfo:i,originalFillFunction:n})||r:ge({opacity:s,isSelected:!1,object:o,objectInfo:i,originalFillFunction:n})||a})({isSelected:l.includes(t.index),object:e,objectInfo:t,originalFillFunction:n,selectedColor:r,unselectedColor:a})})),c}))}return null===e||void 0===e||delete e.views,G.convert(e)}),[p.selection.indices,v,m,a,C,A,g,s.colors.gray20,s.colors.primary,w]);(0,i.useEffect)((()=>{if(!V()(F.initialViewState,S)){const e=Object.keys(F.initialViewState).reduce(((e,t)=>F.initialViewState[t]===S[t]?e:{...e,[t]:F.initialViewState[t]}),{});y({...f,...e}),x(F.initialViewState)}}),[F.initialViewState,S,f]);const M=(0,i.useCallback)((e=>{if(!e||!e.object||!u)return null;const t=I.A.parse(u);return t.html?t.html=pe(e,t.html):t.text=pe(e,t.text),t}),[u]),T=(0,i.useCallback)((e=>{let{viewState:t}=e;y(t)}),[y]);return{createTooltip:M,data:p,deck:F,hasActiveSelection:k,height:v,isSelectionModeActivated:C,onViewStateChange:T,selectionMode:j,setSelection:b,viewState:f,width:w}};o(93298);(0,s.mk)([l.y,a.B]);const we=me.selection,Se=[],xe=M("st.pydeck_chart")((0,g.A)((e=>{const{collapse:t,disabled:o,disableFullscreenMode:l,element:a,expand:s,fragmentId:g,height:p,isFullScreen:b,mapboxToken:f,widgetMgr:y,width:v}=e,{mapboxToken:w}=a,S=(0,c.u)(),{createTooltip:j,data:C,deck:k,hasActiveSelection:A,height:F,isSelectionModeActivated:M,onViewStateChange:T,selectionMode:I,setSelection:O,viewState:V,width:$}=ve({element:a,fragmentId:g,height:p,isFullScreen:b,isLightTheme:(0,h.iq)(S),theme:S,widgetMgr:y,width:v}),[W,D]=(0,i.useState)(!1);(0,i.useEffect)((()=>{D(!0)}),[]);const U=(0,i.useCallback)((e=>{var t;if(void 0===I)return;const{index:o,object:i}=e,n=`${(null===(t=e.layer)||void 0===t?void 0:t.id)||null}`,r=C,l=-1===o,a=(()=>{if(l)return we;switch(I){case m.Xw.SelectionMode.SINGLE_OBJECT:var e;return(null===(e=r.selection.indices[n])||void 0===e?void 0:e[0])===o?we:{indices:{[`${n}`]:[o]},objects:{[`${n}`]:[i]}};case m.Xw.SelectionMode.MULTI_OBJECT:{const e=new Map(((null===r||void 0===r||null===(t=r.selection)||void 0===t||null===(a=t.indices)||void 0===a?void 0:a[n])||[]).map(((e,t)=>{var o,i,l;return[e,null===(o=r.selection)||void 0===o||null===(i=o.objects)||void 0===i||null===(l=i[n])||void 0===l?void 0:l[t]]})));if(e.has(o)?e.delete(o):e.set(o,i),0===e.size){const{[n]:e,...t}=r.selection.indices,{[n]:o,...i}=r.selection.objects;return{indices:t,objects:i}}return{indices:{...r.selection.indices,[`${n}`]:Array.from(e.keys())},objects:{...r.selection.objects,[`${n}`]:Array.from(e.values())}}}default:throw(e=>{throw new Error(`Reached a branch with non-exhaustive item: ${e}`)})(I),new Error("Invalid selection mode")}var t,a})();JSON.stringify(a)!==JSON.stringify(r.selection)&&O({fromUi:!0,value:{selection:a}})}),[I,C,O]),P=(0,i.useCallback)((()=>{O({value:{selection:we},fromUi:!0})}),[O]);return(0,x.jsxs)(N,{className:"stDeckGlJsonChart","data-testid":"stDeckGlJsonChart",width:$,height:F,children:[(0,x.jsx)(u.A,{isFullScreen:b,disableFullscreenMode:l,onExpand:s,onCollapse:t,target:N,locked:!(!A||o)||void 0,children:A&&!o&&(0,x.jsx)(u.K,{label:"Clear selection",onClick:P,icon:d.b})}),(0,x.jsxs)(n.A,{viewState:V,onViewStateChange:T,height:F,width:$,layers:W?k.layers:Se,getTooltip:j,ContextProvider:r.wZ.Provider,controller:!0,onClick:M&&!o?U:void 0,children:[(0,x.jsx)(r.b,{height:F,width:$,mapStyle:k.mapStyle&&("string"===typeof k.mapStyle?k.mapStyle:k.mapStyle[0]),mapboxApiAccessToken:w||f}),(0,x.jsx)(E,{children:(0,x.jsx)(r.ov,{"data-testid":"stDeckGlJsonChartZoomButton",showCompass:!1})})]})]})}),!0))},3101:(e,t,o)=>{"use strict";o.d(t,{_:()=>l,t:()=>a});var i=o(58878),n=o(34752),r=o(25571);function l(e){let{getStateFromWidgetMgr:t,getDefaultState:o,updateWidgetMgrState:l,element:a,widgetMgr:s,fragmentId:c}=e;const[d,h]=(0,i.useState)((()=>{var e;return null!==(e=t(s,a))&&void 0!==e?e:o(s,a)})),[u,g]=(0,i.useState)({value:d,fromUi:!1});(0,i.useEffect)((()=>{(0,r.hX)(u)||(g(null),h(u.value),l(a,s,u,c))}),[u,l,a,s,c]);const m=(0,i.useCallback)((()=>{g({value:o(s,a),fromUi:!0})}),[g,a,o,s]);return(0,n.X)({widgetMgr:s,element:a,onFormCleared:m}),[d,g]}function a(e){let{getStateFromWidgetMgr:t,getDefaultStateFromProto:o,getCurrStateFromProto:n,updateWidgetMgrState:r,element:a,widgetMgr:s,fragmentId:c}=e;const d=(0,i.useCallback)(((e,t)=>o(t)),[o]),[h,u]=l({getStateFromWidgetMgr:t,getDefaultState:d,updateWidgetMgrState:r,element:a,widgetMgr:s,fragmentId:c});return(0,i.useEffect)((()=>{a.setValue&&(a.setValue=!1,u({value:n(a),fromUi:!1}))}),[a,n,u]),[h,u]}},63872:()=>{},35111:()=>{}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5180],{3727:(e,t,i)=>{i.d(t,{A:()=>c,o:()=>p});var s=i(58878),n=i(8151),l=i(70766),r=i(35331),a=i(58144),o=i(84152),d=i(90782);let p;!function(e){e.EXTRASMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(p||(p={}));const c=function(e){let{value:t,width:i,size:c=p.SMALL,overrides:g}=e;const h=(0,n.u)(),u={xs:h.spacing.twoXS,sm:h.spacing.sm,md:h.spacing.lg,lg:h.spacing.xl,xl:h.spacing.twoXL},{activeTheme:m}=s.useContext(o.n),f=!(0,a.tl)(m),x={BarContainer:{style:{marginTop:h.spacing.none,marginBottom:h.spacing.none,marginRight:h.spacing.none,marginLeft:h.spacing.none}},Bar:{style:e=>{let{$theme:t}=e;return{width:i?i.toString():void 0,marginTop:h.spacing.none,marginBottom:h.spacing.none,marginRight:h.spacing.none,marginLeft:h.spacing.none,height:u[c],backgroundColor:t.colors.progressbarTrackFill,borderTopLeftRadius:h.spacing.twoXS,borderTopRightRadius:h.spacing.twoXS,borderBottomLeftRadius:h.spacing.twoXS,borderBottomRightRadius:h.spacing.twoXS}}},BarProgress:{style:()=>({backgroundColor:f?h.colors.primary:h.colors.blue70,borderTopLeftRadius:h.spacing.twoXS,borderTopRightRadius:h.spacing.twoXS,borderBottomLeftRadius:h.spacing.twoXS,borderBottomRightRadius:h.spacing.twoXS})}};return(0,d.jsx)(l.A,{value:t,overrides:(0,r.Qp)(x,g)})}},9830:(e,t,i)=>{i.d(t,{m:()=>s});class s{setStatus(e){return new s(this.name,this.size,this.id,e)}constructor(e,t,i,s){this.name=void 0,this.size=void 0,this.status=void 0,this.id=void 0,this.name=e,this.size=t,this.id=i,this.status=s}}},75180:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ge});var s=i(58878),n=i(32782),l=i(71034),r=i.n(l),a=i(50609),o=i.n(a),d=i(25571),p=i(29669),c=i(34752);let g;!function(e){e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b"}(g||(g={}));const h=(0,d.Q2)()?1024:1e3,u=[g.Gigabyte,g.Megabyte,g.Kilobyte,g.Byte],m=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(t||(t=g.Byte),i<0&&(i=0),e<0)throw new Error("Size must be greater than or equal to 0");const s=u.indexOf(t);return s&&e>h/2?m(e/h,u[s-1],i):`${e.toFixed(i)}${t.toUpperCase()}`};var f=i(70474),x=i(78286),w=i(93480),y=i(997),b=i(97779),F=i(36459),S=i(84720),v=i(89653);const I=(0,v.A)("section",{target:"e1b2p2ww15"})((e=>{let{isDisabled:t,theme:i}=e;return{display:"flex",alignItems:"center",padding:i.spacing.lg,backgroundColor:i.colors.secondaryBg,borderRadius:i.radii.default,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 1px ${i.colors.primary}`},color:t?i.colors.gray:i.colors.bodyText}}),""),j=(0,v.A)("div",{target:"e1b2p2ww14"})((()=>({marginRight:"auto",alignItems:"center",display:"flex"})),""),U=(0,v.A)("span",{target:"e1b2p2ww13"})((e=>{let{theme:t}=e;return{color:t.colors.darkenedBgMix100,marginRight:t.spacing.lg}}),""),A=(0,v.A)("span",{target:"e1b2p2ww12"})((e=>{let{theme:t}=e;return{marginBottom:t.spacing.twoXS}}),""),L=(0,v.A)("div",{target:"e1b2p2ww11"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),z=(0,v.A)("div",{target:"e1b2p2ww10"})((e=>{let{theme:t}=e;return{left:0,right:0,lineHeight:t.lineHeights.tight,paddingTop:t.spacing.md,paddingLeft:t.spacing.lg,paddingRight:t.spacing.lg}}),""),M=(0,v.A)("ul",{target:"e1b2p2ww9"})((e=>{let{theme:t}=e;return{listStyleType:"none",marginBottom:t.spacing.none}}),""),C=(0,v.A)("li",{target:"e1b2p2ww8"})((e=>{let{theme:t}=e;return{margin:t.spacing.none,padding:t.spacing.none}}),""),B=(0,v.A)("div",{target:"e1b2p2ww7"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"baseline",flex:1,paddingLeft:t.spacing.lg,overflow:"hidden"}}),""),X=(0,v.A)("div",{target:"e1b2p2ww6"})((e=>{let{theme:t}=e;return{marginRight:t.spacing.sm,marginBottom:t.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),""),R=(0,v.A)("div",{target:"e1b2p2ww5"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",marginBottom:t.spacing.twoXS}}),""),k=(0,v.A)("span",{target:"e1b2p2ww4"})((e=>{let{theme:t}=e;return{marginRight:t.spacing.twoXS}}),""),T=(0,v.A)("div",{target:"e1b2p2ww3"})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing.twoXS,color:t.colors.darkenedBgMix100}}),""),D=(0,v.A)("small",{target:"e1b2p2ww2"})((e=>{let{theme:t}=e;return{color:t.colors.danger,fontSize:t.fontSizes.sm,height:t.fontSizes.sm,lineHeight:t.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),""),E=(0,v.A)("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),P=e=>({[I]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[j]:{marginBottom:e.spacing.lg},[U]:{display:"none"},[z]:{paddingRight:e.spacing.lg},[R]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[X]:{width:e.sizes.full},[B]:{flexDirection:"column"},[D]:{height:"auto",whiteSpace:"initial"},[E]:{display:"none"},[C]:{margin:e.spacing.none,padding:e.spacing.none}}),V=(0,v.A)("div",{target:"e1b2p2ww0"})((e=>{let{theme:t}=e;return t.inSidebar?P(t):{[`@media (max-width: ${t.breakpoints.sm})`]:P(t)}}),"");var N=i(72718),$=i(64611),W=i(12978),H=i(90782);const O=e=>{let{multiple:t,acceptedExtensions:i,maxSizeBytes:s}=e;return(0,H.jsxs)(j,{"data-testid":"stFileUploaderDropzoneInstructions",children:[(0,H.jsx)(U,{children:(0,H.jsx)($.A,{content:N.b,size:"threeXL"})}),(0,H.jsxs)(L,{children:[(0,H.jsxs)(A,{children:["Drag and drop file",t?"s":""," here"]}),(0,H.jsxs)(W.O,{children:[`Limit ${m(s,g.Byte,0)} per file`,i.length?` \u2022 ${i.map((e=>e.replace(/^\./,"").toUpperCase())).join(", ")}`:null]})]})]})},_=e=>{let{onDrop:t,multiple:i,acceptedExtensions:s,maxSizeBytes:n,disabled:l,label:r}=e;return(0,H.jsx)(b.Ay,{onDrop:t,multiple:i,accept:s.length?s:void 0,maxSize:n,disabled:l,useFsAccessApi:!1,children:e=>{let{getRootProps:t,getInputProps:a}=e;return(0,H.jsxs)(I,{...t(),"data-testid":"stFileUploaderDropzone",isDisabled:l,"aria-label":r,children:[(0,H.jsx)("input",{"data-testid":"stFileUploaderDropzoneInput",...a()}),(0,H.jsx)(O,{multiple:i,acceptedExtensions:s,maxSizeBytes:n}),(0,H.jsx)(F.Ay,{kind:S.KX.SECONDARY,disabled:l,size:S.Pj.SMALL,children:"Browse files"})]})}})};var K=i(53124),G=i.n(K);var q=i(77434),Q=i(76370);const Y=(0,v.A)("div",{target:"e1nlpozb1"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:t.spacing.twoXS,marginBottom:t.spacing.twoXS}}),""),J=(0,v.A)("div",{target:"e1nlpozb0"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"center",color:t.colors.fadedText40}}),""),Z=e=>{let{currentPage:t,totalPages:i,onNext:s,onPrevious:n}=e;return(0,H.jsxs)(Y,{"data-testid":"stFileUploaderPagination",children:[(0,H.jsx)(W.O,{children:`Showing page ${t} of ${i}`}),(0,H.jsxs)(J,{children:[(0,H.jsx)(F.Ay,{onClick:n,kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:q.J,size:"xl"})}),(0,H.jsx)(F.Ay,{onClick:s,kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:Q.c,size:"xl"})})]})]})},ee=(e,t)=>Math.ceil(e.length/t),te=e=>G()((t=>{let{pageSize:i,items:n,resetOnAdd:l,...r}=t;const[a,o]=(0,s.useState)(0),[d,p]=(0,s.useState)(ee(n,i)),c=(e=>{const t=(0,s.useRef)();return(0,s.useEffect)((()=>{t.current=e}),[e]),t.current})(n);(0,s.useEffect)((()=>{c&&c.length!==n.length&&p(ee(n,i)),c&&c.length<n.length?l&&o(0):a+1>=d&&o(d-1)}),[n,a,i,c,l,d]);const g=n.slice(a*i,a*i+i);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(e,{items:g,...r}),n.length>i?(0,H.jsx)(Z,{pageSize:i,totalPages:d,currentPage:a+1,onNext:()=>{o(Math.min(a+1,d-1))},onPrevious:()=>{o(Math.max(0,a-1))}}):null]})}),e);var ie=i(2742),se=i(97522),ne=i(64754),le=i(3727);const re=e=>{let{fileInfo:t}=e;return"uploading"===t.status.type?(0,H.jsx)(le.A,{value:t.status.progress,size:le.o.SMALL,overrides:{Bar:{style:{marginLeft:0,marginTop:"4px"}}}}):"error"===t.status.type?(0,H.jsxs)(D,{children:[(0,H.jsx)(k,{"data-testid":"stFileUploaderFileErrorMessage",children:t.status.errorMessage}),(0,H.jsx)(E,{children:(0,H.jsx)($.A,{content:ie.$,size:"lg"})})]}):"uploaded"===t.status.type?(0,H.jsx)(W.O,{children:m(t.size,g.Byte)}):null},ae=e=>{let{fileInfo:t,onDelete:i}=e;return(0,H.jsxs)(R,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[(0,H.jsx)(T,{children:(0,H.jsx)($.A,{content:se.i,size:"twoXL"})}),(0,H.jsxs)(B,{className:"stFileUploaderFileData",children:[(0,H.jsx)(X,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:t.name,children:t.name}),(0,H.jsx)(re,{fileInfo:t})]}),(0,H.jsx)("div",{"data-testid":"stFileUploaderDeleteBtn",children:(0,H.jsx)(F.Ay,{onClick:()=>i(t.id),kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:ne.k,size:"lg"})})})]})},oe=te((e=>{let{items:t,onDelete:i}=e;return(0,H.jsx)(M,{children:t.map((e=>(0,H.jsx)(C,{children:(0,H.jsx)(ae,{fileInfo:e,onDelete:i})},e.id)))})})),de=e=>(0,H.jsx)(z,{children:(0,H.jsx)(oe,{...e})});var pe=i(9830);class ce extends s.PureComponent{constructor(e){super(e),this.formClearHelper=new c.o,this.localFileIdCounter=1,this.forceUpdatingStatus=!1,this.componentDidUpdate=()=>{if("ready"!==this.status)return;const e=this.createWidgetValue(),{element:t,widgetMgr:i,fragmentId:s}=this.props,n=i.getFileUploaderStateValue(t);r()(e,n)||i.setFileUploaderStateValue(t,e,{fromUi:!0},s)},this.reset=()=>{this.setState({files:[]})},this.dropHandler=(e,t)=>{const{element:i}=this.props,{multipleFiles:s}=i;if(!s&&0===e.length&&t.length>1){const i=t.findIndex((e=>1===e.errors.length&&"too-many-files"===e.errors[0].code));i>=0&&(e.push(t[i].file),t.splice(i,1))}if(this.props.uploadClient.fetchFileURLs(e).then((t=>{if(!s&&e.length>0){const e=this.state.files.find((e=>"error"!==e.status.type));e&&(this.forceUpdatingStatus=!0,this.deleteFile(e.id),this.forceUpdatingStatus=!1)}o()(t,e).forEach((e=>{let[t,i]=e;this.uploadFile(t,i)}))})).catch((t=>{this.addFiles(e.map((e=>new pe.m(e.name,e.size,this.nextLocalFileId(),{type:"error",errorMessage:t}))))})),t.length>0){const e=t.map((e=>{const{file:t}=e;return new pe.m(t.name,t.size,this.nextLocalFileId(),{type:"error",errorMessage:this.getErrorMessage(e.errors[0].code,e.file)})}));this.addFiles(e)}},this.uploadFile=(e,t)=>{const i=n.A.CancelToken.source(),s=new pe.m(t.name,t.size,this.nextLocalFileId(),{type:"uploading",cancelToken:i,progress:1});this.addFile(s),this.props.uploadClient.uploadFile(this.props.element,e.uploadUrl,t,(e=>this.onUploadProgress(e,s.id)),i.token).then((()=>this.onUploadComplete(s.id,e))).catch((e=>{n.A.isCancel(e)||this.updateFile(s.id,s.setStatus({type:"error",errorMessage:e?e.toString():"Unknown error"}))}))},this.onUploadComplete=(e,t)=>{const i=this.getFile(e);(0,d.hX)(i)||"uploading"!==i.status.type||this.updateFile(i.id,i.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},this.getErrorMessage=(e,t)=>{switch(e){case"file-too-large":return`File must be ${m(this.maxUploadSizeInBytes,g.Byte)} or smaller.`;case"file-invalid-type":return`${t.type} files are not allowed.`;case"file-too-small":return"File size is too small.";case"too-many-files":return"Only one file is allowed.";default:return"Unexpected error. Please try again."}},this.deleteFile=e=>{const t=this.getFile(e);(0,d.hX)(t)||("uploading"===t.status.type&&t.status.cancelToken.cancel(),"uploaded"===t.status.type&&t.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),this.removeFile(e))},this.addFile=e=>{this.setState((t=>({files:[...t.files,e]})))},this.addFiles=e=>{this.setState((t=>({files:[...t.files,...e]})))},this.removeFile=e=>{this.setState((t=>({files:t.files.filter((t=>t.id!==e))})))},this.getFile=e=>this.state.files.find((t=>t.id===e)),this.updateFile=(e,t)=>{this.setState((i=>({files:i.files.map((i=>i.id===e?t:i))})))},this.onUploadProgress=(e,t)=>{const i=this.getFile(t);if((0,d.hX)(i)||"uploading"!==i.status.type)return;const s=Math.round(100*e.loaded/e.total);i.status.progress!==s&&this.updateFile(t,i.setStatus({type:"uploading",cancelToken:i.status.cancelToken,progress:s}))},this.onFormCleared=()=>{this.setState({files:[]},(()=>{const e=this.createWidgetValue();if((0,d.hX)(e))return;const{widgetMgr:t,element:i,fragmentId:s}=this.props;t.setFileUploaderStateValue(i,e,{fromUi:!0},s)}))},this.state=this.initialValue}get initialValue(){const e={files:[],newestServerFileId:0},{widgetMgr:t,element:i}=this.props,s=t.getFileUploaderStateValue(i);if((0,d.hX)(s))return e;const{uploadedFileInfo:n}=s;return(0,d.hX)(n)||0===n.length?e:{files:n.map((e=>{const t=e.name,i=e.size,s=e.fileId,n=e.fileUrls;return new pe.m(t,i,this.nextLocalFileId(),{type:"uploaded",fileId:s,fileUrls:n})}))}}componentWillUnmount(){this.formClearHelper.disconnect()}get maxUploadSizeInBytes(){return((e,t,i)=>{if(e<0)throw Error("Size must be 0 or greater");const s=u.findIndex((e=>e===t)),n=u.findIndex((e=>e===i));if(-1===s||-1===n)throw Error("Unexpected byte unit provided");if(s===n)return e;const l=Math.abs(s-n),r=h**l;return s>n?e/r:e*r})(this.props.element.maxUploadSizeMb,g.Megabyte,g.Byte)}get status(){return this.state.files.some((e=>"uploading"===e.status.type))||this.forceUpdatingStatus?"updating":"ready"}componentDidMount(){const e=this.createWidgetValue(),{element:t,widgetMgr:i,fragmentId:s}=this.props;void 0===i.getFileUploaderStateValue(t)&&i.setFileUploaderStateValue(t,e,{fromUi:!1},s)}createWidgetValue(){const e=this.state.files.filter((e=>"uploaded"===e.status.type)).map((e=>{const{name:t,size:i,status:s}=e,{fileId:n,fileUrls:l}=s;return new p.HY({fileId:n,fileUrls:l,name:t,size:i})}));return new p.qX({uploadedFileInfo:e})}render(){var e;const{files:t}=this.state,{element:i,disabled:s,widgetMgr:n}=this.props,l=i.type;this.formClearHelper.manageFormClearListener(n,i.formId,this.onFormCleared);const r=t.slice().reverse();return(0,H.jsxs)(V,{className:"stFileUploader","data-testid":"stFileUploader",children:[(0,H.jsx)(f.L,{label:i.label,disabled:s,labelVisibility:(0,d.yv)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&(0,H.jsx)(x.j,{children:(0,H.jsx)(w.A,{content:i.help,placement:y.W.TOP_RIGHT})})}),(0,H.jsx)(_,{onDrop:this.dropHandler,multiple:i.multipleFiles,acceptedExtensions:l,maxSizeBytes:this.maxUploadSizeInBytes,label:i.label,disabled:s}),r.length>0&&(0,H.jsx)(de,{items:r,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}nextLocalFileId(){return this.localFileIdCounter++}}const ge=ce},34752:(e,t,i)=>{i.d(t,{X:()=>r,o:()=>l});var s=i(58878),n=i(25571);class l{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,i){(0,n.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,n._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,i),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 r(e){let{element:t,widgetMgr:i,onFormCleared:l}=e;(0,s.useEffect)((()=>{if(!(0,n._L)(t.formId))return;const e=i.addFormClearedListener(t.formId,l);return()=>{e.disconnect()}}),[t,i,l])}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9943],{251:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Nt});var i=n(58878),o=n(35753),r=n(79104),l=n(52583),a=n(68994),s=n(95241),d=n(61730),u=n(18364),c=n(2128),m=n(34752),h=n(22044),g=n(29669),f=n(25571),p=n(85850),v=n(84152),y=n(30136),b=n.n(y),w=n(37638),x=n.n(w),C=n(37904),M=n.n(C),S=n(34694),E=n(90491),k=n.n(E),R=(n(20641),n(48517)),N=n.n(R),T=n(85729);const I=["true","t","yes","y","on","1"],_=["false","f","no","n","off","0"];function O(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 D(e){return e.hasOwnProperty("isError")&&e.isError}function A(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}function F(){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 $(e,t){const n=t?"faded":"normal";return{kind:o.dd.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function V(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 H(e,t){return(0,f.hX)(e)?t||{}:(0,f.hX)(t)?e||{}:x()(e,t)}function X(e){if((0,f.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:L(e))):[L(t)]}catch(t){return[L(e)]}}function L(e){try{try{return b()(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function z(e){if((0,f.hX)(e))return null;if("boolean"===typeof e)return e;const t=L(e).toLowerCase().trim();return""===t?null:!!I.includes(t)||!_.includes(t)&&void 0}function W(e){if((0,f.hX)(e))return null;if(Array.isArray(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=M().unformat(e.trim());if((0,f.se)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function j(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,f.hX)(t)||""===t?(0===n&&(e=Math.round(e)),M()(e).format((0,f.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?k().duration(e/1e6,"milliseconds").humanize():t.startsWith("period[")?T.D0.formatPeriodType(BigInt(e),t):(0,S.sprintf)(t,e)}function B(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 Y(e){if((0,f.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=k().unix(e).utc();if(n.isValid())return n.toDate()}if("string"===typeof e){const t=k().utc(e);if(t.isValid())return t.toDate();const n=k().utc(e,[k().HTML5_FMT.TIME_MS,k().HTML5_FMT.TIME_SECONDS,k().HTML5_FMT.TIME]);if(n.isValid())return n.toDate()}}catch(t){return}}function P(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 U=new RegExp(/(\r\n|\n|\r)/gm);function q(e){return-1!==e.indexOf("\n")?e.replace(U," "):e}var J=n(8151),G=n(84996);function K(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,f.se)(e)?L(e):null,i=(0,f.se)(n)?q(n):"";return{...t,data:n,displayData:i,isMissingValue:(0,f.hX)(e)}}catch(n){return O(L(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}K.isEditableType=!1;const Z=K;function Q(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,f.hX)(i))return!e.isRequired;let o=L(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 O(L(e),n);if(t){const t=r(e);if(!1===t)return O(L(e),"Invalid input.");"string"===typeof t&&(e=t)}try{const t=(0,f.se)(e)?L(e):null,n=(0,f.se)(t)?q(t):"";return{...i,isMissingValue:(0,f.hX)(t),data:t,displayData:n}}catch(l){return O("Incompatible value",`The value cannot be interpreted as string. Error: ${l}`)}},getCellValue:e=>void 0===e.data?null:e.data}}Q.isEditableType=!0;const ee=Q;function te(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function ne(e,t,n,i,r,l,a){var s;const d=H({format:n,step:i,timezone:a},t.columnTypeOptions);let u,c,m;if((0,f.se)(d.timezone))try{var h;u=(null===(h=te(N()(),d.timezone))||void 0===h?void 0:h.utcOffset())||void 0}catch(v){}(0,f.se)(d.min_value)&&(c=Y(d.min_value)||void 0),(0,f.se)(d.max_value)&&(m=Y(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:c,max:m}},p=e=>{const n=Y(e);return null===n?!t.isRequired:void 0!==n&&(!((0,f.se)(c)&&l(n)<l(c))&&!((0,f.se)(m)&&l(n)>l(m)))};return{...t,kind:e,sortMode:"default",validateInput:p,getCell(e,t){if(!0===t){const t=p(e);if(!1===t)return O(L(e),"Invalid input.");t instanceof Date&&(e=t)}const i=Y(e);let o="",r="",l=u;if(void 0===i)return O(L(e),"The value cannot be interpreted as a datetime object.");if(null!==i){let e=N().utc(i);if(!e.isValid())return O(L(i),`This should never happen. Please report this bug. \nError: ${e.toString()}`);if(d.timezone){try{e=te(e,d.timezone)}catch(v){return O(e.toISOString(),`Failed to adjust to the provided timezone: ${d.timezone}. \nError: ${v}`)}l=e.utcOffset()}try{r=B(e,d.format||n)}catch(v){return O(e.toISOString(),`Failed to format the date for rendering with: ${d.format}. \nError: ${v}`)}o=B(e,n)}return{...g,copyData:o,isMissingValue:(0,f.hX)(i),data:{...g.data,date:i,displayDate:r,timezoneOffset:l}}},getCellValue(e){var t;return(0,f.hX)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:l(e.data.date)}}}function ie(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,f.se)(a)||(0,f.se)(null===e||void 0===e||null===(r=e.columnTypeOptions)||void 0===r?void 0:r.timezone);return ne("datetime",e,s?l+"Z":l,1,"datetime-local",(e=>s?e.toISOString():e.toISOString().replace("Z","")),a)}function oe(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"),ne("time",e,i,1,"time",(e=>e.toISOString().split("T")[1].replace("Z","")))}function re(e){return ne("date",e,"YYYY-MM-DD",1,"date",(e=>e.toISOString().split("T")[0]))}function le(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=z(e),void 0===n?O(L(e),"The value cannot be interpreted as boolean."):{...t,data:n,isMissingValue:(0,f.hX)(n)}},getCellValue:e=>void 0===e.data?null:e.data}}ie.isEditableType=!0,oe.isEditableType=!0,re.isEditableType=!0,le.isEditableType=!0;const ae=le;function se(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}function de(e){const t=T.D0.getTypeName(e.arrowType);let n;"timedelta64[ns]"===t?n="duration[ns]":t.startsWith("period[")&&(n=t);const i=H({step:se(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0,format:n},e.columnTypeOptions),r=(0,f.hX)(i.min_value)||i.min_value<0,l=(0,f.se)(i.step)&&!Number.isNaN(i.step)?P(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=W(t);if((0,f.hX)(n))return!e.isRequired;if(Number.isNaN(n))return!1;let o=!1;return(0,f.se)(i.max_value)&&n>i.max_value&&(n=i.max_value,o=!0),!((0,f.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 O(L(e),"Invalid input.");"number"===typeof t&&(e=t)}let n=W(e),o="";if((0,f.se)(n)){if(Number.isNaN(n))return O(L(e),"The value cannot be interpreted as a number.");if((0,f.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 O(L(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{o=j(n,i.format,l)}catch(u){return O(L(n),(0,f.se)(i.format)?`Failed to format the number based on the provided format configuration: (${i.format}). Error: ${u}`:`Failed to format the number. Error: ${u}`)}}var r,d;return{...a,data:n,displayData:o,isMissingValue:(0,f.hX)(n),copyData:(0,f.hX)(n)?"":L(n)}},getCellValue:e=>void 0===e.data?null:e.data}}de.isEditableType=!0;const ue=de;function ce(e){let t="string";const n=H({options:"bool"===T.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=>L(e)))],value:""}};return{...e,kind:"selectbox",sortMode:"default",getCell(e,t){let n=null;return(0,f.se)(e)&&""!==e&&(n=L(e)),t&&!r.data.allowedValues.includes(n)?O(L(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,f.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=W(null===(l=e.data)||void 0===l?void 0:l.value))&&void 0!==r?r:null:"boolean"===t?null!==(a=z(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}}}ce.isEditableType=!0;const me=ce;function he(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,f.hX)(e)?[]:X(e);return{...t,data:n,isMissingValue:(0,f.hX)(e),copyData:(0,f.hX)(e)?"":L(n.map((e=>"string"===typeof e&&e.includes(",")?e.replace(/,/g," "):e)))}},getCellValue:e=>(0,f.hX)(e.data)||A(e)?null:e.data}}he.isEditableType=!1;const ge=he;function fe(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 pe(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===T.D0.getTypeName(n)&&(o=!1),{id:`index-${t}`,name:i,title:i,isEditable:o,arrowType:n,isIndex:!0,isHidden:!1}}function ve(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,f.hX)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===T.D0.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,f.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 ye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=e.arrowType?T.D0.getTypeName(e.arrowType):null;let r;if("object"===e.kind)r=e.getCell((0,f.se)(t.content)?q(T.D0.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,f.se)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var l,a;let n;var s,d,u;if("time"===i&&(0,f.se)(null===(l=t.field)||void 0===l||null===(a=l.type)||void 0===a?void 0:a.unit))n=k().unix(T.D0.convertToSeconds(t.content,null!==(s=null===(d=t.field)||void 0===d||null===(u=d.type)||void 0===u?void 0:u.unit)&&void 0!==s?s:0)).utc().toDate();else n=k().utc(Number(t.content)).toDate();r=e.getCell(n)}else if("decimal"===i){const n=(0,f.hX)(t.content)?null:T.D0.format(t.content,t.contentType,t.field);r=e.getCell(n)}else r=e.getCell(t.content);if(D(r))return r;if(!e.isEditable){if((0,f.se)(t.displayContent)){var c;const e=q(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===(c=r.data)||void 0===c?void 0:c.kind)&&(r={...r,data:{...r.data,displayDate:e}})}n&&t.cssId&&(r=function(e,t,n){const i={},o=fe(t,"color",n);o&&(i.textDark=o);const r=fe(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 be(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,f.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,f.hX)(i))return!e.isRequired;const o=L(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,f.hX)(e))return{...r,data:null,isMissingValue:!0,onClickUri:()=>{}};const s=e;if("string"===typeof n)return O(L(s),n);if(o){if(!1===l(s))return O(L(s),"Invalid input.")}let d="";return s&&(d=void 0!==i?function(e,t){if((0,f.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,f.hX)(s),onClickUri:e=>{window.open(s.startsWith("www.")?`https://${s}`:s,"_blank","noopener,noreferrer"),e.preventDefault()},copyData:s}},getCellValue:e=>(0,f.hX)(e.data)?null:e.data}}be.isEditableType=!0;const we=be;function xe(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,f.se)(e)?[L(e)]:[];return{...t,data:n,isMissingValue:!(0,f.se)(e),displayData:n}},getCellValue:e=>void 0===e.data||0===e.data.length?null:e.data[0]}}xe.isEditableType=!1;const Ce=xe;function Me(e){const t=se(T.D0.getTypeName(e.arrowType)),n=H({min_value:0,max_value:t?100:1,step:t?1:.01,format:t?"%3d%%":"percent"},e.columnTypeOptions);let i;try{i=j(n.max_value,n.format)}catch(a){i=L(n.max_value)}const r=(0,f.hX)(n.step)||Number.isNaN(n.step)?void 0:P(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,f.hX)(e))return F();if((0,f.hX)(n.min_value)||(0,f.hX)(n.max_value)||Number.isNaN(n.min_value)||Number.isNaN(n.max_value)||n.min_value>=n.max_value)return O("Invalid min/max parameters",`The min_value (${n.min_value}) and max_value (${n.max_value}) parameters must be valid numbers.`);if((0,f.hX)(n.step)||Number.isNaN(n.step))return O("Invalid step parameter",`The step parameter (${n.step}) must be a valid number.`);const t=W(e);if(Number.isNaN(t)||(0,f.hX)(t))return O(L(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return O(L(e),"The value is larger than the maximum supported integer values in number columns (2^53).");let i="";try{i=j(t,n.format,r)}catch(a){return O(L(t),(0,f.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,f.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}}}Me.isEditableType=!1;const Se=Me;function Ee(e,t,n){const i=H({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,f.hX)(i.y_min)||(0,f.hX)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return O("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,f.hX)(e))return F();const t=X(e),n=[];let o=[];if(0===t.length)return F();let l=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const e=W(t[i]);if(Number.isNaN(e)||(0,f.hX)(e))return O(L(t),`The value cannot be interpreted as a numeric array. ${L(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=>j(e)))},isMissingValue:(0,f.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 ke(e){return Ee("line_chart",e,"line")}function Re(e){return Ee("bar_chart",e,"bar")}function Ne(e){return Ee("area_chart",e,"area")}ke.isEditableType=!1,Re.isEditableType=!1,Ne.isEditableType=!1;const Te=new Map(Object.entries({object:Z,text:ee,checkbox:ae,selectbox:me,list:ge,number:ue,link:we,datetime:ie,date:re,time:oe,line_chart:ke,bar_chart:Re,area_chart:Ne,image:Ce,progress:Se})),Ie=[],_e="_index",Oe="_pos:",De={small:75,medium:200,large:400};function Ae(e){if(!(0,f.hX)(e))return"number"===typeof e?e:e in De?De[e]:void 0}function Fe(e,t){if(!t)return e;let n;return t.has(e.name)&&e.name!==_e?n=t.get(e.name):t.has(`${Oe}${e.indexNumber}`)?n=t.get(`${Oe}${e.indexNumber}`):e.isIndex&&t.has(_e)&&(n=t.get(_e)),n?x()({...e},{title:n.label,width:Ae(n.width),isEditable:(0,f.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 $e(e){var t;const n=null===(t=e.columnTypeOptions)||void 0===t?void 0:t.type;let i;return(0,f.se)(n)&&(Te.has(n)?i=Te.get(n):(0,G.FF)(`Unknown column type configured in column configuration: ${n}`)),(0,f.hX)(i)&&(i=function(e){let t=e?T.D0.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty","large_string[pyarrow]"].includes(t)?ee:["datetime","datetimetz"].includes(t)?ie:"time"===t?oe:"date"===t?re:["object","bytes"].includes(t)?Z:["bool"].includes(t)?ae:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range","decimal"].includes(t)?ue:"categorical"===t?me:t.startsWith("list")?ge:Z):Z}(e.arrowType)),i}const Ve=function(e,t,n){const o=(0,J.u)(),r=i.useMemo((()=>function(e){if(!e)return new Map;try{return new Map(Object.entries(JSON.parse(e)))}catch(t){return(0,G.vV)(t),new Map}}(e.columns)),[e.columns]),l=e.useContainerWidth||(0,f.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={...pe(e,r),indexNumber:r};t.push(n)}for(let r=0;r<o;r++){const n={...ve(e,r),indexNumber:r+i};t.push(n)}return t}(t).map((t=>{let i={...t,...Fe(t,r),isStretched:l};const a=$e(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:[Z({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}),[t,r,l,n,e.editingMode,e.columnOrder,o])}};function He(e){return e.isIndex?_e:(0,f.hX)(e.name)?"":e.name}const Xe=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[He(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&&A(e)&&(o=!0),(0,f.se)(t)&&(i[He(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(He(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,f.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 Le=n(32735);const ze=function(){const e=(0,J.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,Le.No)(e.colors.primary,.9),borderColor:e.colors.borderColorLight,horizontalBorderColor:e.colors.borderColorLight,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,Le.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,Le.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 We=function(e,t,n,o){return{getCellContent:i.useCallback((i=>{let[r,l]=i;if(r>t.length-1)return O("Column index out of bounds.","This should never happen. Please report this bug.");if(l>n-1)return O("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),u=o.current.isAddedRow(d);if(a.isEditable||u){const e=o.current.getCell(s,d);if((0,f.se)(e))return e;if(u)return O("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 ye(a,e.getCell(d+1,s),e.cssStyles)}catch(c){return O("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${c}`)}}),[t,n,e,o])}};var je=n(53221);const Be=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,je.uf)({columns:t.map((e=>V(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:V(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};var Ye=n(71034),Pe=n.n(Ye);const Ue=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)),u=d&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_ROW),c=!t&&!n&&(e.selectionMode.includes(g.i3.SelectionMode.SINGLE_COLUMN)||e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN)),m=c&&e.selectionMode.includes(g.i3.SelectionMode.MULTI_COLUMN),h=a.rows.length>0,f=a.columns.length>0,p=void 0!==a.current,v=i.useCallback((e=>{const t=!Pe()(e.rows.toArray(),a.rows.toArray()),n=!Pe()(e.columns.toArray(),a.columns.toArray()),i=!Pe()(e.current,a.current);let o=d&&t||c&&n,u=e;if((d||c)&&void 0!==e.current&&i&&(u={...e,rows:a.rows,columns:a.columns},o=!1),t&&e.rows.length>0&&n&&0===e.columns.length&&(u={...u,columns:a.columns},o=!0),n&&e.columns.length>0&&t&&0===e.rows.length&&(u={...u,rows:a.rows},o=!0),n&&u.columns.length>=0){let e=u.columns;r.forEach(((t,n)=>{t.isIndex&&(e=e.remove(n))})),e.length<u.columns.length&&(u={...u,columns:e})}s(u),o&&l(u)}),[a,d,c,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&&c)&&l(n)}),[a,d,c,l]);return{gridSelection:a,isRowSelectionActivated:d,isMultiRowSelectionActivated:u,isColumnSelectionActivated:c,isMultiColumnSelectionActivated:m,isRowSelected:h,isColumnSelected:f,isCellSelected:p,clearSelection:y,processSelectionChange:v}},qe=",",Je='"',Ge='"',Ke="\n",Ze="\ufeff",Qe=new RegExp(`[${[qe,Je,Ke].join("")}]`);function et(e){return e.map((e=>function(e){if((0,f.hX)(e))return"";const t=L(e);if(Qe.test(t))return`${Je}${t.replace(new RegExp(Je,"g"),Ge+Je)}${Je}`;return t}(e))).join(qe)+Ke}async function tt(e,t,n,i){const o=new TextEncoder;await e.write(o.encode(Ze));const r=n.map((e=>e.name));await e.write(o.encode(et(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(et(i)))}await e.close()}const nt=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 tt(a,e,t,o)}catch(l){if(l instanceof Error&&"AbortError"===l.name)return;try{(0,G.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 tt(a.getWriter(),e,t,o);const s=new Blob([n],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(s),u=document.createElement("a");r?u.setAttribute("target","_blank"):u.setAttribute("target","_self"),u.style.display="none",u.href=d,u.download=i,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(d)}catch(l){(0,G.vV)("Failed to export data as CSV",l)}}}),[t,o,e,r])}};const it=function(e,t,n,o,r,l,a,s,d){const u=i.useCallback(((t,i)=>{let[l,a]=t;const d=e[l];if(!d.isEditable)return;const u=d.indexNumber,c=n.current.getOriginalRowIndex(r(a)),m=o([l,a]),h=d.getCellValue(m),g=d.getCellValue(i);if(!D(m)&&g===h)return;const f=d.getCell(g,!0);D(f)?(0,G.FF)(`Not applying the cell edit since it causes this error:\n ${f.data}`):(n.current.setCell(u,c,{...f,lastUpdated:performance.now()}),s())}),[e,n,r,o,s]),c=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||(c(),s())}),[c,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]}),u([o,i],n.getCell(null)))}return t.length>0&&(s(),l(t)),!1}return!0}),[e,n,t,l,r,s,u,d,a]),g=i.useCallback(((i,a)=>{const[d,u]=i,m=[];for(let h=0;h<a.length;h++){const i=a[h];if(h+u>=n.current.getNumRows()){if(t)break;c()}for(let t=0;t<i.length;t++){const l=i[t],a=h+u,s=t+d;if(s>=e.length)break;const c=e[s];if(c.isEditable){const e=c.getCell(l,!0);if((0,f.se)(e)&&!D(e)){const t=c.indexNumber,i=n.current.getOriginalRowIndex(r(a)),l=c.getCellValue(o([s,a]));c.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,c,s,l]),p=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:u,onPaste:g,onRowAppended:m,onDelete:h,validateCell:p}};const ot=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,f.se)(s))a=s.help;else if("cell"===n.kind){const e=t([i,l]);s.isRequired&&s.isEditable&&A(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 rt=n(28873),lt=n(70128),at=n(13914),st=n(43301),dt=n(67338);const ut=function(e){return{drawCell:i.useCallback(((t,n)=>{const{cell:i,theme:o,ctx:r,rect:l}=t,a=t.col;if(A(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,rt.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((()=>[lt.A,at.A,st.A,dt.Ay,...Ie]),[])}};const ct=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}},mt=2,ht=35,gt=50+mt,ft=2*ht+mt;const pt=function(e,t,n,o,r){let l=function(e){return Math.max(e*ht+mt,ft)}(t+1+(e.editingMode===g.i3.EditingMode.DYNAMIC?1:0)),a=Math.min(l,400);e.height&&(a=Math.max(e.height,ft),l=Math.max(e.height,l)),o&&(a=Math.min(a,o),l=Math.min(l,o),e.height||(a=l));const s=Math.max(n,gt);let d,u=s;e.useContainerWidth?d=s:e.width&&(d=Math.min(Math.max(e.width,gt),s),u=Math.min(Math.max(e.width,u),s));const[c,m]=i.useState({width:d||"100%",height:a});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===c.width&&m({width:s,height:c.height})}),[s]),i.useLayoutEffect((()=>{m({width:c.width,height:a})}),[t]),i.useLayoutEffect((()=>{m({width:d||"100%",height:c.height})}),[d]),i.useLayoutEffect((()=>{m({width:c.width,height:a})}),[a]),i.useLayoutEffect((()=>{if(r){const t=e.useContainerWidth||(0,f.se)(e.width)&&e.width>0;m({width:t?u:"100%",height:l})}else m({width:d||"100%",height:a})}),[r]),{minHeight:ft,maxHeight:l,minWidth:gt,maxWidth:u,resizableSize:c,setResizableSize:m}};var vt=n(89653),yt=n(90782);const bt=(0,vt.A)("img",{target:"e24uaba0"})((()=>({maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"})),""),wt=e=>{let{urls:t}=e;const n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,yt.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,yt.jsx)(bt,{src:n})}):(0,yt.jsx)(bt,{src:n})};var xt=n(3074),Ct=n(41639),Mt=n(34914),St=n(88044),Et=n(58144);const kt=function(e){let{top:t,left:n,content:o,clearTooltip:r}=e;const[l,a]=i.useState(!0),s=(0,J.u)(),{colors:d,fontSizes:u,radii:c}=s,m=i.useCallback((()=>{a(!1),r()}),[r,a]);return(0,yt.jsx)(xt.A,{content:(0,yt.jsx)(St.hW,{"data-testid":"stDataFrameTooltipContent",children:(0,yt.jsx)(Mt.Ay,{style:{fontSize:u.sm},source:o,allowHTML:!1})}),placement:Ct.El.top,accessibilityType:Ct.IP.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:m,onEsc:m,overrides:{Body:{style:{borderTopLeftRadius:c.default,borderTopRightRadius:c.default,borderBottomLeftRadius:c.default,borderBottomRightRadius:c.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,Et.iq)(s)?d.bgColor:d.secondaryBg,color:d.bodyText,fontSize:u.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:l,children:(0,yt.jsx)("div",{"data-testid":"stDataFrameTooltipTarget",style:{position:"fixed",top:t,left:n}})})},Rt=(0,vt.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 Nt=(0,h.A)((function(e){let{element:t,data:n,width:h,height:y,disabled:b,widgetMgr:w,isFullScreen:x,disableFullscreenMode:C,expand:M,collapse:S,fragmentId:E}=e;const k=i.useRef(null),R=i.useRef(null),N=i.useRef(null),{theme:T,headerIcons:I,tableBorderRadius:_}=ze(),{libConfig:{enforceDownloadInNewTab:O=!1}}=i.useContext(v.n),[D,A]=i.useState(!0),[F,H]=i.useState(!1),[X,L]=i.useState(!1),[z,W]=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,f.hX)(t.editingMode)&&(t.editingMode=g.i3.EditingMode.READ_ONLY);const{READ_ONLY:Y,DYNAMIC:P}=g.i3.EditingMode,U=n.dimensions,q=Math.max(0,U.rows-1),J=0===q&&!(t.editingMode===P&&U.dataColumns>0),G=q>15e4,K=i.useRef(new Xe(q)),[Z,Q]=i.useState(K.current.getNumRows());i.useEffect((()=>{K.current=new Xe(q),Q(K.current.getNumRows())}),[q]);const ee=i.useCallback((()=>{K.current=new Xe(q),Q(K.current.getNumRows())}),[q]),{columns:te}=Ve(t,n,b);i.useEffect((()=>{if(t.editingMode===Y)return;const e=w.getStringValue({id:t.id,formId:t.formId});e&&(K.current.fromJson(e,te),Q(K.current.getNumRows()))}),[]);const{getCellContent:ne}=We(n,te,Z,K),{columns:ie,sortColumn:oe,getOriginalIndex:re,getCellContent:le}=Be(q,te,ne),ae=i.useCallback((0,f.sg)(150,(e=>{const n={selection:{rows:[],columns:[]}};n.selection.rows=e.rows.toArray().map((e=>re(e))),n.selection.columns=e.columns.toArray().map((e=>He(ie[e])));const i=JSON.stringify(n),o=w.getStringValue({id:t.id,formId:t.formId});void 0!==o&&o===i||w.setStringValue({id:t.id,formId:t.formId},i,{fromUi:!0},E)})),[t.id,t.formId,w,E,re,He]),{gridSelection:se,isRowSelectionActivated:de,isMultiRowSelectionActivated:ue,isColumnSelectionActivated:ce,isMultiColumnSelectionActivated:me,isRowSelected:he,isColumnSelected:ge,isCellSelected:fe,clearSelection:pe,processSelectionChange:ve}=Ue(t,J,b,ie,ae);i.useEffect((()=>{pe(!0,!0)}),[x]);const ye=i.useCallback((e=>{var t;null===(t=R.current)||void 0===t||t.updateCells(e)}),[]);i.useEffect((()=>{if(!de&&!ce)return;const e=w.getStringValue({id:t.id,formId:t.formId});if(e){var n,i,r,l;const t=ie.map((e=>He(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){ve({rows:s,columns:d,current:void 0})}}}),[]);const be=i.useCallback((()=>{Z!==K.current.getNumRows()&&Q(K.current.getNumRows())}),[Z]),we=i.useCallback((0,f.sg)(150,(()=>{const e=K.current.toJson(ie);let n=w.getStringValue({id:t.id,formId:t.formId});void 0===n&&(n=new Xe(0).toJson([])),e!==n&&w.setStringValue({id:t.id,formId:t.formId},e,{fromUi:!0},E)})),[t.id,t.formId,w,E,ie,K.current]),{exportToCsv:xe}=nt(le,ie,Z,O),{onCellEdited:Ce,onPaste:Me,onRowAppended:Se,onDelete:Ee,validateCell:ke}=it(ie,t.editingMode!==P,K,le,re,ye,be,we,pe),{tooltip:Re,clearTooltip:Ne,onItemHovered:Te}=ot(ie,le),{drawCell:Ie,customRenderers:_e}=ut(ie),Oe=i.useMemo((()=>ie.map((e=>V(e)))),[ie]),{columns:De,onColumnResize:Ae}=ct(Oe),{minHeight:Fe,maxHeight:$e,minWidth:Le,maxWidth:je,resizableSize:Ye,setResizableSize:Pe}=pt(t,Z,h,y,x),qe=i.useCallback((e=>{let[t,n]=e;return{...$(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:T.textLight},span:[0,Math.max(ie.length-1,0)]}}),[ie,T.textLight]);i.useEffect((()=>{if(!t.formId)return;const e=new m.o;return e.manageFormClearListener(w,t.formId,(()=>{ee(),pe()})),()=>{e.disconnect()}}),[t.formId,ee,pe,w]);const Je=!J&&t.editingMode===P&&!b,Ge=J?0:ie.filter((e=>e.isIndex)).length;return i.useEffect((()=>{setTimeout((()=>{if(N.current&&R.current){var e,t;const n=null===(e=N.current)||void 0===e||null===(t=e.querySelector(".dvn-stack"))||void 0===t?void 0:t.getBoundingClientRect();n&&(L(n.height>N.current.clientHeight),W(n.width>N.current.clientWidth))}}),1)}),[Ye,Z,De]),(0,yt.jsxs)(Rt,{className:"stDataFrame","data-testid":"stDataFrame",hasCustomizedScrollbars:B,ref:N,onMouseDown:e=>{if(N.current&&B){const t=N.current.getBoundingClientRect();z&&t.height-7<e.clientY-t.top&&e.stopPropagation(),X&&t.width-7<e.clientX-t.left&&e.stopPropagation()}},onBlur:e=>{D||j||e.currentTarget.contains(e.relatedTarget)||pe(!0,!0)},children:[(0,yt.jsxs)(p.A,{isFullScreen:x,disableFullscreenMode:C,locked:he&&!de||fe||j&&D,onExpand:M,onCollapse:S,target:Rt,children:[(de&&he||ce&&ge)&&(0,yt.jsx)(p.K,{label:"Clear selection",icon:a.b,onClick:()=>{pe(),Ne()}}),Je&&he&&(0,yt.jsx)(p.K,{label:"Delete row(s)",icon:s.e,onClick:()=>{Ee&&(Ee(se),Ne())}}),Je&&!he&&(0,yt.jsx)(p.K,{label:"Add row",icon:d.O,onClick:()=>{Se&&(A(!0),Se(),Ne())}}),!G&&!J&&(0,yt.jsx)(p.K,{label:"Download as CSV",icon:u.n,onClick:()=>xe()}),!J&&(0,yt.jsx)(p.K,{label:"Search",icon:c.v,onClick:()=>{F?H(!1):(A(!0),H(!0)),Ne()}})]}),(0,yt.jsx)(l.c,{"data-testid":"stDataFrameResizable",ref:k,defaultSize:Ye,style:{border:`1px solid ${T.borderColor}`,borderRadius:`${_}`},minHeight:Fe,maxHeight:$e,minWidth:Le,maxWidth:je,size:Ye,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,ht],snapGap:ht/3,onResizeStop:(e,t,n,i)=>{k.current&&Pe({width:k.current.size.width,height:$e-k.current.size.height===mt?k.current.size.height+mt:k.current.size.height})},children:(0,yt.jsx)(r.D,{className:"stDataFrameGlideDataEditor","data-testid":"stDataFrameGlideDataEditor",ref:R,columns:De,rows:J?1:Z,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:ht,headerHeight:ht,getCellContent:J?qe:le,onColumnResize:j?void 0:Ae,resizeIndicator:"header",freezeColumns:Ge,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:!0,getCellsForSelection:!0,rowMarkers:"none",rangeSelect:j?"cell":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:Te,keybindings:{downFill:!0},onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&"f"===e.key&&(H((e=>!e)),e.stopPropagation(),e.preventDefault())},showSearch:F,onSearchClose:()=>{H(!1),Ne()},onHeaderClicked:(e,t)=>{J||G||ce||(de&&he&&pe(),oe(e))},gridSelection:se,onGridSelectionChange:e=>{(D||j)&&(ve(e),void 0!==Re&&Ne())},theme:T,onMouseMove:e=>{"out-of-bounds"===e.kind&&D?A(!1):"out-of-bounds"===e.kind||D||A(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:0,...B&&{paddingBottom:z?-6:void 0,paddingRight:X?-6:void 0}},drawCell:Ie,customRenderers:_e,imageEditorOverride:wt,headerIcons:I,validateCell:ke,onPaste:!1,...de&&{rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:T.bgHeader,bgCellMedium:T.bgHeader}},rowSelectionMode:ue?"multi":"auto",rowSelect:b?"none":ue?"multi":"single",rowSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...ce&&{columnSelect:b?"none":me?"multi":"single",columnSelectionBlending:"mixed",rangeSelectionBlending:"exclusive"},...!J&&t.editingMode!==Y&&!b&&{fillHandle:!j,onCellEdited:Ce,onPaste:Me,onDelete:Ee},...!J&&t.editingMode===P&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkers:{kind:"checkbox",checkboxStyle:"square",theme:{bgCell:T.bgHeader,bgCellMedium:T.bgHeader}},rowSelectionMode:"multi",rowSelect:b?"none":"multi",onRowAppended:b?void 0:Se,onHeaderClicked:void 0}})}),Re&&Re.content&&(0,yt.jsx)(kt,{top:Re.top,left:Re.left,content:Re.content,clearTooltip:Ne})]})}),!0)}}]);
|